Git Product home page Git Product logo

ico-alpha's Introduction

Ploutos Capital ICO: LUNA

LUNA is a fund that provides a diversified exposure to the crypto market. On top of that it uses part of the fund as liquidity for low risk automated trading (such as arbitrage, market making, peer-2-peer lending).

A detailed description of the inner workings of the fund can be found in this Google Document.

Stake in the LUNA fund is managed through an ERC20 token, the underlying governing smart contract is stored in this repo (github.com/ploutos-capital/ico-alpha) (contracts/Ico.sol).

Smart contract TODO

  • Setup ERC 20 token
    • Patch balanceOf to include custom dividend logic
    • Patch transfer to include custom dividend logic
  • Add ICO functionality
    • Register limits (time frame, hard cap)
    • Add participation function (+ fallback)
  • Add dividend functionality
    • Calculate how much tokens to distribute as dividends
    • Register new dividend period with added tokens + token supply (including burned tokens)
    • Implement pure helper that traverses all divididend periods to figure out owed dividends
    • Add drip
  • Add function to burn tokens (will only be used by us when the fund buys all remaning "on sale "tokens)
    • Burn
    • Subtract from global token supply, aum and user balance

Deployment and testing

  • Test locally on a private blockchain
    • Basic functionality
    • Dividend calculations
    • Security
  • Test on Ropsten (public Ethereum testnet)
    • Basic functionality
    • Dividend calculations
    • Security
  • Launch contract on main net

Install development environment

# cd into this cloned repo
cd ico-alpha
# install truffle
npm i -g truffle
# install project dependencies
npm i
# start truffle dev blockchain
truffle develop
# on the develop commandline, compile & run the contract
migrate --reset

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.