@@ -13,8 +13,8 @@ import {
13
13
type DeployableOptions ,
14
14
type DeployablePayloadOrAddress ,
15
15
type ERC20IncentivePayload ,
16
- type ERC20PeggedVariableCriteriaIncentivePayload ,
17
- type ERC20VariableCriteriaIncentivePayload ,
16
+ type ERC20PeggedVariableCriteriaIncentiveV2Payload ,
17
+ type ERC20VariableCriteriaIncentiveV2Payload ,
18
18
type ERC20VariableIncentivePayload ,
19
19
type EventActionPayload ,
20
20
FilterType ,
@@ -183,22 +183,22 @@ export const seed: Command<SeedResult | BoostConfig> = async function seed(
183
183
account,
184
184
} ) ;
185
185
return core . ERC20Incentive ( incentive ) ;
186
- case 'ERC20VariableCriteriaIncentive ' :
186
+ case 'ERC20VariableCriteriaIncentiveV2 ' :
187
187
amount += incentive . limit ;
188
188
if ( incentive . shouldMintAndAllocate )
189
189
await fundBudgetForIncentive ( budget , amount , incentive . asset , {
190
190
config,
191
191
account,
192
192
} ) ;
193
- return core . ERC20VariableCriteriaIncentive ( incentive ) ;
194
- case 'ERC20PeggedVariableCriteriaIncentive ' :
193
+ return core . ERC20VariableCriteriaIncentiveV2 ( incentive ) ;
194
+ case 'ERC20PeggedVariableCriteriaIncentiveV2 ' :
195
195
amount += incentive . limit ;
196
196
if ( incentive . shouldMintAndAllocate )
197
197
await fundBudgetForIncentive ( budget , amount , incentive . asset , {
198
198
config,
199
199
account,
200
200
} ) ;
201
- return core . ERC20PeggedVariableCriteriaIncentive ( incentive ) ;
201
+ return core . ERC20PeggedVariableCriteriaIncentiveV2 ( incentive ) ;
202
202
case 'ERC20VariableIncentive' :
203
203
amount += incentive . limit ;
204
204
if ( incentive . shouldMintAndAllocate )
@@ -350,10 +350,10 @@ export type BoostConfig = {
350
350
| ( Identifiable < ERC20IncentivePayload > & {
351
351
shouldMintAndAllocate ?: boolean ;
352
352
} )
353
- | ( Identifiable < ERC20PeggedVariableCriteriaIncentivePayload > & {
353
+ | ( Identifiable < ERC20PeggedVariableCriteriaIncentiveV2Payload > & {
354
354
shouldMintAndAllocate ?: boolean ;
355
355
} )
356
- | ( Identifiable < ERC20VariableCriteriaIncentivePayload > & {
356
+ | ( Identifiable < ERC20VariableCriteriaIncentiveV2Payload > & {
357
357
shouldMintAndAllocate ?: boolean ;
358
358
} )
359
359
| ( Identifiable < ERC20VariableIncentivePayload > & {
@@ -453,8 +453,8 @@ export const IncentiveCriteriaSchema = z.object({
453
453
valueType : z . nativeEnum ( ValueType ) ,
454
454
} ) ;
455
455
456
- export const ERC20VariableCriteriaIncentiveSchema = z . object ( {
457
- type : z . literal ( 'ERC20VariableCriteriaIncentive ' ) ,
456
+ export const ERC20VariableCriteriaIncentiveV2Schema = z . object ( {
457
+ type : z . literal ( 'ERC20VariableCriteriaIncentiveV2 ' ) ,
458
458
asset : AddressSchema ,
459
459
shouldMintAndAllocate : z . boolean ( ) . optional ( ) . default ( false ) ,
460
460
reward : z . coerce . bigint ( ) ,
@@ -463,8 +463,8 @@ export const ERC20VariableCriteriaIncentiveSchema = z.object({
463
463
criteria : IncentiveCriteriaSchema ,
464
464
} ) ;
465
465
466
- export const ERC20PeggedVariableCriteriaIncentiveSchema = z . object ( {
467
- type : z . literal ( 'ERC20PeggedVariableCriteriaIncentive ' ) ,
466
+ export const ERC20PeggedVariableCriteriaIncentiveV2Schema = z . object ( {
467
+ type : z . literal ( 'ERC20PeggedVariableCriteriaIncentiveV2 ' ) ,
468
468
asset : AddressSchema ,
469
469
shouldMintAndAllocate : z . boolean ( ) . optional ( ) . default ( false ) ,
470
470
maxReward : z . coerce . bigint ( ) ,
@@ -513,8 +513,8 @@ export const BoostSeedConfigSchema = z.object({
513
513
z . union ( [
514
514
AllowListIncentiveSchema ,
515
515
ERC20IncentiveSchema ,
516
- ERC20VariableCriteriaIncentiveSchema ,
517
- ERC20PeggedVariableCriteriaIncentiveSchema ,
516
+ ERC20VariableCriteriaIncentiveV2Schema ,
517
+ ERC20PeggedVariableCriteriaIncentiveV2Schema ,
518
518
ERC20VariableIncentiveSchema ,
519
519
CGDAIncentiveSchema ,
520
520
PointsIncentiveSchema ,
@@ -651,10 +651,10 @@ export async function getCreateBoostPayloadFromBoostConfig(
651
651
return core . PointsIncentive ( incentive ) ;
652
652
case 'ERC20Incentive' :
653
653
return core . ERC20Incentive ( incentive ) ;
654
- case 'ERC20VariableCriteriaIncentive ' :
655
- return core . ERC20VariableCriteriaIncentive ( incentive ) ;
656
- case 'ERC20PeggedVariableCriteriaIncentive ' :
657
- return core . ERC20PeggedVariableCriteriaIncentive ( incentive ) ;
654
+ case 'ERC20VariableCriteriaIncentiveV2 ' :
655
+ return core . ERC20VariableCriteriaIncentiveV2 ( incentive ) ;
656
+ case 'ERC20PeggedVariableCriteriaIncentiveV2 ' :
657
+ return core . ERC20PeggedVariableCriteriaIncentiveV2 ( incentive ) ;
658
658
case 'ERC20VariableIncentive' :
659
659
return core . ERC20VariableIncentive ( incentive ) ;
660
660
case 'CGDAIncentive' :
0 commit comments