Coder Social home page Coder Social logo

locked-pool's Introduction

Token Lock

Lock ERC-20 token for a pre-defined amount of time


Contract

A contract for locking balances of a designated ERC-20 token for a pre-defined amount of time.

  1. Deposit period: Anyone can deposit the designated token, receiving an equivalent balance of non-transferrable lock claim token. Withdrawals are possible.
  2. Lock period: No more deposits and withdrawals are possible.
  3. After the lock period: Tokens can be withdrawn in redemption for lock claim tokens.

Setup

Configuration

The contract is initialized with the following set of parameters:

  • owner: Address of the owner
  • tokenAddress: Address of the token to lock
  • unlockTimePoolOfMarket: Lock of pool market duration in seconds, period starts after the deployment
  • unlockTimePoolOfEmployments: Lock of pool employments duration in seconds, period starts after the deposit deadline

Getting Start

  1. git clone https://github.com/chingunee/locked-pool.git

  2. npm install

  3. create a .env file, and copy and paste .env.template

  4. npx hardhat compile

  5. npx hardhat run scripts/deploy.js --network polygon

  6. npx hardhat verify --network polygon contract-address 'param1' 'param2' 'param3' 'param4'

License

Created under the MIT license.

locked-pool's People

Contributors

chingunee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.