mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// import BigNumber from 'bignumber.js';
 | 
						|
// import { oneRay } from '../../helpers/constants';
 | 
						|
import { eContractid, IReserveParams } from '../../helpers/types';
 | 
						|
import { 
 | 
						|
  rateStrategyStableOne,
 | 
						|
  rateStrategyStableTwo,
 | 
						|
  rateStrategyStableThree,
 | 
						|
  rateStrategyWETH,
 | 
						|
  rateStrategyAAVE,
 | 
						|
  rateStrategyVolatileOne,
 | 
						|
  rateStrategyVolatileTwo,
 | 
						|
  rateStrategyVolatileThree,
 | 
						|
} from './rateStrategies';
 | 
						|
 | 
						|
export const strategyDAI: IReserveParams = {
 | 
						|
  strategy: rateStrategyStableTwo,
 | 
						|
  baseLTVAsCollateral: '7500',
 | 
						|
  liquidationThreshold: '8000',
 | 
						|
  liquidationBonus: '10500',
 | 
						|
  borrowingEnabled: true,
 | 
						|
  stableBorrowRateEnabled: true,
 | 
						|
  reserveDecimals: '18',
 | 
						|
  aTokenImpl: eContractid.AToken,
 | 
						|
  reserveFactor: '1000'
 | 
						|
};
 | 
						|
 | 
						|
export const strategyUSDC: IReserveParams = {
 | 
						|
  strategy: rateStrategyStableThree,
 | 
						|
  baseLTVAsCollateral: '8000',
 | 
						|
  liquidationThreshold: '8500',
 | 
						|
  liquidationBonus: '10500',
 | 
						|
  borrowingEnabled: true,
 | 
						|
  stableBorrowRateEnabled: true,
 | 
						|
  reserveDecimals: '6',
 | 
						|
  aTokenImpl: eContractid.AToken,
 | 
						|
  reserveFactor: '1000'
 | 
						|
};
 | 
						|
 | 
						|
export const strategyUSDT: IReserveParams = {
 | 
						|
    strategy: rateStrategyStableThree,
 | 
						|
    baseLTVAsCollateral: '8000',
 | 
						|
    liquidationThreshold: '8500',
 | 
						|
    liquidationBonus: '10500',
 | 
						|
    borrowingEnabled: true,
 | 
						|
    stableBorrowRateEnabled: true,
 | 
						|
    reserveDecimals: '6',
 | 
						|
    aTokenImpl: eContractid.AToken,
 | 
						|
    reserveFactor: '1000'
 | 
						|
};
 | 
						|
 | 
						|
export const strategyWETH: IReserveParams = {
 | 
						|
  strategy: rateStrategyWETH,
 | 
						|
  baseLTVAsCollateral: '8000',
 | 
						|
  liquidationThreshold: '8250',
 | 
						|
  liquidationBonus: '10500',
 | 
						|
  borrowingEnabled: true,
 | 
						|
  stableBorrowRateEnabled: true,
 | 
						|
  reserveDecimals: '18',
 | 
						|
  aTokenImpl: eContractid.AToken,
 | 
						|
  reserveFactor: '1000'
 | 
						|
};
 | 
						|
 | 
						|
export const strategyWBTC: IReserveParams = {
 | 
						|
  strategy: rateStrategyVolatileTwo,
 | 
						|
  baseLTVAsCollateral: '7000',
 | 
						|
  liquidationThreshold: '7500',
 | 
						|
  liquidationBonus: '11000',
 | 
						|
  borrowingEnabled: true,
 | 
						|
  stableBorrowRateEnabled: true,
 | 
						|
  reserveDecimals: '8',
 | 
						|
  aTokenImpl: eContractid.AToken,
 | 
						|
  reserveFactor: '2000'
 | 
						|
};
 | 
						|
 | 
						|
export const strategySTAKE: IReserveParams = {
 | 
						|
  strategy: rateStrategyVolatileOne,    //Temp?
 | 
						|
  baseLTVAsCollateral: '5000',
 | 
						|
  liquidationThreshold: '6500',
 | 
						|
  liquidationBonus: '11000',
 | 
						|
  borrowingEnabled: true,
 | 
						|
  stableBorrowRateEnabled: true,
 | 
						|
  reserveDecimals: '18',
 | 
						|
  aTokenImpl: eContractid.AToken,
 | 
						|
  reserveFactor: '2000'
 | 
						|
}; |