Giter VIP home page Giter VIP logo

matryxtoken's Introduction

Matryx Token

A set of smart contracts that creates an ERC20 token for Matryx.

Actual Mainnet MatryxToken Statistics:

Total Supply: 34,432,385.52 MTX
Name: MatryxToken
Symbol: MTX
Ether Raised: 12,382 ETH / ~$4 million (with a cost basis of $320/eth during the sale)
Contract Address: 0x0AF44e2784637218dD1D32A322D44e603A8f0c6A

*Note that Matryx burned 279,726,879.48 MTX tokens to the first thousand 0x addresses since we did not raise the full amount and it was the right thing to do for our participants. To view the burn transactions please see burnTransactions.txt file for the transaction hashes and see for yourself or visit etherscan. The Total Supply is actually 34,432,385.52 MTX after the burn. The previous total supply before the burn was 314,159,265 MTX. An article summary is here: https://blog.matryx.ai/all-in-all-the-ins-and-outs-of-the-mtx-supply-3e5837b364e Thank you.

Default Code for Matryx Token

Default Supply

Total Supply: 314,159,265 MTX
Name: MatryxToken
Symbol: MTX
Ether Cap: 161,803 Eth

Requirements

npm/node eth testrpc truffle

Install

npm i

Compile Contracts

truffle compile

Deploy Contracts

Set unix epoch for start and end time

truffle migrate

Test

run via npm script

npm run test

or

install testrpc

npm install -g ethereumjs-testrpc

Run testrpc chain

ex

testrpc -b 1.5 --account="0xc7dcd9e96b41cb0f5d3d519550966fc36e9472f92be7d16af3638e600a48d588,2000000000000000000000000" --account="0xb6485e6830a5d9aff97fa9d799c16aa9e387a2eea684c4b7d2c9f656798e2710,15000000000000000000000000"

set test bool to true in /migrations/2_deploy_contracts.js run truffle tests

truffle test

matryxtoken's People

Contributors

e-matryx avatar kylelee4c6 avatar miohtama avatar shessenauer avatar villesundell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

matryxtoken's Issues

Do not have default payable function on a token sale

I advise against having a default payable function on token sales.

Rationale: People can send in ETH from exchanges (Coinbase, etc.). Those exchanges cannot handle incoming ERC-20 token transfers. Coinbase customer support won't recover your tokens.

This is general industry knowledge. Selling something, taking money and not able to deliver is something that gets you in trouble with angry customers and regulators. I highly advise forcing a data field value (function name), even a fixed one, so that we can be sure the deposit comes from a proper Ethereum wallet and not a shared wallet. Taking steps towards preventing bad transactions is a part of running responsible token sale.

Forcing a high gas limit value and data field filled in limits this problem. This makes it more cumbersome for people to send in ETH, true. But it is much more safer investor wise, as I have not yet encountered problems with exchanges when enforcing data field and gas limit > 200k

More discussion can be found here:

TokenMarketNet/smart-contracts#53

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.