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

343 lines
13 KiB
TypeScript
Raw Normal View History

2020-11-04 10:47:06 +00:00
import BigNumber from 'bignumber.js';
2020-11-20 11:11:57 +00:00
import { oneRay } from '../../helpers/constants';
import { eContractid, IReserveParams } from '../../helpers/types';
2020-11-04 10:47:06 +00:00
2020-11-30 10:26:14 +00:00
export const strategyBUSD: IReserveParams = {
2020-11-19 17:11:53 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-11-04 10:47:06 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '0',
liquidationThreshold: '0',
liquidationBonus: '0',
2020-11-04 10:47:06 +00:00
borrowingEnabled: true,
2020-11-30 10:26:14 +00:00
stableBorrowRateEnabled: false,
2020-11-04 10:47:06 +00:00
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyDAI: IReserveParams = {
2020-11-19 17:11:53 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
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(),
2020-11-04 10:47:06 +00:00
baseLTVAsCollateral: '7500',
liquidationThreshold: '8000',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-11-09 09:05:03 +00:00
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategySUSD: IReserveParams = {
2020-11-19 17:11:53 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '0',
liquidationThreshold: '0',
liquidationBonus: '0',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};
export const strategyTUSD: 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(),
2020-11-04 10:47:06 +00:00
baseLTVAsCollateral: '7500',
liquidationThreshold: '8000',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
2020-11-30 10:26:14 +00:00
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyUSDC: IReserveParams = {
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(),
baseLTVAsCollateral: '8000',
2020-11-30 11:53:33 +00:00
liquidationThreshold: '8500',
2020-11-30 10:26:14 +00:00
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '6',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyUSDT: IReserveParams = {
optimalUtilizationRate: new BigNumber(0.9).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
2020-11-04 10:47:06 +00:00
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
variableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(),
stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '8000',
2020-11-30 11:53:33 +00:00
liquidationThreshold: '8500',
2020-11-30 10:26:14 +00:00
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '6',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000'
2020-11-04 10:47:06 +00:00
};
export const strategyAAVE: IReserveParams = {
2020-11-30 10:26:14 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: '0',
variableRateSlope1: '0',
variableRateSlope2: '0',
stableRateSlope1: '0',
stableRateSlope2: '0',
2020-11-04 10:47:06 +00:00
baseLTVAsCollateral: '5000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: false,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
2020-11-30 10:26:14 +00:00
aTokenImpl: eContractid.AToken,
reserveFactor: '0'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyBAT: 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: '7000',
liquidationThreshold: '7500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
2020-11-09 09:05:03 +00:00
};
export const strategyENJ: IReserveParams = {
2020-11-30 10:26:14 +00:00
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(),
2020-11-09 09:05:03 +00:00
baseLTVAsCollateral: '5500',
2020-11-30 10:26:14 +00:00
liquidationThreshold: '6000',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};
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,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
2020-11-30 11:01:26 +00:00
reserveFactor: '1000'
2020-11-09 09:05:03 +00:00
};
export const strategyKNC: IReserveParams = {
2020-11-30 10:26:14 +00:00
optimalUtilizationRate: new BigNumber(0.65).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
2020-11-04 10:47:06 +00:00
variableRateSlope1: new BigNumber(0.08).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
variableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(),
stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
export const strategyLINK: IReserveParams = {
2020-11-30 10:26:14 +00:00
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: '7000',
liquidationThreshold: '7500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
2020-11-09 09:05:03 +00:00
export const strategyMANA: IReserveParams = {
2020-11-30 10:26:14 +00:00
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: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '3500'
2020-11-04 10:47:06 +00:00
};
2020-11-09 09:05:03 +00:00
export const strategyMKR: IReserveParams = {
2020-11-30 10:26:14 +00:00
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: '6000',
2020-11-09 09:05:03 +00:00
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: true,
2020-11-30 10:26:14 +00:00
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyREN: 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: '5500',
liquidationThreshold: '6000',
liquidationBonus: '11000',
2020-11-11 15:00:12 +00:00
borrowingEnabled: true,
2020-11-30 10:26:14 +00:00
stableBorrowRateEnabled: true,
2020-11-11 11:01:15 +00:00
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
2020-11-30 10:26:14 +00:00
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
export const strategySNX: IReserveParams = {
2020-11-30 10:26:14 +00:00
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
2020-11-04 10:47:06 +00:00
baseVariableBorrowRate: new BigNumber(0.03).multipliedBy(oneRay).toFixed(),
variableRateSlope1: new BigNumber(0.12).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '1500',
liquidationThreshold: '4000',
liquidationBonus: '11000',
2020-11-09 09:05:03 +00:00
borrowingEnabled: true,
2020-11-04 10:47:06 +00:00
stableBorrowRateEnabled: false,
2020-11-09 09:05:03 +00:00
reserveDecimals: '18',
2020-11-30 10:26:14 +00:00
aTokenImpl: eContractid.AToken,
reserveFactor: '3500'
2020-11-04 10:47:06 +00:00
};
2020-11-09 09:05:03 +00:00
export const strategyUNI: IReserveParams = {
2020-11-30 10:26:14 +00:00
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: '0',
variableRateSlope1: '0',
variableRateSlope2: '0',
stableRateSlope1: '0',
stableRateSlope2: '0',
baseLTVAsCollateral: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: false,
2020-11-04 10:47:06 +00:00
stableBorrowRateEnabled: false,
2020-11-30 10:26:14 +00:00
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.DelegationAwareAToken,
2020-11-30 10:26:14 +00:00
reserveFactor: '2000'
2020-11-09 09:05:03 +00:00
};
export const strategyWBTC: IReserveParams = {
2020-11-30 10:26:14 +00:00
optimalUtilizationRate: new BigNumber(0.65).multipliedBy(oneRay).toFixed(),
baseVariableBorrowRate: '0',
2020-11-09 09:05:03 +00:00
variableRateSlope1: new BigNumber(0.08).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
variableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
2020-11-09 09:05:03 +00:00
stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '7000',
liquidationThreshold: '7500',
liquidationBonus: '11000',
2020-11-09 09:05:03 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '8',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
2020-11-30 10:26:14 +00:00
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
2020-11-09 09:05:03 +00:00
2020-11-30 10:26:14 +00:00
export const strategyYFI: 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(),
2020-11-09 09:05:03 +00:00
stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(),
2020-11-30 10:26:14 +00:00
stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
baseLTVAsCollateral: '4000',
2020-11-30 11:49:31 +00:00
liquidationThreshold: '5500',
2020-11-30 10:26:14 +00:00
liquidationBonus: '11500',
2020-11-09 09:05:03 +00:00
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
2020-11-20 11:11:57 +00:00
aTokenImpl: eContractid.AToken,
2020-11-30 10:26:14 +00:00
reserveFactor: '2000'
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyZRX: 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: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000'
};