basilisk
subscan
Runtime Modules / LBP
Spec Version:
Call Functions
Name
Lookup
Parameters
create_pool21008
update_pool_data21016
pause_pool21021
unpause_pool21031
add_liquidity21042
remove_liquidity21051
sell21064
buy21074
Storage Functions
Name
Type
PoolData{"origin":"MapType","map_type":{"key":"PoolId","hasher":"Blake2_128Concat","value":"Pool<AccountId, BlockNumber>","isLinked":false}}
Constants
Name
Type
Value
NativeAssetIdAssetId0x00000000
Error Types
Name
Docs
CannotCreatePoolWithSameAssets Pool assets can not be the same
CannotCreatePoolWithZeroLiquidity Initial liquidity should be non-zero
NotOwner Account is not a pool owner
SaleStarted Sale already started
SaleNotEnded Sale is still in progress
SaleIsNotRunning Sale is not running
CannotPauseEndedPool Sale already ended
CannotUnpauseEndedPool Sale already ended
CannotPausePausedPool Sale is already paused
PoolIsNotPausable Pool cannot be paused
PoolIsNotPaused Pool is not paused
MaxSaleDurationExceeded Sale duration is too long
CannotAddZeroLiquidity Liquidity being added should not be zero
InsufficientAssetBalance Asset balance too low
PoolNotFound Pool does not exist
PoolAlreadyExists Pool has been already created
InvalidAsset Pool does not contain the asset
InvalidBlockNumber Invalid block number
WeightCalculationError Calculation error
ZeroWeight Weight should be non-zero
ZeroAmount Can not perform a trade with zero amount
MaxInRatioExceeded Trade amount is too high
MaxOutRatioExceeded Trade amount is too high
FeeAmountInvalid Invalid fee amount
AssetBalanceLimitExceeded Trading limit reached
Overflow An unexpected integer overflow occurred
NothingToUpdate Nothing to update