Skip to content

Commit a6ccd6e

Browse files
authored
fix: send escrew vault rent back to maker (#503)
1 parent 1305207 commit a6ccd6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tokens/escrow/anchor/programs/escrow/src/instructions

tokens/escrow/anchor/programs/escrow/src/instructions/take_offer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn withdraw_and_close_vault(ctx: Context<TakeOffer>) -> Result<()> {
115115

116116
let accounts = CloseAccount {
117117
account: ctx.accounts.vault.to_account_info(),
118-
destination: ctx.accounts.taker.to_account_info(),
118+
destination: ctx.accounts.maker.to_account_info(),
119119
authority: ctx.accounts.offer.to_account_info(),
120120
};
121121

0 commit comments

Comments
 (0)