This repository hosts the smart contracts that implement the migration logic for veIB from FTM to OP
# Install project dependencies
npm install
Please setup your own .env
file based on the variables in env-template
file.
# Format code
npm run format
# Unit test coverage
npm run coverage
- In
hardhat.config.ts
, fill in theveIB
address for OP - Execute:
npx hardhat deploy --tags deploy-dest --network optimism
- In
001_deploy_src_chain.ts
, fill in thereceiver
address (veMigrationDest deployed in Step 2) - Execute:
npx hardhat deploy --tags deploy-src --network fantom
- In
002_setup_dest.ts
, fill in thesender
(veMigrationSrc in Step 4),prepaidFees
- Execute:
npx hardhat deploy --tags setup-dest --network fantom
- Make sure veMigrationDest has minter access to IB token on OP.
npx hardhat etherscan-verify --network optimism
npx hardhat etherscan-verify --network fantom