@aurigami/sdk 1.8.5 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1647,8 +1647,8 @@ var TokenAmount = /*#__PURE__*/function () {
1647
1647
  var _proto = TokenAmount.prototype;
1648
1648
 
1649
1649
  _proto.formattedAmount = function formattedAmount(decimal, fmt) {
1650
- if (decimal && fmt) {
1651
- return new BigNumber(this.rawAmnt).div(decimalFactor(decimal)).toFormat(decimal, fmt);
1650
+ if (decimal !== undefined && fmt !== undefined) {
1651
+ return new BigNumber(this.rawAmnt).div(decimalFactor(this.token.decimals)).toFormat(decimal, fmt);
1652
1652
  }
1653
1653
 
1654
1654
  return new BigNumber(this.rawAmnt).div(decimalFactor(this.token.decimals)).toString();