native currency fixes

This commit is contained in:
tim
2025-10-14 20:54:15 -04:00
parent 308227f251
commit 96535ed005
7 changed files with 66 additions and 60 deletions

View File

@@ -244,10 +244,10 @@ contract GasTest is Test {
vm.prank(alice);
if (i % 2 == 0) {
// swap token0 -> token1
testPool.swap(alice, alice, 0, 1, maxIn, 0, 0);
testPool.swap(alice, alice, 0, 1, maxIn, 0, 0, false);
} else {
// swap token1 -> token0
testPool.swap(alice, alice, 1, 0, maxIn, 0, 0);
testPool.swap(alice, alice, 1, 0, maxIn, 0, 0, false);
}
}
}
@@ -308,7 +308,7 @@ contract GasTest is Test {
// If nothing minted (numerical edge), skip burn step
if (minted == 0) continue;
// Immediately burn the minted LP back to tokens, targeting the same token index
testPool.burnSwap(alice, alice, minted, 0, 0);
testPool.burnSwap(alice, alice, minted, 0, 0, false);
}
vm.stopPrank();
@@ -368,7 +368,7 @@ contract GasTest is Test {
}
// Burn via plain burn() which will transfer underlying back to alice and burn LP
testPool.burn(alice, alice, actualMinted, 0);
testPool.burn(alice, alice, actualMinted, 0, false);
}
vm.stopPrank();