Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.07 KB

File metadata and controls

40 lines (28 loc) · 1.07 KB

Simple Vault contract to migrate from Lumerin Vesting contract

  1. Pre-req install and update local packages
yarn 
  1. Update the .env file with the variables

  2. Deploy the SimpleVault contract (from new owner address)

yarn hardhat run  --network mainnet scripts/0-deploy-vault.ts
  1. Set privatekey in .env file with private key of the owner of old vesting contract

  2. Withdraw all tokens from old vesting contract by using withdraw-lumerin.ts

yarn hardhat run  --network mainnet scripts/1-withdraw-lumerin.ts
  1. Run get-balances.ts to get the addresses and balances of the old vesting contract
yarn hardhat run  --network mainnet scripts/2-get-balances.ts
  1. Check "address-amounts.json" file for the address and amount of tokens to be distributed

  2. Distribute tokens to new vault contract by using distribute-lumerin.ts

yarn hardhat run  --network mainnet scripts/3-distribute-lumerin.ts
  1. Check the new vesting contract for the distributed tokens
yarn hardhat run  --network mainnet scripts/4-check-vault.ts