Skip to content

Commit

Permalink
chore: fix&add comment, use chain selector from helper lib
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed Dec 25, 2024
1 parent 7c0b73d commit bcd843a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ contract AaveV3Arbitrum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
CCIPUtils.PoolVersion poolVersion;
}

uint64 internal constant ETH_CHAIN_SELECTOR = 5009297550715157269;
uint64 internal constant ARB_CHAIN_SELECTOR = 4949039107694359620;
uint64 internal constant ETH_CHAIN_SELECTOR = CCIPUtils.ETH_CHAIN_SELECTOR;
uint64 internal constant ARB_CHAIN_SELECTOR = CCIPUtils.ARB_CHAIN_SELECTOR;

IGhoToken internal constant GHO = IGhoToken(AaveV3ArbitrumAssets.GHO_UNDERLYING);
ITokenAdminRegistry internal constant TOKEN_ADMIN_REGISTRY =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ contract AaveV3Ethereum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
CCIPUtils.PoolVersion poolVersion;
}

uint64 internal constant ETH_CHAIN_SELECTOR = 5009297550715157269;
uint64 internal constant ARB_CHAIN_SELECTOR = 4949039107694359620;
uint64 internal constant ETH_CHAIN_SELECTOR = CCIPUtils.ETH_CHAIN_SELECTOR;
uint64 internal constant ARB_CHAIN_SELECTOR = CCIPUtils.ETH_CHAIN_SELECTOR;

IGhoToken internal constant GHO = IGhoToken(AaveV3EthereumAssets.GHO_UNDERLYING);
ITokenAdminRegistry internal constant TOKEN_ADMIN_REGISTRY =
Expand Down Expand Up @@ -414,6 +414,7 @@ contract AaveV3Ethereum_GHOCCIP151Upgrade_20241209_PostUpgrade is
deal(address(GHO), address(EXISTING_TOKEN_POOL), amount);

vm.prank(EXISTING_TOKEN_POOL.getProxyPool());
// since we disable the bridge by resetting the bridge limit to 0
vm.expectRevert(abi.encodeWithSelector(BridgeLimitExceeded.selector, 0));
EXISTING_TOKEN_POOL.lockOrBurn(
alice,
Expand All @@ -432,7 +433,7 @@ contract AaveV3Ethereum_GHOCCIP151Upgrade_20241209_PostUpgrade is

// router pulls tokens from the user & sends to the token pool during onRamps
// we don't override NEW_TOKEN_POOL balance here & instead transfer because we want
// to check the invariant GHO.balanceOf(tokenPool) == tokenPool.currentBridgedAmount()
// to check the invariant GHO.balanceOf(tokenPool) >= tokenPool.currentBridgedAmount()
deal(address(GHO), address(alice), amount);
vm.prank(alice);
GHO.transfer(address(NEW_TOKEN_POOL), amount);
Expand Down

0 comments on commit bcd843a

Please sign in to comment.