Savings and the Terms of Trade under Borrowing Constraints