Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 67b94d8

Browse files
committed
Update script
1 parent 2aace37 commit 67b94d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasks/chain-specific/base.ts

+7-1
Original file line numberDiff line numberDiff 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", {

0 commit comments

Comments
 (0)