mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added CRV configs
This commit is contained in:
parent
29448c19c1
commit
ba5d325ccb
|
@ -203,6 +203,7 @@ export interface iAssetBase<T> {
|
||||||
USD: T;
|
USD: T;
|
||||||
REN: T;
|
REN: T;
|
||||||
ENJ: T;
|
ENJ: T;
|
||||||
|
CRV: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
|
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
|
||||||
|
@ -231,6 +232,7 @@ export type iAavePoolAssets<T> = Pick<
|
||||||
| 'UNI'
|
| 'UNI'
|
||||||
| 'REN'
|
| 'REN'
|
||||||
| 'ENJ'
|
| 'ENJ'
|
||||||
|
| 'CRV'
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
|
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
|
||||||
|
@ -261,6 +263,7 @@ export enum TokenContractId {
|
||||||
YFI = 'YFI',
|
YFI = 'YFI',
|
||||||
UNI = 'UNI',
|
UNI = 'UNI',
|
||||||
ENJ = 'ENJ',
|
ENJ = 'ENJ',
|
||||||
|
CRV = 'CRV',
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
|
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
|
||||||
|
|
|
@ -23,6 +23,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
|
||||||
WBTC: oneEther.multipliedBy('47.332685').toFixed(),
|
WBTC: oneEther.multipliedBy('47.332685').toFixed(),
|
||||||
YFI: oneEther.multipliedBy('22.407436').toFixed(),
|
YFI: oneEther.multipliedBy('22.407436').toFixed(),
|
||||||
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
|
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
|
||||||
|
CRV: oneEther.multipliedBy('0.00087505').toFixed(),
|
||||||
USD: '5848466240000000',
|
USD: '5848466240000000',
|
||||||
};
|
};
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
|
@ -22,6 +22,7 @@ import {
|
||||||
strategyWBTC,
|
strategyWBTC,
|
||||||
strategyWETH,
|
strategyWETH,
|
||||||
strategyYFI,
|
strategyYFI,
|
||||||
|
strategyCRV,
|
||||||
} from './reservesConfigs';
|
} from './reservesConfigs';
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
|
@ -53,6 +54,7 @@ export const AaveConfig: IAaveConfiguration = {
|
||||||
WETH: strategyWETH,
|
WETH: strategyWETH,
|
||||||
YFI: strategyYFI,
|
YFI: strategyYFI,
|
||||||
ZRX: strategyZRX,
|
ZRX: strategyZRX,
|
||||||
|
CRV: strategyCRV,
|
||||||
},
|
},
|
||||||
ReserveAssets: {
|
ReserveAssets: {
|
||||||
[eEthereumNetwork.buidlerevm]: {},
|
[eEthereumNetwork.buidlerevm]: {},
|
||||||
|
@ -79,6 +81,7 @@ export const AaveConfig: IAaveConfiguration = {
|
||||||
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
|
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
|
||||||
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
|
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
|
||||||
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',
|
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',
|
||||||
|
CRV: '0x47a0B839f62555b2E9c5684cbb734941c6AfdCc2',
|
||||||
},
|
},
|
||||||
[EthereumNetwork.ropsten]: {
|
[EthereumNetwork.ropsten]: {
|
||||||
AAVE: '',
|
AAVE: '',
|
||||||
|
@ -123,6 +126,7 @@ export const AaveConfig: IAaveConfiguration = {
|
||||||
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
||||||
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
|
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
|
||||||
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
|
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
|
||||||
|
CRV: '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
||||||
},
|
},
|
||||||
[EthereumNetwork.tenderlyMain]: {
|
[EthereumNetwork.tenderlyMain]: {
|
||||||
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
|
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
|
||||||
|
@ -145,6 +149,7 @@ export const AaveConfig: IAaveConfiguration = {
|
||||||
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
||||||
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
|
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
|
||||||
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
|
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
|
||||||
|
CRV: '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -339,5 +339,22 @@ export const strategyZRX: IReserveParams = {
|
||||||
stableBorrowRateEnabled: true,
|
stableBorrowRateEnabled: true,
|
||||||
reserveDecimals: '18',
|
reserveDecimals: '18',
|
||||||
aTokenImpl: eContractid.AToken,
|
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',
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user