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(
19
19
20
20
const rewardsContract = ( await deployments . get ( "IonicFlywheelDynamicRewards_Borrow_ION" ) ) . address as Address ;
21
21
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
+ /*
22
28
const flywheelContract = await viem.getContractAt(
23
29
"IonicFlywheelBorrow",
24
30
(await deployments.get("IonicFlywheelBorrow_Borrow_ION")).address as Address
25
31
);
26
32
27
33
const tx = await flywheelContract.write.setFlywheelRewards([rewardsContract as Address]);
28
34
await publicClient.waitForTransactionReceipt({ hash: tx });
29
- /*
35
+
30
36
// STEP 1: upgrade markets to the new implementation
31
37
console.log(`Upgrading market: ${ionbsdETH} to CErc20RewardsDelegate`);
32
38
await run("market:upgrade", {
You can’t perform that action at this time.
0 commit comments