@@ -35,14 +35,13 @@ contract GhoListingTest is ProtocolV3TestBase {
35
35
address constant AAVE = 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9 ;
36
36
address public constant STKAAVE = 0x4da27a545c0c5B758a6BA100e3a049001de870f5 ;
37
37
38
- address public constant STKAAVE_UPGRADE_PAYLOAD = 0xe427FCbD54169136391cfEDf68E96abB13dA87A0 ; // AIP#124
39
- uint256 public constant STKAAVE_UPGRADE_BLOCK_NUMBER = 17138206 ;
38
+ uint256 public constant FORK_BLOCK_NUMBER = 17334690 ;
40
39
41
40
address public GHO_TOKEN;
42
41
address public GHO_FLASHMINTER;
43
42
44
43
function testListingComplete () public {
45
- vm.createSelectFork (vm.rpcUrl ('mainnet ' ), STKAAVE_UPGRADE_BLOCK_NUMBER );
44
+ vm.createSelectFork (vm.rpcUrl ('mainnet ' ), FORK_BLOCK_NUMBER );
46
45
47
46
Helpers.AaveFacilitatorData memory aaveData = Helpers.deployAaveFacilitator (
48
47
address (AaveV3Ethereum.POOL),
@@ -60,30 +59,16 @@ contract GhoListingTest is ProtocolV3TestBase {
60
59
GHO_TOKEN = payload.precomputeGhoTokenAddress ();
61
60
GHO_FLASHMINTER = payload.precomputeGhoFlashMinterAddress ();
62
61
63
- // Simulate stkAave upgrade
64
- uint256 upgradeProposalId = _passProposal (
65
- AaveGovernanceV2.LONG_EXECUTOR,
66
- STKAAVE_UPGRADE_PAYLOAD
67
- );
68
- GovHelper._execute (upgradeProposalId);
69
-
70
62
// Simulate GOV action
71
63
uint256 listingProposalId = _passProposal (AaveGovernanceV2.SHORT_EXECUTOR, address (payload));
72
64
73
65
_testListing (address (payload), listingProposalId);
74
66
}
75
67
76
68
function _testListingWithPayload () public {
77
- vm.createSelectFork (vm.rpcUrl ('mainnet ' ), STKAAVE_UPGRADE_BLOCK_NUMBER );
69
+ vm.createSelectFork (vm.rpcUrl ('mainnet ' ), FORK_BLOCK_NUMBER );
78
70
address GHO_AIP = address (0 ); // TODO
79
71
80
- // Simulate stkAave upgrade
81
- uint256 upgradeProposalId = _passProposal (
82
- AaveGovernanceV2.LONG_EXECUTOR,
83
- STKAAVE_UPGRADE_PAYLOAD
84
- );
85
- GovHelper._execute (upgradeProposalId);
86
-
87
72
// Simulate GOV action
88
73
uint256 listingProposalId = _passProposal (AaveGovernanceV2.SHORT_EXECUTOR, GHO_AIP);
89
74
@@ -95,7 +80,7 @@ contract GhoListingTest is ProtocolV3TestBase {
95
80
* This is possible due to the permissionless create2 singleton factory
96
81
*/
97
82
function testPayloadExecutionWithContractsAlreadyDeployed () public {
98
- vm.createSelectFork (vm.rpcUrl ('mainnet ' ), STKAAVE_UPGRADE_BLOCK_NUMBER );
83
+ vm.createSelectFork (vm.rpcUrl ('mainnet ' ), FORK_BLOCK_NUMBER );
99
84
100
85
Helpers.AaveFacilitatorData memory aaveData = Helpers.deployAaveFacilitator (
101
86
address (AaveV3Ethereum.POOL),
@@ -113,13 +98,6 @@ contract GhoListingTest is ProtocolV3TestBase {
113
98
GHO_TOKEN = payload.precomputeGhoTokenAddress ();
114
99
GHO_FLASHMINTER = payload.precomputeGhoFlashMinterAddress ();
115
100
116
- // Simulate stkAave upgrade
117
- uint256 upgradeProposalId = _passProposal (
118
- AaveGovernanceV2.LONG_EXECUTOR,
119
- STKAAVE_UPGRADE_PAYLOAD
120
- );
121
- GovHelper._execute (upgradeProposalId);
122
-
123
101
// Simulate GOV action
124
102
uint256 listingProposalId = _passProposal (AaveGovernanceV2.SHORT_EXECUTOR, address (payload));
125
103
0 commit comments