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

Commit 2aace37

Browse files
committed
fix: task
1 parent dd12e56 commit 2aace37

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tasks/chain-specific/base.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
1717
const comptroller = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
1818
const markets = `${ionbsdETH},${ioneUSD}`;
1919

20-
flywheelRewards = "LATEST_FLYWHEEL_REWARDS_CONTRACT"
21-
flywheel = "LATEST_FLYWHEEL_CONTRACT"
20+
const rewardsContract = (await deployments.get("IonicFlywheelDynamicRewards_Borrow_ION")).address as Address;
2221

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+
);
2426

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]);
2728
await publicClient.waitForTransactionReceipt({ hash: tx });
2829
/*
2930
// STEP 1: upgrade markets to the new implementation

0 commit comments

Comments
 (0)