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"] |
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":374}} | |
ScheduleOwnership | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Twox64Concat"],"key_vec":["AccountId","U32"],"value":"NULL","keys_id":540,"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}} | |
ScheduleIdsPerBlock | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"Vec<U32>","keys_id":4,"value_id":622}} |
Name | Type | Value | |
---|---|---|---|
MaxPriceDifferenceBetweenBlocks | U32 | 983a0000 | |
MaxSchedulePerBlock | U32 | 14000000 | |
MaxNumberOfRetriesOnError | U8 | 03 | |
MinimumTradingLimit | U128 | e8030000000000000000000000000000 | |
NativeAssetId | U32 | 00000000 | |
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 |
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 one DCA |
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 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 |