Skip to content

Commit ea09211

Browse files
committed
Map Swapter in-flight statuses to processing
Confirmation, Exchanging, and Sending are in-flight phases; map them to 'processing' (matching the sibling swap plugins) instead of 'pending', so active exchange volume is not under-reported in status-aware views.
1 parent 2dd52bc commit ea09211

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/partners/swapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 5 // 5 days
9797

9898
const statusMap: { [key in SwapterStatus]: Status } = {
9999
Waiting: 'pending',
100-
Confirmation: 'pending',
101-
Exchanging: 'pending',
102-
Sending: 'pending',
100+
Confirmation: 'processing',
101+
Exchanging: 'processing',
102+
Sending: 'processing',
103103
Success: 'complete',
104104
Overdue: 'expired',
105105
Refunded: 'refunded',

0 commit comments

Comments
 (0)