Skip to content

Commit 9a079ff

Browse files
committed
fix bn imports
1 parent 8304c1c commit 9a079ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"type": "module",
88
"dependencies": {
9-
"@sentio/sdk": "^2.36.0-rc.16",
9+
"@sentio/sdk": "^2.36.0-rc.17",
1010
"node-fetch": "^3.3.1"
1111
},
1212
"resolutions": {

projects/spark/src/processor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ OrderbookProcessor.bind({
1717
// }
1818
// })
1919
.onLogTradeEvent(async (trade, ctx) => {
20-
const vol = BigInt(trade.data.trade_price.toString()) * BigInt(trade.data.trade_size.toString())
20+
21+
const vol = trade.data.trade_price.mul(trade.data.trade_size)
2122
ctx.eventLogger.emit('trade', {
2223
distinctId: ctx.transaction?.sender,
2324
...trade,

0 commit comments

Comments
 (0)