2021-04-23 18:30:07 +00:00
|
|
|
import BigNumber from 'bignumber.js';
|
|
|
|
import { oneRay } from '../../helpers/constants';
|
|
|
|
import { IInterestRateStrategyParams } from '../../helpers/types';
|
|
|
|
|
|
|
|
|
2021-05-18 10:38:17 +00:00
|
|
|
// USDC
|
2021-04-23 18:30:07 +00:00
|
|
|
export const rateStrategyStable: IInterestRateStrategyParams = {
|
|
|
|
name: "rateStrategyStable",
|
|
|
|
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(),
|
|
|
|
}
|
|
|
|
|
2021-05-18 10:38:17 +00:00
|
|
|
// AAVE
|
|
|
|
export const rateStrategyAAVE: IInterestRateStrategyParams = {
|
|
|
|
name: "rateStrategyAAVE",
|
|
|
|
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
|
|
|
|
baseVariableBorrowRate: '0',
|
|
|
|
variableRateSlope1: '0',
|
|
|
|
variableRateSlope2: '0',
|
|
|
|
stableRateSlope1: '0',
|
|
|
|
stableRateSlope2: '0',
|
|
|
|
}
|
|
|
|
|
2021-04-23 18:30:07 +00:00
|
|
|
// WETH
|
|
|
|
export const rateStrategyWETH: IInterestRateStrategyParams = {
|
|
|
|
name: "rateStrategyWETH",
|
|
|
|
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(),
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// WBTC
|
|
|
|
export const rateStrategyWBTC: IInterestRateStrategyParams = {
|
|
|
|
name: "rateStrategyWBTC",
|
|
|
|
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(3).multipliedBy(oneRay).toFixed(),
|
|
|
|
stableRateSlope1: new BigNumber(0.1).multipliedBy(oneRay).toFixed(),
|
|
|
|
stableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
|
|
|
|
}
|