Skip to content

smd00/lock-erc20-forever

Repository files navigation

Lock ERC20 Forever

Deployment Instructions

  • Deploy Token.sol contract
npx hardhat run scripts/deployToken.js --network mumbai
  • Update deployLockForever.js token contract address
  • Deploy LockForever.sol contract
npx hardhat run scripts/deployLockForever.js --network mumbai

Verify contract on Etherscan:

  • Flatten files
npx hardhat flatten
  • Remove license from flat file // SPDX-License-Identifier: UNLICENSED

Usage Instructions

  • Paste flatten files to Remix
  • Connect MetaMask
  • Deploy & Run Transactions
  • Select Contract: IERC20
  • At Address: (0xTokenAddress)
  • approve(0xLockForeverAddress, 800000000000000000000000000)
  • Select Contract: LockForever
  • lockForever(1000000000000000000000000)
  • currentLockBalance()
  • lockBalance(0xOwnerWalletAddress)
  • lockRecordIds(0xOwnerWalletAddress)
  • lockRecordsMapping(1)

About

Solidity smart contract to lock an ERC20 forever (when burn is not available).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published