mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Finish sender testing
This commit is contained in:
parent
63680f251a
commit
4a9fb6d9dd
|
@ -23,20 +23,20 @@ module.exports = {
|
|||
forkNetwork: "1"
|
||||
},
|
||||
networks: {
|
||||
hardhat: { // mainnet forking
|
||||
forking: {
|
||||
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||
blockNumber: 12240294,
|
||||
},
|
||||
blockGasLimit: 12000000,
|
||||
},
|
||||
// hardhat: { // matic forking
|
||||
// hardhat: { // mainnet forking
|
||||
// forking: {
|
||||
// url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
|
||||
// blockNumber: 13317966,
|
||||
// url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||
// blockNumber: 12240294,
|
||||
// },
|
||||
// blockGasLimit: 12000000,
|
||||
// },
|
||||
hardhat: { // matic forking
|
||||
forking: {
|
||||
url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
|
||||
blockNumber: 13317966,
|
||||
},
|
||||
blockGasLimit: 12000000,
|
||||
},
|
||||
kovan: {
|
||||
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||
accounts: [`0x${PRIVATE_KEY}`]
|
||||
|
|
|
@ -252,18 +252,17 @@ describe("Migrator", function() {
|
|||
const receipt = await tx.wait()
|
||||
})
|
||||
|
||||
// it("test settle 3", async function() {
|
||||
// const tokens = [usdc, usdt, weth, wbtc]
|
||||
// const amts = [
|
||||
// ethers.utils.parseUnits('500000', 6),
|
||||
// ethers.utils.parseUnits('40000', 6),
|
||||
// ethers.utils.parseEther('1000'),
|
||||
// ethers.utils.parseUnits('25', 8)
|
||||
// ]
|
||||
it("test settle 3", async function() {
|
||||
const tokens = [weth, wbtc, aave]
|
||||
const amts = [
|
||||
ethers.utils.parseEther('2000'),
|
||||
ethers.utils.parseUnits('25', 8),
|
||||
ethers.utils.parseEther('80')
|
||||
]
|
||||
|
||||
// const tx = await migrator.settle(tokens, amts)
|
||||
// const receipt = await tx.wait()
|
||||
const tx = await migrator.settle(tokens, amts)
|
||||
const receipt = await tx.wait()
|
||||
|
||||
// // console.log(receipt)
|
||||
// })
|
||||
// console.log(receipt)
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user