Name | Lookup | Attributes | |
|---|---|---|---|
| GlobalFarmAccRPZUpdated | 7100 | ["GlobalFarmId","FixedU128","Balance"] | |
| YieldFarmAccRPVSUpdated | 7101 | ["GlobalFarmId","YieldFarmId","FixedU128","Balance"] |
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}} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 57686f7573654c6d | |
| MinTotalFarmRewards | U128 | 00407a10f35a00000000000000000000 | |
| MinPlannedYieldingPeriods | U32 | c0890100 | |
| MaxFarmEntriesPerDeposit | U32 | 05000000 | |
| MaxYieldFarmsPerGlobalFarm | U32 | 32000000 |
Name | Docs |
|---|---|
| GlobalFarmNotFound | Global farm does not exist. |
| YieldFarmNotFound | Yield farm does not exist. |
| DepositNotFound | Deposit does not exist. |
| DoubleClaimInPeriod | Multiple claims in the same period is not allowed. |
| LiquidityMiningCanceled | Liquidity mining is canceled. |
| LiquidityMiningIsActive | Liquidity mining is not canceled. |
| InvalidDepositAmount | LP shares amount is not valid. |
| 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`. |
| InsufficientPotBalance | Insufficient rewards on `Pot` account. |
| InvalidFarmId | Provided farm id is not valid. Valid range is [1, u32::MAX) |
| 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. |