mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Add lending provider kovan address at deploy-UniswapRepayAdapter task
This commit is contained in:
parent
a21757d0fc
commit
c22533f139
|
@ -2,6 +2,7 @@ import { task } from 'hardhat/config';
|
|||
|
||||
import { UniswapRepayAdapterFactory } from '../../types';
|
||||
import { verifyContract } from '../../helpers/etherscan-verification';
|
||||
import { getFirstSigner } from '../../helpers/contracts-getters';
|
||||
|
||||
const CONTRACT_NAME = 'UniswapRepayAdapter';
|
||||
|
||||
|
@ -16,12 +17,15 @@ task(`deploy-${CONTRACT_NAME}`, `Deploys the UniswapRepayAdapter contract`)
|
|||
|
||||
console.log(`\n- UniswapRepayAdapter deployment`);
|
||||
const args = [
|
||||
'0x9fe532197ad76c5a68961439604c037eb79681f0',
|
||||
'0xfcd87315f0e4067070ade8682fcdbc3006631441',
|
||||
'0x88757f2f99175387aB4C6a4b3067c77A695b0349', // lending provider kovan address
|
||||
'0xfcd87315f0e4067070ade8682fcdbc3006631441', // uniswap router address
|
||||
];
|
||||
const uniswapRepayAdapter = await new UniswapRepayAdapterFactory(
|
||||
await localBRE.ethers.provider.getSigner()
|
||||
).deploy(args[0], args[1]);
|
||||
console.log('before');
|
||||
const uniswapRepayAdapter = await new UniswapRepayAdapterFactory(await getFirstSigner()).deploy(
|
||||
args[0],
|
||||
args[1]
|
||||
);
|
||||
console.log('afta');
|
||||
await uniswapRepayAdapter.deployTransaction.wait();
|
||||
console.log('uniswapRepayAdapter.address', uniswapRepayAdapter.address);
|
||||
await verifyContract(uniswapRepayAdapter.address, args);
|
||||
|
|
Loading…
Reference in New Issue
Block a user