2021-02-19 21:44:27 +00:00
|
|
|
// import BigNumber from 'bignumber.js';
|
|
|
|
// import { oneRay } from '../../helpers/constants';
|
2021-04-30 14:48:09 +00:00
|
|
|
import { MAX_BORROW_CAP, MAX_SUPPLY_CAP } from '../../helpers/constants';
|
2021-02-19 21:44:27 +00:00
|
|
|
import { eContractid, IReserveParams } from '../../helpers/types';
|
2021-04-30 14:48:09 +00:00
|
|
|
import {
|
2021-02-19 21:44:27 +00:00
|
|
|
rateStrategyStableTwo,
|
|
|
|
rateStrategyStableThree,
|
|
|
|
rateStrategyWETH,
|
|
|
|
rateStrategyAAVE,
|
|
|
|
rateStrategyVolatileOne,
|
|
|
|
rateStrategyVolatileTwo,
|
|
|
|
} from './rateStrategies';
|
|
|
|
|
|
|
|
export const strategyDAI: IReserveParams = {
|
|
|
|
strategy: rateStrategyStableTwo,
|
|
|
|
baseLTVAsCollateral: '7500',
|
|
|
|
liquidationThreshold: '8000',
|
|
|
|
liquidationBonus: '10500',
|
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-02-19 21:44:27 +00:00
|
|
|
reserveDecimals: '18',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-04-29 08:16:12 +00:00
|
|
|
reserveFactor: '1000',
|
|
|
|
borrowCap: MAX_BORROW_CAP,
|
2021-04-30 14:48:09 +00:00
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-02-19 21:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strategyUSDC: IReserveParams = {
|
|
|
|
strategy: rateStrategyStableThree,
|
|
|
|
baseLTVAsCollateral: '8000',
|
|
|
|
liquidationThreshold: '8500',
|
|
|
|
liquidationBonus: '10500',
|
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-02-19 21:44:27 +00:00
|
|
|
reserveDecimals: '6',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-04-29 08:16:12 +00:00
|
|
|
reserveFactor: '1000',
|
|
|
|
borrowCap: MAX_BORROW_CAP,
|
2021-04-30 14:48:09 +00:00
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-02-19 21:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strategyUSDT: IReserveParams = {
|
2021-04-30 14:48:09 +00:00
|
|
|
strategy: rateStrategyStableThree,
|
2021-03-31 08:29:50 +00:00
|
|
|
baseLTVAsCollateral: '0',
|
|
|
|
liquidationThreshold: '0',
|
|
|
|
liquidationBonus: '0',
|
2021-04-30 14:48:09 +00:00
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-04-30 14:48:09 +00:00
|
|
|
reserveDecimals: '6',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
|
|
|
reserveFactor: '1000',
|
|
|
|
borrowCap: MAX_BORROW_CAP,
|
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-02-19 21:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strategyWETH: IReserveParams = {
|
|
|
|
strategy: rateStrategyWETH,
|
|
|
|
baseLTVAsCollateral: '8000',
|
|
|
|
liquidationThreshold: '8250',
|
|
|
|
liquidationBonus: '10500',
|
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-02-19 21:44:27 +00:00
|
|
|
reserveDecimals: '18',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-04-29 08:16:12 +00:00
|
|
|
reserveFactor: '1000',
|
|
|
|
borrowCap: MAX_BORROW_CAP,
|
2021-04-30 14:48:09 +00:00
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-02-19 21:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strategyWBTC: IReserveParams = {
|
|
|
|
strategy: rateStrategyVolatileTwo,
|
|
|
|
baseLTVAsCollateral: '7000',
|
|
|
|
liquidationThreshold: '7500',
|
|
|
|
liquidationBonus: '11000',
|
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-02-19 21:44:27 +00:00
|
|
|
reserveDecimals: '8',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-04-29 08:16:12 +00:00
|
|
|
reserveFactor: '2000',
|
|
|
|
borrowCap: MAX_BORROW_CAP,
|
2021-04-30 14:48:09 +00:00
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-02-19 21:44:27 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 22:39:16 +00:00
|
|
|
export const strategyMATIC: IReserveParams = {
|
2021-04-30 14:48:09 +00:00
|
|
|
strategy: rateStrategyVolatileOne, //Temp?
|
2021-02-19 22:39:16 +00:00
|
|
|
baseLTVAsCollateral: '5000',
|
2021-02-19 21:44:27 +00:00
|
|
|
liquidationThreshold: '6500',
|
|
|
|
liquidationBonus: '11000',
|
|
|
|
borrowingEnabled: true,
|
2021-03-31 08:29:50 +00:00
|
|
|
stableBorrowRateEnabled: false,
|
2021-02-19 21:44:27 +00:00
|
|
|
reserveDecimals: '18',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-05-25 09:22:58 +00:00
|
|
|
borrowCap: MAX_BORROW_CAP,
|
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-04-29 08:16:12 +00:00
|
|
|
reserveFactor: '2000',
|
2021-03-29 15:28:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strategyAAVE: IReserveParams = {
|
|
|
|
strategy: rateStrategyAAVE,
|
|
|
|
baseLTVAsCollateral: '5000',
|
|
|
|
liquidationThreshold: '6500',
|
|
|
|
liquidationBonus: '11000',
|
|
|
|
borrowingEnabled: false,
|
|
|
|
stableBorrowRateEnabled: false,
|
|
|
|
reserveDecimals: '18',
|
|
|
|
aTokenImpl: eContractid.AToken,
|
2021-04-29 08:16:12 +00:00
|
|
|
borrowCap: MAX_BORROW_CAP,
|
2021-04-30 14:48:09 +00:00
|
|
|
supplyCap: MAX_SUPPLY_CAP,
|
2021-03-29 15:28:20 +00:00
|
|
|
reserveFactor: '0',
|
2021-04-30 14:48:09 +00:00
|
|
|
};
|