Skip to content

Commit

Permalink
feat: change rounding direction in NTokenG3MSolver
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Apr 26, 2024
1 parent a9cd91d commit 60146fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NTokenGeometricMean/NTokenGeometricMeanSolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
computeDeallocationDeltasGivenDeltaT,
computeNextLiquidity,
computeSwapDeltaLiquidity,
computeDeltaGivenDeltaLRoundUp
computeDeltaGivenDeltaLRoundDown
} from "src/NTokenGeometricMean/NTokenGeometricMeanMath.sol";
import {
ISolver,
Expand Down Expand Up @@ -102,7 +102,7 @@ contract NTokenGeometricMeanSolver is ISolver {
uint256[] memory deltas = new uint256[](length);

for (uint256 i = 0; i < length; i++) {
deltas[i] = computeDeltaGivenDeltaLRoundUp(
deltas[i] = computeDeltaGivenDeltaLRoundDown(
reserves[i], deltaLiquidity, totalLiquidity
);
}
Expand Down

0 comments on commit 60146fa

Please sign in to comment.