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

Commit 748987f

Browse files
authored
Merge pull request #88 from ionicprotocol/create-separate-scripts-for-flywheel
Update script with new version of ION flywheel
2 parents 25fd4cf + e4e7eae commit 748987f

12 files changed

+6575
-17
lines changed

deployments/base/IonicFlywheelDynamicRewards_ION_v3.json

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v2.json

Lines changed: 1016 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v2_Implementation.json

Lines changed: 1126 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v2_Proxy.json

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v3.json

Lines changed: 1016 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v3_Implementation.json

Lines changed: 1126 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/IonicFlywheel_ION_v3_Proxy.json

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/solcInputs/3358b0e3b9146a940b243313bb7c29a1.json

Lines changed: 1364 additions & 0 deletions
Large diffs are not rendered by default.

deploymentsBrief/base.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
"IonicFlywheelDynamicRewards_ION": {
102102
"address": "0x6660174886cb3B26B38E5D4c1324E0BfB361F7CA"
103103
},
104+
"IonicFlywheelDynamicRewards_ION_v3": {
105+
"address": "0x57913CfF75Acd553923E58D3EAFbCDDCCf7816d7"
106+
},
104107
"IonicFlywheelDynamicRewards_RSR": {
105108
"address": "0xCdfF6BA3613f37E719234A26775fF72BD937f22B"
106109
},
@@ -116,6 +119,24 @@
116119
"IonicFlywheel_ION_Proxy": {
117120
"address": "0x6e93f617AB6CEfFec7c276B4fD4c136B7A7aDD54"
118121
},
122+
"IonicFlywheel_ION_v2": {
123+
"address": "0x8D3879dAd76CaFF4b79F45Ca56bb90713182058a"
124+
},
125+
"IonicFlywheel_ION_v2_Implementation": {
126+
"address": "0xeA19016fA9f4A2cce97d8aFA7D0D8e1b74a7887f"
127+
},
128+
"IonicFlywheel_ION_v2_Proxy": {
129+
"address": "0x8D3879dAd76CaFF4b79F45Ca56bb90713182058a"
130+
},
131+
"IonicFlywheel_ION_v3": {
132+
"address": "0x5Dc1fd5cFA5F1efdaCBC790b41A2BfB41bf4F122"
133+
},
134+
"IonicFlywheel_ION_v3_Implementation": {
135+
"address": "0xa7BC89F9Bcd2E6565c250182767f20e2aC89bc7B"
136+
},
137+
"IonicFlywheel_ION_v3_Proxy": {
138+
"address": "0x5Dc1fd5cFA5F1efdaCBC790b41A2BfB41bf4F122"
139+
},
119140
"IonicFlywheel_RSR": {
120141
"address": "0xE4E74A0c98b8dEa4bcbB870C9391Bb73a230ced4"
121142
},
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { task } from "hardhat/config";
2+
import { Address, formatEther, parseEther } from "viem";
3+
import { COMPTROLLER } from ".";
4+
5+
task("market:base:disable-flywheel", "Deploys flywheel and adds rewards").setAction(
6+
async (_, { viem, run, deployments, getNamedAccounts }) => {
7+
const { deployer } = await getNamedAccounts();
8+
const publicClient = await viem.getPublicClient();
9+
10+
const flywheel = await viem.getContractAt(
11+
"IonicFlywheel",
12+
(await deployments.get("IonicFlywheel_ION_v2")).address as Address
13+
);
14+
15+
const comptroller = await viem.getContractAt("IonicComptroller", COMPTROLLER);
16+
const addTx = await comptroller.write.addNonAccruingFlywheel([flywheel.address]);
17+
await publicClient.waitForTransactionReceipt({ hash: addTx });
18+
console.log({ addTx });
19+
console.log("Remove IonicFlywheel_ION_v2 from comptroller");
20+
}
21+
);

0 commit comments

Comments
 (0)