Giter VIP home page Giter VIP logo

liftoken's Introduction

Líf Token

Líf is the token of the Winding Tree platform.

Líf is a SmartToken, based in the ERC20 standard with extra methods to send value and data on transfers and approvals, allowing the execution of calls in those methdos too.

This repository also has all the contracts related with the Token Generation Event (TGE), an strategy that combines a crowdsale, a market validation mechanism and vested payments.

Build Status Coverage Status

Requirements

Node v7.6 or higher (versions before 7.6 do not support async/await that is used in the LifToken tests)

Install

npm install

Contracts

  • SmartToken: Token based in the ERC20 standard with extra methods to transfer value and data and execute a call on transfer. Uses OpenZeppelin StandardToken.
  • LifToken: Smart token for the Winding Tree platform. Uses SmartToken and OpenZeppelin MintableToken and Pausable contracts.
  • LifChannels: Implementation of simple state channels for Lif token holders.
  • LifCrowdsale: Implementation of the Lif Token Generation Event (TGE) Crowdsale: A 2 week fixed price, uncapped token sale, with a discounted rate for contributions during the private presale and a Market Validation Mechanism that will receive the funds over the USD 10M soft cap.
  • LifMarketValidationMechanism (MVM): holds the ETH received during the TGE in excess of $10M for a fixed period of time (24 or 48 months depending on the total amount received) releasing part of the funds to the foundation in a monthly basis with a distribution skewed towards the end (most of the funds are released by the end of the MVM lifetime). Token holders can send their tokens to the MVM in exchange of eth at a rate that complements the distribution curve (the rate is higher at the beginning of the MVM and goes towards 0 by the end of it).
  • VestedPayment.sol: Handles two time-locked payments: The 5% extra tokens that the foundation receives for long-term funding (starts after the MVM finishes, with same duration as the MVM: 2 or 4 years) and the 12.8% extra tokens that the founders receive (1y cliff, 4y total). Both are created during the Crowdsale finalization.

Test

  • To run all tests: npm test

  • To run a specific test: npm test -- test/Crowdsale.js

There are also two environment variables (GEN_TESTS_QTY and GEN_TESTS_TIMEOUT) that regulate the duration/depth of the property-based tests, so for example:

GEN_TESTS_QTY=50 GEN_TESTS_TIMEOUT=300 npm test

Will make the property-based tests in test/CrowdsaleGenTest.js to run 50 examples in a maximum of 5 minutes

License

Líf Token is open source and distributed under the GPL v3 license.

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.