basilisk
subscan
Runtime Modules / LBP
Spec Version:
Call Functions
Name
Lookup
Parameters
create_pool220010
update_pool_data22018
add_liquidity22022
remove_liquidity22031
sell22044
buy22054
Events
Name
Lookup
Attributes
PoolCreated2200["PoolId","Pool<AccountId, BlockNumber>"]
PoolUpdated2201["PoolId","Pool<AccountId, BlockNumber>"]
LiquidityAdded2202["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
LiquidityRemoved2203["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"]
SellExecuted2204["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"]
BuyExecuted2205["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":112}}
Constants
Name
Type
Value
NativeAssetIdU3200000000
MinTradingLimitU128e8030000000000000000000000000000
MinPoolLiquidityU128e8030000000000000000000000000000
MaxInRatioU12803000000000000000000000000000000
MaxOutRatioU12803000000000000000000000000000000
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
AssetBalanceLimitExceededTrading limit reached
OverflowAn unexpected integer overflow occurred
NothingToUpdateNothing to update
InsufficientLiquidityLiquidity has not reached the required minimum.
InsufficientTradingAmountAmount is less than minimum trading limit.