subscan
Runtime Modules / PoolSystem
Spec Version:
Call Functions
Name
Lookup
Parameters
set_max_reserve63002
close_epoch63011
submit_solution63022
execute_epoch63031
Events
Name
Lookup
Attributes
Rebalanced6300["PoolId"]
MaxReserveSet6301["PoolId"]
EpochClosed6302["PoolId","EpochId"]
SolutionSubmitted6303["PoolId","EpochId","EpochSolution<Balance, MaxTranches>"]
EpochExecuted6304["PoolId","EpochId"]
Created6305["AccountId","AccountId","PoolId","PoolEssence<CurrencyId, Balance, TrancheCurrency, Rate, MaxTokenNameLength, MaxTokenSymbolLength,>"]
Updated6306["PoolId","PoolEssence<CurrencyId, Balance, TrancheCurrency, Rate, MaxTokenNameLength, MaxTokenSymbolLength,>","PoolEssence<CurrencyId, Balance, TrancheCurrency, Rate, MaxTokenNameLength, MaxTokenSymbolLength,>"]
Storage Functions
Name
Type
Pool{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_pool_system:pool_types:PoolDetails","keys_id":10,"value_id":518}}
ScheduledUpdate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_pool_system:pool_types:ScheduledUpdateDetails","keys_id":10,"value_id":533}}
EpochExecution{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_pool_system:solution:EpochExecutionInfo","keys_id":10,"value_id":534}}
AccountDeposit{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
PoolDeposit{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_pool_system:pool_types:PoolDepositInfo","keys_id":10,"value_id":540}}
Constants
Name
Type
Value
PalletId[U8; 8]726f632f706f6f6c
PalletIndexU863
ParachainIdU3228080000
ChallengeTimeU3296000000
DefaultMinEpochTimeU64284f010000000000
DefaultMaxNAVAgeU640000000000000000
MinEpochTimeLowerBoundU64100e000000000000
MinEpochTimeUpperBoundU64008d270000000000
MaxNAVAgeUpperBoundU640000000000000000
MinUpdateDelayU6400a3020000000000
MaxSizeMetadataU322e000000
MaxTokenNameLengthU3280000000
MaxTokenSymbolLengthU3220000000
MaxTranchesU3205000000
PoolDepositU12800000000000000000000000000000000
Error Types
Name
Docs
PoolInUseA pool with this ID is already in use
InvalidJuniorTrancheAttempted to create a pool without a junior tranche
InvalidTrancheStructureAttempted to create a tranche structure where* non-decreasing interest rate per tranche
NoSuchPoolAttempted an operation on a pool which does not exist
MinEpochTimeHasNotPassedAttempted to close an epoch too early
ChallengeTimeHasNotPassedAttempted to execute an epoch too early
InSubmissionPeriodCannot be called while the pool is in a submission period
NAVTooOldAttempted to close an epoch with an out of date NAV
TrancheIdA Tranche ID cannot be converted to an address
WipedOutClosing the epoch now would wipe out the junior tranche
InvalidSolutionThe provided solution is not a valid one
NotInSubmissionPeriodAttempted to solve a pool which is not in a submission period
InsufficientCurrencyInsufficient currency available for desired operation
RiskBufferViolatedRisk Buffer validation failed
NoNAVThe NAV was not available
EpochNotExecutedYetEpoch needs to be executed before you can collect
CannotAddOrRemoveTranchesAdding & removing tranches is not supported
InvalidTrancheSeniorityInvalid tranche seniority value* seniority MUST be smaller number of tranches* MUST be increasing per tranche
InvalidTrancheUpdatePre-requirements for a TrancheUpdate are not metfor example: Tranche changed but not its metadata or vice versa
BadMetadataInvalid metadata passed
MetadataForCurrencyNotFoundNo metada for the given currency found
TrancheTokenNameTooLongThe given tranche token name exceeds the length limit
TrancheSymbolNameTooLongThe given tranche symbol name exceeds the length limit
FailedToRegisterTrancheMetadataRegistering the metadata for a tranche threw an error
FailedToUpdateTrancheMetadataUpdating the metadata for a tranche threw an error
InvalidTrancheIdInvalid TrancheId passed. In most cases out-of-bound index
TooManyTranchesThe requested tranche configuration has too many tranches
NotNewBestSubmissionSubmitted solution is not an improvement
NoSolutionAvailableNo solution has yet been provided for the epoch
PoolParameterBoundViolatedOne of the runtime-level pool parameter bounds was violated
NoScheduledUpdateNo update for the pool is scheduled
ScheduledTimeHasNotPassedScheduled time for this update is in the future
UpdatePrerequesitesNotFulfilledUpdate cannot be fulfilled yet
InvalidCurrencyA user has tried to create a pool with an invalid currency