/bfa-token

Primary LanguageJavaScript

BitFinance Access Token

This is a repository of a crowdsale contract created for BitFinance Token sale written by StartupCraft Inc. for BitFinance ICO

Resources:

  1. OnePager: http://www.bitfinance.com/files/One-Pager.pdf
  2. WhitePaper: http://www.bitfinance.com/files/One-Pager.pdf
  3. Investigation results: https://docs.google.com/document/d/1Yt_fvr-uJGD0D7WmUGbdjCYzJ2OAXPfqnT1FNDqz24Q
  4. Security concerns: https://docs.google.com/document/d/12iR6RybAS3-x-cInM5cVrThj23fgEr_2ZghivWN--dc/edit#heading=h.y1impqo3uqnt

TODO:

  1. analyse Solidity 0.4.13 - 0.4.21 versions
  2. Test MultiSigWallet + Token + Crowdsale in Mist and Rinkeby
  3. update with our own article "How to Participate in Token Sale sample: https://blog.matryx.ai/matryx-public-token-sale-how-to-participate-tips-on-staying-safe-4270017df0f6 ""
Total Supply: 1,000,000,000 BFA
Name: BFAToken
Symbol: BFA
Ether Cap: 219,058 Eth (at ETH = $456.5)

Requirements

npm/node eth testrpc truffle

Install

  1. install testrpc
yarn global add ganache-cli

  1. Run testrpc chain

ex

testrpc -b 1.5 --account="0xc7dcd9e96b41cb0f5d3d519550966fc36e9472f92be7d16af3638e600a48d588,2000000000000000000000000" --account="0xb6485e6830a5d9aff97fa9d799c16aa9e387a2eea684c4b7d2c9f656798e2710,15000000000000000000000000"
  1. Open separate project console tab and Run
truffle compile && truffle migrate
  1. Kill network connection to reset GAS limits
kill -9 $(lsof -ti :8545)
  1. Set test bool to true in /migrations/2_deploy_contracts.js Run truffle tests

yarn run test

Author: Volodymyr Katanskyi ( https://www.startupcraft.io/ )

Credits: TokenMarket ( https://tokenmarket.net ) Matryx ( https://tokenmarket.net/blog/matryx-token-and-token-sale-smart-contract-audit/ )