Skip to content

Commit

Permalink
fix: wrong order of tx's in repay w/ collat
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders authored and chambaz committed Oct 15, 2024
1 parent e491ef8 commit 975547b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marginfi-client-v2/src/models/account/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class MarginfiAccountWrapper {
);

// assumes only one tx
const sigs = await this.client.processTransactions([flashloanTx, ...feedCrankTxs]);
const sigs = await this.client.processTransactions([...feedCrankTxs, flashloanTx]);
debug("Repay with collateral successful %s", sigs.pop() ?? "");

return sigs;
Expand Down

0 comments on commit 975547b

Please sign in to comment.