subscan
Runtime Modules / LBP
Spec Version:
Call Functions
Name
Lookup
Parameters
create_pool680011
update_pool_data68019
add_liquidity68022
remove_liquidity68031
sell68044
buy68054
Events
Name
Lookup
Attributes
PoolCreated6800["PoolId","Pool<AccountId, BlockNumber>"]
PoolUpdated6801["PoolId","Pool<AccountId, BlockNumber>"]
LiquidityAdded6802["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
LiquidityRemoved6803["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
SellExecuted6804["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"]
BuyExecuted6805["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":123}}
FeeCollectorWithAsset{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"Bool","keys_id":468,"value_id":48}}
Constants
Name
Type
Value
MinTradingLimitU128e8030000000000000000000000000000
MinPoolLiquidityU128e8030000000000000000000000000000
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