Skip to content

Commit

Permalink
migration custom accounting tests (Uniswap#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 authored May 29, 2024
1 parent 9551e87 commit 59915ac
Show file tree
Hide file tree
Showing 10 changed files with 331 additions and 306 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/addLiquidity CA fee.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
320738
172605
2 changes: 1 addition & 1 deletion .forge-snapshots/removeLiquidity CA fee.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
176325
142125
2 changes: 1 addition & 1 deletion .forge-snapshots/swap CA fee on unspecified.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
172779
155691
322 changes: 322 additions & 0 deletions test/CustomAccounting.t.sol

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/DynamicFees.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract TestDynamicFees is Test, Deployers, GasSnapshot {
dynamicFeesHooks.setManager(IPoolManager(manager));
dynamicFeesNoHooks.setManager(IPoolManager(manager));

(currency0, currency1) = deployMintAndApprove2Currencies();
deployMintAndApprove2Currencies();
(key,) = initPoolAndAddLiquidity(
currency0,
currency1,
Expand Down
2 changes: 1 addition & 1 deletion test/DynamicReturnFees.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract TestDynamicReturnFees is Test, Deployers, GasSnapshot {
deployFreshManagerAndRouters();
dynamicReturnFeesHook.setManager(IPoolManager(manager));

(currency0, currency1) = deployMintAndApprove2Currencies();
deployMintAndApprove2Currencies();
(key,) = initPoolAndAddLiquidity(
currency0,
currency1,
Expand Down
299 changes: 1 addition & 298 deletions test/PoolManager.t.sol

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/PoolManagerInitialize.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contract PoolManagerInitializeTest is Test, Deployers, GasSnapshot {

function setUp() public {
deployFreshManagerAndRouters();
(currency0, currency1) = deployMintAndApprove2Currencies();
deployMintAndApprove2Currencies();

uninitializedKey = PoolKey({
currency0: currency0,
Expand Down
2 changes: 1 addition & 1 deletion test/SkipCallsTestHook.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract SkipCallsTest is Test, Deployers, GasSnapshot {
vm.etch(address(skipCallsTestHook), address(impl).code);
deployFreshManagerAndRouters();
skipCallsTestHook.setManager(IPoolManager(manager));
(currency0, currency1) = deployMintAndApprove2Currencies();
deployMintAndApprove2Currencies();

assertEq(skipCallsTestHook.counter(), 0);

Expand Down
2 changes: 1 addition & 1 deletion test/libraries/Pool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ contract PoolTest is Test, GasSnapshot {
state.modifyLiquidity(params);
}

function testSwap(
function test_fuzz_swap(
uint160 sqrtPriceX96,
uint24 lpFee,
uint16 protocolFee0,
Expand Down

0 comments on commit 59915ac

Please sign in to comment.