Skip to content

Commit

Permalink
fix(SOL/JUP): increase the fee reserve for a possible increase in mon…
Browse files Browse the repository at this point in the history
…ey for the Jupiter transaction by 10%
  • Loading branch information
AntonKozAllB committed Nov 26, 2024
1 parent 2d2e5df commit bb88826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/bridge/sol/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class SolanaBridgeService extends ChainBridgeService {
if (!amountIn) {
throw new JupiterError("Cannot get inAmount");
}
newAmount = Big(solTxSendParams.amount).minus(amountIn).toFixed(0);
newAmount = Big(solTxSendParams.amount).minus(Big(amountIn).mul(JUP_ADD_INDEX)).toFixed(0);
} else {
newAmount = Big(solTxSendParams.amount).minus(amountToProcess).toFixed(0);
}
Expand Down

0 comments on commit bb88826

Please sign in to comment.