Name | Lookup | Attributes | |
|---|---|---|---|
| GlobalFarmAccRPZUpdated | 3e00 | ["GlobalFarmId","FixedU128","Balance"] | |
| YieldFarmAccRPVSUpdated | 3e01 | ["GlobalFarmId","YieldFarmId","FixedU128","Balance"] | |
| AllRewardsDistributed | 3e02 | ["GlobalFarmId"] |
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@637","keys_id":4,"value_id":637}} | |
| YieldFarm | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32","U32"],"value":"pallet_liquidity_mining:types:YieldFarmData@640","keys_id":639,"value_id":640}} | |
| Deposit | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"pallet_liquidity_mining:types:DepositData@641","keys_id":6,"value_id":641}} | |
| ActiveYieldFarm | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"U32","keys_id":211,"value_id":4}} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 4f6d6e6957684c4d | |
| TreasuryAccountId | AccountId | 6d6f646c70792f74727372790000000000000000000000000000000000000000 | |
| MinTotalFarmRewards | U128 | 0010a5d4e80000000000000000000000 | |
| MinPlannedYieldingPeriods | U32 | 68380000 | |
| MaxFarmEntriesPerDeposit | U32 | 05000000 | |
| MaxYieldFarmsPerGlobalFarm | U32 | 32000000 |
Name | Docs |
|---|---|
| GlobalFarmNotFound | Global farm does not exist. |
| YieldFarmNotFound | Yield farm does not exist. |
| DoubleClaimInPeriod | Multiple claims in the same period is not allowed. |
| LiquidityMiningCanceled | Liquidity mining is canceled. |
| LiquidityMiningIsActive | Liquidity mining is not canceled. |
| LiquidityMiningIsNotStopped | Liquidity mining is in `active` or `terminated` state and action cannot be completed. |
| Forbidden | Account is not allowed to perform action. |
| InvalidMultiplier | Yield farm multiplier can't be 0. |
| YieldFarmAlreadyExists | Yield farm with given `amm_pool_id` already exists in global farm. |
| InvalidInitialRewardPercentage | Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1). |
| GlobalFarmIsNotEmpty | One or more yield farms exist in global farm. |
| MissingIncentivizedAsset | Farm's `incentivized_asset` is missing in provided asset pair. |
| InsufficientRewardCurrencyBalance | Reward currency balance is not sufficient. |
| InvalidBlocksPerPeriod | Blocks per period can't be 0. |
| InvalidYieldPerPeriod | Yield per period can't be 0. |
| InvalidTotalRewards | Total rewards is less than `MinTotalFarmRewards`. |
| InvalidPlannedYieldingPeriods | Planned yielding periods is less than `MinPlannedYieldingPeriods`. |
| MaxEntriesPerDeposit | Maximum number of locks reached for deposit. |
| DoubleLock | Trying to lock LP shares into already locked yield farm. |
| YieldFarmEntryNotFound | Yield farm entry doesn't exist for given deposit. |
| GlobalFarmIsFull | Max 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. |
| InvalidMinDeposit | Invalid min. deposit was set for global farm. |
| InvalidPriceAdjustment | Price adjustment multiplier can't be 0. |
| ErrorGetAccountId | Account creation from id failed. |
| IncorrectValuedShares | Value 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. |
| AmmPoolIdMismatch | Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`. |
| InconsistentState | Action cannot be completed because unexpected error has occurred. This should be reportedto protocol maintainers. |