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

267 lines
7.0 KiB
TypeScript
Raw Normal View History

2020-11-20 11:11:57 +00:00
import { eContractid, IReserveParams } from '../../helpers/types';
2020-11-04 10:47:06 +00:00
import {
rateStrategyStableOne,
rateStrategyStableTwo,
rateStrategyStableThree,
rateStrategyWETH,
rateStrategyAAVE,
rateStrategyVolatileOne,
rateStrategyVolatileTwo,
rateStrategyVolatileThree,
rateStrategyVolatileFour,
} from './rateStrategies';
2020-11-04 10:47:06 +00:00
2020-11-30 10:26:14 +00:00
export const strategyBUSD: IReserveParams = {
strategy: rateStrategyStableOne,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyStableTwo,
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 = {
strategy: rateStrategyStableOne,
2020-11-30 10:26:14 +00:00
baseLTVAsCollateral: '0',
liquidationThreshold: '0',
liquidationBonus: '0',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000',
2020-11-30 10:26:14 +00:00
};
export const strategyTUSD: IReserveParams = {
strategy: rateStrategyStableTwo,
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 = {
strategy: rateStrategyStableThree,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyStableThree,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyAAVE,
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyVolatileOne,
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',
2020-11-30 10:26:14 +00:00
};
export const strategyWETH: IReserveParams = {
strategy: rateStrategyWETH,
2020-11-30 10:26:14 +00:00
baseLTVAsCollateral: '8000',
liquidationThreshold: '8250',
liquidationBonus: '10500',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000',
2020-11-09 09:05:03 +00:00
};
export const strategyKNC: IReserveParams = {
strategy: rateStrategyVolatileTwo,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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,
reserveFactor: '2000',
2020-11-04 10:47:06 +00:00
};
export const strategySNX: IReserveParams = {
strategy: rateStrategyVolatileThree,
2020-11-30 10:26:14 +00:00
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
};
// Invalid borrow rates in params currently, replaced with snx params
2020-11-09 09:05:03 +00:00
export const strategyUNI: IReserveParams = {
strategy: rateStrategyVolatileThree,
2020-11-30 10:26:14 +00:00
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,
reserveFactor: '2000',
2020-11-09 09:05:03 +00:00
};
export const strategyWBTC: IReserveParams = {
strategy: rateStrategyVolatileTwo,
2020-11-30 10:26:14 +00:00
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,
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 = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
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,
reserveFactor: '2000',
2020-11-04 10:47:06 +00:00
};
2020-11-30 10:26:14 +00:00
export const strategyZRX: IReserveParams = {
strategy: rateStrategyVolatileOne,
2020-11-30 10:26:14 +00:00
baseLTVAsCollateral: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '2000',
2021-02-02 22:06:01 +00:00
};
export const strategyXSUSHI: IReserveParams = {
strategy: rateStrategyVolatileFour,
2021-02-02 22:06:01 +00:00
baseLTVAsCollateral: '2500',
liquidationThreshold: '4500',
liquidationBonus: '11500',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '3500',
};