Skip to content
ERC20 contract for Legolas Token
Branch: master
Clone or download
ouziel-slama Merge pull request #3 from snicks1/patch-1
Remove Year Bonus only for pre-sale buyer
Latest commit 8f374d7 Mar 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts initial 2 Mar 2, 2018
migrations
test
.babelrc
.gitignore
README.md Remove Year Bonus only for pre-sale buyer Mar 7, 2018
package-lock.json initial 2 Mar 2, 2018
package.json initial 2 Mar 2, 2018

README.md

LegolasToken

ERC20 contract for Legolas Token.

Based on https://github.com/ConsenSys/Tokens/tree/master/contracts/eip20

Features added to standard ERC20

Lock-Up

The LGO Tokens attributed to the founders, advisors of the ICO will be blocked in the following conditions so that they will not be in a position to use or exchange their LGO Tokens just following the end of the ICO.

Founders: blocked 1 year, then released the second year, 1/12 per month. Advisors: progressively released during 1 year, 1/12 per month.

LGO 2-Year Holding Bonus

Every 6 months during 2 years (4 times), 5% of additional LGO Tokens will be distributed, proportionally, to the LGO Holders whose tokens were issued in the ICO and that have not moved their tokens (including already received bonus tokens) from the initial address.

Test coverage

Prepare environment:

  1. Download and install Ganache (GUI version strictly)
  2. Install truffle npm install truffle -g
  3. Run Ganache
  4. Clone this repo and npm install

Usage

Important! Please run tests separately. Like

truffle test --network ganache test/distributeHolderBonus.test.js

This is because a lot of test cases included business logic tightly connected with time in future. We can increase time in blockchain by evm_increaseTime, but cannot decrease. So please restart Ganache before test running (until the run test script is ready).

You can’t perform that action at this time.