Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 3d00 | 5 | |
| stake | 3d01 | 2 | |
| unstake | 3d02 | 3 | |
| harvest_rewards | 3d03 | 2 | |
| set_pool_reward_rate_per_block | 3d04 | 2 | |
| set_pool_admin | 3d05 | 2 | |
| set_pool_expiry_block | 3d06 | 2 | |
| deposit_reward_tokens | 3d07 | 2 | |
| cleanup_pool | 3d08 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Staked | 3d00 | ["AccountId","PoolId","Balance"] | |
| Unstaked | 3d01 | ["AccountId","AccountId","PoolId","Balance"] | |
| RewardsHarvested | 3d02 | ["AccountId","AccountId","PoolId","Balance"] | |
| PoolCreated | 3d03 | ["AccountId","PoolId","AssetId","AssetId","Balance","BlockNumberFor","AccountId"] | |
| PoolRewardRateModified | 3d04 | ["PoolId","Balance"] | |
| PoolAdminModified | 3d05 | ["PoolId","AccountId"] | |
| PoolExpiryBlockModified | 3d06 | ["PoolId","BlockNumberFor"] | |
| PoolCleanedUp | 3d07 | ["PoolId"] |
Name | Type | |
|---|---|---|
| PoolStakers | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","AccountId"],"value":"pallet_asset_rewards:PoolStakerInfo","keys_id":445,"value_id":514}} | |
| Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_asset_rewards:PoolInfo","keys_id":4,"value_id":515}} | |
| PoolCost | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"Tuple:AccountIdframe_support:traits:tokens:fungible:HoldConsideration","keys_id":4,"value_id":516}} | |
| NextPoolId | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 70792f6173747264 |
Name | Docs |
|---|---|
| NotEnoughTokens | The staker does not have enough tokens to perform the operation. |
| NonExistentPool | An operation was attempted on a non-existent pool. |
| NonExistentStaker | An operation was attempted for a non-existent staker. |
| NonExistentAsset | An operation was attempted with a non-existent asset. |
| BlockNumberConversionError | There was an error converting a block number. |
| ExpiryBlockMustBeInTheFuture | The expiry block must be in the future. |
| InsufficientFunds | Insufficient funds to create the freeze. |
| ExpiryCut | The expiry block can be only extended. |
| RewardRateCut | The reward rate per block can be only increased. |
| NonEmptyPool | The pool still has staked tokens or rewards. |