ComplexExchanger
/contracts/ComplexExchanger.sol

constructor

ComplexExchanger

inputs0address_token
inputs1uint256_buyFee
inputs2uint256_sellFee
inputs3address[]_oracles
inputs4uint256_deadline
inputs5address_withdrawWallet
event

Buy 89f5adc1

inputs0addresssender
inputs1addressrecipient
inputs2uint256tokenAmount
inputs3uint256price
event

InvalidRate 6a9be634

inputs0uint256rate
inputs1addressoracle
event

OracleRequest 35c4de7a

inputs0addressoracle
event

ReserveRefill 326277f0

inputs0uint256amount
event

ReserveWithdraw 2b33eb7f

inputs0uint256amount
event

Sell a082022e

inputs0addresssender
inputs1addressrecipient
inputs2uint256cryptoAmount
inputs3uint256price
function, constant

buyFee 47062402

function, constant

buyRate fc37987b

function, payable

buyTokens ec8ac4d8

Allows user to buy tokens by ether.

inputs0address_recipient

The recipient of tokens.

function

calcRates 9b678bfc

Calculates buy and sell rates after oracles have received it.

function, constant

calcTime 2be51660

function, constant

deadline 29dcb0cf

function, constant

getOracleData 536e3f6a

Returns data for an oracle by its id in the array.

inputs0uint256number
function, constant

getState 1865c57d

Returns the contract state.

function, constant

oracleCount 613d8fcc

Returns contract oracles' count.

function, constant

oracles 5b69a7d8

inputs0uint256
function, constant

readyOracles 3a16c51e

Returns ready (which have data to be used) oracles count.

function, payable

refillBalance 09af014f

Allows to deposit eth to the contract without creating orders.

function, constant

requestPrice 1604f9ea

Returns cost of requestRates function.

function, payable

requestRates 1cdc51e7

Requests oracles rates updating; funds oracles if needed.

function, constant

requestTime d7fd0e77

function, constant

sellFee 2b14ca56

function, constant

sellRate 6217229b

function

sellTokens c464fe65

Allows user to sell tokens and get ether.

inputs0address_recipient

The recipient of ether.

inputs1uint256tokensCount

The count of tokens to sell.

function, constant

tokenAddress 9d76ea58

function, constant

tokenBalance 9e1a4d19

Returns token balance of the sender.

function, constant

waitingOracles 4f96e039

Returns wait query oracle count.

function

withdrawReserve ace1fab1

Withdraws balance only to special hardcoded wallet ONLY WHEN contract is locked.

function, constant

withdrawWallet 85d178f4