Error 9cf38cf2| inputs | 0 | address | exchange | |
| 1 | uint256 | errorCode |
ExchangeActiveChanged f7477d39| inputs | 0 | address | exchange | |
| 1 | bool | isActive | ||
| 2 | address | by |
ExchangeBuy 666f2a1e| inputs | 0 | address | exchange | |
| 1 | address | who | ||
| 2 | uint256 | token | ||
| 3 | uint256 | eth |
ExchangeFeeUpdated 8de091a3| inputs | 0 | address | exchange | |
| 1 | address | rewards | ||
| 2 | uint256 | feeValue | ||
| 3 | address | by |
ExchangePricesUpdated 1c12d27d| inputs | 0 | address | exchange | |
| 1 | uint256 | buyPrice | ||
| 2 | uint256 | sellPrice | ||
| 3 | bool | usePriceTicker | ||
| 4 | address | by |
ExchangeReceivedEther 64421356| inputs | 0 | address | exchange | |
| 1 | address | sender | ||
| 2 | uint256 | amount |
ExchangeSell 9396518c| inputs | 0 | address | exchange | |
| 1 | address | who | ||
| 2 | uint256 | token | ||
| 3 | uint256 | eth |
ExchangeWithdrawEther e44fa178| inputs | 0 | address | exchange | |
| 1 | address | recipient | ||
| 2 | uint256 | amount | ||
| 3 | address | by |
ExchangeWithdrawTokens 33a424bf| inputs | 0 | address | exchange | |
| 1 | address | recipient | ||
| 2 | uint256 | amount | ||
| 3 | address | by |
Exchange asset 38d52e0fassetBalance c66f2455Returns ERC20 balance of an exchange
| outputs | 0 | uint256 |
buy d6febde8Buy tokens for ether at specified price. Payment needs to be sent along with the call, and should equal amount * price. Price should be greater than or equal to current exchange sellPrice.
| inputs | 0 | uint256 | _amount | amount of tokens to buy. |
| 1 | uint256 | _price | price in wei at which buy will happen. | |
| outputs | 0 | uint256 |
buyPrice 8620410bReturns the buy price
| outputs | 0 | uint256 |
changeContractOwnership 557f4bc9Prepares ownership pass. * Can only be called by current owner.
| inputs | 0 | address | _to | address of the next owner. 0x0 is not allowed. |
| outputs | 0 | bool |
claimContractOwnership 4592cd1dFinalize ownership pass. * Can only be called by pending owner.
| outputs | 0 | bool |
contractOwner ce606ee0destroy 83197ef0Use kill() instead of destroy() to prevent accidental ether/ERC20 loosing
emitActiveChanged db3dccc0| inputs | 0 | bool | _isActive | |
| 1 | address | _by |
emitBuy 4e3f0a01| inputs | 0 | address | _who | |
| 1 | uint256 | _token | ||
| 2 | uint256 | _eth |
emitError df26ca08| inputs | 0 | uint256 | _errorCode |
emitFeeUpdated 808700f5| inputs | 0 | address | _rewards | |
| 1 | uint256 | _feePercent | ||
| 2 | address | _by |
emitPricesUpdated 4f701e54| inputs | 0 | uint256 | _buyPrice | |
| 1 | uint256 | _sellPrice | ||
| 2 | bool | _usePriceTicker | ||
| 3 | address | _by |
emitReceivedEther c81e7908| inputs | 0 | address | _sender | |
| 1 | uint256 | _amount |
emitSell 88ae3c6b| inputs | 0 | address | _who | |
| 1 | uint256 | _token | ||
| 2 | uint256 | _eth |
emitWithdrawEther c1538d45| inputs | 0 | address | _recipient | |
| 1 | uint256 | _amount | ||
| 2 | address | _by |
emitWithdrawTokens a64abab9| inputs | 0 | address | _recipient | |
| 1 | uint256 | _amount | ||
| 2 | address | _by |
feePercent 7fd6f15cgetEventsHistory fff10abagetPriceTickerPrice 20743e00Returns price fetched from external price ticker
getTokenSymbol f1850af8Returns symbol of the asset
| outputs | 0 | bytes32 |
grantAuthorized 94f3ed31Authorizes given address to execute restricted methods.
Can be called only by contract owner.
| inputs | 0 | address | _authorized | |
| outputs | 0 | uint256 |
init 46639dbaAssigns ERC20 token for exchange. /// Can be set only once, and only by contract owner.
| inputs | 0 | address | _contractsManager | |
| 1 | address | _asset | ERC20 token address. | |
| 2 | address | _rewards | ||
| 3 | uint256 | _fee | ||
| outputs | 0 | uint256 | errorCode |
isActive 22f3e2d4isAuthorized fe9fbb80Tells whether given address is authorized or not
| inputs | 0 | address | _authorized | |
| outputs | 0 | bool |
kill 41c0e1b5Kills an exchnage contract. /// Checks balances of an exchange before destroying. Destroys an exchange only if balances are empty.
| outputs | 0 | uint256 | errorCode |
pendingContractOwner 5aa77d3crevokeAuthorized 3f48be2dRevokes granted access rights.
Can be called only by contract owner.
| inputs | 0 | address | _authorized | |
| outputs | 0 | uint256 |
rewards 9ec5a894sell d79875ebSell tokens for ether at specified price. Tokens are taken from caller though an allowance logic. Amount should be less than or equal to current allowance value. Price should be less than or equal to current exchange buyPrice.
| inputs | 0 | uint256 | _amount | amount of tokens to sell. |
| 1 | uint256 | _price | price in wei at which sell will happen. | |
| outputs | 0 | uint256 |
sellPrice 4b750334Returns the sell price
| outputs | 0 | uint256 |
setActive acec338aExchange must be activated before using. /// Note: An exchange is not activated by default after init(). Make sure that prices are valid before activation.
| inputs | 0 | bool | _active | |
| outputs | 0 | uint256 |
setPrices 935bb767Set exchange operation prices. Sell price cannot be less than buy price. /// Can be set only by contract owner.
| inputs | 0 | uint256 | _buyPrice | price in wei at which exchange buys tokens or but price coeff if price ticker is enabled |
| 1 | uint256 | _sellPrice | price in wei at which exchange sells tokens. or sell price coeff if price ticker is enabled | |
| 2 | bool | _usePriceTicker | force use prices from external price ticker | |
| outputs | 0 | uint256 |
transferContractOwnership a843c51fDirect ownership pass without change/claim pattern. Can be invoked only by current contract owner
| inputs | 0 | address | _to | the next contract owner |
| outputs | 0 | bool |
usePriceTicker b0a31465withdrawAll fa09e630Transfer all tokens and wei from exchange to specified address. /// Can be called only by contract owner.
| inputs | 0 | address | _recipient | address to transfer tokens and wei to. |
| outputs | 0 | uint256 | result |
withdrawAllEth d46d79bbTransfer all wei from exchange to specified address. /// Can be called only by contract owner.
| inputs | 0 | address | _recipient | address to transfer wei to. |
| outputs | 0 | uint256 |
withdrawAllTokens a878aee6Transfer all tokens from exchange to specified address. /// Can be called only by contract owner.
| inputs | 0 | address | _recipient | address to transfer tokens to. |
| outputs | 0 | uint256 |
withdrawEth 1b9a91a4Transfer specified amount of wei from exchange to specified address. /// Can be called only by contract owner.
| inputs | 0 | address | _recipient | address to transfer wei to. |
| 1 | uint256 | _amount | amount of wei to transfer. | |
| outputs | 0 | uint256 |
withdrawTokens 06b091f9Transfer specified amount of tokens from exchange to specified address. /// Can be called only by contract owner.
| inputs | 0 | address | _recipient | address to transfer tokens to. |
| 1 | uint256 | _amount | amount of tokens to transfer. | |
| outputs | 0 | uint256 |
withdrawnTokens d8f9659b| inputs | 0 | address[] | tokens | |
| 1 | address | _to |