@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.cjs.development.js +3 -11
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +3 -11
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/interactors/misc.ts +5 -13
|
@@ -4400,11 +4400,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4400
4400
|
returnTypes: ['uint256']
|
|
4401
4401
|
};
|
|
4402
4402
|
_context3.next = 4;
|
|
4403
|
-
return multicallRead.aggregate([//
|
|
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
|
-
|
|
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
|
|