Skip to content

Commit

Permalink
Fix monitor rune balance formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
koirikivi committed May 14, 2024
1 parent 66a7bf9 commit bfa61dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge_node/bridge/api/monitor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def multisig(self):
rune_entries[rune] = rune_response["entry"]

def format_raw_rune_amount(rune: str, amount_raw: int) -> Decimal:
return Decimal(amount_raw) / rune_entries[rune]["divisibility"]
return Decimal(amount_raw) / 10 ** rune_entries[rune]["divisibility"]

return {
"change_address": multisig.change_address,
Expand Down

0 comments on commit bfa61dc

Please sign in to comment.