Skip to content

Commit

Permalink
test: simplify allocate LogNormal test
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Feb 23, 2024
1 parent f1b309c commit 78a4392
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/unit/strategies/LogNormal/Allocate.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ contract LogNormalAllocateTest is LogNormalSetUp {
function test_LogNormal_allocate_GivenX() public init {
uint256 maxDeltaX = 0.1 ether;

(uint256 maxDeltaY, uint256 deltaLiquidity) =
solver.allocateGivenDeltaX(POOL_ID, maxDeltaX);
(uint256 reserveX, uint256 reserveY, uint256 liquidity) =
dfmm.getReservesAndLiquidity(POOL_ID);
uint256 deltaLiquidity =
computeDeltaLGivenDeltaX(maxDeltaX, liquidity, reserveX);
uint256 maxDeltaY =
computeDeltaYGivenDeltaX(maxDeltaX, reserveX, reserveY);

console.log("maxDeltaX:", maxDeltaX);
console.log("maxDeltaY:", maxDeltaY);
Expand Down

0 comments on commit 78a4392

Please sign in to comment.