This repository was archived by the owner on Aug 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
17
17
const comptroller = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13" ;
18
18
const markets = `${ ionbsdETH } ,${ ioneUSD } ` ;
19
19
20
- flywheelRewards = "LATEST_FLYWHEEL_REWARDS_CONTRACT"
21
- flywheel = "LATEST_FLYWHEEL_CONTRACT"
20
+ const rewardsContract = ( await deployments . get ( "IonicFlywheelDynamicRewards_Borrow_ION" ) ) . address as Address ;
22
21
23
- const rewardsContract = await viem . getContractAt ( "IonicFlywheelDynamicRewards_Borrow_ION" , flywheelRewards ) ;
22
+ const flywheelContract = await viem . getContractAt (
23
+ "IonicFlywheelBorrow" ,
24
+ ( await deployments . get ( "IonicFlywheelBorrow_Borrow_ION" ) ) . address as Address
25
+ ) ;
24
26
25
- const flywheelContract = await viem . getContractAt ( "IonicFlywheelBorrow" , flywheel ) ;
26
- const tx = await flywheelContract . write . setFlywheelRewards ( [ rewardsContract . address as Address ] ) ;
27
+ const tx = await flywheelContract . write . setFlywheelRewards ( [ rewardsContract as Address ] ) ;
27
28
await publicClient . waitForTransactionReceipt ( { hash : tx } ) ;
28
29
/*
29
30
// STEP 1: upgrade markets to the new implementation
You can’t perform that action at this time.
0 commit comments