aave-protocol-v2/markets/lp/reservesConfigs.ts

326 lines
12 KiB
TypeScript
Raw Normal View History

2020-12-22 23:48:02 +00:00
import BigNumber from 'bignumber.js';
import { oneRay } from '../../helpers/constants';
import { eContractid, IReserveParams } from '../../helpers/types';
export const strategyWETH: IReserveParams = {
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(),
baseLTVAsCollateral: '8000',
liquidationThreshold: '8250',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
};
export const strategyWBTC: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.65).multipliedBy(oneRay).toFixed(),
2021-01-21 02:44:19 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
variableRateSlope1: new BigNumber(0.08).multipliedBy(oneRay).toFixed(),
2021-01-29 03:06:09 +00:00
variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '7000',
liquidationThreshold: '7500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '8',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};
export const strategyDAI: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(0.75).multipliedBy(oneRay).toFixed(),
stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(0.75).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '7500',
liquidationThreshold: '8000',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
};
export const strategyUSDC: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '8000',
liquidationThreshold: '8500',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '6',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
};
export const strategyUSDT: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
2021-01-21 02:44:19 +00:00
variableRateSlope2: new BigNumber(0.75).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '-1',
2020-12-22 23:48:02 +00:00
liquidationThreshold: '8500',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '6',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
};
2021-01-20 01:58:21 +00:00
export const strategyDAIWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '500'
2021-01-20 01:58:21 +00:00
};
export const strategyWBTCWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategyAAVEWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '500'
2021-01-20 01:58:21 +00:00
};
export const strategyBATWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategyUSDCDAI: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1000'
2021-01-20 01:58:21 +00:00
};
export const strategyCRVWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '5000',
2021-01-20 01:58:21 +00:00
liquidationThreshold: '6000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '500'
2021-01-20 01:58:21 +00:00
};
export const strategyLINKWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2020-12-22 23:48:02 +00:00
};
2021-01-20 01:58:21 +00:00
export const strategyMKRWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategyRENWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategySNXWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '4000',
liquidationThreshold: '6000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '2000'
2021-01-20 01:58:21 +00:00
};
export const strategyUNIWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategyUSDCWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1000'
2021-01-20 01:58:21 +00:00
};
export const strategyWBTCUSDC: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2021-01-20 01:58:21 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '7000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2021-01-20 01:58:21 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2021-01-20 01:58:21 +00:00
};
export const strategyYFIWETH: IReserveParams = {
2021-01-21 02:44:19 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.10).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3.00).multipliedBy(oneRay).toFixed(),
2020-12-22 23:48:02 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '5000',
2021-01-20 01:58:21 +00:00
liquidationThreshold: '6000',
liquidationBonus: '11500',
2021-01-29 03:06:09 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-12-22 23:48:02 +00:00
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2021-01-29 03:06:09 +00:00
reserveFactor: '1500'
2020-12-22 23:48:02 +00:00
};