@@ -72,7 +72,7 @@ task("market:base:add-rewards-to-existing-flywheel", "Adds rewards to existing f
72
72
// Approving token sepening for fwRewards contract
73
73
const flywheel = await viem . getContractAt (
74
74
"IonicFlywheel" ,
75
- ( await deployments . get ( "IonicFlywheel_ION " ) ) . address as Address
75
+ ( await deployments . get ( "IonicFlywheel_ION_v2 " ) ) . address as Address
76
76
) ;
77
77
78
78
const _market = await viem . getContractAt ( "CErc20RewardsDelegate" , market ) ;
@@ -179,9 +179,9 @@ task("market:base:deploy-flywheel-and-add-rewards", "Sets caps on a market")
179
179
flywheelBoosterAddress = ( await deployments . get ( booster ) ) . address as Address ;
180
180
} else flywheelBoosterAddress = zeroAddress ;
181
181
182
- let _flywheel = await deployments . getOrNull ( `${ contractName } _${ name } ` ) ;
182
+ let _flywheel = await deployments . getOrNull ( `${ contractName } _${ name } _v2 ` ) ;
183
183
if ( ! _flywheel ) {
184
- _flywheel = await deployments . deploy ( `${ contractName } _${ name } ` , {
184
+ _flywheel = await deployments . deploy ( `${ contractName } _${ name } _v2 ` , {
185
185
contract : contractName ,
186
186
from : deployer ,
187
187
log : true ,
@@ -205,7 +205,7 @@ task("market:base:deploy-flywheel-and-add-rewards", "Sets caps on a market")
205
205
// Deploying flywheel rewards
206
206
const flywheel = await viem . getContractAt (
207
207
`${ contractName } ` ,
208
- ( await deployments . get ( `${ contractName } _${ name } ` ) ) . address as Address
208
+ ( await deployments . get ( `${ contractName } _${ name } _v2 ` ) ) . address as Address
209
209
) ;
210
210
211
211
let flywheelRewards = await deployments . getOrNull ( `IonicFlywheelDynamicRewards_${ name } ` ) ;
@@ -264,7 +264,7 @@ task("market:base:deploy-flywheel-and-add-rewards", "Sets caps on a market")
264
264
task ( "market:base:add-flywheel-ION-rewards-to-ionbsdETH" , "Adds rewards to existing flywheel" ) . setAction (
265
265
async ( _ , { viem, run, deployments, getNamedAccounts } ) => {
266
266
const market = "0x3d9669de9e3e98db41a1cbf6dc23446109945e3c" ; // ionbsdETH
267
- const rewardAmount = "1666 " ; // epoch will start 2 days so 25000 / 30 * 2
267
+ const rewardAmount = "23334 " ; // epoch will start 2 days so 25000 / 30 * 2
268
268
const ion = "0x3eE5e23eEE121094f1cFc0Ccc79d6C809Ebd22e5" ;
269
269
await run ( "market:base:add-rewards-to-existing-flywheel" , {
270
270
market,
@@ -277,7 +277,7 @@ task("market:base:add-flywheel-ION-rewards-to-ionbsdETH", "Adds rewards to exist
277
277
task ( "market:base:deploy-flywheel-and-add-ION-rewards-to-ionhyUSD" , "Deploys flywheel and adds rewards" ) . setAction (
278
278
async ( _ , { viem, run, deployments, getNamedAccounts } ) => {
279
279
const market = "0x751911bDa88eFcF412326ABE649B7A3b28c4dEDe" ; // ionhyUSD
280
- const rewardAmount = "1000 " ; // epoch will start 2 days so 15000 / 30 * 2
280
+ const rewardAmount = "14000 " ; // epoch will start 2 days so 15000 / 30 * 2
281
281
const ion = "0x3eE5e23eEE121094f1cFc0Ccc79d6C809Ebd22e5" ;
282
282
const name = "ION" ; // For borrow flywheel use Borrow_ION for supply flywheel just ION
283
283
// NOTE: Make sure that epoch duration for supply and borrow are not the same
0 commit comments