basilisk
subscan
Runtime Modules / LiquidityMining
Spec Version:
Events
Name
Lookup
Attributes
FarmCreated9c00["GlobalPoolId","AccountIdOf","AssetIdOf","Permill","PeriodOf","BlockNumberFor","AssetIdOf","Balance"]
LiquidityPoolAdded9c01["GlobalPoolId","PoolId","PoolMultiplier","NftClassIdOf","AssetPair","Option<LoyaltyCurve>"]
FarmDestroyed9c02["PoolId","AccountIdOf"]
SharesDeposited9c03["GlobalPoolId","PoolId","AccountIdOf","Balance","CurrencyId","NftClassIdOf","NftInstanceIdOf"]
RewardClaimed9c04["GlobalPoolId","PoolId","AccountIdOf","Balance","CurrencyId"]
SharesWithdrawn9c05["GlobalPoolId","PoolId","AccountIdOf","CurrencyId","Balance"]
LiquidityMiningCanceled9c06["GlobalPoolId","PoolId","AccountIdOf","AssetPair"]
LiquidityMiningResumed9c07["GlobalPoolId","PoolId","AccountIdOf","AssetPair","PoolMultiplier"]
LiquidityPoolRemoved9c08["GlobalPoolId","PoolId","AccountIdOf","AssetPair"]
UndistributedRewardsWithdrawn9c09["GlobalPoolId","AccountIdOf","CurrencyId","Balance"]
LiquidityPoolUpdated9c0a["GlobalPoolId","PoolId","AccountIdOf","AssetPair","PoolMultiplier"]
FarmAccRPZUpdated9c0b["GlobalPoolId","Balance","Balance"]
LiquidityPoolAccRPVSUpdated9c0c["GlobalPoolId","PoolId","Balance","Balance"]
Storage Functions
Name
Type
PoolIdSequencer{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
NftInstanceSequencer{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
GlobalPoolData{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"pallet_liquidity_mining:GlobalPool","keys_id":4,"value_id":402}}
LiquidityPoolData{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["U32","AccountId"],"value":"pallet_liquidity_mining:LiquidityPoolYieldFarm","keys_id":404,"value_id":405}}
DepositData{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"pallet_liquidity_mining:Deposit","keys_id":6,"value_id":406}}
LiquidityPoolMetadata{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"Tuple:primitives:asset:AssetPairU64U32","keys_id":4,"value_id":407}}
Error Types
Name
Docs
OverflowMath computation overflow.
InsufficientBalanceInGlobalPoolInsufficient reward currency in global pool.
InvalidPoolIdProvided pool id is not valid. Valid range is [1, u32::MAX)
InvalidPlannedYieldingPeriodsPlanned yielding periods is less than `MinPlannedYieldingPeriods`.
InvalidBlocksPerPeriodBlocks per period can't be 0.
InvalidYieldPerPeriodYield per period can't be 0.
InvalidTotalRewardsTotal rewards is less than `MinTotalFarmRewards`.
InsufficientRewardCurrencyBalanceReward currency balance is not sufficient.
ForbiddenAccount is not allowed to perform action.
FarmNotFoundFarm does not exist.
LiquidityPoolAlreadyExistsLiquidity pool already exist in the farm.
InvalidMultiplierPool multiplier can't be 0
InvalidInitialRewardPercentageLoyalty curve's initial reward percentage is not valid. Valid range is: [0, 1)
InsufficientAmmSharesBalanceAccount balance of amm pool shares is not sufficient.
AmmPoolDoesNotExistAMM pool does not exist
LiquidityPoolNotFoundAssets liq. pool does not exist.
FarmIsNotEmptyOne or more liq. pools exist in farm.
RewardBalanceIsNotZeroGlobal pool rewards balance is not 0.
LiquidityPoolMetadataNotFoundLiq. pool's metadata does not exist.
NftDoesNotExistNFT does not exist.
NftIdOverflowMax number of nft id was reached.
InvalidNftIdNft id is not valid.
LiquidityMiningCanceledPool's liquidity mining is canceled.
LiquidityMiningIsNotCanceledPool's liquidity mining is not canceled.
InvalidDepositAmountLP tokens amount is not valid.
NotDepositOwnerAccount is not deposit owner.
CantFindDepositOwnerNft pallet didn't return an owner.
DoubleClaimInThePeriodMultiple claims in the same period is not allowed.
MissingIncentivizedAssetFarm's `incentivized_asset` is missing in provided asset pair.