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 +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,20 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
1919
2020 const rewardsContract = ( await deployments . get ( "IonicFlywheelDynamicRewards_Borrow_ION" ) ) . address as Address ;
2121
22+
23+ const comptrollerContract = await viem . getContractAt ( "IonicComptroller" , comptroller as Address ) ;
24+ const tx = await comptrollerContract . addNonAccruingFlywheel ( "0x52f8074831f37e9698acaed2b27387d425f585a9" ) ;
25+ await publicClient . waitForTransactionReceipt ( { hash : tx } ) ;
26+
27+ /*
2228 const flywheelContract = await viem.getContractAt(
2329 "IonicFlywheelBorrow",
2430 (await deployments.get("IonicFlywheelBorrow_Borrow_ION")).address as Address
2531 );
2632
2733 const tx = await flywheelContract.write.setFlywheelRewards([rewardsContract as Address]);
2834 await publicClient.waitForTransactionReceipt({ hash: tx });
29- /*
35+
3036 // STEP 1: upgrade markets to the new implementation
3137 console.log(`Upgrading market: ${ionbsdETH} to CErc20RewardsDelegate`);
3238 await run("market:upgrade", {
You can’t perform that action at this time.
0 commit comments