KyberUniswapReserve
function
delistToken
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
(void)
function
setInternalActivationConfig
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| minSpreadBps | uint256 | |
| premiumBps | uint256 |
Outputs
(void)
function
setFee
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| bps | uint256 |
Outputs
(void)
function
setKyberNetwork
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _kyberNetwork | address |
Outputs
(void)
function
listToken
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | 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
setInternalInventoryLimits
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| minBalance | uint256 | |
| maxBalance | 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
calculateSpreadBps
pure
Inputs
| Parameter | Type | Description |
|---|---|---|
| _askRate | uint256 | |
| _bidRate | uint256 |
Outputs
| Type | Description |
|---|---|
| int256 |
function
deductFee
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| amount | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getConversionRate
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address | |
| srcQty | uint256 | |
| blockNumber | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
isValidTokens
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| src | address | |
| dest | address |
Outputs
| Type | Description |
|---|---|
| bool |
function
shouldUseInternalInventory
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| srcToken | address | |
| srcAmount | uint256 | |
| destToken | address | |
| destAmount | uint256 | |
| rateSrcDest | uint256 | |
| rateDestSrc | uint256 |
Outputs
| Type | Description |
|---|---|
| bool |
function
addPremium
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
constructor
KyberUniswapReserve
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _uniswapFactory | address | |
| _admin | address | |
| _kyberNetwork | address |
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
event
KyberNetworkSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| kyberNetwork | address |
Outputs
(void)
event
TradeEnabled
Inputs
| Parameter | Type | Description |
|---|---|---|
| enable | bool |
Outputs
(void)
event
TokenDelisted
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address |
Outputs
(void)
event
TokenListed
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| exchange | address |
Outputs
(void)
event
InternalInventoryLimitsUpdated
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| minBalance | uint256 | |
| maxBalance | uint256 |
Outputs
(void)
event
InternalActivationConfigUpdated
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| minSpreadBps | uint256 | |
| premiumBps | uint256 |
Outputs
(void)
event
FeeUpdated
Inputs
| Parameter | Type | Description |
|---|---|---|
| bps | uint256 |
Outputs
(void)
event
TradeExecute
Inputs
| Parameter | Type | Description |
|---|---|---|
| sender | address | |
| src | address | |
| srcAmount | uint256 | |
| destToken | address | |
| destAmount | uint256 | |
| destAddress | address | |
| useInternalInventory | bool |
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)
Utils2
function
getBalance
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| user | address |
Outputs
| Type | Description |
|---|---|
| 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
tradeEnabled
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |
function
internalActivationMinSpreadBps
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
kyberNetwork
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
internalInventoryMax
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
uniswapFactory
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
internalInventoryMin
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
DEFAULT_FEE_BPS
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
pendingAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
feeBps
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
internalPricePremiumBps
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
tokenExchange
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| address |