diff --git a/src/vendors/nexus.ts b/src/vendors/nexus.ts index 0f4c597bc3..e2ebd82df8 100644 --- a/src/vendors/nexus.ts +++ b/src/vendors/nexus.ts @@ -275,7 +275,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,