mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
164 lines
5.2 KiB
TypeScript
164 lines
5.2 KiB
TypeScript
import BigNumber from 'bignumber.js';
|
|
import {
|
|
oneEther,
|
|
oneRay,
|
|
RAY,
|
|
ZERO_ADDRESS,
|
|
MOCK_CHAINLINK_AGGREGATORS_PRICES,
|
|
} from '../../helpers/constants';
|
|
import { ICommonConfiguration, ePolygonNetwork } from '../../helpers/types';
|
|
|
|
// ----------------
|
|
// PROTOCOL GLOBAL PARAMS
|
|
// ----------------
|
|
|
|
export const CommonsConfig: ICommonConfiguration = {
|
|
MarketId: 'Commons',
|
|
ATokenNamePrefix: 'Aave Matic Market',
|
|
StableDebtTokenNamePrefix: 'Aave Matic Market stable debt',
|
|
VariableDebtTokenNamePrefix: 'Aave Matic Market variable debt',
|
|
SymbolPrefix: 'm',
|
|
ProviderId: 0, // Overriden in index.ts
|
|
ProtocolGlobalParams: {
|
|
TokenDistributorPercentageBase: '10000',
|
|
MockUsdPriceInWei: '5848466240000000',
|
|
UsdAddress: '0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96',
|
|
NilAddress: '0x0000000000000000000000000000000000000000',
|
|
OneAddress: '0x0000000000000000000000000000000000000001',
|
|
AaveReferral: '0',
|
|
},
|
|
|
|
// ----------------
|
|
// COMMON PROTOCOL PARAMS ACROSS POOLS AND NETWORKS
|
|
// ----------------
|
|
|
|
Mocks: {
|
|
AllAssetsInitialPrices: {
|
|
...MOCK_CHAINLINK_AGGREGATORS_PRICES,
|
|
},
|
|
},
|
|
// TODO: reorg alphabetically, checking the reason of tests failing
|
|
LendingRateOracleRatesCommon: {
|
|
WETH: {
|
|
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
|
|
},
|
|
DAI: {
|
|
borrowRate: oneRay.multipliedBy(0.039).toFixed(),
|
|
},
|
|
USDC: {
|
|
borrowRate: oneRay.multipliedBy(0.039).toFixed(),
|
|
},
|
|
USDT: {
|
|
borrowRate: oneRay.multipliedBy(0.035).toFixed(),
|
|
},
|
|
WBTC: {
|
|
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
|
|
},
|
|
WMATIC: {
|
|
borrowRate: oneRay.multipliedBy(0.05).toFixed(),
|
|
},
|
|
AAVE: {
|
|
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
|
|
},
|
|
},
|
|
// ----------------
|
|
// COMMON PROTOCOL ADDRESSES ACROSS POOLS
|
|
// ----------------
|
|
|
|
// If PoolAdmin/emergencyAdmin is set, will take priority over PoolAdminIndex/emergencyAdminIndex
|
|
PoolAdmin: {
|
|
[ePolygonNetwork.mumbai]: undefined,
|
|
[ePolygonNetwork.matic]: undefined,
|
|
},
|
|
PoolAdminIndex: 0,
|
|
EmergencyAdminIndex: 0,
|
|
EmergencyAdmin: {
|
|
[ePolygonNetwork.mumbai]: undefined,
|
|
[ePolygonNetwork.matic]: undefined,
|
|
},
|
|
LendingPool: {
|
|
[ePolygonNetwork.mumbai]: '0x9198F13B08E299d85E096929fA9781A1E3d5d827',
|
|
[ePolygonNetwork.matic]: '0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf',
|
|
},
|
|
LendingPoolConfigurator: {
|
|
[ePolygonNetwork.mumbai]: '0xc3c37E2aA3dc66464fa3C29ce2a6EC85beFC45e1',
|
|
[ePolygonNetwork.matic]: '0x26db2B833021583566323E3b8985999981b9F1F3',
|
|
},
|
|
ProviderRegistry: {
|
|
[ePolygonNetwork.mumbai]: '0xE6ef11C967898F9525D550014FDEdCFAB63536B5',
|
|
[ePolygonNetwork.matic]: '0x3ac4e9aa29940770aeC38fe853a4bbabb2dA9C19',
|
|
},
|
|
ProviderRegistryOwner: {
|
|
[ePolygonNetwork.mumbai]: '0x943E44157dC0302a5CEb172374d1749018a00994',
|
|
[ePolygonNetwork.matic]: '0xD7D86236d6c463521920fCC50A9CB56f8C8Bf008',
|
|
},
|
|
LendingRateOracle: {
|
|
[ePolygonNetwork.mumbai]: '0xC661e1445F9a8E5FD3C3dbCa0A0A2e8CBc79725D',
|
|
[ePolygonNetwork.matic]: '0x17F73aEaD876CC4059089ff815EDA37052960dFB',
|
|
},
|
|
LendingPoolCollateralManager: {
|
|
[ePolygonNetwork.mumbai]: '0x2A7004B21c49253ca8DF923406Fed9a02AA86Ba0',
|
|
[ePolygonNetwork.matic]: '0xA39599424642D9fD35e475EF802EddF798dc555B',
|
|
},
|
|
TokenDistributor: {
|
|
[ePolygonNetwork.mumbai]: '',
|
|
[ePolygonNetwork.matic]: '',
|
|
},
|
|
WethGateway: {
|
|
[ePolygonNetwork.mumbai]: '0xee9eE614Ad26963bEc1Bec0D2c92879ae1F209fA',
|
|
[ePolygonNetwork.matic]: '0xbEadf48d62aCC944a06EEaE0A9054A90E5A7dc97',
|
|
},
|
|
AaveOracle: {
|
|
[ePolygonNetwork.mumbai]: '0xC365C653f7229894F93994CD0b30947Ab69Ff1D5',
|
|
[ePolygonNetwork.matic]: '0x0229F777B0fAb107F9591a41d5F02E4e98dB6f2d',
|
|
},
|
|
FallbackOracle: {
|
|
[ePolygonNetwork.mumbai]: ZERO_ADDRESS,
|
|
[ePolygonNetwork.matic]: ZERO_ADDRESS,
|
|
},
|
|
ChainlinkAggregator: {
|
|
[ePolygonNetwork.matic]: {
|
|
AAVE: '0xbE23a3AA13038CfC28aFd0ECe4FdE379fE7fBfc4',
|
|
DAI: '0xFC539A559e170f848323e19dfD66007520510085',
|
|
USDC: '0xefb7e6be8356cCc6827799B6A7348eE674A80EaE',
|
|
USDT: '0xf9d5AAC6E5572AEFa6bd64108ff86a222F69B64d',
|
|
WBTC: '0xA338e0492B2F944E9F8C0653D3AD1484f2657a37',
|
|
WMATIC: '0x327e23A4855b6F663a28c5161541d69Af8973302',
|
|
USD: '0xF9680D99D6C9589e2a93a78A04A279e509205945',
|
|
},
|
|
[ePolygonNetwork.mumbai]: {
|
|
DAI: ZERO_ADDRESS,
|
|
USDC: ZERO_ADDRESS,
|
|
USDT: ZERO_ADDRESS,
|
|
WBTC: ZERO_ADDRESS,
|
|
WMATIC: ZERO_ADDRESS,
|
|
USD: ZERO_ADDRESS,
|
|
},
|
|
},
|
|
ReserveAssets: {
|
|
[ePolygonNetwork.matic]: {},
|
|
[ePolygonNetwork.mumbai]: {},
|
|
},
|
|
ReservesConfig: {},
|
|
ATokenDomainSeparator: {
|
|
[ePolygonNetwork.mumbai]: '',
|
|
[ePolygonNetwork.matic]: '',
|
|
},
|
|
WETH: {
|
|
[ePolygonNetwork.mumbai]: ZERO_ADDRESS,
|
|
[ePolygonNetwork.matic]: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
|
|
},
|
|
WrappedNativeToken: {
|
|
[ePolygonNetwork.mumbai]: ZERO_ADDRESS,
|
|
[ePolygonNetwork.matic]: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270',
|
|
},
|
|
ReserveFactorTreasuryAddress: {
|
|
[ePolygonNetwork.mumbai]: ZERO_ADDRESS,
|
|
[ePolygonNetwork.matic]: '0x7734280A4337F37Fbf4651073Db7c28C80B339e9',
|
|
},
|
|
IncentivesController: {
|
|
[ePolygonNetwork.mumbai]: '0xd41aE58e803Edf4304334acCE4DC4Ec34a63C644',
|
|
[ePolygonNetwork.matic]: '0x357D51124f59836DeD84c8a1730D72B749d8BC23',
|
|
},
|
|
};
|