mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Add pool argument in add-market-to-registry
This commit is contained in:
parent
aa6ab1d4ee
commit
1be49f336d
|
@ -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
25974
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user