@@ -54,15 +54,15 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
54
54
expect ( isActive ) . to . be . equal ( true ) ;
55
55
} ) ;
56
56
57
- it ( "Check the onlyAdmin on deactivateRNft " , async ( ) => {
57
+ it ( "Check the onlyPoolAdmin on deactivateRNft " , async ( ) => {
58
58
const { configurator, users, bayc } = testEnv ;
59
59
await expect (
60
60
configurator . connect ( users [ 2 ] . signer ) . setActiveFlagOnNft ( [ bayc . address ] , false ) ,
61
61
CALLER_NOT_POOL_ADMIN
62
62
) . to . be . revertedWith ( CALLER_NOT_POOL_ADMIN ) ;
63
63
} ) ;
64
64
65
- it ( "Check the onlyAdmin on activateNft " , async ( ) => {
65
+ it ( "Check the onlyPoolAdmin on activateNft " , async ( ) => {
66
66
const { configurator, users, bayc } = testEnv ;
67
67
await expect (
68
68
configurator . connect ( users [ 2 ] . signer ) . setActiveFlagOnNft ( [ bayc . address ] , true ) ,
@@ -93,15 +93,15 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
93
93
await expect (
94
94
configurator . connect ( users [ 2 ] . signer ) . setFreezeFlagOnNft ( [ bayc . address ] , true ) ,
95
95
CALLER_NOT_POOL_ADMIN
96
- ) . to . be . revertedWith ( CALLER_NOT_POOL_ADMIN ) ;
96
+ ) . to . be . revertedWith ( ProtocolErrors . CALLER_NOT_RISK_OR_POOL_ADMIN ) ;
97
97
} ) ;
98
98
99
99
it ( "Check the onlyAdmin on unfreezeNft " , async ( ) => {
100
100
const { configurator, users, bayc } = testEnv ;
101
101
await expect (
102
102
configurator . connect ( users [ 2 ] . signer ) . setFreezeFlagOnNft ( [ bayc . address ] , false ) ,
103
103
CALLER_NOT_POOL_ADMIN
104
- ) . to . be . revertedWith ( CALLER_NOT_POOL_ADMIN ) ;
104
+ ) . to . be . revertedWith ( ProtocolErrors . CALLER_NOT_RISK_OR_POOL_ADMIN ) ;
105
105
} ) ;
106
106
107
107
it ( "Deactivates the BAYC NFT as collateral" , async ( ) => {
@@ -126,7 +126,7 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
126
126
expect ( liquidationBonus ) . to . be . equal ( 500 ) ;
127
127
} ) ;
128
128
129
- it ( "Check the onlyAdmin on configureNftAsCollateral " , async ( ) => {
129
+ it ( "Check the onlyPoolAdmin on configureNftAsCollateral " , async ( ) => {
130
130
const { configurator, users, bayc } = testEnv ;
131
131
await expect (
132
132
configurator . connect ( users [ 2 ] . signer ) . configureNftAsCollateral ( [ bayc . address ] , "7500" , "8000" , "500" ) ,
@@ -166,7 +166,7 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
166
166
expect ( minBidFine ) . to . be . equal ( 5000 ) ;
167
167
} ) ;
168
168
169
- it ( "Check the onlyAdmin on configureNftAsAuction " , async ( ) => {
169
+ it ( "Check the onlyPoolAdmin on configureNftAsAuction " , async ( ) => {
170
170
const { configurator, users, bayc } = testEnv ;
171
171
await expect (
172
172
configurator . connect ( users [ 2 ] . signer ) . configureNftAsAuction ( [ bayc . address ] , "1" , "1" , "100" ) ,
@@ -216,7 +216,7 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
216
216
expect ( liquidationBonus ) . to . be . equal ( 500 ) ;
217
217
} ) ;
218
218
219
- it ( "Check the onlyAdmin on batchConfigNft " , async ( ) => {
219
+ it ( "Check the onlyPoolAdmin on batchConfigNft " , async ( ) => {
220
220
const { configurator, users, bayc } = testEnv ;
221
221
await expect (
222
222
configurator . connect ( users [ 2 ] . signer ) . batchConfigNft ( cfgInputParams ) ,
@@ -303,7 +303,7 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
303
303
) ;
304
304
} ) ;
305
305
306
- it ( "Check the onlyAdmin on setMaxNumberOfNfts " , async ( ) => {
306
+ it ( "Check the onlyPoolAdmin on setMaxNumberOfNfts " , async ( ) => {
307
307
const { configurator, users, pool } = testEnv ;
308
308
await expect (
309
309
configurator . connect ( users [ 2 ] . signer ) . setMaxNumberOfNfts ( 512 ) ,
@@ -325,15 +325,15 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
325
325
expect ( wantVal2 ) . to . be . equal ( false ) ;
326
326
} ) ;
327
327
328
- it ( "Check the onlyAdmin on approve interceptor " , async ( ) => {
328
+ it ( "Check the onlyPoolAdmin on approve interceptor " , async ( ) => {
329
329
const { configurator, users, pool } = testEnv ;
330
330
await expect (
331
331
configurator . connect ( users [ 2 ] . signer ) . approveLoanRepaidInterceptor ( pool . address , true ) ,
332
332
CALLER_NOT_POOL_ADMIN
333
333
) . to . be . revertedWith ( CALLER_NOT_POOL_ADMIN ) ;
334
334
} ) ;
335
335
336
- it ( "Check the onlyAdmin on approve interceptor " , async ( ) => {
336
+ it ( "Check the onlyPoolAdmin on approve interceptor " , async ( ) => {
337
337
const { configurator, users, pool, bBAYC } = testEnv ;
338
338
await expect (
339
339
configurator . connect ( users [ 2 ] . signer ) . purgeLoanRepaidInterceptor ( bBAYC . address , [ 100 ] , pool . address ) ,
@@ -355,15 +355,15 @@ makeSuite("Configurator-NFT", (testEnv: TestEnv) => {
355
355
expect ( wantVal2 ) . to . be . equal ( false ) ;
356
356
} ) ;
357
357
358
- it ( "Check the onlyAdmin on approve locker " , async ( ) => {
358
+ it ( "Check the onlyPoolAdmin on approve locker " , async ( ) => {
359
359
const { configurator, users, pool } = testEnv ;
360
360
await expect (
361
361
configurator . connect ( users [ 2 ] . signer ) . approveFlashLoanLocker ( pool . address , true ) ,
362
362
CALLER_NOT_POOL_ADMIN
363
363
) . to . be . revertedWith ( CALLER_NOT_POOL_ADMIN ) ;
364
364
} ) ;
365
365
366
- it ( "Check the onlyAdmin on approve locker " , async ( ) => {
366
+ it ( "Check the onlyPoolAdmin on approve locker " , async ( ) => {
367
367
const { configurator, users, pool, bBAYC } = testEnv ;
368
368
await expect (
369
369
configurator . connect ( users [ 2 ] . signer ) . purgeFlashLoanLocking ( bBAYC . address , [ 100 ] , pool . address ) ,
0 commit comments