We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8304c1c commit 1aabbb8Copy full SHA for 1aabbb8
package.json
@@ -6,7 +6,7 @@
6
],
7
"type": "module",
8
"dependencies": {
9
- "@sentio/sdk": "^2.36.0-rc.16",
+ "@sentio/sdk": "^2.36.0-rc.18",
10
"node-fetch": "^3.3.1"
11
},
12
"resolutions": {
projects/spark/src/processor.ts
@@ -17,7 +17,8 @@ OrderbookProcessor.bind({
17
// }
18
// })
19
.onLogTradeEvent(async (trade, ctx) => {
20
- const vol = BigInt(trade.data.trade_price.toString()) * BigInt(trade.data.trade_size.toString())
+
21
+ const vol = trade.data.trade_price.mul(trade.data.trade_size)
22
ctx.eventLogger.emit('trade', {
23
distinctId: ctx.transaction?.sender,
24
...trade,
0 commit comments