1
1
import "module-alias/register" ;
2
2
3
3
import { Address , Account , AirdropSettings } from "@utils/types" ;
4
- import { ADDRESS_ZERO , MAX_UINT_256 , ONE , ZERO } from "@utils/constants" ;
4
+ import { ADDRESS_ZERO , MAX_UINT_256 , ONE } from "@utils/constants" ;
5
5
import { AirdropExtension , BaseManagerV2 } from "@utils/contracts/index" ;
6
6
import { SetToken } from "@utils/contracts/setV2" ;
7
7
import DeployHelper from "@utils/deploys" ;
@@ -134,8 +134,8 @@ describe("AirdropExtension", () => {
134
134
subjectCaller = operator ;
135
135
subjectAirdropSettings = {
136
136
airdrops : [ setV2Setup . dai . address ] ,
137
- feeRecipient : baseManagerV2 . address ,
138
- airdropFee : BigNumber . from ( 0 ) ,
137
+ feeRecipient : await getRandomAddress ( ) ,
138
+ airdropFee : BigNumber . from ( 12345 ) ,
139
139
anyoneAbsorb : false ,
140
140
} ;
141
141
} ) ;
@@ -172,34 +172,6 @@ describe("AirdropExtension", () => {
172
172
expect ( airdrops [ 0 ] ) . to . eq ( setV2Setup . dai . address ) ;
173
173
} ) ;
174
174
175
- context ( "when the fee recipient is not the manager" , async ( ) => {
176
- beforeEach ( async ( ) => {
177
- subjectAirdropSettings . feeRecipient = await getRandomAddress ( ) ;
178
- } ) ;
179
-
180
- it ( "should override the fee recipient address to be the manager" , async ( ) => {
181
- await subject ( ) ;
182
-
183
- const settings = await setV2Setup . airdropModule . airdropSettings ( setToken . address ) ;
184
-
185
- expect ( settings . feeRecipient ) . to . eq ( baseManagerV2 . address ) ;
186
- } ) ;
187
- } ) ;
188
-
189
- context ( "when the airdrop fee is nonzero" , async ( ) => {
190
- beforeEach ( async ( ) => {
191
- subjectAirdropSettings . airdropFee = BigNumber . from ( 12345 ) ;
192
- } ) ;
193
-
194
- it ( "should override the airdrop fee to be zero" , async ( ) => {
195
- await subject ( ) ;
196
-
197
- const settings = await setV2Setup . airdropModule . airdropSettings ( setToken . address ) ;
198
-
199
- expect ( settings . airdropFee ) . to . eq ( ZERO ) ;
200
- } ) ;
201
- } ) ;
202
-
203
175
context ( "when the operator is not the caller" , async ( ) => {
204
176
beforeEach ( async ( ) => {
205
177
subjectCaller = await getRandomAccount ( ) ;
@@ -402,4 +374,4 @@ describe("AirdropExtension", () => {
402
374
} ) ;
403
375
} ) ;
404
376
} ) ;
405
- } ) ;
377
+ } ) ;
0 commit comments