subscan
Runtime Modules / PhalaStakePool
Spec Version:
Storage Functions
Name
Type
StakePools{"origin":"MapType","map_type":{"key":"u64","hasher":"Twox64Concat","value":"PoolInfo<AccountId, BalanceOf>","isLinked":false}}
PoolStakers{"origin":"MapType","map_type":{"key":"(u64, AccountId)","hasher":"Twox64Concat","value":"UserStakeInfo<AccountId, BalanceOf>","isLinked":false}}
PoolCount{"origin":"PlainType","plain_type":"u64"}
WorkerAssignments{"origin":"MapType","map_type":{"key":"WorkerPublicKey","hasher":"Twox64Concat","value":"u64","isLinked":false}}
SubAccountAssignments{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"u64","isLinked":false}}
StakeLedger{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"BalanceOf","isLinked":false}}
WithdrawalQueuedPools{"origin":"MapType","map_type":{"key":"u64","hasher":"Twox64Concat","value":"Vec<u64>","isLinked":false}}
WithdrawalTimestamps{"origin":"PlainType","plain_type":"Vec<u64>"}
MiningEnabled{"origin":"PlainType","plain_type":"bool"}
Constants
Name
Type
Value
MinContributionBalanceOf0x00e40b54020000000000000000000000
GracePeriodu640x803a090000000000
MiningEnabledByDefaultbool0x00
MaxPoolWorkersu320xc8000000
Error Types
Name
Docs
WorkerNotRegistered
BenchmarkMissing
WorkerExists
WorkerDoesNotExist
WorerInAnotherPool
UnauthorizedOperator
UnauthorizedPoolOwner
InadequateCapacity The stake capacity is set too low for the existing stake
StakeExceedsCapacity
PoolDoesNotExist
_PoolIsBusy
InsufficientContribution
InsufficientBalance
PoolStakeNotFound
InsufficientFreeStake
InvalidWithdrawalAmount
FailedToBindMinerAndWorker
InternalSubsidyPoolCannotWithdraw Internal error: Cannot withdraw from the subsidy pool. This should never happen.
PoolBankrupt The 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 slash has been resolved.
NoRewardToClaim
FeatureNotEnabled The StakePool is not enabled yet.
WorkersExceedLimit Failed to add a worker because the number of the workers exceeds the upper limit.