@rango-dev/queue-manager-rango-preset 0.1.10-next.102 → 0.1.10-next.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/queue-manager-rango-preset",
3
- "version": "0.1.10-next.102",
3
+ "version": "0.1.10-next.103",
4
4
  "license": "MIT",
5
5
  "module": "dist/queue-manager-rango-preset.esm.js",
6
6
  "main": "dist/index.js",
@@ -79,7 +79,7 @@ export async function executeTransaction(
79
79
  */
80
80
  const needsToBlockQueue = isNeedBlockQueueForParallel(currentStep);
81
81
 
82
- if (needsToBlockQueue && !isClaimed && context.claimedBy) {
82
+ if (needsToBlockQueue && !isClaimed) {
83
83
  const blockedFor = {
84
84
  reason: BlockReason.DEPENDS_ON_OTHER_QUEUES,
85
85
  description: 'Waiting for other swaps to complete',
package/src/helpers.ts CHANGED
@@ -746,6 +746,8 @@ export function onDependsOnOtherQueues(
746
746
  const claimerId = claimedBy();
747
747
  const isClaimedByAnyQueue = !!claimerId;
748
748
 
749
+ if (claimerId === queue.id) return;
750
+
749
751
  // Check if any queue `claimed` before, if yes, we don't should do anything.
750
752
  if (isClaimedByAnyQueue) {
751
753
  // We need to keep the latest swap messages
@@ -781,7 +783,7 @@ export function onDependsOnOtherQueues(
781
783
  resetClaimedBy: () => {
782
784
  reset();
783
785
  // TODO: Use key generator
784
- retryOn(`${type}-${network}-${address}`, context.notifier, manager);
786
+ retryOn(`${type}-${network}:${address}`, context.notifier, manager);
785
787
  },
786
788
  });
787
789
  }