subscan
Runtime Modules / LBP
Spec Version:
Call Functions
Name
Lookup
Parameters
create_pool490011
update_pool_data49019
add_liquidity49022
remove_liquidity49031
sell49044
buy49054
Events
Name
Lookup
Attributes
PoolCreated4900["PoolId","Pool<AccountId, BlockNumberFor>"]
PoolUpdated4901["PoolId","Pool<AccountId, BlockNumberFor>"]
LiquidityAdded4902["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
LiquidityRemoved4903["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
SellExecuted4904["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"]
BuyExecuted4905["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"]
Storage Functions
Name
Type
PoolData{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"pallet_lbp:Pool","keys_id":0,"value_id":108}}
FeeCollectorWithAsset{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"Bool","keys_id":540,"value_id":48}}
Constants
Name
Type
Value
MinTradingLimitU128e8030000000000000000000000000000
MinPoolLiquidityU12840420f00000000000000000000000000
MaxInRatioU12803000000000000000000000000000000
MaxOutRatioU12803000000000000000000000000000000
repay_feeTuple:U32U32020000000a000000
Error Types
Name
Docs
CannotCreatePoolWithSameAssetsPool assets can not be the same
NotOwnerAccount is not a pool owner
SaleStartedSale already started
SaleNotEndedSale is still in progress
SaleIsNotRunningSale is not running
MaxSaleDurationExceededSale duration is too long
CannotAddZeroLiquidityLiquidity being added should not be zero
InsufficientAssetBalanceAsset balance too low
PoolNotFoundPool does not exist
PoolAlreadyExistsPool has been already created
InvalidBlockRangeInvalid block range
WeightCalculationErrorCalculation error
InvalidWeightWeight set is out of range
ZeroAmountCan not perform a trade with zero amount
MaxInRatioExceededTrade amount is too high
MaxOutRatioExceededTrade amount is too high
FeeAmountInvalidInvalid fee amount
TradingLimitReachedTrading limit reached
OverflowAn unexpected integer overflow occurred
NothingToUpdateNothing to update
InsufficientLiquidityLiquidity has not reached the required minimum.
InsufficientTradingAmountAmount is less than minimum trading limit.
FeeCollectorWithAssetAlreadyUsedNot more than one fee collector per asset id