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