Initial setup for BptBALWETH

This commit is contained in:
Zer0dot 2021-02-24 17:58:20 -05:00
parent fb3c0fc119
commit ce7d011e20
7 changed files with 30 additions and 1 deletions

View File

@ -65,6 +65,7 @@ export const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(),
UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(),
BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(),
BptBALWETH: oneEther.multipliedBy('22.407436').toFixed(),
WMATIC: oneEther.multipliedBy('0.003620948469').toFixed(),
STAKE: oneEther.multipliedBy('0.003620948469').toFixed(),
USD: '5848466240000000',

View File

@ -235,6 +235,7 @@ export interface iAssetBase<T> {
UniWBTCUSDC: T;
UniYFIWETH: T;
BptWBTCWETH: T;
BptBALWETH: T;
WMATIC: T;
STAKE: T;
}
@ -289,6 +290,7 @@ export type iLpPoolAssets<T> = Pick<
| 'UniWBTCUSDC'
| 'UniYFIWETH'
| 'BptWBTCWETH'
| 'BptBALWETH'
>;
export type iMaticPoolAssets<T> = Pick<
@ -344,6 +346,7 @@ export enum TokenContractId {
UniWBTCUSDC = 'UniWBTCUSDC',
UniYFIWETH = 'UniYFIWETH',
BptWBTCWETH = 'BptWBTCWETH',
BptBALWETH = 'BptBALWETH',
WMATIC = 'WMATIC',
STAKE = 'STAKE',
}

View File

@ -93,6 +93,9 @@ export const CommonsConfig: ICommonConfiguration = {
BptWBTCWETH: {
borrowRate: oneRay.multipliedBy(0.05).toFixed(),
},
BptBALWETH: {
borrowRate: oneRay.multipliedBy(0.05).toFixed(),
}
},
// ----------------
// COMMON PROTOCOL ADDRESSES ACROSS POOLS
@ -234,6 +237,7 @@ export const CommonsConfig: ICommonConfiguration = {
UniWBTCUSDC: '0x5699302154A020FB1DE2B1d39f4c73785A235d8F',
UniYFIWETH: '0x5699302154A020FB1DE2B1d39f4c73785A235d8F',
BptWBTCWETH: '0x5699302154A020FB1DE2B1d39f4c73785A235d8F',
BptBALWETH: '0x5699302154A020FB1DE2B1d39f4c73785A235d8F',
USD: '0x9326BFA02ADD2366b30bacB125260Af641031331',
},
[eEthereumNetwork.ropsten]: {
@ -258,6 +262,7 @@ export const CommonsConfig: ICommonConfiguration = {
UniWBTCUSDC: ZERO_ADDRESS,
UniYFIWETH: ZERO_ADDRESS,
BptWBTCWETH: ZERO_ADDRESS,
BptBALWETH: ZERO_ADDRESS,
USD: '0x9326BFA02ADD2366b30bacB125260Af641031331',
},
[eEthereumNetwork.tenderlyMain]: {
@ -280,6 +285,7 @@ export const CommonsConfig: ICommonConfiguration = {
UniWBTCUSDC: ZERO_ADDRESS,
UniYFIWETH: ZERO_ADDRESS,
BptWBTCWETH: ZERO_ADDRESS,
BptBALWETH: ZERO_ADDRESS,
USD: '0x9326BFA02ADD2366b30bacB125260Af641031331',
},
},

View File

@ -22,6 +22,7 @@ import {
strategyUSDCWETH,
strategyWBTCUSDC,
strategyYFIWETH,
strategyBALWETH,
} from './reservesConfigs';
// ----------------
@ -53,6 +54,7 @@ export const AmmConfig: IAmmConfiguration = {
UniWBTCUSDC: strategyWBTCUSDC,
UniYFIWETH: strategyYFIWETH,
BptWBTCWETH: strategyWBTCWETH,
BptBALWETH: strategyBALWETH,
},
ReserveAssets: {
[eEthereumNetwork.buidlerevm]: {},
@ -79,6 +81,7 @@ export const AmmConfig: IAmmConfiguration = {
UniWBTCUSDC: '0x3d35B5F289f55A580e6F85eE22E6a8f57053b966',
UniYFIWETH: '0x5af95ddFACC150a1695A3Fc606459fd0dE57b91f',
BptWBTCWETH: '0x110569E3261bC0934dA637b019f6f1b6F50ec574',
BptBALWETH: '0xad01D8e0Fa9EAA8Fe76dA30CFb1BCe12707aE6c5',
},
[eEthereumNetwork.ropsten]: {
},
@ -103,6 +106,7 @@ export const AmmConfig: IAmmConfiguration = {
UniWBTCUSDC: '0x004375Dff511095CC5A197A54140a24eFEF3A416',
UniYFIWETH: '0x2fDbAdf3C4D5A8666Bc06645B8358ab803996E28',
BptWBTCWETH: '0x1efF8aF5D577060BA4ac8A29A13525bb0Ee2A3D5',
BptBALWETH: '0x59A19D8c652FA0284f44113D0ff9aBa70bd46fB4',
},
[eEthereumNetwork.tenderlyMain]: {
DAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
@ -125,6 +129,7 @@ export const AmmConfig: IAmmConfiguration = {
UniWBTCUSDC: '0x004375Dff511095CC5A197A54140a24eFEF3A416',
UniYFIWETH: '0x2fDbAdf3C4D5A8666Bc06645B8358ab803996E28',
BptWBTCWETH: '0x1efF8aF5D577060BA4ac8A29A13525bb0Ee2A3D5',
BptBALWETH: '0x59A19D8c652FA0284f44113D0ff9aBa70bd46fB4',
},
},
};

View File

@ -232,4 +232,16 @@ export const strategyYFIWETH: IReserveParams = {
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1500'
};
};
export const strategyBALWETH: IReserveParams = {
strategy: rateStrategyAmmBase,
baseLTVAsCollateral: '6000',
liquidationThreshold: '6500',
liquidationBonus: '11500',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1500'
}

View File

@ -187,6 +187,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
UniWBTCUSDC: mockTokens.UniWBTCUSDC.address,
UniYFIWETH: mockTokens.UniYFIWETH.address,
BptWBTCWETH: mockTokens.BptWBTCWETH.address,
BptBALWETH: mockTokens.BptBALWETH.address,
WMATIC: mockTokens.WMATIC.address,
USD: USD_ADDRESS,
STAKE: mockTokens.STAKE.address,

View File

@ -186,6 +186,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
UniWBTCUSDC: mockTokens.UniWBTCUSDC.address,
UniYFIWETH: mockTokens.UniYFIWETH.address,
BptWBTCWETH: mockTokens.BptWBTCWETH.address,
BptBALWETH: mockTokens.BptBALWETH.address,
WMATIC: mockTokens.WMATIC.address,
USD: USD_ADDRESS,
STAKE: mockTokens.STAKE.address,