Name | Lookup | Parameters | |
|---|---|---|---|
| create_global_farm | 5f00 | 9 | |
| update_global_farm | 5f01 | 2 | |
| terminate_global_farm | 5f02 | 1 | |
| create_yield_farm | 5f03 | 4 | |
| update_yield_farm | 5f04 | 3 | |
| stop_yield_farm | 5f05 | 2 | |
| resume_yield_farm | 5f06 | 4 | |
| terminate_yield_farm | 5f07 | 3 | |
| deposit_shares | 5f08 | 4 | |
| join_farms | 5f0c | 3 | |
| add_liquidity_and_join_farms | 5f0d | 5 | |
| redeposit_shares | 5f09 | 4 | |
| claim_rewards | 5f0a | 2 | |
| withdraw_shares | 5f0b | 3 | |
| exit_farms | 5f0e | 3 |
Name | Lookup | Attributes | |
|---|---|---|---|
| GlobalFarmCreated | 5f00 | ["GlobalFarmId","AccountId","Balance","AssetId","Perquintill","PeriodOf","BlockNumberFor","AssetId","Balance","Balance","FixedU128"] | |
| GlobalFarmUpdated | 5f01 | ["GlobalFarmId","FixedU128"] | |
| YieldFarmCreated | 5f02 | ["GlobalFarmId","YieldFarmId","FarmMultiplier","AssetPair","Option<LoyaltyCurve>"] | |
| GlobalFarmTerminated | 5f03 | ["GlobalFarmId","AccountId","AssetId","Balance"] | |
| SharesDeposited | 5f04 | ["GlobalFarmId","YieldFarmId","AccountId","Balance","AssetId","DepositId"] | |
| SharesRedeposited | 5f05 | ["GlobalFarmId","YieldFarmId","AccountId","Balance","AssetId","DepositId"] | |
| RewardClaimed | 5f06 | ["GlobalFarmId","YieldFarmId","AccountId","Balance","AssetId","DepositId"] | |
| SharesWithdrawn | 5f07 | ["GlobalFarmId","YieldFarmId","AccountId","AssetId","Balance","DepositId"] | |
| YieldFarmStopped | 5f08 | ["GlobalFarmId","YieldFarmId","AccountId","AssetPair"] | |
| YieldFarmResumed | 5f09 | ["GlobalFarmId","YieldFarmId","AccountId","AssetPair","FarmMultiplier"] | |
| YieldFarmTerminated | 5f0a | ["GlobalFarmId","YieldFarmId","AccountId","AssetPair"] | |
| YieldFarmUpdated | 5f0b | ["GlobalFarmId","YieldFarmId","AccountId","AssetPair","FarmMultiplier"] | |
| DepositDestroyed | 5f0c | ["AccountId","DepositId"] |
Name | Type | Value | |
|---|---|---|---|
| NFTCollectionId | U128 | 0d150000000000000000000000000000 | |
| OracleSource | [U8; 8] | 687964726178796b | |
| OraclePeriod | hydradx_traits:oracle:OraclePeriod | 02 |
Name | Docs |
|---|---|
| CantFindDepositOwner | Nft pallet didn't return an owner. |
| InsufficientXykSharesBalance | Account balance of XYK pool shares is not sufficient. |
| XykPoolDoesntExist | XYK pool does not exist |
| NotDepositOwner | Account is not deposit owner. |
| CantGetXykAssets | XYK did not return assets for given pool id |
| DepositDataNotFound | Deposit data not found |
| ZeroClaimedRewards | Calculated reward to claim is 0. |
| AssetNotInAssetPair | Asset is not in the `AssetPair`. |
| InvalidAssetPair | Provided `AssetPair` is not used by the deposit. |
| AssetNotRegistered | Asset is not registered in asset registry. |
| FailToGetPotId | Failed to calculate `pot`'s account. |
| NoFarmsSpecified | No global farm - yield farm pairs specified to join |
| FailedToValueShares | Failed to calculate value of xyk shares |