ComplexExchanger
inputs | 0 | address | _token | |
1 | uint256 | _buyFee | ||
2 | uint256 | _sellFee | ||
3 | address[] | _oracles | ||
4 | uint256 | _deadline | ||
5 | address | _withdrawWallet |
Buy
89f5adc1
inputs | 0 | address | sender | |
1 | address | recipient | ||
2 | uint256 | tokenAmount | ||
3 | uint256 | price |
InvalidRate
6a9be634
inputs | 0 | uint256 | rate | |
1 | address | oracle |
OracleRequest
35c4de7a
inputs | 0 | address | oracle |
ReserveRefill
326277f0
inputs | 0 | uint256 | amount |
ReserveWithdraw
2b33eb7f
inputs | 0 | uint256 | amount |
Sell
a082022e
inputs | 0 | address | sender | |
1 | address | recipient | ||
2 | uint256 | cryptoAmount | ||
3 | uint256 | price |
buyFee
47062402
buyRate
fc37987b
buyTokens
ec8ac4d8
Allows user to buy tokens by ether.
inputs | 0 | address | _recipient | The recipient of tokens. |
calcRates
9b678bfc
Calculates buy and sell rates after oracles have received it.
calcTime
2be51660
deadline
29dcb0cf
getOracleData
536e3f6a
Returns data for an oracle by its id in the array.
inputs | 0 | uint256 | number |
getState
1865c57d
Returns the contract state.
oracleCount
613d8fcc
Returns contract oracles' count.
oracles
5b69a7d8
inputs | 0 | uint256 |
readyOracles
3a16c51e
Returns ready (which have data to be used) oracles count.
refillBalance
09af014f
Allows to deposit eth to the contract without creating orders.
requestPrice
1604f9ea
Returns cost of requestRates function.
requestRates
1cdc51e7
Requests oracles rates updating; funds oracles if needed.
requestTime
d7fd0e77
sellFee
2b14ca56
sellRate
6217229b
sellTokens
c464fe65
Allows user to sell tokens and get ether.
inputs | 0 | address | _recipient | The recipient of ether. |
1 | uint256 | tokensCount | The count of tokens to sell. |
tokenAddress
9d76ea58
tokenBalance
9e1a4d19
Returns token balance of the sender.
waitingOracles
4f96e039
Returns wait query oracle count.
withdrawReserve
ace1fab1
Withdraws balance only to special hardcoded wallet ONLY WHEN contract is locked.
withdrawWallet
85d178f4