@@ -103,21 +103,34 @@ contract IntegrationBaseTest is Test, Utils {
103
103
TransparentUpgradeableProxy rewardsDistributorProxy;
104
104
TransparentUpgradeableProxy stakingNodesManagerProxy;
105
105
TransparentUpgradeableProxy yieldNestOracleProxy;
106
+ TransparentUpgradeableProxy executionLayerReceiverProxy;
107
+ TransparentUpgradeableProxy consensusLayerReceiverProxy;
108
+
106
109
// Initializing RewardsDistributor contract and creating its proxy
107
110
rewardsDistributor = new RewardsDistributor ();
108
111
yneth = new ynETH ();
109
112
stakingNodesManager = new StakingNodesManager ();
110
113
yieldNestOracle = new YieldNestOracle ();
111
114
ynlsd = new ynLSD ();
112
115
116
+ executionLayerReceiver = new RewardsReceiver ();
117
+ consensusLayerReceiver = new RewardsReceiver ();
118
+
113
119
rewardsDistributorProxy = new TransparentUpgradeableProxy (address (rewardsDistributor), actors.PROXY_ADMIN_OWNER, "" );
114
120
rewardsDistributor = RewardsDistributor (payable (rewardsDistributorProxy));
115
121
122
+
116
123
ynethProxy = new TransparentUpgradeableProxy (address (yneth), actors.PROXY_ADMIN_OWNER, "" );
117
124
stakingNodesManagerProxy = new TransparentUpgradeableProxy (address (stakingNodesManager), actors.PROXY_ADMIN_OWNER, "" );
118
125
yieldNestOracleProxy = new TransparentUpgradeableProxy (address (yieldNestOracle), actors.PROXY_ADMIN_OWNER, "" );
119
126
ynLSDProxy = new TransparentUpgradeableProxy (address (ynlsd), actors.PROXY_ADMIN_OWNER, "" );
120
127
128
+ executionLayerReceiverProxy = new TransparentUpgradeableProxy (address (executionLayerReceiver), actors.PROXY_ADMIN_OWNER, "" );
129
+ consensusLayerReceiverProxy = new TransparentUpgradeableProxy (address (consensusLayerReceiver), actors.PROXY_ADMIN_OWNER, "" );
130
+
131
+ executionLayerReceiver = RewardsReceiver (payable (executionLayerReceiverProxy));
132
+ consensusLayerReceiver = RewardsReceiver (payable (consensusLayerReceiverProxy));
133
+
121
134
// Wrapping proxies with their respective interfaces
122
135
yneth = ynETH (payable (ynethProxy));
123
136
stakingNodesManager = StakingNodesManager (payable (stakingNodesManagerProxy));
@@ -173,17 +186,7 @@ contract IntegrationBaseTest is Test, Utils {
173
186
}
174
187
175
188
function setupRewardsDistributor () public {
176
- executionLayerReceiver = new RewardsReceiver ();
177
- consensusLayerReceiver = new RewardsReceiver ();
178
- RewardsDistributor.Init memory rewardsDistributorInit = RewardsDistributor.Init ({
179
- admin: actors.ADMIN,
180
- executionLayerReceiver: executionLayerReceiver,
181
- consensusLayerReceiver: consensusLayerReceiver,
182
- feesReceiver: payable (actors.FEE_RECEIVER),
183
- ynETH: IynETH (address (yneth))
184
- });
185
189
186
- rewardsDistributor.initialize (rewardsDistributorInit);
187
190
RewardsReceiver.Init memory rewardsReceiverInit = RewardsReceiver.Init ({
188
191
admin: actors.ADMIN,
189
192
withdrawer: address (rewardsDistributor)
@@ -192,6 +195,15 @@ contract IntegrationBaseTest is Test, Utils {
192
195
executionLayerReceiver.initialize (rewardsReceiverInit);
193
196
consensusLayerReceiver.initialize (rewardsReceiverInit);
194
197
vm.stopPrank ();
198
+
199
+ RewardsDistributor.Init memory rewardsDistributorInit = RewardsDistributor.Init ({
200
+ admin: actors.ADMIN,
201
+ executionLayerReceiver: executionLayerReceiver,
202
+ consensusLayerReceiver: consensusLayerReceiver,
203
+ feesReceiver: payable (actors.FEE_RECEIVER),
204
+ ynETH: IynETH (address (yneth))
205
+ });
206
+ rewardsDistributor.initialize (rewardsDistributorInit);
195
207
}
196
208
197
209
function setupStakingNodesManager () public {
0 commit comments