💻Multipool Owner Interface
IMultipoolManagerMethods
Functions
updatePrices
Updates price feeds for multiple tokens.
Values in each of these arrays should match with indexes (e.g. index 1 contains all data for asset 1)
Parameters
Name | Type | Description |
---|---|---|
|
| Addresses of assets for wich to update feeds |
|
| Price feed extraction strategy type |
|
| Data with encoded payload for price extraction |
updateTargetShares
Updates target shares for multiple tokens.
Values in each of these arrays should match with indexes (e.g. index 1 contains all data for asset 1)
Parameters
Name | Type | Description |
---|---|---|
|
| Addresses of assets for wich to update target shares |
|
| Share values to update to |
withdrawFees
Method that allows to withdraw collected to owner fees. May be only called by owner
Sends all collected values at once
Parameters
Name | Type | Description |
---|---|---|
|
| Address to wich to transfer collected fees |
Returns
Name | Type | Description |
---|---|---|
|
| withdrawn native token value |
withdrawDeveloperFees
Method that allows to withdraw developer fees from contract
Can be invoked by anyone but is still safe as recepient is always developer address
Returns
Name | Type | Description |
---|---|---|
|
| withdrawn native token value |
togglePause
Method that stops or launches contract. Used in case of freezing (e.g hacks or temprorary stopping contract)
setFeeParams
Method to change fee charging rules. All ratios are Q32 values.
Remember to always update every value as this function overrides all variables
Parameters
Name | Type | Description |
---|---|---|
|
| curve parameter that shows maximum deviation changes that may be made by callers |
|
| curve parameter that is a fee ratio at the half of the curve |
|
| parameter that shows ratio of value taken from deviation fee as base fee |
|
| parameter that shows ratio of value taken from each operation quote value |
|
| parameter that shows ratio of value that is taken from base fee share for arcanum protocol developers and maintainers |
|
| address to send arcanum protocol development and maintaince fees |
setSharePriceParams
This method allows to chenge time for wich force pushed share price is valid and minimal number of unique signatures required for price force push
Called only by owner. This mechanism allow you to manage price volatility by changing valid price timeframes
Parameters
Name | Type | Description |
---|---|---|
|
| New interval in seconds |
|
| New number of signatures that substracted by 1 (if 0 is passed 1 signature is required) |
setAuthorityRights
Method that changes permissions of accounts
Remember to always update every value as this function overrides all variables
Parameters
Name | Type | Description |
---|---|---|
|
| address whos permissions change |
|
| allows to sign force push data if true |
|
| allows to change target share if true |
Last updated