Skip to content

Commit 06c15c0

Browse files
jflatowmaxwolffhayesgm
authored
Final deployments (compound-finance#83)
This patch adds the final deployments for the COMP distribution system (aka flywheel) to mainnet, kovan, and ropsten. It includes testnet harnesses, as well as the scripts that will be used to initialize all the pre-existing borrower COMP indices. Co-authored-by: Max Wolff <maxcwolff@gmail.com> Co-authored-by: Geoff Hayes <hayesgm@gmail.com>
1 parent f9901f4 commit 06c15c0

File tree

10 files changed

+3680
-829
lines changed

10 files changed

+3680
-829
lines changed

networks/kovan-abi.json

Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28385,6 +28385,254 @@
2838528385
"type": "function"
2838628386
}
2838728387
],
28388+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2": [
28389+
{
28390+
"inputs": [
28391+
{
28392+
"internalType": "uint256",
28393+
"name": "baseRatePerYear",
28394+
"type": "uint256"
28395+
},
28396+
{
28397+
"internalType": "uint256",
28398+
"name": "multiplierPerYear",
28399+
"type": "uint256"
28400+
},
28401+
{
28402+
"internalType": "uint256",
28403+
"name": "jumpMultiplierPerYear",
28404+
"type": "uint256"
28405+
},
28406+
{
28407+
"internalType": "uint256",
28408+
"name": "kink_",
28409+
"type": "uint256"
28410+
}
28411+
],
28412+
"payable": false,
28413+
"stateMutability": "nonpayable",
28414+
"type": "constructor"
28415+
},
28416+
{
28417+
"anonymous": false,
28418+
"inputs": [
28419+
{
28420+
"indexed": false,
28421+
"internalType": "uint256",
28422+
"name": "baseRatePerBlock",
28423+
"type": "uint256"
28424+
},
28425+
{
28426+
"indexed": false,
28427+
"internalType": "uint256",
28428+
"name": "multiplierPerBlock",
28429+
"type": "uint256"
28430+
},
28431+
{
28432+
"indexed": false,
28433+
"internalType": "uint256",
28434+
"name": "jumpMultiplierPerBlock",
28435+
"type": "uint256"
28436+
},
28437+
{
28438+
"indexed": false,
28439+
"internalType": "uint256",
28440+
"name": "kink",
28441+
"type": "uint256"
28442+
}
28443+
],
28444+
"name": "NewInterestParams",
28445+
"type": "event"
28446+
},
28447+
{
28448+
"constant": true,
28449+
"inputs": [],
28450+
"name": "baseRatePerBlock",
28451+
"outputs": [
28452+
{
28453+
"internalType": "uint256",
28454+
"name": "",
28455+
"type": "uint256"
28456+
}
28457+
],
28458+
"payable": false,
28459+
"stateMutability": "view",
28460+
"type": "function"
28461+
},
28462+
{
28463+
"constant": true,
28464+
"inputs": [],
28465+
"name": "blocksPerYear",
28466+
"outputs": [
28467+
{
28468+
"internalType": "uint256",
28469+
"name": "",
28470+
"type": "uint256"
28471+
}
28472+
],
28473+
"payable": false,
28474+
"stateMutability": "view",
28475+
"type": "function"
28476+
},
28477+
{
28478+
"constant": true,
28479+
"inputs": [
28480+
{
28481+
"internalType": "uint256",
28482+
"name": "cash",
28483+
"type": "uint256"
28484+
},
28485+
{
28486+
"internalType": "uint256",
28487+
"name": "borrows",
28488+
"type": "uint256"
28489+
},
28490+
{
28491+
"internalType": "uint256",
28492+
"name": "reserves",
28493+
"type": "uint256"
28494+
}
28495+
],
28496+
"name": "getBorrowRate",
28497+
"outputs": [
28498+
{
28499+
"internalType": "uint256",
28500+
"name": "",
28501+
"type": "uint256"
28502+
}
28503+
],
28504+
"payable": false,
28505+
"stateMutability": "view",
28506+
"type": "function"
28507+
},
28508+
{
28509+
"constant": true,
28510+
"inputs": [
28511+
{
28512+
"internalType": "uint256",
28513+
"name": "cash",
28514+
"type": "uint256"
28515+
},
28516+
{
28517+
"internalType": "uint256",
28518+
"name": "borrows",
28519+
"type": "uint256"
28520+
},
28521+
{
28522+
"internalType": "uint256",
28523+
"name": "reserves",
28524+
"type": "uint256"
28525+
},
28526+
{
28527+
"internalType": "uint256",
28528+
"name": "reserveFactorMantissa",
28529+
"type": "uint256"
28530+
}
28531+
],
28532+
"name": "getSupplyRate",
28533+
"outputs": [
28534+
{
28535+
"internalType": "uint256",
28536+
"name": "",
28537+
"type": "uint256"
28538+
}
28539+
],
28540+
"payable": false,
28541+
"stateMutability": "view",
28542+
"type": "function"
28543+
},
28544+
{
28545+
"constant": true,
28546+
"inputs": [],
28547+
"name": "isInterestRateModel",
28548+
"outputs": [
28549+
{
28550+
"internalType": "bool",
28551+
"name": "",
28552+
"type": "bool"
28553+
}
28554+
],
28555+
"payable": false,
28556+
"stateMutability": "view",
28557+
"type": "function"
28558+
},
28559+
{
28560+
"constant": true,
28561+
"inputs": [],
28562+
"name": "jumpMultiplierPerBlock",
28563+
"outputs": [
28564+
{
28565+
"internalType": "uint256",
28566+
"name": "",
28567+
"type": "uint256"
28568+
}
28569+
],
28570+
"payable": false,
28571+
"stateMutability": "view",
28572+
"type": "function"
28573+
},
28574+
{
28575+
"constant": true,
28576+
"inputs": [],
28577+
"name": "kink",
28578+
"outputs": [
28579+
{
28580+
"internalType": "uint256",
28581+
"name": "",
28582+
"type": "uint256"
28583+
}
28584+
],
28585+
"payable": false,
28586+
"stateMutability": "view",
28587+
"type": "function"
28588+
},
28589+
{
28590+
"constant": true,
28591+
"inputs": [],
28592+
"name": "multiplierPerBlock",
28593+
"outputs": [
28594+
{
28595+
"internalType": "uint256",
28596+
"name": "",
28597+
"type": "uint256"
28598+
}
28599+
],
28600+
"payable": false,
28601+
"stateMutability": "view",
28602+
"type": "function"
28603+
},
28604+
{
28605+
"constant": true,
28606+
"inputs": [
28607+
{
28608+
"internalType": "uint256",
28609+
"name": "cash",
28610+
"type": "uint256"
28611+
},
28612+
{
28613+
"internalType": "uint256",
28614+
"name": "borrows",
28615+
"type": "uint256"
28616+
},
28617+
{
28618+
"internalType": "uint256",
28619+
"name": "reserves",
28620+
"type": "uint256"
28621+
}
28622+
],
28623+
"name": "utilizationRate",
28624+
"outputs": [
28625+
{
28626+
"internalType": "uint256",
28627+
"name": "",
28628+
"type": "uint256"
28629+
}
28630+
],
28631+
"payable": false,
28632+
"stateMutability": "pure",
28633+
"type": "function"
28634+
}
28635+
],
2838828636
"Comptroller": [
2838928637
{
2839028638
"inputs": [],

networks/kovan.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"BAT": "0x482dC9bB08111CB875109B075A40881E48aE02Cd",
1919
"Fauceteer": "0x916518711a75a98Ac00e8E3386d036F7eA56A484",
2020
"PriceOracle": "0x37ac0cb24b5DA520B653A5D94cFF26EB08d4Dc02",
21-
"StdComptrollerG3": "0xD3099817E1fA16ffa321b0114f2e193869521E70",
21+
"StdComptrollerG3": "0xbDF4D9A65023CAf0DaDa604cf46C44D5aab0bb0C",
2222
"Timelock": "0xE3e07F4F3E2F5A5286a99b9b8DEed08B8e07550B",
2323
"Jug": "0xcbB7718c9F39d05aEEDE1c472ca8Bf804b2f1EaD",
2424
"Pot": "0xEA190DBDC7adF265260ec4dA6e9675Fd4f5A78bb",
@@ -39,6 +39,7 @@
3939
"cDAI": "0xF0d0EB522cfa50B716B3b1604C4F0fA6f04376AD",
4040
"StdComptrollerG2": "0xd026627b0D6326dbA5f3c9ecbca1545dB8CD3486",
4141
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad": "0xC0421A129E775680BD22Af5143098075eD6B85d5",
42+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2": "0x059965e18ae254954b500f198876bd43afc1ddec",
4243
"Comptroller": "0x5eAe89DC1C671724A672ff0630122ee834098657",
4344
"PriceOracleProxy": "0x37ac0cb24b5DA520B653A5D94cFF26EB08d4Dc02"
4445
},
@@ -60,7 +61,7 @@
6061
"BAT": 18751073,
6162
"Fauceteer": 18751074,
6263
"PriceOracle": 18751077,
63-
"StdComptrollerG3": 18751090,
64+
"StdComptrollerG3": 18963197,
6465
"Timelock": 18751096,
6566
"cDaiDelegate": 18751101,
6667
"Unitroller": 18751106,
@@ -78,7 +79,8 @@
7879
"Maximillion": 18751178,
7980
"cDAI": 18751182,
8081
"StdComptrollerG2": 18958731,
81-
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad": 18746562
82+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad": 18746562,
83+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2": 18746562
8284
},
8385
"PriceOracle": {
8486
"description": "SimplePriceOracle",
@@ -105,7 +107,7 @@
105107
"description": "Comptroller Description"
106108
},
107109
"StdComptrollerG3": {
108-
"address": "0xD3099817E1fA16ffa321b0114f2e193869521E70",
110+
"address": "0xbDF4D9A65023CAf0DaDa604cf46C44D5aab0bb0C",
109111
"contract": "ComptrollerKovan",
110112
"description": "Comptroller Description"
111113
},
@@ -158,7 +160,8 @@
158160
"Maximillion": "0x00000000000000000000000041b5844f4680a8c38fbb695b7f9cfd1f64474a72",
159161
"cDAI": "0x0000000000000000000000004f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa0000000000000000000000005eae89dc1c671724a672ff0630122ee834098657000000000000000000000000e5318b00f1bf6d9a8cdc4707290c157354738727000000000000000000000000000000000000000000a56fa5b99019a5c8000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000008000000000000000000000000a776184fd6f545dae5f51361dbcc9018549a9749000000000000000000000000c8016288db9dfe5a1ca2503879dcde880737718600000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000c436f6d706f756e64204441490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000463444149000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
160162
"StdComptrollerG2": "0x",
161-
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad": "0x00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000005a"
163+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad": "0x00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000005a",
164+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2": "0x00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000005a"
162165
},
163166
"Tokens": {
164167
"COMP": {
@@ -465,6 +468,16 @@
465468
"slope": "200000000000000000",
466469
"jump": "2000000000000000000",
467470
"kink": "90"
471+
},
472+
"Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2": {
473+
"name": "Base200bps_Slope2000bps_Jump20000bps_Kink90_bad_2",
474+
"contract": "JumpRateModel",
475+
"description": "JumpRateModel baseRate=20000000000000000 multiplier=200000000000000000 jump=2000000000000000000 kink=90",
476+
"address": "0x059965e18ae254954b500f198876bd43afc1ddec",
477+
"base": "20000000000000000",
478+
"slope": "200000000000000000",
479+
"jump": "2000000000000000000",
480+
"kink": "90"
468481
}
469482
}
470483
}

0 commit comments

Comments
 (0)