Name | Lookup | Parameters | |
|---|---|---|---|
| create_farm | 9c00 | 7 | |
| destroy_farm | 9c01 | 1 | |
| withdraw_undistributed_rewards | 9c02 | 1 | |
| add_liquidity_pool | 9c03 | 4 | |
| update_liquidity_pool | 9c04 | 3 | |
| cancel_liquidity_pool | 9c05 | 2 | |
| resume_liquidity_pool | 9c06 | 3 | |
| remove_liquidity_pool | 9c07 | 2 | |
| deposit_shares | 9c08 | 3 | |
| claim_rewards | 9c09 | 1 | |
| withdraw_shares | 9c0a | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| FarmCreated | 9c00 | ["GlobalPoolId","AccountIdOf","AssetIdOf","Permill","PeriodOf","BlockNumberFor","AssetIdOf","Balance"] | |
| LiquidityPoolAdded | 9c01 | ["GlobalPoolId","PoolId","PoolMultiplier","NftClassIdOf","AssetPair","Option<LoyaltyCurve>"] | |
| FarmDestroyed | 9c02 | ["PoolId","AccountIdOf"] | |
| SharesDeposited | 9c03 | ["GlobalPoolId","PoolId","AccountIdOf","Balance","CurrencyId","NftClassIdOf","NftInstanceIdOf"] | |
| RewardClaimed | 9c04 | ["GlobalPoolId","PoolId","AccountIdOf","Balance","CurrencyId"] | |
| SharesWithdrawn | 9c05 | ["GlobalPoolId","PoolId","AccountIdOf","CurrencyId","Balance"] | |
| LiquidityMiningCanceled | 9c06 | ["GlobalPoolId","PoolId","AccountIdOf","AssetPair"] | |
| LiquidityMiningResumed | 9c07 | ["GlobalPoolId","PoolId","AccountIdOf","AssetPair","PoolMultiplier"] | |
| LiquidityPoolRemoved | 9c08 | ["GlobalPoolId","PoolId","AccountIdOf","AssetPair"] | |
| UndistributedRewardsWithdrawn | 9c09 | ["GlobalPoolId","AccountIdOf","CurrencyId","Balance"] | |
| LiquidityPoolUpdated | 9c0a | ["GlobalPoolId","PoolId","AccountIdOf","AssetPair","PoolMultiplier"] | |
| FarmAccRPZUpdated | 9c0b | ["GlobalPoolId","Balance","Balance"] | |
| LiquidityPoolAccRPVSUpdated | 9c0c | ["GlobalPoolId","PoolId","Balance","Balance"] |
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}} |
Name | Docs |
|---|---|
| Overflow | Math computation overflow. |
| InsufficientBalanceInGlobalPool | Insufficient reward currency in global pool. |
| InvalidPoolId | Provided pool id is not valid. Valid range is [1, u32::MAX) |
| InvalidPlannedYieldingPeriods | Planned yielding periods is less than `MinPlannedYieldingPeriods`. |
| InvalidBlocksPerPeriod | Blocks per period can't be 0. |
| InvalidYieldPerPeriod | Yield per period can't be 0. |
| InvalidTotalRewards | Total rewards is less than `MinTotalFarmRewards`. |
| InsufficientRewardCurrencyBalance | Reward currency balance is not sufficient. |
| Forbidden | Account is not allowed to perform action. |
| FarmNotFound | Farm does not exist. |
| LiquidityPoolAlreadyExists | Liquidity pool already exist in the farm. |
| InvalidMultiplier | Pool multiplier can't be 0 |
| InvalidInitialRewardPercentage | Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1) |
| InsufficientAmmSharesBalance | Account balance of amm pool shares is not sufficient. |
| AmmPoolDoesNotExist | AMM pool does not exist |
| LiquidityPoolNotFound | Assets liq. pool does not exist. |
| FarmIsNotEmpty | One or more liq. pools exist in farm. |
| RewardBalanceIsNotZero | Global pool rewards balance is not 0. |
| LiquidityPoolMetadataNotFound | Liq. pool's metadata does not exist. |
| NftDoesNotExist | NFT does not exist. |
| NftIdOverflow | Max number of nft id was reached. |
| InvalidNftId | Nft id is not valid. |
| LiquidityMiningCanceled | Pool's liquidity mining is canceled. |
| LiquidityMiningIsNotCanceled | Pool's liquidity mining is not canceled. |
| InvalidDepositAmount | LP tokens amount is not valid. |
| NotDepositOwner | Account is not deposit owner. |
| CantFindDepositOwner | Nft pallet didn't return an owner. |
| DoubleClaimInThePeriod | Multiple claims in the same period is not allowed. |
| MissingIncentivizedAsset | Farm's `incentivized_asset` is missing in provided asset pair. |