mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added MATIC token to types
This commit is contained in:
parent
ca1df823ea
commit
016cdacc5f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user