forked from compound-finance/comet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,612 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"name": "Compound USDT", | ||
"symbol": "cUSDTv3", | ||
"baseToken": "USDT", | ||
"baseTokenAddress": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", | ||
"baseTokenPriceFeed": "0x3f3f5dF88dC9F13eac63DF89EC16ef6e7E25DdE7", | ||
"borrowMin": "1e6", | ||
"pauseGuardian": "0x78E6317DD6D43DdbDa00Dce32C2CbaFc99361a9d", | ||
"storeFrontPriceFactor": 0.6, | ||
"targetReserves": "20000000e6", | ||
"rates": { | ||
"supplyKink": 0.9, | ||
"supplySlopeLow": 0.059, | ||
"supplySlopeHigh": 2.9, | ||
"supplyBase": 0, | ||
"borrowKink": 0.9, | ||
"borrowSlopeLow": 0.061, | ||
"borrowSlopeHigh": 3.2, | ||
"borrowBase": 0.015 | ||
}, | ||
"tracking": { | ||
"indexScale": "1e15", | ||
"baseSupplySpeed": "138888888888e0", | ||
"baseBorrowSpeed": "115740740740e0", | ||
"baseMinForRewards": "10000e6" | ||
}, | ||
"assets": { | ||
"ARB": { | ||
"address": "0x912ce59144191c1204e64559fe8253a0e49e6548", | ||
"priceFeed": "0xb2A824043730FE05F3DA2efaFa1CBbe83fa548D6", | ||
"decimals": "18", | ||
"borrowCF": 0.7, | ||
"liquidateCF": 0.8, | ||
"liquidationFactor": 0.9, | ||
"supplyCap": "7_500_000e18" | ||
}, | ||
"WETH": { | ||
"address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", | ||
"priceFeed": "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612", | ||
"decimals": "18", | ||
"borrowCF": 0.78, | ||
"liquidateCF": 0.85, | ||
"liquidationFactor": 0.95, | ||
"supplyCap": "7_500e18" | ||
}, | ||
"wstETH": { | ||
"address": "0x5979D7b546E38E414F7E9822514be443A4800529", | ||
"decimals": "18", | ||
"borrowCF": 0.7, | ||
"liquidateCF": 0.8, | ||
"liquidationFactor": 0.9, | ||
"supplyCap": "1_500e18" | ||
}, | ||
"WBTC": { | ||
"address": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", | ||
"priceFeed": "0xd0C7101eACbB49F3deCcCc166d238410D6D46d57", | ||
"decimals": "8", | ||
"borrowCF": 0.7, | ||
"liquidateCF": 0.8, | ||
"liquidationFactor": 0.9, | ||
"supplyCap": "250e8" | ||
}, | ||
"GMX": { | ||
"address": "0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a", | ||
"priceFeed": "0xDB98056FecFff59D032aB628337A4887110df3dB", | ||
"decimals": "18", | ||
"borrowCF": 0.6, | ||
"liquidateCF": 0.7, | ||
"liquidationFactor": 0.8, | ||
"supplyCap": "100_000e18" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Deployed, DeploymentManager } from '../../../plugins/deployment_manager'; | ||
import { DeploySpec, deployComet } from '../../../src/deploy'; | ||
|
||
export default async function deploy(deploymentManager: DeploymentManager, deploySpec: DeploySpec): Promise<Deployed> { | ||
const trace = deploymentManager.tracer() | ||
const ethers = deploymentManager.hre.ethers; | ||
|
||
// pull in existing assets | ||
// USDC native | ||
const WETH = await deploymentManager.existing('WETH', '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', 'arbitrum'); | ||
const WBTC = await deploymentManager.existing('WBTC', '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f', 'arbitrum'); | ||
//wstETH | ||
const wstETH = await deploymentManager.existing('wstETH', '0x5979D7b546E38E414F7E9822514be443A4800529', 'arbitrum'); | ||
const USDT = await deploymentManager.existing('USDT', '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', 'arbitrum'); | ||
const ARB = await deploymentManager.existing('ARB', '0x912ce59144191c1204e64559fe8253a0e49e6548', 'arbitrum'); | ||
const GMX = await deploymentManager.existing('GMX', '0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a', 'arbitrum'); | ||
const COMP = await deploymentManager.existing('COMP', '0x354A6dA3fcde098F8389cad84b0182725c6C91dE', 'arbitrum'); | ||
|
||
// Deploy scaling price feed for cbETH | ||
const wstETHMultiplicativePriceFeed = await deploymentManager.deploy( | ||
'wstETH:priceFeed', | ||
'pricefeeds/MultiplicativePriceFeed.sol', | ||
[ | ||
'0xb523AE262D20A936BC152e6023996e46FDC2A95D', // wstETH / ETH price feed | ||
'0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612', // ETH / USD price feed | ||
8, // decimals | ||
'wstETH/USD price feed' // description | ||
] | ||
); | ||
|
||
// Import shared contracts from the USDC.e market | ||
const cometAdmin = await deploymentManager.fromDep('cometAdmin', 'arbitrum', 'usdc.e'); | ||
const $configuratorImpl = await deploymentManager.fromDep('configurator:implementation', 'arbitrum', 'usdc.e'); | ||
const configurator = await deploymentManager.fromDep('configurator', 'arbitrum', 'usdc.e'); | ||
const rewards = await deploymentManager.fromDep('rewards', 'arbitrum', 'usdc.e'); | ||
// should use this bulker, not MainnetBulker | ||
const bulker = await deploymentManager.fromDep('bulker', 'arbitrum', 'usdc.e'); | ||
const localTimelock = await deploymentManager.fromDep('timelock', 'arbitrum', 'usdc.e'); | ||
const bridgeReceiver = await deploymentManager.fromDep('bridgeReceiver', 'arbitrum', 'usdc.e'); | ||
|
||
// Deploy Comet | ||
const deployed = await deployComet(deploymentManager, deploySpec); | ||
|
||
return { | ||
...deployed, | ||
bridgeReceiver, | ||
bulker, | ||
rewards, | ||
COMP | ||
}; | ||
} |
Oops, something went wrong.