HMQ (Humaniq) / ETH Market |
Token Contract | ||
Address: | 🔗 | |
Rate (ETH per unit token): | ||
Maximum amount of tokens that can be bought: | ||
ETH cost to purchase maximum units of tokens: |
HMQ Token Contract | ||
Address: | 🔗 | |
ABI: | ||
Decimals: | ||
Contract | ||
Address: | 🔗 | |
ABI: | ||
Rate (ETH per unit token): | ||
Maximum ETH to purchase tokens: | ||
Maximum amount of tokens that can be sold: | ||
Token Natural Unit Conversion | ||
Amount of tokens: | ||
Amount of tokens as natural unit: |
approve(address _spender, uint256 _value)
function specifying the TokenTrader contract address as the _spender
and the amount of tokens as _value
takerSellAsset(uint256 amountOfTokensToSell)
function specifying the number of tokens you intend to sellapprove(...)
and takerSellAsset(...)
above are in the natural units. You will have to take into account the number of decimal places specified for the token. GNT, for example, has 18 decimal places. 1.23 GNT is 1,230,000,000,000,000,000 in the natural unitcreateTradeContract(address asset, uint256 buyPrice, uint256 sellPrice, uint256 units, bool buysTokens, bool sellsTokens)
function to create the purchase and/or sale contractmakerDepositEther()
function to send some ethers to your newly created TokenTrader contract to purchase assets from Takerstransfer(...)
function to transfer tokens to your newly created TokenTrader contract to sell assets to TakerscreateSaleContract(address asset, uint256 sellPrice, uint256 units, bool sellsTokens)
function to create the sale contracttransfer(...)
function to transfer tokens to your newly created TokenTrader contract to sell assets to Takers