Skip to content

Commit 7e2c0a9

Browse files
committed
fix midas rounding
1 parent 3c8bbde commit 7e2c0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swapService/strategies/strategyMidas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ export class StrategyMidas {
787787
(scale * amount * 10_000n * mToken.priceOne) /
788788
(10_000n - mToken.redemptionInstantFeeBps) /
789789
mTBILLPriceUSD +
790-
1n // +1 fixes rounding issues
790+
2n // +2 fixes rounding issues
791791
amountOut = amount
792792
amountOutMin = amountOut * scale
793793
}

0 commit comments

Comments
 (0)