Skip to content
  • Tarik Gul's avatar
    feat(balance-info): add query param to convert free balance to human (#914) · f1e03d6c
    Tarik Gul authored
    * 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
    f1e03d6c