Skip to content

Commit f008263

Browse files
committed
Fix rawTx for kado and lifi
1 parent f3f6e91 commit f008263

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/partners/kado.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
asNumber,
88
asObject,
99
asString,
10+
asUnknown,
1011
asValue
1112
} from 'cleaners'
1213

@@ -55,8 +56,8 @@ const asResponse = asObject({
5556
success: asBoolean,
5657
// message: asString,
5758
data: asObject({
58-
onRamps: asArray(asOnRampTx),
59-
offRamps: asArray(asOffRampTx)
59+
onRamps: asArray(asUnknown),
60+
offRamps: asArray(asUnknown)
6061
})
6162
})
6263

@@ -148,7 +149,7 @@ export function processKadoTx(rawTx: unknown): StandardTx {
148149
timestamp,
149150
isoDate,
150151
usdValue: tx.paidAmountUsd,
151-
rawTx: tx
152+
rawTx
152153
}
153154
} else {
154155
return {
@@ -169,7 +170,7 @@ export function processKadoTx(rawTx: unknown): StandardTx {
169170
timestamp,
170171
isoDate,
171172
usdValue: tx.receiveUsd,
172-
rawTx: tx
173+
rawTx
173174
}
174175
}
175176
}

src/partners/lifi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
asObject,
66
asOptional,
77
asString,
8+
asUnknown,
89
asValue
910
} from 'cleaners'
1011

@@ -66,7 +67,7 @@ const asTransfer = asObject({
6667

6768
// Define the cleaner for the whole JSON
6869
const asTransfersResult = asObject({
69-
transfers: asArray(asTransfer)
70+
transfers: asArray(asUnknown)
7071
})
7172

7273
type PartnerStatuses = ReturnType<typeof asStatuses>

0 commit comments

Comments
 (0)