Skip to content

Ethereum smart contract for LUNA, an ERC-20 dividend bearing token by

Notifications You must be signed in to change notification settings

Shootle/ico-alpha

Repository files navigation

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

About

Ethereum smart contract for LUNA, an ERC-20 dividend bearing token by

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published