aave-protocol-v2/markets/avalanche/rateStrategies.ts

24 lines
1.1 KiB
TypeScript
Raw Normal View History

2021-07-16 08:47:16 +00:00
import BigNumber from 'bignumber.js';
import { oneRay } from '../../helpers/constants';
import { IInterestRateStrategyParams } from '../../helpers/types';
2021-08-27 11:22:07 +00:00
export const rateStrategyVolatileOne: IInterestRateStrategyParams = {
name: 'rateStrategyVolatileOne',
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
2021-07-16 08:47:16 +00:00
baseVariableBorrowRate: new BigNumber(0).multipliedBy(oneRay).toFixed(),
2021-08-27 11:22:07 +00:00
variableRateSlope1: new BigNumber(0.07).multipliedBy(oneRay).toFixed(),
variableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
2021-07-16 08:47:16 +00:00
stableRateSlope1: '0',
stableRateSlope2: '0',
};
2021-08-27 11:22:07 +00:00
export const rateStrategyStableOne: IInterestRateStrategyParams = {
name: 'rateStrategyStableOne',
2021-07-16 08:47:16 +00:00
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(),
2021-08-27 11:22:07 +00:00
};