Name | Lookup | Parameters | |
|---|---|---|---|
| schedule | 4200 | 2 | |
| terminate | 4201 | 2 | |
| unlock_reserves | 4202 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| ExecutionStarted | 4200 | ["ScheduleId","BlockNumberFor"] | |
| Scheduled | 4201 | ["ScheduleId","AccountId","BlockNumberFor","Balance","Order<AssetId>"] | |
| ExecutionPlanned | 4202 | ["ScheduleId","AccountId","BlockNumberFor"] | |
| TradeExecuted | 4203 | ["ScheduleId","AccountId","Balance","Balance"] | |
| TradeFailed | 4204 | ["ScheduleId","AccountId","DispatchError"] | |
| Terminated | 4205 | ["ScheduleId","AccountId","DispatchError"] | |
| Completed | 4206 | ["ScheduleId","AccountId"] | |
| RandomnessGenerationFailed | 4207 | ["BlockNumberFor","DispatchError"] | |
| ReserveUnlocked | 4208 | ["AccountId","AssetId"] |
Name | Type | |
|---|---|---|
| ScheduleIdSequencer | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| Schedules | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_dca:types:Schedule","keys_id":4,"value_id":285}} | |
| ScheduleOwnership | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Twox64Concat"],"key_vec":["AccountId","U32"],"value":"NULL","keys_id":549,"value_id":36}} | |
| RemainingAmounts | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":6}} | |
| RetriesOnError | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U8","keys_id":4,"value_id":2}} | |
| ScheduleExecutionBlock | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":4}} | |
| ScheduleIdsPerBlock | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"Vec<U32>","keys_id":4,"value_id":728}} |
Name | Type | Value | |
|---|---|---|---|
| MaxPriceDifferenceBetweenBlocks | U32 | 983a0000 | |
| MaxConfigurablePriceDifferenceBetweenBlocks | U32 | 50c30000 | |
| MaxSchedulePerBlock | U32 | 06000000 | |
| MaxNumberOfRetriesOnError | U8 | 03 | |
| MinimalPeriod | U32 | 05000000 | |
| BumpChance | U8 | 11 | |
| MinimumTradingLimit | U128 | e8030000000000000000000000000000 | |
| NativeAssetId | U32 | 00000000 | |
| PolkadotNativeAssetId | U32 | 05000000 | |
| MinBudgetInNativeCurrency | U128 | 0080c6a47e8d03000000000000000000 | |
| FeeReceiver | AccountId | 6d6f646c70792f74727372790000000000000000000000000000000000000000 | |
| NamedReserveId | [U8; 8] | 6463616f72646572 |
Name | Docs |
|---|---|
| ScheduleNotFound | Schedule not exist |
| MinTradeAmountNotReached | The min trade amount is not reached |
| Forbidden | Forbidden as the user is not the owner of the schedule |
| BlockNumberIsNotInFuture | The next execution block number is not in the future |
| PriceUnstable | Price is unstable as price change from oracle data is bigger than max allowed |
| Bumped | Order was randomly rescheduled to next block |
| CalculatingPriceError | Error occurred when calculating price |
| TotalAmountIsSmallerThanMinBudget | The total amount to be reserved is smaller than min budget |
| BudgetTooLow | The budget is too low for executing at least two orders |
| NoFreeBlockFound | There is no free block found to plan DCA execution |
| ManuallyTerminated | The DCA schedule has been manually terminated |
| MaxRetryReached | Max number of retries reached for schedule |
| TradeLimitReached | Absolutely trade limit reached, leading to retry |
| SlippageLimitReached | Slippage limit calculated from oracle is reached, leading to retry |
| NoParentHashFound | No parent hash has been found from relay chain |
| InvalidState | Error that should not really happen only in case of invalid state of the schedule storage entries |
| PeriodTooShort | Period should be longer than 5 blocks |
| StabilityThresholdTooHigh | Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock` |
| HasActiveSchedules | User still has active DCA schedules and cannot unlock reserves |
| NoReservesLocked | No reserves are locked for the user for the given asset |