@@ -19,8 +19,8 @@ describe('PoolCollection', () => {
19
19
const MIN_LIQUIDITY_FOR_TRADING = toWei ( BigNumber . from ( 100_000 ) ) ;
20
20
const INITIAL_RATE = { n : BigNumber . from ( 1 ) , d : BigNumber . from ( 2 ) } ;
21
21
22
- const TRADING_ENABLED_BY_OWNER = 0 ;
23
- const TRADING_ENABLED_BY_MINIMUM_LIQUIDITY = 1 ;
22
+ const TRADING_STATUS_UPDATE_OWNER = 0 ;
23
+ const TRADING_STATUS_UPDATE_MIN_LIQUIDITY = 1 ;
24
24
25
25
let deployer : SignerWithAddress ;
26
26
let nonOwner : SignerWithAddress ;
@@ -190,7 +190,7 @@ describe('PoolCollection', () => {
190
190
. withArgs ( reserveToken . address , BigNumber . from ( 0 ) , pool . tradingFeePPM ) ;
191
191
await expect ( res )
192
192
. to . emit ( poolCollection , 'TradingEnabled' )
193
- . withArgs ( reserveToken . address , false , TRADING_ENABLED_BY_OWNER ) ;
193
+ . withArgs ( reserveToken . address , false , TRADING_STATUS_UPDATE_OWNER ) ;
194
194
await expect ( res )
195
195
. to . emit ( poolCollection , 'DepositingEnabled' )
196
196
. withArgs ( reserveToken . address , pool . depositingEnabled ) ;
@@ -404,7 +404,7 @@ describe('PoolCollection', () => {
404
404
const res = await poolCollection . enableTrading ( reserveToken . address , false ) ;
405
405
await expect ( res )
406
406
. to . emit ( poolCollection , 'TradingEnabled' )
407
- . withArgs ( reserveToken . address , false , TRADING_ENABLED_BY_OWNER ) ;
407
+ . withArgs ( reserveToken . address , false , TRADING_STATUS_UPDATE_OWNER ) ;
408
408
409
409
pool = await poolCollection . poolData ( reserveToken . address ) ;
410
410
( { tradingEnabled } = pool ) ;
@@ -413,7 +413,7 @@ describe('PoolCollection', () => {
413
413
const res2 = await poolCollection . enableTrading ( reserveToken . address , true ) ;
414
414
await expect ( res2 )
415
415
. to . emit ( poolCollection , 'TradingEnabled' )
416
- . withArgs ( reserveToken . address , true , TRADING_ENABLED_BY_OWNER ) ;
416
+ . withArgs ( reserveToken . address , true , TRADING_STATUS_UPDATE_OWNER ) ;
417
417
418
418
pool = await poolCollection . poolData ( reserveToken . address ) ;
419
419
( { tradingEnabled } = pool ) ;
@@ -998,7 +998,7 @@ describe('PoolCollection', () => {
998
998
) {
999
999
await expect ( res )
1000
1000
. to . emit ( poolCollection , 'TradingEnabled' )
1001
- . withArgs ( reserveToken . address , true , TRADING_ENABLED_BY_MINIMUM_LIQUIDITY ) ;
1001
+ . withArgs ( reserveToken . address , true , TRADING_STATUS_UPDATE_MIN_LIQUIDITY ) ;
1002
1002
}
1003
1003
1004
1004
let rate ;
0 commit comments