KyberReserve
function
setContracts
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _kyberNetwork | address | |
| _conversionRates | address | |
| _sanityRates | address |
Outputs
(void)
function
approveWithdrawAddress
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| addr | address | |
| approve | bool |
Outputs
(void)
function
setTokenWallet
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| wallet | address |
Outputs
(void)
function
enableTrade
nonpayable
Restricted (onlyAdmin)
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |
function
disableTrade
nonpayable
Restricted (onlyAlerter)
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |
function
withdraw
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 | |
| destination | address |
Outputs
| Type | Description |
|---|---|
| bool |
function
trade
payable
Inputs
| Parameter | Type | Description |
|---|---|---|
| srcToken | address | |
| srcAmount | uint256 | |
| destToken | address | |
| destAddress | address | |
| conversionRate | uint256 | |
| validate | bool |
Outputs
| Type | Description |
|---|---|
| bool |
function
getDestQty
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address | |
| srcQty | uint256 | |
| rate | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getBalance
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getSrcQty
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address | |
| dstQty | uint256 | |
| rate | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getConversionRate
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address | |
| srcQty | uint256 | |
| blockNumber | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
constructor
KyberReserve
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _kyberNetwork | address | |
| _ratesContract | address | |
| _admin | address |
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
event
SetContractAddresses
Inputs
| Parameter | Type | Description |
|---|---|---|
| network | address | |
| rate | address | |
| sanity | address |
Outputs
(void)
event
WithdrawFunds
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 | |
| destination | address |
Outputs
(void)
event
NewTokenWallet
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| wallet | address |
Outputs
(void)
event
WithdrawAddressApproved
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| addr | address | |
| approve | bool |
Outputs
(void)
event
TradeEnabled
Inputs
| Parameter | Type | Description |
|---|---|---|
| enable | bool |
Outputs
(void)
event
TradeExecute
Inputs
| Parameter | Type | Description |
|---|---|---|
| origin | address | |
| src | address | |
| srcAmount | uint256 | |
| destToken | address | |
| destAmount | uint256 | |
| destAddress | address |
Outputs
(void)
event
DepositToken
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 |
Outputs
(void)
PermissionGroups
function
removeOperator
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| operator | address |
Outputs
(void)
function
addOperator
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newOperator | address |
Outputs
(void)
function
transferAdminQuickly
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAdmin | address |
Outputs
(void)
function
transferAdmin
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAdmin | address |
Outputs
(void)
function
addAlerter
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAlerter | address |
Outputs
(void)
function
removeAlerter
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| alerter | address |
Outputs
(void)
function
claimAdmin
nonpayable
Inputs
(void)
Outputs
(void)
function
getAlerters
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
function
getOperators
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
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)
Withdrawable
function
withdrawEther
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| amount | uint256 | |
| sendTo | address |
Outputs
(void)
function
withdrawToken
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 | |
| sendTo | 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)
function
admin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
approvedWithdrawAddresses
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| bytes32 |
Outputs
| Type | Description |
|---|---|
| bool |
function
tradeEnabled
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |
function
conversionRatesContract
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
kyberNetwork
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
tokenWallet
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| address |
function
sanityRatesContract
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
pendingAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |