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

Commit f833f6c

Browse files
committed
Add bsdETH supply ION rewards
1 parent 32958a8 commit f833f6c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tasks/chain-specific/base/rewards.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
1616
const RSR = "0xab36452dbac151be02b16ca17d8919826072f64a";
1717
const pool = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
1818
const comptrollerAddress = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
19-
const markets = `${ionhyUSD}`;
20-
const reward = "35000";
19+
const markets = `${ionbsdETH}`;
20+
const reward = "2500"; // epoch will start 3 days so 25000 / 30 * 3
2121

2222
/*
2323
// Upgrade markets to the new implementation
@@ -74,15 +74,15 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
7474

7575
// Sending tokens
7676
const ionToken = await viem.getContractAt("EIP20Interface", ION);
77-
const balance = await ionToken.read.balanceOf([ionhyUSD]);
77+
const balance = await ionToken.read.balanceOf([ionbsdETH]);
7878
if (balance < parseEther(reward)) {
79-
await ionToken.write.transfer([ionhyUSD, parseEther(reward)]);
79+
await ionToken.write.transfer([ionbsdETH, parseEther(reward)]);
8080
}
8181

8282
// Approving token sepening for fwRewards contract
8383
const flywheel = await viem.getContractAt(
84-
"IonicFlywheelBorrow",
85-
(await deployments.get("IonicFlywheelBorrow_Borrow_ION")).address as Address
84+
"IonicFlywheel",
85+
(await deployments.get("IonicFlywheel_ION")).address as Address
8686
);
8787

8888
const marketAddresses = markets.split(",");
@@ -95,7 +95,7 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
9595
await publicClient.waitForTransactionReceipt({ hash: tx });
9696
console.log(`approved flywheel ${flywheel.address} to pull reward tokens from market ${marketAddress}`);
9797
}
98-
98+
9999
// Adding strategies to flywheel
100100
const allFlywheelStrategies = (await flywheel.read.getAllStrategies()) as Address[];
101101
for (const strategy of marketAddresses) {

0 commit comments

Comments
 (0)