Skip to content

bokkypoobah/OpenANXTokenOld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenANX Token

Refer to http://openanx.org/ for further information.

There is a subreddit at https://www.reddit.com/r/OpenANX/, and a slack at https://openanx.slack.com/.



Table of contents



Requirements

  • Token Identifier

    • symbol OAX
    • name openANX Token
    • decimals 18
  • Tranche 1 30,000,000 (30%) OAX Crowdsale Dates

    • START_DATE = 1498136400 Thursday, 22-Jun-17 13:00:00 UTC / 1pm GMT 22 June 2017
    • END_DATE = 1500728400 Saturday, 22-Jul-17 13:00:00 UTC / 1pm GMT 22 July 2017
  • Total of 100,000,000 OAX tokens

    • Tranche 1 30,000,000 (30%) OAX Crowdsale
      • Soft cap of 13,000,000 OAX (ETH equivalence of USD 9,750,000)
      • Hard cap of 30,000,000 OAX (ETH equivalence of USD 22,500,000)
      • Tokens from precommitments funded via fiat and other currencies will be included in this tranche
    • Tranche 2 30,000,000 (30%) OAX - locked for 1 year from token launch for Additional Token Sale (ATS)
      • 30,000,000 Tranche 2 token sale - Additional Token Sale (ATS). These tokens are subject to a lock-up for 1 year from token launch
    • 20,000,000 (20%) OAX retained by the foundation, locked for 2 years from token launch
    • 20,000,000 allocated to founding supporters (directors, advisors and early backers) of the foundation, consisting of:
      • 14,000,000 (70%) locked for 1 year from token launch
      • 6,000,000 (30%) locked for 2 years from token launch
  • OAX Token Price

    • The price for an OAX token will be set as the equivalence of USD 0.75 ETH based on ETH/USD @ 12:00 GMT Jun 21 2017
    • The indicative price per OAX token is 0.00290923 ETH as of 8 June 2017
      • 1 OAX = 0.00290923 ETH
      • 1 ETH = 1 / 0.00290923 = 343.733565238912015 OAX
    • This will be encoded as an unsigned integer, 1,000 ETH = 343734 OAX with six significant figures tokensPerKEther = 343734
  • Precommitments

    • Some participants will be able to purchase the crowdsale tokens through precommitments using fiat and other currencies
    • openANX will allocate the tokens for these participants prior to the public crowdsale commencement
  • Minimum Funding And Refunds

    • There is no minimum funding level in the smart contract as the precommitments already exceed the minimum funding level
    • There is therefore no requirements for this crowdsale contract to provide refunds to participants
      • ETH contributed to the crowdsale smart contract will be immediately transferred into a wallet specified by openANX
  • Crowdsale Wallet

    • The wallet receiving the ethers during the crowdsale has to be specifed as a parameter during the deployment of the crowdsale contract
    • This wallet address can be changed at any time during the crowdsale period
  • Minimum and Maximum Contributions

    • There is the ability to set a minimum and maximum contribution per transaction. Set one or both of these to 0 if this restriction is not required
  • Soft And Hard Cap

    • There will be a soft cap and a hard cap specified in the crowdsale smart contract
    • openANX will be able to execute the finalise() function to close the crowdsale once the number of issued tokens exceeds the soft cap
    • openANX will also be able to execute the finalise() function after the crowdsale end date if the soft cap is not reached
  • finalise() The Crowdsale

    • openANX calls finalise() to close the crowdsale, either after the soft cap is breached to the end of the crowdsale period, or after the crowdsale end date
    • The finalise() function will allocate the 1 and 2 year locked tokens, unsold tranche1 tokens and tranche2 tokens
  • KYC

    • Participants can contribute to the crowdsale by sending ETH to the OAX 'openANX Token' smart contract and will be issued OAX tokens
    • Participants will only be able to transfer their issued OAX tokens after being successfully KYC verified by openANX and unless otherwise agreed by Open ANX Foundation, in no circumstance shall such transfer be possibly prior to the Release Date scheduled for July 29th (being one week after the scheduled end of the Contribution Window).
    • There will be no refund if the KYC verification is determined to be unsuccessful
    • The KYC smart contract will just encode a simple Yes/No on an accounts KYC status
    • Once KYC approved, an account cannot be KYC disapproved
    • OAX tokens are otherwise able to be transferred freely without further KYC requirements
  • Unsold Tranche 1 Tokens

    • Any tokens unsold from the tranche 1 quote will be locked away from 1 year along with the tranche 2 tokens
  • Locked Tokens

    • Accounts holding 1 or 2 year locked tokens will also be able to participant in the public crowdsale
  • Burn function

    • Work out who can burn the tokens - owner only, or anyone


TODO

  • BK Complete KYC functions
  • BK Testing different scenarios
    • Scenario where funding below soft cap and above soft cap
    • Unlocking of tokens in 1 year and 2 years
    • Public crowdsale participant can also have locked tokens
  • BK Develop and test token contract upgrade path
  • BK Security audit
  • JB Security audit


Operations On The Crowdsale Contract

Following are the functions that can be called at the different phases of the crowdsale contract

Anytime

  • Owner can call setWallet(...) to set the wallet address

  • Owner can call kycVerify(...) to verify participants, but this should be done after the crowdsale as the participants can transfer tokens immediately after being verified

Before Start Date

  • Owner can call setTokensPerKEther(...) to set the token issuance rate
  • Owner can call addPrecommitment(...) to add precommitment balances

After Start Date And Before End Date Or Finalised

  • Participants can send ETH to the default () function and receive tokens
  • Owner can call finalise() if soft cap breached or we are past the end date

After Finalised

  • Owner calls kycVerify(...) to verify participants, but this should be done after the crowdsale as the participants can transfer tokens immediately after being verified
  • Participant can call the normal transfer(...), approve(...) and transferFrom(...) to transfer tokens

After 1 Year And 2 Years

  • Participants with locked tokens can called the lockedTokens.unlock1Y() and lockedTokens.unlock2Y() to unlock their tokens


Testing

See test for details.



Deployment Checklist

  • Check START_DATE and END_DATE
  • Check Solidity release history for potential bugs
  • Deploy contract to Mainnet with specified wallet address as the deployment parameter
  • Verify the source code on EtherScan.io


Enjoy. (c) OpenANX and BokkyPooBah / Bok Consulting Pty Ltd 2017. The MIT Licence.

About

OpenANX Decentralised Exchange Token Sale Smart Contract - moved to https://github.com/openanx/OpenANXToken

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published