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

Commit 32958a8

Browse files
committed
Fixup
1 parent 989a53e commit 32958a8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tasks/chain-specific/base/rewards.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { task } from "hardhat/config";
22
import { Address, parseEther, zeroAddress } from "viem";
3-
import { assets as baseAssets } from "../../../../monorepo/packages/chains/src/base/assets";
4-
import { assetSymbols } from "../../../../monorepo/packages/types";
5-
import { COMPTROLLER } from ".";
63

74
task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").setAction(
85
async (_, { viem, run, deployments, getNamedAccounts }) => {
@@ -19,7 +16,7 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
1916
const RSR = "0xab36452dbac151be02b16ca17d8919826072f64a";
2017
const pool = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
2118
const comptrollerAddress = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
22-
const markets = `${eUSD}`;
19+
const markets = `${ionhyUSD}`;
2320
const reward = "35000";
2421

2522
/*
@@ -77,9 +74,9 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
7774

7875
// Sending tokens
7976
const ionToken = await viem.getContractAt("EIP20Interface", ION);
80-
const balance = await ionToken.read.balanceOf([ioneUSD]);
77+
const balance = await ionToken.read.balanceOf([ionhyUSD]);
8178
if (balance < parseEther(reward)) {
82-
await ionToken.write.transfer([ioneUSD, parseEther(reward)]);
79+
await ionToken.write.transfer([ionhyUSD, parseEther(reward)]);
8380
}
8481

8582
// Approving token sepening for fwRewards contract
@@ -127,8 +124,8 @@ task("market:base:deploy-flywheel-and-add-rewards", "Sets caps on a market").set
127124
const RSR = "0xab36452dbac151be02b16ca17d8919826072f64a";
128125
const pool = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
129126
const comptrollerAddress = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13";
130-
const markets = `${hyUSD}`;
131-
const reward = "3750";
127+
const markets = `${ionhyUSD}`;
128+
const reward = "1500"; // epoch will start 3 days so 15000 / 30 * 3
132129

133130
/*
134131
// Upgrade markets to the new implementation

0 commit comments

Comments
 (0)