From 3732a1ed3093b263e0a8fd4721b79ff0f522430c Mon Sep 17 00:00:00 2001 From: shivani Date: Thu, 21 Oct 2021 15:31:24 +0530 Subject: [PATCH] add realT property tokens --- helpers/types.ts | 10 ++ markets/aave-arc/commons.ts | 2 +- markets/realT/commons.ts | 268 +++++++++++++++++++++++++++++++ markets/realT/index.ts | 58 +++++++ markets/realT/rateStrategies.ts | 49 ++++++ markets/realT/reservesConfigs.ts | 59 +++++++ package-lock.json | 6 +- 7 files changed, 448 insertions(+), 4 deletions(-) create mode 100644 markets/realT/commons.ts create mode 100644 markets/realT/index.ts create mode 100644 markets/realT/rateStrategies.ts create mode 100644 markets/realT/reservesConfigs.ts diff --git a/helpers/types.ts b/helpers/types.ts index cb869b9b..cbbcf9e9 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -257,6 +257,16 @@ export interface iAssetBase { STAKE: T; xSUSHI: T; WAVAX: T; + 'REALTOKEN-S-13895-SARATOGA-ST-DETROIT-MI': T; + 'REALTOKEN-S-4380-BEACONSFIELD-ST-DETROIT-MI': T; + 'REALTOKEN-S-17813-BRADFORD-ST-DETROIT-M': T; + 'REALTOKEN-S-15796-HARTWELL-ST-DETROIT-MI': T; + 'REALTOKEN-S-9717-EVERTS-ST-DETROIT-MI': T; + 'REALTOKEN-S-19201-WESTPHALIA-ST-DETROIT-MI': T; + 'REALTOKEN-S-19163-MITCHELL-ST-DETROIT-MI': T; + 'REALTOKEN-S-4061-GRAND-ST-DETROIT-M': T; + 'REALTOKEN-S-4680-BUCKINGHAM-AVE-DETROIT-MI': T; + 'REALTOKEN-S-19311-KEYSTONE-ST-DETROIT-MI': T; } export type iAssetsWithoutETH = Omit, 'ETH'>; diff --git a/markets/aave-arc/commons.ts b/markets/aave-arc/commons.ts index d8471cae..4523da00 100644 --- a/markets/aave-arc/commons.ts +++ b/markets/aave-arc/commons.ts @@ -132,7 +132,7 @@ export const CommonsConfig: ICommonConfiguration = { [eEthereumNetwork.coverage]: '', [eEthereumNetwork.hardhat]: '', [eEthereumNetwork.buidlerevm]: '', - [eEthereumNetwork.kovan]: '0xf99b8E67a0E044734B01EC4586D1c88C9a869718', + [eEthereumNetwork.kovan]: '', [eEthereumNetwork.ropsten]: '', [eEthereumNetwork.main]: '', [eEthereumNetwork.tenderly]: '', diff --git a/markets/realT/commons.ts b/markets/realT/commons.ts new file mode 100644 index 00000000..5db985d0 --- /dev/null +++ b/markets/realT/commons.ts @@ -0,0 +1,268 @@ +import BigNumber from 'bignumber.js'; +import { oneEther, oneRay, RAY, ZERO_ADDRESS, MOCK_CHAINLINK_AGGREGATORS_PRICES } from '../../helpers/constants'; +import { ICommonConfiguration, eEthereumNetwork } from '../../helpers/types'; + +// ---------------- +// PROTOCOL GLOBAL PARAMS +// ---------------- + +export const CommonsConfig: ICommonConfiguration = { + MarketId: 'RealT', + ATokenNamePrefix: 'Aave RealT market', + StableDebtTokenNamePrefix: 'Aave RealT stable debt ', + VariableDebtTokenNamePrefix: 'Aave RealT variable debt ', + SymbolPrefix: '', + ProviderId: 0, // Overridden in index.ts + OracleQuoteCurrency: 'ETH', + OracleQuoteUnit: oneEther.toString(), + ProtocolGlobalParams: { + TokenDistributorPercentageBase: '10000', + MockUsdPriceInWei: '238095238095238', + UsdAddress: '0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96', + NilAddress: '0x0000000000000000000000000000000000000000', + OneAddress: '0x0000000000000000000000000000000000000001', + AaveReferral: '0', + }, + + // ---------------- + // COMMON PROTOCOL PARAMS ACROSS POOLS AND NETWORKS + // ---------------- + + Mocks: { + AllAssetsInitialPrices: { + ...MOCK_CHAINLINK_AGGREGATORS_PRICES, + "REALTOKEN-S-13895-SARATOGA-ST-DETROIT-MI": '12940476190476185', + "REALTOKEN-S-4380-BEACONSFIELD-ST-DETROIT-MI": '12269047619047614', + "REALTOKEN-S-17813-BRADFORD-ST-DETROIT-M": '11816666666666661', + "REALTOKEN-S-15796-HARTWELL-ST-DETROIT-MI": '12047619047619042', + "REALTOKEN-S-9717-EVERTS-ST-DETROIT-MI": '11376190476190471', + "REALTOKEN-S-19201-WESTPHALIA-ST-DETROIT-MI": '11816666666666661', + "REALTOKEN-S-19163-MITCHELL-ST-DETROIT-MI": '12257142857142852', + "REALTOKEN-S-4061-GRAND-ST-DETROIT-M": '13873809523809518', + "REALTOKEN-S-4680-BUCKINGHAM-AVE-DETROIT-MI": '11385714285714281', + "REALTOKEN-S-19311-KEYSTONE-ST-DETROIT-MI": '11804761904761900', + }, + }, + // TODO: reorg alphabetically, checking the reason of tests failing + LendingRateOracleRatesCommon: { + 'REALTOKEN-S-13895-SARATOGA-ST-DETROIT-MI': { + borrowRate: oneRay.multipliedBy(0.03).toFixed(), + }, + USDC: { + borrowRate: oneRay.multipliedBy(0.039).toFixed(), + }, + USDT: { + borrowRate: oneRay.multipliedBy(0.035).toFixed(), + }, + WBTC: { + borrowRate: oneRay.multipliedBy(0.03).toFixed(), + }, + }, + // ---------------- + // COMMON PROTOCOL ADDRESSES ACROSS POOLS + // ---------------- + + // If PoolAdmin/emergencyAdmin is set, will take priority over PoolAdminIndex/emergencyAdminIndex + PoolAdmin: { + [eEthereumNetwork.coverage]: undefined, + [eEthereumNetwork.buidlerevm]: undefined, + [eEthereumNetwork.coverage]: undefined, + [eEthereumNetwork.hardhat]: undefined, + [eEthereumNetwork.kovan]: undefined, + [eEthereumNetwork.ropsten]: undefined, + [eEthereumNetwork.main]: undefined, + [eEthereumNetwork.tenderly]: undefined, + }, + PoolAdminIndex: 0, + EmergencyAdmin: { + [eEthereumNetwork.hardhat]: undefined, + [eEthereumNetwork.coverage]: undefined, + [eEthereumNetwork.buidlerevm]: undefined, + [eEthereumNetwork.kovan]: undefined, + [eEthereumNetwork.ropsten]: undefined, + [eEthereumNetwork.main]: undefined, + [eEthereumNetwork.tenderly]: undefined, + }, + EmergencyAdminIndex: 1, + ProviderRegistry: { + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.tenderly]: '', + }, + ProviderRegistryOwner: { + [eEthereumNetwork.kovan]: '0x5Fc96c182Bb7E0413c08e8e03e9d7EFc6cf0B099', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.tenderly]: '', + }, + LendingRateOracle: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + LendingPoolCollateralManager: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + LendingPoolConfigurator: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + LendingPool: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + WethGateway: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '0xf99b8E67a0E044734B01EC4586D1c88C9a869718', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + TokenDistributor: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + AaveOracle: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: ZERO_ADDRESS, + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + FallbackOracle: { + [eEthereumNetwork.coverage]: '', + [eEthereumNetwork.hardhat]: '', + [eEthereumNetwork.buidlerevm]: '', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: ZERO_ADDRESS, + [eEthereumNetwork.tenderly]: ZERO_ADDRESS, + }, + ChainlinkAggregator: { + [eEthereumNetwork.coverage]: {}, + [eEthereumNetwork.hardhat]: {}, + [eEthereumNetwork.buidlerevm]: {}, + [eEthereumNetwork.kovan]: { + AAVE: '0xd04647B7CB523bb9f26730E9B6dE1174db7591Ad', + BAT: '0x0e4fcEC26c9f85c3D714370c98f43C4E02Fc35Ae', + BUSD: '0xbF7A18ea5DE0501f7559144e702b29c55b055CcB', + DAI: '0x22B58f1EbEDfCA50feF632bD73368b2FdA96D541', + ENJ: '0xfaDbe2ee798889F02d1d39eDaD98Eff4c7fe95D4', + KNC: '0xb8E8130d244CFd13a75D6B9Aee029B1C33c808A7', + LINK: '0x3Af8C569ab77af5230596Acf0E8c2F9351d24C38', + MANA: '0x1b93D8E109cfeDcBb3Cc74eD761DE286d5771511', + MKR: '0x0B156192e04bAD92B6C1C13cf8739d14D78D5701', + REN: '0xF1939BECE7708382b5fb5e559f630CB8B39a10ee', + SNX: '0xF9A76ae7a1075Fe7d646b06fF05Bd48b9FA5582e', + SUSD: '0xb343e7a1aF578FA35632435243D814e7497622f7', + TUSD: '0x7aeCF1c19661d12E962b69eBC8f6b2E63a55C660', + UNI: '0x17756515f112429471F86f98D5052aCB6C47f6ee', + USDC: '0x64EaC61A2DFda2c3Fa04eED49AA33D021AeC8838', + USDT: '0x0bF499444525a23E7Bb61997539725cA2e928138', + WBTC: '0xF7904a295A029a3aBDFFB6F12755974a958C7C25', + YFI: '0xC5d1B1DEb2992738C0273408ac43e1e906086B6C', + ZRX: '0xBc3f28Ccc21E9b5856E81E6372aFf57307E2E883', + USD: '0x9326BFA02ADD2366b30bacB125260Af641031331', + }, + [eEthereumNetwork.ropsten]: { + }, + [eEthereumNetwork.main]: { + }, + [eEthereumNetwork.tenderly]: { + }, + }, + ReserveAssets: { + [eEthereumNetwork.coverage]: {}, + [eEthereumNetwork.hardhat]: {}, + [eEthereumNetwork.buidlerevm]: {}, + [eEthereumNetwork.main]: {}, + [eEthereumNetwork.kovan]: {}, + [eEthereumNetwork.ropsten]: {}, + [eEthereumNetwork.tenderly]: {}, + }, + ReservesConfig: {}, + ATokenDomainSeparator: { + [eEthereumNetwork.coverage]: + '0x95b73a72c6ecf4ccbbba5178800023260bad8e75cdccdb8e4827a2977a37c820', + [eEthereumNetwork.hardhat]: + '0xbae024d959c6a022dc5ed37294cd39c141034b2ae5f02a955cce75c930a81bf5', + [eEthereumNetwork.buidlerevm]: + '0xbae024d959c6a022dc5ed37294cd39c141034b2ae5f02a955cce75c930a81bf5', + [eEthereumNetwork.kovan]: '', + [eEthereumNetwork.ropsten]: '', + [eEthereumNetwork.main]: '', + [eEthereumNetwork.tenderly]: '', + }, + WETH: { + [eEthereumNetwork.coverage]: '', // deployed in local evm + [eEthereumNetwork.hardhat]: '', // deployed in local evm + [eEthereumNetwork.buidlerevm]: '', // deployed in local evm + [eEthereumNetwork.kovan]: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', + [eEthereumNetwork.ropsten]: '0xc778417e063141139fce010982780140aa0cd5ab', + [eEthereumNetwork.main]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + [eEthereumNetwork.tenderly]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + }, + ReserveFactorTreasuryAddress: { + [eEthereumNetwork.coverage]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.hardhat]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.buidlerevm]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.kovan]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.ropsten]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.main]: '0x963309A278145D6c42725E454fE91c9471D9907a', + [eEthereumNetwork.tenderly]: '0x963309A278145D6c42725E454fE91c9471D9907a', + }, + WrappedNativeToken: { + [eEthereumNetwork.coverage]: '', // deployed in local evm + [eEthereumNetwork.hardhat]: '', // deployed in local evm + [eEthereumNetwork.buidlerevm]: '', // deployed in local evm + [eEthereumNetwork.kovan]: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', + [eEthereumNetwork.ropsten]: '0xc778417e063141139fce010982780140aa0cd5ab', + [eEthereumNetwork.main]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + [eEthereumNetwork.tenderly]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + }, + IncentivesController: { + [eEthereumNetwork.coverage]: ZERO_ADDRESS, + [eEthereumNetwork.hardhat]: ZERO_ADDRESS, + [eEthereumNetwork.buidlerevm]: ZERO_ADDRESS, + [eEthereumNetwork.kovan]: ZERO_ADDRESS, + [eEthereumNetwork.ropsten]: ZERO_ADDRESS, + [eEthereumNetwork.main]: ZERO_ADDRESS, + [eEthereumNetwork.tenderly]: ZERO_ADDRESS, + }, +}; diff --git a/markets/realT/index.ts b/markets/realT/index.ts new file mode 100644 index 00000000..8129f2ac --- /dev/null +++ b/markets/realT/index.ts @@ -0,0 +1,58 @@ +import { ZERO_ADDRESS } from '../../helpers/constants'; +import { IAaveArcConfiguration, eEthereumNetwork, eContractid } from '../../helpers/types'; + +import { CommonsConfig } from './commons'; +import { + strategyAAVE, + strategyUSDC, + strategyWBTC, + strategyWETH, +} from './reservesConfigs'; + +// ---------------- +// POOL--SPECIFIC PARAMS +// ---------------- + +export const AaveArcConfig: IAaveArcConfiguration = { + ...CommonsConfig, + MarketId: 'Aave Arc market', + ProviderId: 1, + LendingPoolImpl: eContractid.PermissionedLendingPool, + ReservesConfig: { + USDC: strategyUSDC, + WBTC: strategyWBTC, + WETH: strategyWETH, + AAVE: strategyAAVE + }, + ReserveAssets: { + [eEthereumNetwork.buidlerevm]: {}, + [eEthereumNetwork.hardhat]: {}, + [eEthereumNetwork.coverage]: {}, + [eEthereumNetwork.kovan]: { + USDC: '0xe22da380ee6B445bb8273C81944ADEB6E8450422', + WBTC: '0xD1B98B6607330172f1D991521145A22BCe793277', + WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', + AAVE: '0xB597cd8D3217ea6477232F9217fa70837ff667Af', + }, + [eEthereumNetwork.ropsten]: { + USDC: '0x851dEf71f0e6A903375C1e536Bd9ff1684BAD802', + WBTC: '0xa0E54Ab6AA5f0bf1D62EC3526436F3c05b3348A0', + WETH: '0xc778417e063141139fce010982780140aa0cd5ab', + AAVE: 'ZERO_ADDRESS', + }, + [eEthereumNetwork.main]: { + USDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + WBTC: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', + WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', + AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9', + }, + [eEthereumNetwork.tenderly]: { + USDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + WBTC: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', + WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', + AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9', + }, + } +}; + +export default AaveArcConfig; diff --git a/markets/realT/rateStrategies.ts b/markets/realT/rateStrategies.ts new file mode 100644 index 00000000..0e80d92c --- /dev/null +++ b/markets/realT/rateStrategies.ts @@ -0,0 +1,49 @@ +import BigNumber from 'bignumber.js'; +import { oneRay } from '../../helpers/constants'; +import { IInterestRateStrategyParams } from '../../helpers/types'; + + +// USDC +export const rateStrategyStable: IInterestRateStrategyParams = { + name: "rateStrategyStable", + optimalUtilizationRate: new BigNumber(0.9).multipliedBy(oneRay).toFixed(), + baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(), + variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(), + variableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(), + stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(), + stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(), +} + +// AAVE +export const rateStrategyAAVE: IInterestRateStrategyParams = { + name: "rateStrategyAAVE", + optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(), + baseVariableBorrowRate: '0', + variableRateSlope1: '0', + variableRateSlope2: '0', + stableRateSlope1: '0', + stableRateSlope2: '0', +} + +// WETH +export const rateStrategyWETH: IInterestRateStrategyParams = { + name: "rateStrategyWETH", + optimalUtilizationRate: new BigNumber(0.65).multipliedBy(oneRay).toFixed(), + baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(), + variableRateSlope1: new BigNumber(0.08).multipliedBy(oneRay).toFixed(), + variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(), + stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(), + stableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(), +} + + +// WBTC +export const rateStrategyWBTC: IInterestRateStrategyParams = { + name: "rateStrategyWBTC", + optimalUtilizationRate: new BigNumber(0.65).multipliedBy(oneRay).toFixed(), + baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(), + variableRateSlope1: new BigNumber(0.08).multipliedBy(oneRay).toFixed(), + variableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(), + stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(), + stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(), +} \ No newline at end of file diff --git a/markets/realT/reservesConfigs.ts b/markets/realT/reservesConfigs.ts new file mode 100644 index 00000000..f7f2f86d --- /dev/null +++ b/markets/realT/reservesConfigs.ts @@ -0,0 +1,59 @@ +import { eContractid, IReserveParams } from '../../helpers/types'; + +import { rateStrategyStable, rateStrategyWETH, rateStrategyWBTC, rateStrategyAAVE } from './rateStrategies'; + +export const strategyUSDC: IReserveParams = { + strategy: rateStrategyStable, + baseLTVAsCollateral: '8000', + liquidationThreshold: '8500', + liquidationBonus: '10500', + borrowingEnabled: true, + stableBorrowRateEnabled: true, + reserveDecimals: '6', + aTokenImpl: eContractid.AToken, + stableDebtTokenImpl: eContractid.PermissionedStableDebtToken, + variableDebtTokenImpl: eContractid.PermissionedVariableDebtToken, + reserveFactor: '1000', +}; + +export const strategyAAVE: IReserveParams = { + strategy: rateStrategyAAVE, + baseLTVAsCollateral: '5000', + liquidationThreshold: '6500', + liquidationBonus: '11000', + borrowingEnabled: false, + stableBorrowRateEnabled: false, + reserveDecimals: '18', + aTokenImpl: eContractid.AToken, + stableDebtTokenImpl: eContractid.PermissionedStableDebtToken, + variableDebtTokenImpl: eContractid.PermissionedVariableDebtToken, + reserveFactor: '0' +}; + +export const strategyWETH: IReserveParams = { + strategy: rateStrategyWETH, + baseLTVAsCollateral: '8000', + liquidationThreshold: '8250', + liquidationBonus: '10500', + borrowingEnabled: true, + stableBorrowRateEnabled: true, + reserveDecimals: '18', + aTokenImpl: eContractid.AToken, + stableDebtTokenImpl: eContractid.PermissionedStableDebtToken, + variableDebtTokenImpl: eContractid.PermissionedVariableDebtToken, + reserveFactor: '1000', +}; + +export const strategyWBTC: IReserveParams = { + strategy: rateStrategyWBTC, + baseLTVAsCollateral: '7000', + liquidationThreshold: '7500', + liquidationBonus: '11000', + borrowingEnabled: true, + stableBorrowRateEnabled: true, + reserveDecimals: '8', + aTokenImpl: eContractid.AToken, + stableDebtTokenImpl: eContractid.PermissionedStableDebtToken, + variableDebtTokenImpl: eContractid.PermissionedVariableDebtToken, + reserveFactor: '2000', +}; diff --git a/package-lock.json b/package-lock.json index e5198127..91ad34a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14788,13 +14788,13 @@ "integrity": "sha1-jZWCAsftuq6Dlwf7pvCf8ydgYhA=", "dev": true, "requires": { - "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git", + "ethereumjs-abi": "ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git", "ethereumjs-util": "^5.1.1" } }, "ethereumjs-abi": { - "version": "git+https://github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", - "from": "git+https://github.com/ethereumjs/ethereumjs-abi.git", + "version": "git+ssh://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", + "from": "ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git", "dev": true, "requires": { "bn.js": "^4.11.8",