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

Commit

Permalink
last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Jan 2, 2024
1 parent f6f1116 commit 08c0a12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions migrations/7_pol_migration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const ethUtils = require('ethereumjs-util')
const assert = require('assert')

const utils = require('./utils')
const contractAddresses = require('../contractAddresses.json')
Expand Down Expand Up @@ -73,6 +74,9 @@ async function migrateMatic(governance, depositManager, mintAmount) {
depositManager.contract.methods.migrateMatic(mintAmount).encodeABI()
)
console.log('Migrate MATIC tokens to POL tokens:', result.tx)
const newDepositManagerPOLBalance = await polToken.contract.methods.balanceOf(newDepositManager.address).call()
assertBigNumberEquality(newDepositManagerPOLBalance, maticAmountToMintAndMigrateInDepositManager)
*/
}

Expand Down Expand Up @@ -104,9 +108,6 @@ 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.contract.methods.balanceOf(newDepositManager.address).call()
assertBigNumberEquality(newDepositManagerPOLBalance, maticAmountToMintAndMigrateInDepositManager)

// Update contract addresses.
contractAddresses.root.NewDepositManager = newDepositManager.address
contractAddresses.root.PolToken = polToken.address
Expand Down

0 comments on commit 08c0a12

Please sign in to comment.