hydration
subscan
Runtime Modules / XYKWarehouseLM
Spec Version:
Events
Name
Lookup
Attributes
GlobalFarmAccRPZUpdated6000["GlobalFarmId","FixedU128","Balance"]
YieldFarmAccRPVSUpdated6001["GlobalFarmId","YieldFarmId","FixedU128","Balance"]
AllRewardsDistributed6002["GlobalFarmId"]
Storage Functions
Name
Type
FarmSequencer{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
DepositSequencer{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
GlobalFarm{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_liquidity_mining:types:GlobalFarmData@719","keys_id":4,"value_id":719}}
YieldFarm{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32","U32"],"value":"pallet_liquidity_mining:types:YieldFarmData@721","keys_id":720,"value_id":721}}
Deposit{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"pallet_liquidity_mining:types:DepositData@722","keys_id":6,"value_id":722}}
ActiveYieldFarm{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"U32","keys_id":549,"value_id":4}}
Constants
Name
Type
Value
PalletId[U8; 8]78796b4c4d704944
TreasuryAccountIdAccountId6d6f646c70792f74727372790000000000000000000000000000000000000000
MinTotalFarmRewardsU1280010a5d4e80000000000000000000000
MinPlannedYieldingPeriodsU3268380000
MaxFarmEntriesPerDepositU3205000000
MaxYieldFarmsPerGlobalFarmU3232000000
Error Types
Name
Docs
GlobalFarmNotFoundGlobal farm does not exist.
YieldFarmNotFoundYield farm does not exist.
DoubleClaimInPeriodMultiple claims in the same period is not allowed.
LiquidityMiningCanceledLiquidity mining is canceled.
LiquidityMiningIsActiveLiquidity mining is not canceled.
LiquidityMiningIsNotStoppedLiquidity mining is in `active` or `terminated` state and action cannot be completed.
ForbiddenAccount is not allowed to perform action.
InvalidMultiplierYield farm multiplier can't be 0.
YieldFarmAlreadyExistsYield farm with given `amm_pool_id` already exists in global farm.
InvalidInitialRewardPercentageLoyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
GlobalFarmIsNotEmptyOne or more yield farms exist in global farm.
MissingIncentivizedAssetFarm's `incentivized_asset` is missing in provided asset pair.
InsufficientRewardCurrencyBalanceReward currency balance is not sufficient.
InvalidBlocksPerPeriodBlocks per period can't be 0.
InvalidYieldPerPeriodYield per period can't be 0.
InvalidTotalRewardsTotal rewards is less than `MinTotalFarmRewards`.
InvalidPlannedYieldingPeriodsPlanned yielding periods is less than `MinPlannedYieldingPeriods`.
MaxEntriesPerDepositMaximum number of locks reached for deposit.
DoubleLockTrying to lock LP shares into already locked yield farm.
YieldFarmEntryNotFoundYield farm entry doesn't exist for given deposit.
GlobalFarmIsFullMax number of yield farms in global farm was reached. Global farm can't accept newyield farms until some yield farm is not removed from storage.
InvalidMinDepositInvalid min. deposit was set for global farm.
InvalidPriceAdjustmentPrice adjustment multiplier can't be 0.
ErrorGetAccountIdAccount creation from id failed.
IncorrectValuedSharesValue of deposited shares amount in reward currency is bellow min. limit.
RewardCurrencyNotRegistered`reward_currency` is not registered in asset registry.
IncentivizedAssetNotRegistered`incentivized_asset` is not registered in asset registry.
AmmPoolIdMismatchProvided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
InconsistentStateAction cannot be completed because unexpected error has occurred. This should be reportedto protocol maintainers.