mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
add realT pool config
This commit is contained in:
parent
e32001bc4c
commit
12b1fdf326
helpers
markets/realT
tasks
|
@ -9,6 +9,7 @@ import {
|
|||
import { getEthersSignersAddresses, getParamPerPool } from './contracts-helpers';
|
||||
import AaveConfig from '../markets/aave';
|
||||
import AaveArcConfig from '../markets/aave-arc';
|
||||
import RealTConfig from '../markets/realT';
|
||||
import MaticConfig from '../markets/matic';
|
||||
import AvalancheConfig from '../markets/avalanche';
|
||||
import AmmConfig from '../markets/amm';
|
||||
|
@ -25,7 +26,8 @@ export enum ConfigNames {
|
|||
Matic = 'Matic',
|
||||
Amm = 'Amm',
|
||||
Arc = 'Arc',
|
||||
Avalanche = 'Avalanche'
|
||||
Avalanche = 'Avalanche',
|
||||
RealT = 'RealT',
|
||||
}
|
||||
|
||||
export const loadPoolConfig = (configName: ConfigNames): PoolConfiguration => {
|
||||
|
@ -42,6 +44,8 @@ export const loadPoolConfig = (configName: ConfigNames): PoolConfiguration => {
|
|||
return CommonsConfig;
|
||||
case ConfigNames.Arc:
|
||||
return AaveArcConfig;
|
||||
case ConfigNames.RealT:
|
||||
return RealTConfig;
|
||||
default:
|
||||
throw new Error(
|
||||
`Unsupported pool configuration: ${configName} is not one of the supported configs ${Object.values(
|
||||
|
@ -71,7 +75,10 @@ export const getReservesConfigByPool = (pool: AavePools): iMultiPoolsAssets<IRes
|
|||
},
|
||||
[AavePools.avalanche]: {
|
||||
...AvalancheConfig.ReservesConfig,
|
||||
}
|
||||
},
|
||||
[AavePools.realT]: {
|
||||
...RealTConfig.ReservesConfig,
|
||||
},
|
||||
},
|
||||
pool
|
||||
);
|
||||
|
|
|
@ -47,6 +47,7 @@ export enum AavePools {
|
|||
amm = 'amm',
|
||||
arc = 'arc',
|
||||
avalanche = 'avalanche',
|
||||
realT = 'realT',
|
||||
}
|
||||
|
||||
export enum eContractid {
|
||||
|
@ -473,6 +474,7 @@ export interface iParamsPerPool<T> {
|
|||
[AavePools.amm]: T;
|
||||
[AavePools.arc]: T;
|
||||
[AavePools.avalanche]: T;
|
||||
[AavePools.realT]: T;
|
||||
}
|
||||
|
||||
export interface iBasicDistributionParams {
|
||||
|
|
|
@ -91,7 +91,7 @@ export const CommonsConfig: ICommonConfiguration = {
|
|||
[eEthereumNetwork.main]: undefined,
|
||||
[eEthereumNetwork.tenderly]: undefined,
|
||||
},
|
||||
EmergencyAdminIndex: 1,
|
||||
EmergencyAdminIndex: 0,
|
||||
ProviderRegistry: {
|
||||
[eEthereumNetwork.kovan]: '',
|
||||
[eEthereumNetwork.ropsten]: '',
|
||||
|
|
|
@ -76,6 +76,7 @@ task('full:deploy-lending-pool', 'Deploy lending pool for dev environment')
|
|||
lendingPoolConfiguratorProxy.address
|
||||
);
|
||||
const admin = await DRE.ethers.getSigner(await getEmergencyAdmin(poolConfig));
|
||||
console.log(admin.address);
|
||||
// Pause market during deployment
|
||||
await waitForTx(await lendingPoolConfiguratorProxy.connect(admin).setPoolPause(true));
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import { usingTenderly } from '../../helpers/tenderly-utils';
|
|||
task('pro:mainnet', 'Deploy development enviroment')
|
||||
.addFlag('verify', 'Verify contracts at Etherscan')
|
||||
.setAction(async ({ verify }, DRE) => {
|
||||
const POOL_NAME = ConfigNames.Arc;
|
||||
const POOL_NAME = ConfigNames.RealT;
|
||||
await DRE.run('set-DRE');
|
||||
|
||||
// Prevent loss of gas verifying all the needed ENVs for Etherscan verification
|
||||
|
|
Loading…
Reference in New Issue
Block a user