ton-watcher
Advanced tools
Comparing version 1.4.6 to 1.5.0
@@ -156,3 +156,3 @@ "use strict"; | ||
const ok_event = { | ||
data: { req_id, address, amount: (Number(balance) / 10 ** 9).toFixed() }, | ||
data: { req_id, address, amount: (Number(balance) / 10 ** 9).toFixed(9) }, | ||
event: "resTonBalance" | ||
@@ -193,3 +193,3 @@ }; | ||
const ok_event = { | ||
data: { req_id, address, amount: (Number(balance) / 10 ** jetton_settings.decimals).toFixed(), jetton_name }, | ||
data: { req_id, address, amount: (Number(balance) / 10 ** jetton_settings.decimals).toFixed(jetton_settings.decimals), jetton_name }, | ||
event: "resJTonBalance" | ||
@@ -196,0 +196,0 @@ }; |
{ | ||
"name": "ton-watcher", | ||
"version": "1.4.6", | ||
"version": "1.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -200,3 +200,3 @@ import { getHttpV4Endpoint } from "@orbs-network/ton-access"; | ||
const ok_event: TonProcessEvents<'resTonBalance'> = { | ||
data: { req_id, address, amount: (Number(balance) / 10 ** 9).toFixed() }, | ||
data: { req_id, address, amount: (Number(balance) / 10 ** 9).toFixed(9) }, | ||
event: "resTonBalance" | ||
@@ -241,3 +241,3 @@ }; | ||
const ok_event: TonProcessEvents<'resJTonBalance'> = { | ||
data: { req_id, address, amount: (Number(balance) / 10 ** jetton_settings.decimals).toFixed(), jetton_name }, | ||
data: { req_id, address, amount: (Number(balance) / 10 ** jetton_settings.decimals).toFixed(jetton_settings.decimals), jetton_name }, | ||
event: "resJTonBalance" | ||
@@ -244,0 +244,0 @@ }; |
Sorry, the diff of this file is not supported yet
380904