Skip to content

Commit

Permalink
fix liqman
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Nov 28, 2024
1 parent 4df439a commit 44581a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions contracts/gas-snapshots/liquiditymanager.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ LiquidityManager_addLiquidity:test_addLiquiditySuccess() (gas: 279154)
LiquidityManager_rebalanceLiquidity:test_InsufficientLiquidityReverts() (gas: 206745)
LiquidityManager_rebalanceLiquidity:test_InvalidRemoteChainReverts() (gas: 192319)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPoolsSuccess() (gas: 9141768)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPoolsSuccess_AlreadyFinalized() (gas: 8960797)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPools_MultiStageFinalization() (gas: 8956003)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPools_NativeRewrap() (gas: 8883801)
LiquidityManager_rebalanceLiquidity:test_rebalanceLiquiditySuccess() (gas: 382897)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPoolsSuccess_AlreadyFinalized() (gas: 9306597)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPools_MultiStageFinalization() (gas: 9301803)
LiquidityManager_rebalanceLiquidity:test_rebalanceBetweenPools_NativeRewrap() (gas: 9231693)
LiquidityManager_rebalanceLiquidity:test_rebalanceLiquiditySuccess() (gas: 382880)
LiquidityManager_receive:test_receive_success() (gas: 21182)
LiquidityManager_removeLiquidity:test_InsufficientLiquidityReverts() (gas: 184869)
LiquidityManager_removeLiquidity:test_OnlyFinanceRoleReverts() (gas: 10872)
LiquidityManager_removeLiquidity:test_removeLiquiditySuccess() (gas: 236342)
LiquidityManager_removeLiquidity:test_removeLiquiditySuccess() (gas: 236324)
LiquidityManager_setCrossChainRebalancer:test_OnlyOwnerReverts() (gas: 17005)
LiquidityManager_setCrossChainRebalancer:test_ZeroAddressReverts() (gas: 21624)
LiquidityManager_setCrossChainRebalancer:test_ZeroChainSelectorReverts() (gas: 13099)
Expand All @@ -19,7 +19,7 @@ LiquidityManager_setFinanceRole:test_OnlyOwnerReverts() (gas: 10987)
LiquidityManager_setFinanceRole:test_setFinanceRoleSuccess() (gas: 21836)
LiquidityManager_setLocalLiquidityContainer:test_OnlyOwnerReverts() (gas: 11052)
LiquidityManager_setLocalLiquidityContainer:test_ReverstWhen_CalledWithTheZeroAddress() (gas: 10643)
LiquidityManager_setLocalLiquidityContainer:test_setLocalLiquidityContainerSuccess() (gas: 3498806)
LiquidityManager_setLocalLiquidityContainer:test_setLocalLiquidityContainerSuccess() (gas: 3847225)
LiquidityManager_setMinimumLiquidity:test_OnlyOwnerReverts() (gas: 10925)
LiquidityManager_setMinimumLiquidity:test_setMinimumLiquiditySuccess() (gas: 36389)
LiquidityManager_withdrawERC20:test_withdrawERC20Reverts() (gas: 180359)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract LiquidityManagerSetup is LiquidityManagerBaseTest {
LiquidityManagerBaseTest.setUp();

s_bridgeAdapter = new MockL1BridgeAdapter(s_l1Token, false);
s_lockReleaseTokenPool = new LockReleaseTokenPool(s_l1Token, new address[](0), address(1), true, address(123));
s_lockReleaseTokenPool = new LockReleaseTokenPool(s_l1Token, 18, new address[](0), address(1), true, address(123));
s_liquidityManager = new LiquidityManagerHelper(
s_l1Token,
i_localChainSelector,
Expand All @@ -71,6 +71,7 @@ contract LiquidityManagerSetup is LiquidityManagerBaseTest {
s_wethBridgeAdapter = new MockL1BridgeAdapter(IERC20(address(s_l1Weth)), true);
s_wethLockReleaseTokenPool = new LockReleaseTokenPool(
IERC20(address(s_l1Weth)),
18,
new address[](0),
address(1),
true,
Expand Down Expand Up @@ -272,6 +273,7 @@ contract LiquidityManager_rebalanceLiquidity is LiquidityManagerSetup {
MockL1BridgeAdapter remoteBridgeAdapter = new MockL1BridgeAdapter(s_l2Token, false);
LockReleaseTokenPool remotePool = new LockReleaseTokenPool(
s_l2Token,
18,
new address[](0),
address(1),
true,
Expand Down Expand Up @@ -401,6 +403,7 @@ contract LiquidityManager_rebalanceLiquidity is LiquidityManagerSetup {
MockL1BridgeAdapter remoteBridgeAdapter = new MockL1BridgeAdapter(s_l2Token, false);
LockReleaseTokenPool remotePool = new LockReleaseTokenPool(
s_l2Token,
18,
new address[](0),
address(1),
true,
Expand Down Expand Up @@ -522,6 +525,7 @@ contract LiquidityManager_rebalanceLiquidity is LiquidityManagerSetup {
MockL1BridgeAdapter remoteBridgeAdapter = new MockL1BridgeAdapter(IERC20(address(s_l2Weth)), true);
LockReleaseTokenPool remotePool = new LockReleaseTokenPool(
IERC20(address(s_l2Weth)),
18,
new address[](0),
address(1),
true,
Expand Down Expand Up @@ -817,6 +821,7 @@ contract LiquidityManager_setLocalLiquidityContainer is LiquidityManagerSetup {
function test_setLocalLiquidityContainerSuccess() external {
LockReleaseTokenPool newPool = new LockReleaseTokenPool(
s_l1Token,
18,
new address[](0),
address(1),
true,
Expand Down

0 comments on commit 44581a8

Please sign in to comment.