LiquidityConversionRates
resetCollectedFees
Inputs
Outputs
setLiquidityParams
Inputs
Parameter | Type | Description |
---|---|---|
_rInFp | uint256 | |
_pMinInFp | uint256 | |
_numFpBits | uint256 | |
_maxCapBuyInWei | uint256 | |
_maxCapSellInWei | uint256 | |
_feeInBps | uint256 | |
_maxTokenToEthRateInPrecision | uint256 | |
_minTokenToEthRateInPrecision | uint256 |
Outputs
setReserveAddress
Inputs
Parameter | Type | Description |
---|---|---|
reserve | address |
Outputs
recordImbalance
Inputs
Parameter | Type | Description |
---|---|---|
conversionToken | address | |
buyAmountInTwei | int256 | |
rateUpdateBlock | uint256 | |
currentBlock | uint256 |
Outputs
abs
Inputs
Parameter | Type | Description |
---|---|---|
val | int256 |
Outputs
Type | Description |
---|---|
uint256 |
buyRateZeroQuantity
Inputs
Parameter | Type | Description |
---|---|---|
eInFp | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
getRate
Inputs
Parameter | Type | Description |
---|---|---|
conversionToken | address | |
currentBlockNumber | uint256 | |
buy | bool | |
qtyInSrcWei | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
calcCollectedFee
Inputs
Parameter | Type | Description |
---|---|---|
val | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
rateAfterValidation
Inputs
Parameter | Type | Description |
---|---|---|
rateInPrecision | uint256 | |
buy | bool |
Outputs
Type | Description |
---|---|
uint256 |
fromTweiToFp
Inputs
Parameter | Type | Description |
---|---|---|
qtyInTwei | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
sellRate
Inputs
Parameter | Type | Description |
---|---|---|
eInFp | uint256 | |
sellInputTokenQtyInFp | uint256 | |
deltaTInFp | uint256 |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 |
getRateWithE
Inputs
Parameter | Type | Description |
---|---|---|
conversionToken | address | |
buy | bool | |
qtyInSrcWei | uint256 | |
eInFp | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
valueAfterReducingFee
Inputs
Parameter | Type | Description |
---|---|---|
val | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
sellRateZeroQuantity
Inputs
Parameter | Type | Description |
---|---|---|
eInFp | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
buyRate
Inputs
Parameter | Type | Description |
---|---|---|
eInFp | uint256 | |
deltaEInFp | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
fromWeiToFp
Inputs
Parameter | Type | Description |
---|---|---|
qtyInwei | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
LiquidityConversionRates
Inputs
Parameter | Type | Description |
---|---|---|
_admin | address | |
_token | address |
Outputs
CollectedFeesReset
Inputs
Parameter | Type | Description |
---|---|---|
resetFeesInTwei | uint256 |
Outputs
LiquidityParamsSet
Inputs
Parameter | Type | Description |
---|---|---|
rInFp | uint256 | |
pMinInFp | uint256 | |
numFpBits | uint256 | |
maxCapBuyInFp | uint256 | |
maxEthCapSellInFp | uint256 | |
feeInBps | uint256 | |
formulaPrecision | uint256 | |
maxQtyInFp | uint256 | |
maxBuyRateInPrecision | uint256 | |
minBuyRateInPrecision | uint256 | |
maxSellRateInPrecision | uint256 | |
minSellRateInPrecision | uint256 |
Outputs
ReserveAddressSet
Inputs
Parameter | Type | Description |
---|---|---|
reserve | address |
Outputs
LiquidityFormula
deltaEFunc
Inputs
Parameter | Type | Description |
---|---|---|
r | uint256 | |
pMIn | uint256 | |
e | uint256 | |
deltaT | uint256 | |
precision | uint256 | |
numPrecisionBits | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
deltaTFunc
Inputs
Parameter | Type | Description |
---|---|---|
r | uint256 | |
pMIn | uint256 | |
e | uint256 | |
deltaE | uint256 | |
precision | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
pE
Inputs
Parameter | Type | Description |
---|---|---|
r | uint256 | |
pMIn | uint256 | |
e | uint256 | |
precision | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
PermissionGroups
removeOperator
Inputs
Parameter | Type | Description |
---|---|---|
operator | address |
Outputs
addOperator
Inputs
Parameter | Type | Description |
---|---|---|
newOperator | address |
Outputs
transferAdminQuickly
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address |
Outputs
transferAdmin
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address |
Outputs
addAlerter
Inputs
Parameter | Type | Description |
---|---|---|
newAlerter | address |
Outputs
removeAlerter
Inputs
Parameter | Type | Description |
---|---|---|
alerter | address |
Outputs
claimAdmin
Inputs
Outputs
getAlerters
Inputs
Outputs
Type | Description |
---|---|
address[] |
getOperators
Inputs
Outputs
Type | Description |
---|---|
address[] |
OperatorAdded
Inputs
Parameter | Type | Description |
---|---|---|
newOperator | address | |
isAdd | bool |
Outputs
AlerterAdded
Inputs
Parameter | Type | Description |
---|---|---|
newAlerter | address | |
isAdd | bool |
Outputs
AdminClaimed
Inputs
Parameter | Type | Description |
---|---|---|
newAdmin | address | |
previousAdmin | address |
Outputs
TransferAdminPending
Inputs
Parameter | Type | Description |
---|---|---|
pendingAdmin | address |
Outputs
UtilMath
exp
Inputs
Parameter | Type | Description |
---|---|---|
p | uint256 | |
q | uint256 | |
precision | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
logBase2
Inputs
Parameter | Type | Description |
---|---|---|
p | uint256 | |
q | uint256 | |
numPrecisionBits | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
countLeadingZeros
Inputs
Parameter | Type | Description |
---|---|---|
p | uint256 | |
q | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
compactFraction
Inputs
Parameter | Type | Description |
---|---|---|
p | uint256 | |
q | uint256 | |
precision | uint256 |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 |
log2ForSmallNumber
Inputs
Parameter | Type | Description |
---|---|---|
x | uint256 | |
numPrecisionBits | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
checkMultOverflow
Inputs
Parameter | Type | Description |
---|---|---|
x | uint256 | |
y | uint256 |
Outputs
Type | Description |
---|---|
bool |
ln
Inputs
Parameter | Type | Description |
---|---|---|
p | uint256 | |
q | uint256 | |
numPrecisionBits | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
Withdrawable
withdrawEther
Inputs
Parameter | Type | Description |
---|---|---|
amount | uint256 | |
sendTo | address |
Outputs
withdrawToken
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
amount | uint256 | |
sendTo | address |
Outputs
EtherWithdraw
Inputs
Parameter | Type | Description |
---|---|---|
amount | uint256 | |
sendTo | address |
Outputs
TokenWithdraw
Inputs
Parameter | Type | Description |
---|---|---|
token | address | |
amount | uint256 | |
sendTo | address |
Outputs
token
Inputs
Outputs
Type | Description |
---|---|
address |
minBuyRateInPrecision
Inputs
Outputs
Type | Description |
---|---|
uint256 |
admin
Inputs
Outputs
Type | Description |
---|---|
address |
maxQtyInFp
Inputs
Outputs
Type | Description |
---|---|
uint256 |
pMinInFp
Inputs
Outputs
Type | Description |
---|---|
uint256 |
minSellRateInPrecision
Inputs
Outputs
Type | Description |
---|---|
uint256 |
maxBuyRateInPrecision
Inputs
Outputs
Type | Description |
---|---|
uint256 |
reserveContract
Inputs
Outputs
Type | Description |
---|---|
address |
feeInBps
Inputs
Outputs
Type | Description |
---|---|
uint256 |
numFpBits
Inputs
Outputs
Type | Description |
---|---|
uint256 |
formulaPrecision
Inputs
Outputs
Type | Description |
---|---|
uint256 |
maxEthCapBuyInFp
Inputs
Outputs
Type | Description |
---|---|
uint256 |
rInFp
Inputs
Outputs
Type | Description |
---|---|
uint256 |
collectedFeesInTwei
Inputs
Outputs
Type | Description |
---|---|
uint256 |
BIG_NUMBER
Inputs
Outputs
Type | Description |
---|---|
uint256 |
maxEthCapSellInFp
Inputs
Outputs
Type | Description |
---|---|
uint256 |
pendingAdmin
Inputs
Outputs
Type | Description |
---|---|
address |
maxSellRateInPrecision
Inputs
Outputs
Type | Description |
---|---|
uint256 |