Skip to content
Unverified Commit f1e03d6c authored by Tarik Gul's avatar Tarik Gul Committed by GitHub
Browse files

feat(balance-info): add query param to convert free balance to human (#914)

* update the balance key in IAccountsBalanceInfo to also be a string

* accept a query param for converting the balance

* add private convertBalance

* add tests for convertBalance

* change convert to denominate

* switch all over to denomination

* inline comments

* handle zero values, and cleanup code

* handle all balance values

* add IBalanceLock type

* add denominateLocks

* update docs

* add error handling for a chain with no decimal

* correct the docs

* cleanup code

* cover edgecase where decimal is 0

* set api to historicApi

* fix decimal selection

* detail dec value in applyDenominationBalance
parent b9b54f35
Pipeline #193972 passed with stages
in 18 minutes and 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment