Skip to content

Commit

Permalink
fix: #28
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Dec 31, 2024
1 parent 4283a1d commit 8338d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/curve/stable/StablePair.sol
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ contract StablePair is ReservoirPair {
uint256 amount1Optimal = aAmount0 * aReserve1 / aReserve0;

if (amount1Optimal <= aAmount1) {
rToken1Fee = (swapFee * (aAmount1 - amount1Optimal)) / (2 * FEE_ACCURACY);
rToken1Fee = swapFee * (aAmount1 - amount1Optimal) / (2 * FEE_ACCURACY);
} else {
uint256 amount0Optimal = aAmount1 * aReserve0 / aReserve1;
rToken0Fee = swapFee * (aAmount0 - amount0Optimal) / (2 * FEE_ACCURACY);
Expand Down

0 comments on commit 8338d60

Please sign in to comment.