@@ -18,25 +18,23 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
18
18
const markets = `${ ionbsdETH } ,${ ioneUSD } ` ;
19
19
20
20
// STEP 1: upgrade markets to the new implementation
21
- console . log ( `Upgrading market: ${ ionbsdETH } to CErc20PluginRewardsDelegate with plugin: ${ zeroAddress } ` ) ;
21
+ console . log ( `Upgrading market: ${ ionbsdETH } to CErc20RewardsDelegate ` ) ;
22
22
await run ( "market:upgrade" , {
23
23
comptroller,
24
24
underlying : bsdETH ,
25
- implementationAddress : ( await deployments . get ( "CErc20PluginRewardsDelegate" ) ) . address ,
26
- pluginAddress : zeroAddress ,
25
+ implementationAddress : ( await deployments . get ( "CErc20RewardsDelegate" ) ) . address ,
27
26
signer : deployer
28
27
} ) ;
29
28
30
- console . log ( `Upgrading market: ${ ioneUSD } to CErc20PluginRewardsDelegate with plugin: ${ zeroAddress } ` ) ;
29
+ console . log ( `Upgrading market: ${ ioneUSD } to CErc20RewardsDelegate ` ) ;
31
30
await run ( "market:upgrade" , {
32
31
comptroller,
33
32
underlying : eUSD ,
34
- implementationAddress : ( await deployments . get ( "CErc20PluginRewardsDelegate" ) ) . address ,
35
- pluginAddress : zeroAddress ,
33
+ implementationAddress : ( await deployments . get ( "CErc20RewardsDelegate" ) ) . address ,
36
34
signer : deployer
37
35
} ) ;
38
36
console . log ( "Market upgraded" ) ;
39
-
37
+ /*
40
38
const ionToken = await viem.getContractAt("EIP20Interface", IONIC);
41
39
const balance = await ionToken.read.balanceOf([ionbsdETH]);
42
40
if (balance < parseEther("105263.157895")) {
@@ -46,17 +44,18 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
46
44
if (balanceUSD < parseEther("114416.475973")) {
47
45
await ionToken.write.transfer([ioneUSD, parseEther("114416.475973")]);
48
46
}
49
-
47
+ */
50
48
/*
51
- // NOTE: change name and reward token
52
- await run("flywheel:deploy-dynamic-rewards-fw", { name: "RSR", rewardToken: "RSR_TOKEN_ADDRESS", booster: "", strategies: markets, pool: fpd.address });
49
+ // NOTE: change name and reward token
50
+ await run("flywheel:deploy-dynamic-rewards-fw", { name: "RSR", rewardToken: "RSR_TOKEN_ADDRESS", booster: "", strategies: markets, pool: fpd.address });
53
51
54
- const flywheel = await viem.getContractAt("IonicFlywheel", (await deployments.get("IonicFlywheel")).address as Address);
55
- await run("approve-market-flywheel", { fwAddress: flywheel.address, markets: markets });
56
-
57
- const tx = await flywheel.write.updateFeeSettings([0, deployer.address]);
58
- await publicClient.waitForTransactionReceipt({ hash: tx });
59
- */
52
+ const flywheel = await viem.getContractAt("IonicFlywheel", (await deployments.get("IonicFlywheel")).address as Address);
53
+ await run("approve-market-flywheel", { fwAddress: flywheel.address, markets: markets });
54
+
55
+ const tx = await flywheel.write.updateFeeSettings([0, deployer.address]);
56
+ await publicClient.waitForTransactionReceipt({ hash: tx });
57
+ */
58
+ /*
60
59
await run("flywheel:deploy-borrow-booster", { name: "ION" });
61
60
// NOTE: change name and reward token
62
61
await run("flywheel:deploy-dynamic-rewards-fw", {
@@ -75,5 +74,6 @@ task("market:base:rsr-ion-rewards", "Sets caps on a market").setAction(
75
74
76
75
const txBorrow = await flywheelBorrow.write.updateFeeSettings([0n, deployer as Address]);
77
76
await publicClient.waitForTransactionReceipt({ hash: txBorrow });
77
+ */
78
78
}
79
79
) ;
0 commit comments