Added MATIC token to types

This commit is contained in:
Zer0dot 2021-02-19 17:38:54 -05:00
parent ca1df823ea
commit 016cdacc5f

View File

@ -227,6 +227,7 @@ export interface iAssetBase<T> {
UniWBTCUSDC: T;
UniYFIWETH: T;
BptWBTCWETH: T;
MATIC: T;
}
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
@ -281,6 +282,16 @@ export type iLpPoolAssets<T> = Pick<
| 'BptWBTCWETH'
>;
export type iMaticPoolAssets<T> = Pick<
iAssetsWithoutUSD<T>,
| 'DAI'
| 'USDC'
| 'USDT'
| 'WBTC'
| 'WETH'
| 'MATIC'
>;
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
export type iAavePoolTokens<T> = Omit<iAavePoolAssets<T>, 'ETH'>;
@ -468,6 +479,11 @@ export interface IAaveConfiguration extends ICommonConfiguration {
export interface ILpConfiguration extends ICommonConfiguration {
ReservesConfig: iLpPoolAssets<IReserveParams>;
}
export interface IMaticConfiguration extends ICommonConfiguration {
ReservesConfig: iMaticPoolAssets<IReserveParams>;
}
export interface ITokenAddress {
[token: string]: tEthereumAddress;
}