aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/bank.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cleaners/skyblock/bank.ts b/src/cleaners/skyblock/bank.ts
index b1a9e38..dd18c24 100644
--- a/src/cleaners/skyblock/bank.ts
+++ b/src/cleaners/skyblock/bank.ts
@@ -12,7 +12,7 @@ export interface BankHistoryItem {
export function cleanBank(data: any): Bank {
let history: BankHistoryItem[] = []
-
+
if (data?.banking?.transactions) {
let bankBalance = Math.round(data.banking.balance * 10) / 10
// we go in reverse so we can simulate the bank transactions
@@ -21,8 +21,8 @@ export function cleanBank(data: any): Bank {
// since we're going in reverse, we remove from the total balance when adding to the history
bankBalance -= change
history.push({
- change: change,
- total: bankBalance,
+ change: Math.round(change * 10) / 10,
+ total: Math.round(bankBalance * 10) / 10,
timestamp: transaction.timestamp,
name: transaction.initiator_name,
})