diff --git a/src/vendors/nexus.ts b/src/vendors/nexus.ts index 2a5fad8919..181cd0bf19 100644 --- a/src/vendors/nexus.ts +++ b/src/vendors/nexus.ts @@ -276,7 +276,10 @@ function parseTransactionsList(list: (NexusTransaction | ExtendedRuntimeTransact const parsed: Transaction = { amount: (t.body as { amount?: StringifiedBigInt })?.amount || - (t.body as { amount_change?: StringifiedBigInt })?.amount_change || + ((t.body as { amount_change?: StringifiedBigInt })?.amount_change && + ((t.body as { negative?: boolean })?.negative + ? `-${(t.body as { amount_change?: StringifiedBigInt }).amount_change}` + : (t.body as { amount_change?: StringifiedBigInt }).amount_change)) || undefined, fee: t.fee, from: t.sender,