mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
return realT config
This commit is contained in:
parent
41758cd6b0
commit
f1dd3c65be
|
@ -11,6 +11,7 @@ import AaveConfig from '../markets/aave';
|
||||||
import MaticConfig from '../markets/matic';
|
import MaticConfig from '../markets/matic';
|
||||||
import AvalancheConfig from '../markets/avalanche';
|
import AvalancheConfig from '../markets/avalanche';
|
||||||
import AmmConfig from '../markets/amm';
|
import AmmConfig from '../markets/amm';
|
||||||
|
import RealTConfig from '../markets/realT';
|
||||||
|
|
||||||
import { CommonsConfig } from '../markets/aave/commons';
|
import { CommonsConfig } from '../markets/aave/commons';
|
||||||
import { DRE, filterMapBy } from './misc-utils';
|
import { DRE, filterMapBy } from './misc-utils';
|
||||||
|
@ -39,6 +40,8 @@ export const loadPoolConfig = (configName: ConfigNames): PoolConfiguration => {
|
||||||
return AvalancheConfig;
|
return AvalancheConfig;
|
||||||
case ConfigNames.Commons:
|
case ConfigNames.Commons:
|
||||||
return CommonsConfig;
|
return CommonsConfig;
|
||||||
|
case ConfigNames.RealT:
|
||||||
|
return RealTConfig;
|
||||||
default:
|
default:
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Unsupported pool configuration: ${configName} is not one of the supported configs ${Object.values(
|
`Unsupported pool configuration: ${configName} is not one of the supported configs ${Object.values(
|
||||||
|
@ -66,7 +69,10 @@ export const getReservesConfigByPool = (pool: AavePools): iMultiPoolsAssets<IRes
|
||||||
},
|
},
|
||||||
[AavePools.avalanche]: {
|
[AavePools.avalanche]: {
|
||||||
...AvalancheConfig.ReservesConfig,
|
...AvalancheConfig.ReservesConfig,
|
||||||
}
|
},
|
||||||
|
[AavePools.realT]: {
|
||||||
|
...RealTConfig.ReservesConfig,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pool
|
pool
|
||||||
);
|
);
|
||||||
|
|
|
@ -479,6 +479,7 @@ export interface iParamsPerPool<T> {
|
||||||
[AavePools.matic]: T;
|
[AavePools.matic]: T;
|
||||||
[AavePools.amm]: T;
|
[AavePools.amm]: T;
|
||||||
[AavePools.avalanche]: T;
|
[AavePools.avalanche]: T;
|
||||||
|
[AavePools.realT]: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface iBasicDistributionParams {
|
export interface iBasicDistributionParams {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user