All Projects → lukso-network → rICO-js

lukso-network / rICO-js

Licence: other
Reversible ICO prototype written in JavaScript for exploration and testing.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to rICO-js

Cryptocurrencyawesome
Cryptocurrency study materials resources
Stars: ✭ 118 (+436.36%)
Mutual labels:  ico
data-api
Retrieve data from ICObench
Stars: ✭ 28 (+27.27%)
Mutual labels:  ico
ICNS2ICO
ICNS2ICO lets you easily convert icons from the Apple's ICNS format to the Windows ICO format.
Stars: ✭ 17 (-22.73%)
Mutual labels:  ico
Awesome Token Sale
Curated list of token sale resources / ICO resources
Stars: ✭ 149 (+577.27%)
Mutual labels:  ico
Awesome Blockchain Kor
<블록체인의 정석>, <하이퍼레저 블록체인 개발> 소스코드 및 참고자료 저장소
Stars: ✭ 243 (+1004.55%)
Mutual labels:  ico
rICO-smart-contracts
Smart contracts for the Reversible ICO (rICO)
Stars: ✭ 38 (+72.73%)
Mutual labels:  ico
Backend Ico Dashboard
Free & open-source dashboard for your next ICO, crowdsale or tokensale
Stars: ✭ 110 (+400%)
Mutual labels:  ico
icoextract
Extract icons from Windows PE files (.exe/.dll)
Stars: ✭ 56 (+154.55%)
Mutual labels:  ico
ethtoken.py
Ethereum ERC20 Token Interface, in Python
Stars: ✭ 40 (+81.82%)
Mutual labels:  ico
windows-git-folder-icon
Icons for windows git repository folders. Different versions are available for each Windows iteration.
Stars: ✭ 30 (+36.36%)
Mutual labels:  ico
Krypton
Free Bulma ICO / Crypto template
Stars: ✭ 155 (+604.55%)
Mutual labels:  ico
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+977.27%)
Mutual labels:  ico
awesome-ico-truths
Awesome Initial Coin Offerings (ICO) Truths - The Art of the Steal - The Scammers' Big Lies ++ ICO tokens are like bitcoins, ICOs are like IPOs, ICO White Papers are like "Due Diligence" Inverstor Prospectus, ...
Stars: ✭ 32 (+45.45%)
Mutual labels:  ico
Neo Ico Template
An ICO Template for NEO projects
Stars: ✭ 119 (+440.91%)
Mutual labels:  ico
elephicon
A GUI wrapper for png2icons.
Stars: ✭ 90 (+309.09%)
Mutual labels:  ico
Awesome Crowdsales
A curated list of ICO repositories that produced ERC20/ERC223 tokens
Stars: ✭ 113 (+413.64%)
Mutual labels:  ico
vue-icon-font
IconFont plugin for Vuejs
Stars: ✭ 25 (+13.64%)
Mutual labels:  ico
to-ico
Convert PNG to ICO in memory
Stars: ✭ 115 (+422.73%)
Mutual labels:  ico
frontend-ico-dashboard
Free & open-source dashboard for your next ICO, crowdsale or tokensale
Stars: ✭ 79 (+259.09%)
Mutual labels:  ico
ethereum-crowdsale
0xcert protocol crowdsale contracts for Ethereum blockchain.
Stars: ✭ 15 (-31.82%)
Mutual labels:  ico

Refundable ICO (RICO) prototype

This repository exists to test the refundable ICO idea, described in the technical white paper for the LUKSO Blockchain.

The base idea is as follows:

  1. Allocation phase: Investor contribute ETH and receive ICO commitment tokens (LIA) to prrof their participation.
  • Investors can refund any time by sending back the LIA, and will recieve back their ETH.
  1. Distribution phase: ETH flow to the ICO project over a fixed period of time
  • Investors can refund, but will only get the part of the ETH back, based on the current point in time, in the distribution period.
  • Refund works by sending the LIA back to the RICO smart contract
  • The RICO smart contract will send ETH and locked LIA (not refundable again) back to the sender.
  • The ratio of refund is always based on time passed inside the distribution period, meaning if an investor joins late, he will immediately only be able to refund parts of their investment.

Manual testing

Simple load the test.html in your browser, load the console and create a new RICO instance with a certain LIA/ETH ratio:

var rico = new RICO(1); // ETH/ LIA ratio: 1
// Hardcoded: total LIA 10000, total blocks in RICO: 1000

And run test manually by committing from and refunding from accounts:

var project = {
    ETH: 0
};

var accounts = [{
    ETH: 100,
    LIA: 0,
    LIAL: 0
},{
    ETH: 200,
    LIA: 0,
    LIAL: 0
},{
    ETH: 1000,
    LIA: 0,
    LIAL: 0
},{
    ETH: 8000,
    LIA: 0,
    LIAL: 0
}];

// commit 100 ETH
rico.commit(accounts[0], 100);

// check the current status
rico.log();

// pass time
rico.currentBlock = 500;

// check the current status
rico.log();

// refund 50 LIA
rico.refund(accounts[0], 50);

// check the current status
rico.log();

Run tests

Go into your repository and run:

$ npm install
$ npm install -g mocha // make sure mocha is globally installed

To run tests, run:

$ npm test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].