@@ -16,8 +16,8 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
16
16
const RSR = "0xab36452dbac151be02b16ca17d8919826072f64a" ;
17
17
const pool = "0x05c9C6417F246600f8f5f49fcA9Ee991bfF73D13" ;
18
18
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
21
21
22
22
/*
23
23
// Upgrade markets to the new implementation
@@ -74,15 +74,15 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
74
74
75
75
// Sending tokens
76
76
const ionToken = await viem . getContractAt ( "EIP20Interface" , ION ) ;
77
- const balance = await ionToken . read . balanceOf ( [ ionhyUSD ] ) ;
77
+ const balance = await ionToken . read . balanceOf ( [ ionbsdETH ] ) ;
78
78
if ( balance < parseEther ( reward ) ) {
79
- await ionToken . write . transfer ( [ ionhyUSD , parseEther ( reward ) ] ) ;
79
+ await ionToken . write . transfer ( [ ionbsdETH , parseEther ( reward ) ] ) ;
80
80
}
81
81
82
82
// Approving token sepening for fwRewards contract
83
83
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
86
86
) ;
87
87
88
88
const marketAddresses = markets . split ( "," ) ;
@@ -95,7 +95,7 @@ task("market:base:add-rewards-to-existing-flywheel", "Sets caps on a market").se
95
95
await publicClient . waitForTransactionReceipt ( { hash : tx } ) ;
96
96
console . log ( `approved flywheel ${ flywheel . address } to pull reward tokens from market ${ marketAddress } ` ) ;
97
97
}
98
-
98
+
99
99
// Adding strategies to flywheel
100
100
const allFlywheelStrategies = ( await flywheel . read . getAllStrategies ( ) ) as Address [ ] ;
101
101
for ( const strategy of marketAddresses ) {
0 commit comments