@aurigami/sdk 1.9.1 → 1.9.2

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.
package/dist/sdk.esm.js CHANGED
@@ -4399,11 +4399,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4399
4399
  returnTypes: ['uint256']
4400
4400
  };
4401
4401
  _context3.next = 4;
4402
- return multicallRead.aggregate([// Get total supply
4403
- _extends({}, baseBalanceOfCall, {
4404
- method: 'totalSupply',
4405
- args: []
4406
- }), // balance in team multisig
4402
+ return multicallRead.aggregate([// balance in team multisig
4407
4403
  _extends({}, baseBalanceOfCall, {
4408
4404
  args: [networkAddresses.misc.TEAM_MULTISIG]
4409
4405
  }), // balance in comptroller
@@ -4419,13 +4415,9 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4419
4415
 
4420
4416
  case 4:
4421
4417
  callResults = _context3.sent;
4422
- circulatingSupply = BigNumber$1.from(0);
4418
+ circulatingSupply = BigNumber$1.from('1' + '0'.repeat(10) + '0'.repeat(getDecimal(this.env.ply.address)));
4423
4419
  callResults.forEach(function (result, i) {
4424
- if (i === 0) {
4425
- circulatingSupply = result[0];
4426
- } else {
4427
- circulatingSupply = circulatingSupply.sub(result[0]);
4428
- }
4420
+ circulatingSupply = circulatingSupply.sub(result[0]);
4429
4421
  });
4430
4422
  return _context3.abrupt("return", new TokenAmount(PLYToken, circulatingSupply.toString()));
4431
4423