🖥️Multipool User Interface
Last updated
Last updated
Gets several share prive params
Fetches data by reading a single slot
Returns
Name | Type | Description |
---|---|---|
Gets price feed data
Parameters
Returns
Gets current asset price
Parameters
Returns
Gets fee params from state. All ratios are Q32 values.
Fetches data by reading a single slot for first integers
Returns
Gets asset related info
Reads exacly two storage slots
Parameters
Returns
Method that executes every trading in multipool
This is a low level method that works via direct token transfer on contract and method execution. Should be used in other contracts only Fees are charged in native token equivalend via transferring them before invocation or in msg.value
Parameters
Method that dry runs swap execution and provides estimated fees and amounts
To avoid calculation errors don't provide small values to amount
Parameters
Returns
Method that dry runs swap execution and provides estimated fees and amounts
Method is permissionless so anyone can boos incentives. Native token value can be transferred directly if used iva contract or via msg.value with any method
Parameters
Returns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_sharePriceValidityDuration
uint128
Time in seconds for signed share price to be valid
_initialSharePrice
uint128
Price that is used when contract's total supply is zero
_signatureThreshold
uint256
Minimal signature number required for force push price verification
asset
address
Asset for wich to get price feed
priceFeed
FeedInfo
Returns price feed data
asset
address
Asset for wich to get price
price
uint256
Returns price data in a format of Q96 decimal value
_deviationParam
uint64
Curve parameter that is a fee ratio at the half of the curve divided by deviation limit
_deviationLimit
uint64
Curve parameter that shows maximum deviation changes that may be made by callers
_depegBaseFee
uint64
Parameter that shows ratio of value taken from deviation fee as base
_baseFee
uint64
Parameter that shows ratio of value taken from each operation quote value fee
_developerBaseFee
uint64
Parameter that shows ratio of value that is taken from base fee
_developerAddress
address
Address to send arcanum protocol development and maintaince fees share for arcanum protocol developers and maintainers
assetAddress
address
address of asset wich data to provide
asset
MpAsset
asset related data structure
forcePushArgs
ForcePushArgs
Arguments for share price force push
assetsToSwap
AssetArgs[]
Assets that will be used as input or output and their amounts. Assets should be provided ascendingly sorted by addresses. Can't accept duplicates of assets
isExactInput
bool
Shows sleepage direction. If is true input amouns (that are greater than zero) will be used exactly and output amounts (less than zero) will be used as slippage checks. If false it is reversed
receiverAddress
address
Address that will receive output amounts
refundEthToReceiver
bool
If this value is true, left ether will be sent to receiverAddress
, else, refundAddress
will be used
refundAddress
address
Address that will be used to receive left input token and native token balances
forcePushArgs
ForcePushArgs
Arguments for share price force push
assetsToSwap
AssetArgs[]
Assets that will be used as input or output and their amounts. Assets should be provided ascendingly sorted by addresses. Can't accept duplicates of assets
isExactInput
bool
Shows sleepage direction. If is true input amouns (that are greater than zero) will be used and the output amounts will be estmated proportionally. If false it behaves reversed
fee
int256
Native token amount to cover swap fees
amounts
int256[]
assetAddress
address
Address of asset selected to increase its cashback
amount
uint128
Native token amount that was put into cashback