KyberNetwork

LiquidityConversionRates

0x97D7126b6FF7C4D95601912f4Cdf790a3Cd1edaB
LiquidityConversionRates
function

resetCollectedFees

nonpayable
Restricted (onlyAdmin)

Inputs

(void)

Outputs

(void)
function

setLiquidityParams

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
_rInFpuint256
_pMinInFpuint256
_numFpBitsuint256
_maxCapBuyInWeiuint256
_maxCapSellInWeiuint256
_feeInBpsuint256
_maxTokenToEthRateInPrecisionuint256
_minTokenToEthRateInPrecisionuint256

Outputs

(void)
function

setReserveAddress

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
reserveaddress

Outputs

(void)
function

recordImbalance

nonpayable

Inputs

ParameterTypeDescription
conversionTokenaddress
buyAmountInTweiint256
rateUpdateBlockuint256
currentBlockuint256

Outputs

(void)
function

abs

pure

Inputs

ParameterTypeDescription
valint256

Outputs

TypeDescription
uint256
function

buyRateZeroQuantity

view

Inputs

ParameterTypeDescription
eInFpuint256

Outputs

TypeDescription
uint256
function

getRate

view

Inputs

ParameterTypeDescription
conversionTokenaddress
currentBlockNumberuint256
buybool
qtyInSrcWeiuint256

Outputs

TypeDescription
uint256
function

calcCollectedFee

view

Inputs

ParameterTypeDescription
valuint256

Outputs

TypeDescription
uint256
function

rateAfterValidation

view

Inputs

ParameterTypeDescription
rateInPrecisionuint256
buybool

Outputs

TypeDescription
uint256
function

fromTweiToFp

view

Inputs

ParameterTypeDescription
qtyInTweiuint256

Outputs

TypeDescription
uint256
function

sellRate

view

Inputs

ParameterTypeDescription
eInFpuint256
sellInputTokenQtyInFpuint256
deltaTInFpuint256

Outputs

TypeDescription
uint256
uint256
function

getRateWithE

view

Inputs

ParameterTypeDescription
conversionTokenaddress
buybool
qtyInSrcWeiuint256
eInFpuint256

Outputs

TypeDescription
uint256
function

valueAfterReducingFee

view

Inputs

ParameterTypeDescription
valuint256

Outputs

TypeDescription
uint256
function

sellRateZeroQuantity

view

Inputs

ParameterTypeDescription
eInFpuint256

Outputs

TypeDescription
uint256
function

buyRate

view

Inputs

ParameterTypeDescription
eInFpuint256
deltaEInFpuint256

Outputs

TypeDescription
uint256
function

fromWeiToFp

view

Inputs

ParameterTypeDescription
qtyInweiuint256

Outputs

TypeDescription
uint256
constructor

LiquidityConversionRates

nonpayable

Inputs

ParameterTypeDescription
_adminaddress
_tokenaddress

Outputs

(void)
event

CollectedFeesReset

Inputs

ParameterTypeDescription
resetFeesInTweiuint256

Outputs

(void)
event

LiquidityParamsSet

Inputs

ParameterTypeDescription
rInFpuint256
pMinInFpuint256
numFpBitsuint256
maxCapBuyInFpuint256
maxEthCapSellInFpuint256
feeInBpsuint256
formulaPrecisionuint256
maxQtyInFpuint256
maxBuyRateInPrecisionuint256
minBuyRateInPrecisionuint256
maxSellRateInPrecisionuint256
minSellRateInPrecisionuint256

Outputs

(void)
event

ReserveAddressSet

Inputs

ParameterTypeDescription
reserveaddress

Outputs

(void)
LiquidityFormula
function

deltaEFunc

pure

Inputs

ParameterTypeDescription
ruint256
pMInuint256
euint256
deltaTuint256
precisionuint256
numPrecisionBitsuint256

Outputs

TypeDescription
uint256
function

deltaTFunc

pure

Inputs

ParameterTypeDescription
ruint256
pMInuint256
euint256
deltaEuint256
precisionuint256

Outputs

TypeDescription
uint256
function

pE

pure

Inputs

ParameterTypeDescription
ruint256
pMInuint256
euint256
precisionuint256

Outputs

TypeDescription
uint256
PermissionGroups
function

removeOperator

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
operatoraddress

Outputs

(void)
function

addOperator

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
newOperatoraddress

Outputs

(void)
function

transferAdminQuickly

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
newAdminaddress

Outputs

(void)
function

transferAdmin

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
newAdminaddress

Outputs

(void)
function

addAlerter

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
newAlerteraddress

Outputs

(void)
function

removeAlerter

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
alerteraddress

Outputs

(void)
function

claimAdmin

nonpayable

Inputs

(void)

Outputs

(void)
function

getAlerters

view

Inputs

(void)

Outputs

TypeDescription
address[]
function

getOperators

view

Inputs

(void)

Outputs

TypeDescription
address[]
event

OperatorAdded

Inputs

ParameterTypeDescription
newOperatoraddress
isAddbool

Outputs

(void)
event

AlerterAdded

Inputs

ParameterTypeDescription
newAlerteraddress
isAddbool

Outputs

(void)
event

AdminClaimed

Inputs

ParameterTypeDescription
newAdminaddress
previousAdminaddress

Outputs

(void)
event

TransferAdminPending

Inputs

ParameterTypeDescription
pendingAdminaddress

Outputs

(void)
UtilMath
function

exp

pure

Inputs

ParameterTypeDescription
puint256
quint256
precisionuint256

Outputs

TypeDescription
uint256
function

logBase2

pure

Inputs

ParameterTypeDescription
puint256
quint256
numPrecisionBitsuint256

Outputs

TypeDescription
uint256
function

countLeadingZeros

pure

Inputs

ParameterTypeDescription
puint256
quint256

Outputs

TypeDescription
uint256
function

compactFraction

pure

Inputs

ParameterTypeDescription
puint256
quint256
precisionuint256

Outputs

TypeDescription
uint256
uint256
function

log2ForSmallNumber

pure

Inputs

ParameterTypeDescription
xuint256
numPrecisionBitsuint256

Outputs

TypeDescription
uint256
function

checkMultOverflow

pure

Inputs

ParameterTypeDescription
xuint256
yuint256

Outputs

TypeDescription
bool
function

ln

pure

Inputs

ParameterTypeDescription
puint256
quint256
numPrecisionBitsuint256

Outputs

TypeDescription
uint256
Withdrawable
function

withdrawEther

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
amountuint256
sendToaddress

Outputs

(void)
function

withdrawToken

nonpayable
Restricted (onlyAdmin)

Inputs

ParameterTypeDescription
tokenaddress
amountuint256
sendToaddress

Outputs

(void)
event

EtherWithdraw

Inputs

ParameterTypeDescription
amountuint256
sendToaddress

Outputs

(void)
event

TokenWithdraw

Inputs

ParameterTypeDescription
tokenaddress
amountuint256
sendToaddress

Outputs

(void)
function

token

view

Inputs

(void)

Outputs

TypeDescription
address
function

minBuyRateInPrecision

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

admin

view

Inputs

(void)

Outputs

TypeDescription
address
function

maxQtyInFp

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

pMinInFp

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

minSellRateInPrecision

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

maxBuyRateInPrecision

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

reserveContract

view

Inputs

(void)

Outputs

TypeDescription
address
function

feeInBps

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

numFpBits

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

formulaPrecision

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

maxEthCapBuyInFp

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

rInFp

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

collectedFeesInTwei

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

BIG_NUMBER

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

maxEthCapSellInFp

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

pendingAdmin

view

Inputs

(void)

Outputs

TypeDescription
address
function

maxSellRateInPrecision

view

Inputs

(void)

Outputs

TypeDescription
uint256