subscan
Runtime Modules / PhalaStakePoolv2
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated5d00["AccountId","u64","CollectionId","AccountId"]
PoolCommissionSet5d01["u64","u32"]
PoolCapacitySet5d02["u64","BalanceOf"]
PoolWorkerAdded5d03["u64","WorkerPublicKey","AccountId"]
Contribution5d04["u64","AccountId","BalanceOf","BalanceOf","Option<u64>"]
OwnerRewardsWithdrawn5d05["u64","AccountId","BalanceOf"]
PoolSlashed5d06["u64","BalanceOf"]
SlashSettled5d07["u64","AccountId","BalanceOf"]
RewardDismissedNotInPool5d08["WorkerPublicKey","BalanceOf"]
RewardDismissedNoShare5d09["u64","BalanceOf"]
RewardDismissedDust5d0a["u64","BalanceOf"]
PoolWorkerRemoved5d0b["u64","WorkerPublicKey"]
WorkerReclaimed5d0c["u64","WorkerPublicKey"]
RewardReceived5d0d["u64","BalanceOf","BalanceOf"]
WorkingStarted5d0e["u64","WorkerPublicKey","BalanceOf"]
Storage Functions
Name
Type
LegacyRewards{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId","U64"],"value":"U128","keys_id":588,"value_id":6}}
WorkerAssignments{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":118,"value_id":10}}
SubAccountAssignments{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U64","keys_id":0,"value_id":10}}
WorkingEnabled{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":100}
SubAccountPreimages{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Tuple:U64[U8; 32]","keys_id":0,"value_id":572}}
StakepoolIterateStartPos{"origin":"PlainType","plain_type":"option<U64>","PlainTypeValue":121}
Constants
Name
Type
Value
MinContributionU12800e40b54020000000000000000000000
GracePeriodU64803a090000000000
ComputingEnabledByDefaultBool00
MaxPoolWorkersU32c8000000
Error Types
Name
Docs
WorkerNotRegisteredThe worker is not registered in the registry when adding to the pool
BenchmarkMissingThe worker doesn't have a valid benchmark when adding to the pool
WorkerExistsThe worker is already added to the pool
WorkerAlreadyStoppedThe worker is already in cd_workers
WorkerDoesNotExistThe target worker is not in the pool
WorkerInAnotherPoolThe worker is already added to another pool
UnauthorizedOperatorThe owner of the pool doesn't have the access to the workerThe access to a worker is granted by it's `operator` parameter set by `register_worker`
UnauthorizedPoolOwnerThe caller is not the owner of the pool
InadequateCapacityThe stake capacity is set too low to cover the existing stake
StakeExceedsCapacityThe stake added to a pool exceeds its capacity
PoolDoesNotExistThe specified pool doesn't exist
_PoolIsBusy
InsufficientContributionThe contributed stake is smaller than the minimum threshold
NoNftToWithdrawThe caller has no nft to withdraw
InsufficientBalanceTrying to contribute more than the available balance
PoolStakeNotFoundThe user doesn't have stake in a pool
InsufficientFreeStakeCannot start computing because there's no enough free stake
InvalidWithdrawalAmountThe withdrawal amount is too small (considered as dust)
FailedToBindSessionAndWorkerCouldn't bind worker and the pool computing subaccount
InternalSubsidyPoolCannotWithdrawInternal error: Cannot withdraw from the subsidy pool. This should never happen.
PoolBankruptThe pool has already got all the stake completely slashed.In this case, no more funds can be contributed to the pool until all the pending slashhas been resolved.
NoRewardToClaimThere's no pending reward to claim
FeatureNotEnabledThe StakePool is not enabled yet.
WorkersExceedLimitFailed to add a worker because the number of the workers exceeds the upper limit.
CannotRestartWithLessStakeRestarted with a less stake is not allowed in the tokenomic.
InvalidForceRewardAmountInvalid amount of balance input when force reward.
WithdrawQueueNotEmptyWithdraw queue is not empty so that we can't restart computing
MissingCollectionIdStakepool's collection_id isn't founded
VaultIsLockedVault is forced locked for it has some expired withdrawal
SessionDoesNotExistThe target miner is not in the `miner` storage
WorkerIsNotReadyThe target worker is not reclaimed and can not be removed from a pool.
LockAccountStakeError
NoLegacyRewardToClaim