@@ -17,7 +17,9 @@ import {EventAction} from "contracts/actions/EventAction.sol";
17
17
import {ERC20Incentive } from "contracts/incentives/ERC20Incentive.sol " ;
18
18
import {ERC20PeggedIncentive } from "contracts/incentives/ERC20PeggedIncentive.sol " ;
19
19
import {ERC20VariableIncentive } from "contracts/incentives/ERC20VariableIncentive.sol " ;
20
+ import {ERC20VariableCriteriaIncentive } from "contracts/incentives/ERC20VariableCriteriaIncentive.sol " ;
20
21
import {ERC20VariableCriteriaIncentiveV2 } from "contracts/incentives/ERC20VariableCriteriaIncentiveV2.sol " ;
22
+ import {ERC20PeggedVariableCriteriaIncentive } from "contracts/incentives/ERC20PeggedVariableCriteriaIncentive.sol " ;
21
23
import {ERC20PeggedVariableCriteriaIncentiveV2 } from "contracts/incentives/ERC20PeggedVariableCriteriaIncentiveV2.sol " ;
22
24
import {CGDAIncentive} from "contracts/incentives/CGDAIncentive.sol " ;
23
25
import {PointsIncentive} from "contracts/incentives/PointsIncentive.sol " ;
@@ -58,8 +60,10 @@ contract ModuleBaseDeployer is ScriptUtils {
58
60
59
61
_deployERC20Incentive (registry);
60
62
_deployERC20VariableIncentive (registry);
63
+ _deployERC20VariableCriteriaIncentive (registry);
61
64
_deployERC20VariableCriteriaIncentiveV2 (registry);
62
65
_deployERC20PeggedIncentive (registry);
66
+ _deployERC20PeggedVariableCriteriaIncentive (registry);
63
67
_deployERC20PeggedVariableCriteriaIncentiveV2 (registry);
64
68
_deployCGDAIncentive (registry);
65
69
_deployPointsIncentive (registry);
@@ -207,6 +211,35 @@ contract ModuleBaseDeployer is ScriptUtils {
207
211
);
208
212
}
209
213
214
+ function _deployERC20PeggedVariableCriteriaIncentive (
215
+ BoostRegistry registry
216
+ ) internal returns (address erc20PeggedVariableCriteriaIncentive ) {
217
+ bytes memory initCode = type (ERC20PeggedVariableCriteriaIncentive )
218
+ .creationCode;
219
+ erc20PeggedVariableCriteriaIncentive = _getCreate2Address (initCode, "" );
220
+ console.log (
221
+ "ERC20PeggedVariableCriteriaIncentive: " ,
222
+ erc20PeggedVariableCriteriaIncentive
223
+ );
224
+ deployJson = deployJsonKey.serialize (
225
+ "ERC20PeggedVariableCriteriaIncentive " ,
226
+ erc20PeggedVariableCriteriaIncentive
227
+ );
228
+ bool newDeploy = _deploy2 (initCode, "" );
229
+ _registerIfNew (
230
+ newDeploy,
231
+ string (
232
+ abi.encodePacked (
233
+ "ERC20PeggedVariableCriteriaIncentive " ,
234
+ erc20PeggedVariableCriteriaIncentive
235
+ )
236
+ ),
237
+ erc20PeggedVariableCriteriaIncentive,
238
+ registry,
239
+ ABoostRegistry.RegistryType.INCENTIVE
240
+ );
241
+ }
242
+
210
243
function _deployERC20PeggedVariableCriteriaIncentiveV2 (
211
244
BoostRegistry registry
212
245
) internal returns (address erc20PeggedVariableCriteriaIncentiveV2 ) {
@@ -264,6 +297,35 @@ contract ModuleBaseDeployer is ScriptUtils {
264
297
);
265
298
}
266
299
300
+ function _deployERC20VariableCriteriaIncentive (
301
+ BoostRegistry registry
302
+ ) internal returns (address erc20VariableCriteriaIncentive ) {
303
+ bytes memory initCode = type (ERC20VariableCriteriaIncentive )
304
+ .creationCode;
305
+ erc20VariableCriteriaIncentive = _getCreate2Address (initCode, "" );
306
+ console.log (
307
+ "ERC20VariableCriteriaIncentive: " ,
308
+ erc20VariableCriteriaIncentive
309
+ );
310
+ deployJson = deployJsonKey.serialize (
311
+ "ERC20VariableCriteriaIncentive " ,
312
+ erc20VariableCriteriaIncentive
313
+ );
314
+ bool newDeploy = _deploy2 (initCode, "" );
315
+ _registerIfNew (
316
+ newDeploy,
317
+ string (
318
+ abi.encodePacked (
319
+ "ERC20VariableCriteriaIncentive " ,
320
+ erc20VariableCriteriaIncentive
321
+ )
322
+ ),
323
+ erc20VariableCriteriaIncentive,
324
+ registry,
325
+ ABoostRegistry.RegistryType.INCENTIVE
326
+ );
327
+ }
328
+
267
329
function _deployERC20VariableCriteriaIncentiveV2 (
268
330
BoostRegistry registry
269
331
) internal returns (address erc20VariableCriteriaIncentiveV2 ) {
0 commit comments