Including MATIC token in comons

This commit is contained in:
Zer0dot 2021-02-19 17:38:44 -05:00
parent 093007c247
commit ca1df823ea
3 changed files with 12 additions and 48 deletions

View File

@ -43,6 +43,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(),
UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(),
BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(),
MATIC: oneEther.multipliedBy('0.003620948469').toFixed(),
USD: '5848466240000000', USD: '5848466240000000',
}; };
// ---------------- // ----------------
@ -55,7 +56,7 @@ export const CommonsConfig: ICommonConfiguration = {
StableDebtTokenNamePrefix: 'Aave stable debt bearing', StableDebtTokenNamePrefix: 'Aave stable debt bearing',
VariableDebtTokenNamePrefix: 'Aave variable debt bearing', VariableDebtTokenNamePrefix: 'Aave variable debt bearing',
SymbolPrefix: '', SymbolPrefix: '',
ProviderId: 0, ProviderId: 0, // Overriden in index.ts
ProtocolGlobalParams: { ProtocolGlobalParams: {
TokenDistributorPercentageBase: '10000', TokenDistributorPercentageBase: '10000',
MockUsdPriceInWei: '5848466240000000', MockUsdPriceInWei: '5848466240000000',

View File

@ -43,6 +43,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(),
UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(),
BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(),
MATIC: oneEther.multipliedBy('0.003620948469').toFixed(),
USD: '5848466240000000', USD: '5848466240000000',
}; };
// ---------------- // ----------------
@ -55,7 +56,7 @@ export const CommonsConfig: ICommonConfiguration = {
StableDebtTokenNamePrefix: 'Aave AMM Market stable debt', StableDebtTokenNamePrefix: 'Aave AMM Market stable debt',
VariableDebtTokenNamePrefix: 'Aave AMM Market variable debt', VariableDebtTokenNamePrefix: 'Aave AMM Market variable debt',
SymbolPrefix: 'Amm', SymbolPrefix: 'Amm',
ProviderId: 0, ProviderId: 0, // Overriden in index.ts
ProtocolGlobalParams: { ProtocolGlobalParams: {
TokenDistributorPercentageBase: '10000', TokenDistributorPercentageBase: '10000',
MockUsdPriceInWei: '5848466240000000', MockUsdPriceInWei: '5848466240000000',

View File

@ -43,6 +43,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(),
UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(),
BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(),
MATIC: oneEther.multipliedBy('0.003620948469').toFixed(),
USD: '5848466240000000', USD: '5848466240000000',
}; };
// ---------------- // ----------------
@ -51,11 +52,11 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
export const CommonsConfig: ICommonConfiguration = { export const CommonsConfig: ICommonConfiguration = {
MarketId: 'Commons', MarketId: 'Commons',
ATokenNamePrefix: 'Aave interest bearing', ATokenNamePrefix: 'Aave Matic Market',
StableDebtTokenNamePrefix: 'Aave stable debt bearing', StableDebtTokenNamePrefix: 'Aave Matic Market stable debt',
VariableDebtTokenNamePrefix: 'Aave variable debt bearing', VariableDebtTokenNamePrefix: 'Aave Matic Market variable debt',
SymbolPrefix: '', SymbolPrefix: 'Matic',
ProviderId: 0, ProviderId: 0, // Overriden in index.ts
ProtocolGlobalParams: { ProtocolGlobalParams: {
TokenDistributorPercentageBase: '10000', TokenDistributorPercentageBase: '10000',
MockUsdPriceInWei: '5848466240000000', MockUsdPriceInWei: '5848466240000000',
@ -82,56 +83,17 @@ export const CommonsConfig: ICommonConfiguration = {
DAI: { DAI: {
borrowRate: oneRay.multipliedBy(0.039).toFixed(), borrowRate: oneRay.multipliedBy(0.039).toFixed(),
}, },
TUSD: {
borrowRate: oneRay.multipliedBy(0.035).toFixed(),
},
USDC: { USDC: {
borrowRate: oneRay.multipliedBy(0.039).toFixed(), borrowRate: oneRay.multipliedBy(0.039).toFixed(),
}, },
SUSD: {
borrowRate: oneRay.multipliedBy(0.035).toFixed(),
},
USDT: { USDT: {
borrowRate: oneRay.multipliedBy(0.035).toFixed(), borrowRate: oneRay.multipliedBy(0.035).toFixed(),
}, },
BAT: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
AAVE: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
LINK: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
KNC: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
MKR: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
MANA: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
WBTC: { WBTC: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(), borrowRate: oneRay.multipliedBy(0.03).toFixed(),
}, },
ZRX: { MATIC: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(), borrowRate: oneRay.multipliedBy(0.05).toFixed(), // TEMP
},
SNX: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
YFI: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
REN: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
UNI: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},
BUSD: {
borrowRate: oneRay.multipliedBy(0.05).toFixed(),
}, },
}, },
// ---------------- // ----------------