Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Dec 5, 2023
1 parent fce1cdd commit 0fa96c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrations/7_pol_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ async function migrateMatic(governance, depositManager, mintAmount) {
console.log('MaticToken minted to DepositManager:', result.tx)

// Migrate MATIC.
/*
// TODO: Understand why this call reverts.
result = await governance.update(
depositManager.address,
depositManager.contract.methods.migrateMatic(mintAmount).encodeABI()
)
console.log('Migrate MATIC tokens to POL tokens:', result.tx)
*/
}

module.exports = async function(deployer, _, _) {
Expand All @@ -90,7 +93,7 @@ module.exports = async function(deployer, _, _) {
const maticAmountToMintAndMigrateInDepositManager = oneEther.mul(web3.utils.toBN('1000000000')).toString() // 100 ethers
await migrateMatic(governance, newDepositManager, maticAmountToMintAndMigrateInDepositManager)

const newDepositManagerPOLBalance = await polToken.balanceOf(newDepositManager.address).call()
const newDepositManagerPOLBalance = await polToken.methods.balanceOf(newDepositManager.address).call()
utils.assertBigNumberEquality(newDepositManagerPOLBalance, maticAmountToMintAndMigrateInDepositManager)

// Update contract addresses.
Expand Down

0 comments on commit 0fa96c1

Please sign in to comment.