dropped USE_ from Funding constants
This commit is contained in:
@@ -177,7 +177,7 @@ contract FundingTest is Test {
|
||||
// Execute swap using Funding.USE_PREFUNDING for pre-funded: token0 -> token1
|
||||
(uint256 amountIn, uint256 amountOut, uint256 fee) = pool.swap(
|
||||
alice, // payer (not used with pre-funded)
|
||||
Funding.USE_PREFUNDING,
|
||||
Funding.PREFUNDING,
|
||||
bob, // receiver
|
||||
0, // inputTokenIndex (token0)
|
||||
1, // outputTokenIndex (token1)
|
||||
@@ -227,7 +227,7 @@ contract FundingTest is Test {
|
||||
// Execute swap
|
||||
(uint256 amountIn, uint256 amountOut, uint256 fee) = poolZeroFee.swap(
|
||||
alice,
|
||||
Funding.USE_PREFUNDING,
|
||||
Funding.PREFUNDING,
|
||||
bob,
|
||||
0, // token0 -> token1
|
||||
1,
|
||||
@@ -263,7 +263,7 @@ contract FundingTest is Test {
|
||||
vm.expectRevert();
|
||||
pool.swap(
|
||||
alice,
|
||||
Funding.USE_PREFUNDING,
|
||||
Funding.PREFUNDING,
|
||||
bob,
|
||||
0,
|
||||
1,
|
||||
@@ -405,7 +405,7 @@ contract FundingTest is Test {
|
||||
|
||||
(uint256 refAmountIn, uint256 refAmountOut, uint256 refFee) = pool.swap(
|
||||
bob,
|
||||
Funding.USE_APPROVALS,
|
||||
Funding.APPROVALS,
|
||||
bob,
|
||||
0,
|
||||
1,
|
||||
@@ -442,7 +442,7 @@ contract FundingTest is Test {
|
||||
|
||||
(uint256 preAmountIn, uint256 preAmountOut, uint256 preFee) = testPool.swap(
|
||||
alice,
|
||||
Funding.USE_PREFUNDING,
|
||||
Funding.PREFUNDING,
|
||||
alice,
|
||||
0,
|
||||
1,
|
||||
@@ -469,7 +469,7 @@ contract FundingTest is Test {
|
||||
|
||||
(uint256 refAmountIn, uint256 refAmountOut, uint256 refFee) = pool.swap(
|
||||
bob,
|
||||
Funding.USE_APPROVALS,
|
||||
Funding.APPROVALS,
|
||||
bob,
|
||||
0,
|
||||
1,
|
||||
@@ -574,7 +574,7 @@ contract FundingTest is Test {
|
||||
vm.startPrank(alice);
|
||||
token0.approve(address(poolApproval), type(uint256).max);
|
||||
(uint256 apprIn, uint256 apprOut, ) = poolApproval.swap(
|
||||
alice, Funding.USE_APPROVALS, alice, 0, 1, swapAmount, 0, 0, false
|
||||
alice, Funding.APPROVALS, alice, 0, 1, swapAmount, 0, 0, false
|
||||
);
|
||||
vm.stopPrank();
|
||||
|
||||
@@ -582,7 +582,7 @@ contract FundingTest is Test {
|
||||
vm.startPrank(alice);
|
||||
token0.transfer(address(poolPreFund), swapAmount);
|
||||
(uint256 preIn, uint256 preOut, ) = poolPreFund.swap(
|
||||
alice, Funding.USE_PREFUNDING, alice, 0, 1, swapAmount, 0, 0, false
|
||||
alice, Funding.PREFUNDING, alice, 0, 1, swapAmount, 0, 0, false
|
||||
);
|
||||
vm.stopPrank();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user