From 093007c24771fecef976352cd43e22fa1c2e58f1 Mon Sep 17 00:00:00 2001 From: Zer0dot Date: Fri, 19 Feb 2021 16:45:33 -0500 Subject: [PATCH] Fix Matic commons to bring up to speed --- markets/matic/commons.ts | 45 +++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/markets/matic/commons.ts b/markets/matic/commons.ts index 5a6df636..773eb610 100644 --- a/markets/matic/commons.ts +++ b/markets/matic/commons.ts @@ -23,35 +23,38 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = { WBTC: oneEther.multipliedBy('47.332685').toFixed(), YFI: oneEther.multipliedBy('22.407436').toFixed(), ZRX: oneEther.multipliedBy('0.001151').toFixed(), - LpDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), - LpUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), - LpUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), - LpWBTC: oneEther.multipliedBy('47.332685').toFixed(), - LpWETH: oneEther.toFixed(), - LpUniDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), - LpUniBATWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), - LpUniCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), - LpUniMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniRENWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpUniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), - LpUniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), - LpBalWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), + // LpDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), + // LpUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), + // LpUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), + // LpWBTC: oneEther.multipliedBy('47.332685').toFixed(), + // LpWETH: oneEther.toFixed(), + UniDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), + UniBATWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), + UniCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), + UniMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniRENWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), + UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), + UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), + BptWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), USD: '5848466240000000', }; - // ---------------- // PROTOCOL GLOBAL PARAMS // ---------------- export const CommonsConfig: ICommonConfiguration = { MarketId: 'Commons', + ATokenNamePrefix: 'Aave interest bearing', + StableDebtTokenNamePrefix: 'Aave stable debt bearing', + VariableDebtTokenNamePrefix: 'Aave variable debt bearing', + SymbolPrefix: '', ProviderId: 0, ProtocolGlobalParams: { TokenDistributorPercentageBase: '10000',