subscan
Runtime Modules / XYKWarehouseLM
Spec Version:
Events
Name
Lookup
Attributes
GlobalFarmAccRPZUpdated7100["GlobalFarmId","FixedU128","Balance"]
YieldFarmAccRPVSUpdated7101["GlobalFarmId","YieldFarmId","FixedU128","Balance"]
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","keys_id":4,"value_id":482}}
YieldFarm{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32","U32"],"value":"pallet_liquidity_mining:types:YieldFarmData","keys_id":484,"value_id":485}}
Deposit{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"pallet_liquidity_mining:types:DepositData","keys_id":6,"value_id":486}}
ActiveYieldFarm{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"U32","keys_id":468,"value_id":4}}
Constants
Name
Type
Value
PalletId[U8; 8]57686f7573654c6d
MinTotalFarmRewardsU12800407a10f35a00000000000000000000
MinPlannedYieldingPeriodsU32c0890100
MaxFarmEntriesPerDepositU3205000000
MaxYieldFarmsPerGlobalFarmU3232000000
Error Types
Name
Docs
GlobalFarmNotFoundGlobal farm does not exist.
YieldFarmNotFoundYield farm does not exist.
DepositNotFoundDeposit does not exist.
DoubleClaimInPeriodMultiple claims in the same period is not allowed.
LiquidityMiningCanceledLiquidity mining is canceled.
LiquidityMiningIsActiveLiquidity mining is not canceled.
InvalidDepositAmountLP shares amount is not valid.
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`.
InsufficientPotBalanceInsufficient rewards on `Pot` account.
InvalidFarmIdProvided farm id is not valid. Valid range is [1, u32::MAX)
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.