ConversionRates
function
addToken
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
(void)
function
setValidRateDurationInBlocks
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| duration | uint256 |
Outputs
(void)
function
enableTokenTrade
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
(void)
function
setReserveAddress
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| reserve | address |
Outputs
(void)
function
disableTokenTrade
nonpayable
Restricted (onlyAlerter)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
(void)
function
setImbalanceStepFunction
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| xBuy | int256[] | |
| yBuy | int256[] | |
| xSell | int256[] | |
| ySell | int256[] |
Outputs
(void)
function
setQtyStepFunction
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| xBuy | int256[] | |
| yBuy | int256[] | |
| xSell | int256[] | |
| ySell | int256[] |
Outputs
(void)
function
setCompactData
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| buy | bytes14[] | |
| sell | bytes14[] | |
| blockNumber | uint256 | |
| indices | uint256[] |
Outputs
(void)
function
setBaseRate
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| tokens | address[] | |
| baseBuy | uint256[] | |
| baseSell | uint256[] | |
| buy | bytes14[] | |
| sell | bytes14[] | |
| blockNumber | uint256 | |
| indices | uint256[] |
Outputs
(void)
function
recordImbalance
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| buyAmount | int256 | |
| rateUpdateBlock | uint256 | |
| currentBlock | uint256 |
Outputs
(void)
function
getCompactData
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
| Type | Description |
|---|---|
| uint256 | |
| uint256 | |
| bytes1 | |
| bytes1 |
function
getBasicRate
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| buy | bool |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getRate
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| currentBlockNumber | uint256 | |
| buy | bool | |
| qty | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getRateUpdateBlock
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getTokenBasicData
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
| Type | Description |
|---|---|
| bool | |
| bool |
function
getStepFunctionData
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| command | uint256 | |
| param | uint256 |
Outputs
| Type | Description |
|---|---|
| int256 |
function
getListedTokens
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
constructor
ConversionRates
nonpayable
Restricted (VolumeImbalanceRecorder)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _admin | address |
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)
VolumeImbalanceRecorder
function
setTokenControlInfo
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| minimalRecordResolution | uint256 | |
| maxPerBlockImbalance | uint256 | |
| maxTotalImbalance | uint256 |
Outputs
(void)
function
getTokenControlInfo
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
| Type | Description |
|---|---|
| uint256 | |
| uint256 | |
| uint256 |
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
tokenImbalanceData
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address | ||
| uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
reserveContract
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
numTokensInCurrentCompactData
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
pendingAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
validRateDurationInBlocks
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |