@@ -6,16 +6,7 @@ import * as TurboBoosterJson from './abis/TurboBooster.sol/TurboBooster.json';
66import * as TurboAdminJson from './abis/TurboAdmin.sol/TurboAdmin.json' ;
77import { expect } from 'chai' ;
88import { Contract } from 'ethers' ;
9- import {
10- pool8Config ,
11- pool18Config ,
12- gOhmConfig ,
13- gohmCollateralSupplyCap ,
14- gohmCollateralBoostCap ,
15- balConfig ,
16- balCollateralSupplyCap ,
17- balCollateralBoostCap
18- } from './turboRolloutConfig' ;
9+ import { pool8Config , pool18Config , gOhmConfig , balConfig } from './turboRolloutConfig' ;
1910
2011// Turbo admin config
2112const TURBO_ADMIN_ADDRESS = '0x64c4Bffb220818F0f2ee6DAe7A2F17D92b359c5d' ;
@@ -45,9 +36,12 @@ export const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses
4536 // 2. Set boost caps
4637 // console.log('Setting boost caps...');
4738 const turboBoosterContract = new ethers . Contract ( addresses . turboBooster , TurboBoosterJson . abi , deploySigner ) ;
48- await turboBoosterContract . setBoostCapForVault ( pool8Strategy . address , pool8Config . supplyCap ) ;
49- await turboBoosterContract . setBoostCapForVault ( pool18Strategy . address , pool18Config . supplyCap ) ;
50- // await validateBoostSupplyCaps(turboBoosterContract, pool8Strategy.address, pool18Strategy.address);
39+ const pool8Tx = await turboBoosterContract . setBoostCapForVault ( pool8Strategy . address , pool8Config . supplyCap ) ;
40+ await pool8Tx . wait ( ) ;
41+
42+ const pool18Tx = await turboBoosterContract . setBoostCapForVault ( pool18Strategy . address , pool18Config . supplyCap ) ;
43+ await pool18Tx . wait ( ) ;
44+ await validateBoostSupplyCaps ( turboBoosterContract , pool8Strategy . address , pool18Strategy . address ) ;
5145
5246 // 3. Add BAL and gOHM collaterals
5347 const turboAdminContract = new ethers . Contract ( addresses . turboAdmin , TurboAdminJson . abi , deploySigner ) ;
@@ -56,7 +50,7 @@ export const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses
5650 'Balancer' ,
5751 'BAL' ,
5852 balConfig . collateralMantissa ,
59- balCollateralSupplyCap
53+ balConfig . feiDenomCollateralCap
6054 ) ;
6155 await balResponseTx . wait ( ) ;
6256 console . log ( 'Added BAL collateral' ) ;
@@ -66,23 +60,26 @@ export const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses
6660 'Governance OHM' ,
6761 'gOHM' ,
6862 gOhmConfig . collateralMantisa ,
69- gohmCollateralSupplyCap
63+ gOhmConfig . feiDenomCollateralCap
7064 ) ;
7165 await gOHMResponseTx . wait ( ) ;
7266 console . log ( 'Added gOHM collateral' ) ;
7367
7468 // 4. Set boost caps for new collateral types
7569 console . log ( 'Setting boost supply caps' ) ;
76- const balBoostCapTx = await turboBoosterContract . setBoostCapForCollateral ( balConfig . address , balCollateralBoostCap ) ;
70+ const balBoostCapTx = await turboBoosterContract . setBoostCapForCollateral (
71+ balConfig . address ,
72+ balConfig . feiDenomBoostCap
73+ ) ;
7774 await balBoostCapTx . wait ( ) ;
7875
7976 const gOHMBoostCapTx = await turboBoosterContract . setBoostCapForCollateral (
8077 gOhmConfig . address ,
81- gohmCollateralBoostCap
78+ gOhmConfig . feiDenomBoostCap
8279 ) ;
8380 await gOHMBoostCapTx . wait ( ) ;
8481 await validateCollateralBoostCaps ( turboBoosterContract ) ;
85- console . log ( 'Finished' )
82+ console . log ( 'Finished' ) ;
8683 return { } ;
8784} ;
8885
@@ -97,8 +94,8 @@ async function validateBoostSupplyCaps(turboBoosterContract: Contract, pool8Stra
9794async function validateCollateralBoostCaps ( turboBoosterContract : Contract ) {
9895 console . log ( 'Validating collateral boost caps...' ) ;
9996 const balBoostCap = await turboBoosterContract . getBoostCapForCollateral ( balConfig . address ) ;
100- expect ( balBoostCap ) . to . equal ( balCollateralBoostCap ) ;
97+ expect ( balBoostCap ) . to . equal ( balConfig . feiDenomBoostCap ) ;
10198
10299 const gohmBoostCap = await turboBoosterContract . getBoostCapForCollateral ( gOhmConfig . address ) ;
103- expect ( gohmBoostCap ) . to . equal ( gohmCollateralBoostCap ) ;
100+ expect ( gohmBoostCap ) . to . equal ( gOhmConfig . feiDenomBoostCap ) ;
104101}
0 commit comments