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
TradeEnabled
Inputs
| Parameter | Type | Description |
|---|---|---|
| enable | bool |
Outputs
(void)
event
FeeBpsSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| feeBps | uint256 |
Outputs
(void)
event
BancorNetworkSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| _bancorNetwork | address |
Outputs
(void)
event
KyberNetworkSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| kyberNetwork | address |
Outputs
(void)
event
TradeExecute
Inputs
| Parameter | Type | Description |
|---|---|---|
| sender | 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 |
|---|---|---|
| _bancorNetwork | address | |
| _kyberNetwork | address | |
| _feeBps | uint256 | |
| _bancorEth | address | |
| _bancorETHBNT | address | |
| _bancorToken | address | |
| _admin | address |
Outputs
(void)
function
admin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
setBancorContract
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _bancorNetwork | 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
removeOperator
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| operator | address |
Outputs
(void)
function
bancorNetwork
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
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
getConversionPath
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address |
Outputs
| Type | Description |
|---|---|
| address[] |
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
bancorETHBNT
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
setKyberNetwork
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _kyberNetwork | address |
Outputs
(void)
function
bancorEth
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
bancorToken
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
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
removeAlerter
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| alerter | address |
Outputs
(void)
function
enableTrade
nonpayable
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |