mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
import BigNumber from 'bignumber.js';
|
|
import { oneRay } from '../../helpers/constants';
|
|
import { IInterestRateStrategyParams } from '../../helpers/types';
|
|
|
|
export const rateStrategyVolatileOne: IInterestRateStrategyParams = {
|
|
name: 'rateStrategyVolatileOne',
|
|
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: '0',
|
|
stableRateSlope2: '0',
|
|
};
|
|
|
|
export const rateStrategyStableOne: IInterestRateStrategyParams = {
|
|
name: 'rateStrategyStableOne',
|
|
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(),
|
|
};
|