Added CRV configs

This commit is contained in:
dhadrien 2021-01-21 15:33:24 +01:00
parent 29448c19c1
commit ba5d325ccb
4 changed files with 28 additions and 2 deletions

View File

@ -203,6 +203,7 @@ export interface iAssetBase<T> {
USD: T;
REN: T;
ENJ: T;
CRV: T;
}
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
@ -231,6 +232,7 @@ export type iAavePoolAssets<T> = Pick<
| 'UNI'
| 'REN'
| 'ENJ'
| 'CRV'
>;
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
@ -261,6 +263,7 @@ export enum TokenContractId {
YFI = 'YFI',
UNI = 'UNI',
ENJ = 'ENJ',
CRV = 'CRV',
}
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {

View File

@ -23,6 +23,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
WBTC: oneEther.multipliedBy('47.332685').toFixed(),
YFI: oneEther.multipliedBy('22.407436').toFixed(),
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
CRV: oneEther.multipliedBy('0.00087505').toFixed(),
USD: '5848466240000000',
};
// ----------------

View File

@ -22,6 +22,7 @@ import {
strategyWBTC,
strategyWETH,
strategyYFI,
strategyCRV,
} from './reservesConfigs';
// ----------------
@ -53,6 +54,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: strategyWETH,
YFI: strategyYFI,
ZRX: strategyZRX,
CRV: strategyCRV,
},
ReserveAssets: {
[eEthereumNetwork.buidlerevm]: {},
@ -79,6 +81,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',
CRV: '0x47a0B839f62555b2E9c5684cbb734941c6AfdCc2',
},
[EthereumNetwork.ropsten]: {
AAVE: '',
@ -123,6 +126,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
CRV: '0xD533a949740bb3306d119CC777fa900bA034cd52',
},
[EthereumNetwork.tenderlyMain]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
@ -145,6 +149,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
CRV: '0xD533a949740bb3306d119CC777fa900bA034cd52',
},
},
};

View File

@ -339,5 +339,22 @@ export const strategyZRX: IReserveParams = {
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};
reserveFactor: '2000',
};
export const strategyCRV: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: '0',
variableRateSlope1: new BigNumber(0.07).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(),
baseLTVAsCollateral: '4000',
liquidationThreshold: '5500',
liquidationBonus: '11500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000',
};