pendulum
subscan
Pendulum
Runtime Modules / TreasuryBuyoutExtension
Spec Version:
Call Functions
Name
Lookup
Parameters
buyout52002
update_buyout_limit52011
update_allowed_assets52021
Events
Name
Lookup
Attributes
Buyout5200["AccountIdOf","BalanceOf","CurrencyIdOf","BalanceOf"]
BuyoutLimitUpdated5201["Option<BalanceOf>"]
AllowedAssetsForBuyoutUpdated5202["Vec<CurrencyIdOf>"]
Storage Functions
Name
Type
BuyoutLimit{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
Buyouts{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Tuple:U128U32","keys_id":0,"value_id":178}}
AllowedCurrencies{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["spacewalk_primitives:CurrencyId"],"value":"NULL","keys_id":121,"value_id":43}}
Constants
Name
Type
Value
TreasuryAccountAccountId6d6f646c70792f74727372790000000000000000000000000000000000000000
BuyoutPeriodU32201c0000
SellFeeU3250c30000
MinAmountToBuyoutU12800e87648170000000000000000000000
MaxAllowedBuyoutCurrenciesU3214000000
Error Types
Name
Docs
StorageClearingFailureStorage clearing of `AllowedCurrencies` failed
NativeTokenNotAllowedAttempt to add native token to allowed assets
ExceedsNumberOfAllowedCurrenciesExceeds number of allowed currencies for buyout
WrongAssetToBuyoutAttempt to exchange native token to native token
BuyoutLimitExceededBuyout limit exceeded for the current period
NoPriceOne of transacted currencies is missing price information
InsufficientTreasuryBalanceThe treasury balance is too low for an operation
InsufficientAccountBalanceThe account balance is too low for an operation
LessThanMinBuyoutAmountLess than minimum amoount allowed for buyout
BuyoutWithTreasuryAccountAttempt to use treasury account for buyout
ExchangeFailureExchange failed
DecimalsConversionErrorDecimals conversion error