Skip to content
5 changes: 4 additions & 1 deletion helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export interface iAssetBase<T> {
REN: T;
ENJ: T;
xSUSHI: T;
CVX: T;
}

export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
Expand Down Expand Up @@ -234,6 +235,7 @@ export type iAavePoolAssets<T> = Pick<
| 'REN'
| 'ENJ'
| 'xSUSHI'
| 'CVX'
>;

export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
Expand Down Expand Up @@ -264,7 +266,8 @@ export enum TokenContractId {
YFI = 'YFI',
UNI = 'UNI',
ENJ = 'ENJ',
xSUSHI = 'xSUSHI'
xSUSHI = 'xSUSHI',
CVX = 'CVX'
}

export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
Expand Down
2 changes: 2 additions & 0 deletions markets/aave/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
YFI: oneEther.multipliedBy('22.407436').toFixed(),
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
xSUSHI: oneEther.multipliedBy('0.00913428586').toFixed(),
CVX: oneEther.multipliedBy('0.00868769046').toFixed(),
USD: '5848466240000000',
};
// ----------------
Expand Down Expand Up @@ -243,6 +244,7 @@ export const CommonsConfig: ICommonConfiguration = {
AAVE: '0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012',
BAT: '0x0d16d4528239e9ee52fa531af613AcdB23D88c94',
BUSD: '0x614715d2Af89E6EC99A233818275142cE88d1Cfd',
CVX: '0xC9CbF687f43176B302F03f5e58470b77D07c61c6',
DAI: '0x773616E4d11A78F511299002da57A0a94577F1f4',
ENJ: '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B',
KNC: '0x656c0544eF4C98A6a98491833A89204Abb045d6b',
Expand Down
4 changes: 4 additions & 0 deletions markets/aave/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
strategyWETH,
strategyYFI,
strategyXSUSHI,
strategyCVX,
} from './reservesConfigs';

// ----------------
Expand Down Expand Up @@ -55,6 +56,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: strategyYFI,
ZRX: strategyZRX,
xSUSHI: strategyXSUSHI,
CVX: strategyCVX,
},
ReserveAssets: {
[eEthereumNetwork.buidlerevm]: {},
Expand Down Expand Up @@ -126,6 +128,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
CVX: '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B',
},
[EthereumNetwork.tenderlyMain]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
Expand All @@ -149,6 +152,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
CVX: '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B',
},
},
};
Expand Down
17 changes: 17 additions & 0 deletions markets/aave/reservesConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,23 @@ export const strategyBAT: IReserveParams = {
reserveFactor: '2000'
};

export const strategyCVX: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
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: '4500',
liquidationThreshold: '6000',
liquidationBonus: '10850',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};

export const strategyENJ: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
Expand Down
Loading