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 5681246Copy full SHA for 5681246
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.17",
10
"node-fetch": "^3.3.1"
11
},
12
"resolutions": {
projects/spark/src/processor.ts
@@ -17,11 +17,12 @@ 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,
- vol: vol.scaleDown(2 * 10)
25
+ vol: BigInt(vol.scaleDown(2 * 10).toString())
26
})
27
28
.onLogOrderChangeEvent(async (order, ctx) => {
0 commit comments