fix: Add pool argument in add-market-to-registry

This commit is contained in:
Lasse Herskind 2021-08-02 19:41:36 +02:00
parent aa6ab1d4ee
commit 1be49f336d
4 changed files with 25920 additions and 65 deletions

View File

@ -50,7 +50,7 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
[ePolygonNetwork.mumbai]: 'https://rpc-mumbai.maticvigil.com',
[ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
[eArbitrumNetwork.rinkeby]: `https://arb-rinkeby.g.alchemy.com/v2/${ALCHEMY_KEY}`,
[eArbitrumNetwork.rinkeby]: `https://rinkeby.arbitrum.io/rpc`,
};
export const NETWORKS_DEFAULT_GAS: iParamsPerNetwork<number> = {

25974
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,12 @@ task('arbitrum:deposit:wbtc', 'Deposit WBTC into the arbitrum market').setAction
// WBTC
const wbtc = tokens['WBTC'];
const depositAmount = parseUnits('5', 8);
await wbtc.connect(signer).mint(depositAmount);
const expectedGas = await wbtc.connect(signer).estimateGas.mint(depositAmount);
console.log(`Expected gas: ${expectedGas}, ${localBRE.network.config.gas}`);
const mintTx = await wbtc.connect(signer).mint(depositAmount);
console.log(`Minted tokens: ${mintTx.hash}`);
await wbtc.connect(signer).approve(lendingPool.address, depositAmount);
const depositTx = await lendingPool
.connect(signer)

View File

@ -40,7 +40,7 @@ task('add-market-to-registry', 'Adds address provider to registry')
) {
console.log('- Deploying a new Address Providers Registry:');
await DRE.run('full:deploy-address-provider-registry', { verify });
await DRE.run('full:deploy-address-provider-registry', { verify, pool });
providerRegistryAddress = (await getLendingPoolAddressesProviderRegistry()).address;
providerRegistryOwner = await (await getFirstSigner()).getAddress();