event
OperatorAdded
Inputs
Parameter | Type | Description |
---|---|---|
newOperator | address | |
isAdd | bool |
Outputs
(void)
event
AlerterAdded
Inputs
Parameter | Type | Description |
---|---|---|
newAlerter | address | |
isAdd | bool |
Outputs
(void)
event
AdminClaimed
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address | |
previousAdmin | address |
Outputs
(void)
event
TransferAdminPending
Inputs
Parameter | Type | Description |
---|---|---|
pendingAdmin | address |
Outputs
(void)
event
EtherWithdraw
Inputs
Parameter | Type | Description |
---|---|---|
amount | uint256 | |
sendTo | address |
Outputs
(void)
event
TokenWithdraw
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
amount | uint256 | |
sendTo | address |
Outputs
(void)
event
FeeBpsSet
Inputs
Parameter | Type | Description |
---|---|---|
feeBps | uint256 |
Outputs
(void)
event
TokenDelisted
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
(void)
event
TokenListed
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
(void)
event
InternalInventoryDataSet
Inputs
Parameter | Type | Description |
---|---|---|
minToken | uint256 | |
maxToken | uint256 | |
pricePremiumBps | uint256 | |
minSpreadBps | uint256 |
Outputs
(void)
event
ContractsSet
Inputs
Parameter | Type | Description |
---|---|---|
kyberNetwork | address | |
otc | address |
Outputs
(void)
event
TradeEnabled
Inputs
Parameter | Type | Description |
---|---|---|
enable | bool |
Outputs
(void)
event
TokenConfigDataSet
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
maxTraverse | uint256 | |
traveseFactorX | uint256 | |
traveseFactorY | uint256 | |
maxTake | uint256 | |
takeFactorX | uint256 | |
takeFactorY | uint256 | |
minSizeFactorX | uint256 | |
minSizeFactorY | uint256 | |
minETHSupport | uint256 |
Outputs
(void)
event
TradeExecute
Inputs
Parameter | Type | Description |
---|---|---|
origin | address | |
src | address | |
srcAmount | uint256 | |
destToken | address | |
destAmount | uint256 | |
destAddress | address |
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
constructor
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_kyberNetwork | address | |
_feeBps | uint256 | |
_otc | address | |
_weth | address | |
_admin | address |
Outputs
(void)
function
admin
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
isTokenListed
view
Inputs
Parameter | Type | Description |
---|---|---|
address |
Outputs
Type | Description |
---|---|
bool |
function
getTokenBasicDataPub
view
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 | |
uint256 |
function
setContracts
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_kyberNetwork | address | |
_otc | address |
Outputs
(void)
function
tradeEnabled
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
getBalance
view
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
user | address |
Outputs
Type | Description |
---|---|
uint256 |
function
withdrawEther
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
amount | uint256 | |
sendTo | address |
Outputs
(void)
function
kyberNetwork
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
getFactorDataPub
view
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 | |
uint256 | |
uint256 | |
uint256 | |
uint256 |
function
removeOperator
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
operator | address |
Outputs
(void)
function
delistToken
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
(void)
function
getInternalInventoryDataPub
view
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
Type | Description |
---|---|
bool | |
uint256 | |
uint256 | |
uint256 | |
uint256 |
function
addOperator
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newOperator | address |
Outputs
(void)
function
getConversionRate
view
Inputs
Parameter | Type | Description |
---|---|---|
src | address | |
dest | address | |
srcQty | uint256 | |
uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
getAlerters
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address[] |
function
transferAdminQuickly
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address |
Outputs
(void)
function
claimAdmin
nonpayable
Inputs
(void)
Outputs
(void)
function
transferAdmin
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address |
Outputs
(void)
function
setFeeBps
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_feeBps | uint256 |
Outputs
(void)
function
trade
payable
Inputs
Parameter | Type | Description |
---|---|---|
srcToken | address | |
srcAmount | uint256 | |
destToken | address | |
destAddress | address | |
conversionRate | uint256 | |
validate | bool |
Outputs
Type | Description |
---|---|
bool |
function
disableTrade
nonpayable
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
setInternalInventoryData
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
isEnabled | bool | |
minToken | uint256 | |
maxToken | uint256 | |
pricePremiumBps | uint256 | |
minSpreadBps | uint256 |
Outputs
(void)
function
wethToken
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
addAlerter
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newAlerter | address |
Outputs
(void)
function
withdrawToken
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
amount | uint256 | |
sendTo | address |
Outputs
(void)
function
otc
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
setTokenConfigData
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
maxTraverse | uint256 | |
traveseFactorX | uint256 | |
traveseFactorY | uint256 | |
maxTake | uint256 | |
takeFactorX | uint256 | |
takeFactorY | uint256 | |
minSizeFactorX | uint256 | |
minSizeFactorY | uint256 | |
minETHSupport | uint256 |
Outputs
(void)
function
getOperators
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address[] |
function
pendingAdmin
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
feeBps
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
listToken
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
token | address |
Outputs
(void)
function
removeAlerter
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
alerter | address |
Outputs
(void)
function
enableTrade
nonpayable
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |