@aurigami/sdk 1.9.3 → 1.9.4
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.d.ts +1 -1
- package/dist/interactors/misc.d.ts +1 -1
- package/dist/sdk.cjs.development.js +18 -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 +18 -11
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/SDK.ts +3 -2
- package/src/interactors/misc.ts +3 -3
package/dist/sdk.esm.js
CHANGED
|
@@ -4465,17 +4465,20 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4465
4465
|
}();
|
|
4466
4466
|
|
|
4467
4467
|
_proto.sneakAccounts = /*#__PURE__*/function () {
|
|
4468
|
-
var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(accounts, tokenAddresses) {
|
|
4468
|
+
var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(accounts, tokenAddresses, dust) {
|
|
4469
4469
|
var _this3 = this;
|
|
4470
4470
|
|
|
4471
|
-
var _1E18,
|
|
4471
|
+
var _1E18, oracle, tokens, prices, exrate, res, _iterator2, _step2, addr, infos, _i, snapshot, bal, bor, balR, borR;
|
|
4472
4472
|
|
|
4473
4473
|
return runtime_1.wrap(function _callee5$(_context5) {
|
|
4474
4474
|
while (1) {
|
|
4475
4475
|
switch (_context5.prev = _context5.next) {
|
|
4476
4476
|
case 0:
|
|
4477
|
+
if (dust === void 0) {
|
|
4478
|
+
dust = /*#__PURE__*/new BigNumber(0.1);
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4477
4481
|
_1E18 = BigNumber$1.from(10).pow(18);
|
|
4478
|
-
dust = new BigNumber(0.1);
|
|
4479
4482
|
oracle = this.env.getContract(networkAddresses.misc.oracle, AuriOracleABI.abi);
|
|
4480
4483
|
tokens = tokenAddresses.map(function (addr) {
|
|
4481
4484
|
return _this3.env.getContract(addr, abis.abi);
|
|
@@ -4519,7 +4522,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4519
4522
|
balR = new BigNumber(bal.toString()).dividedBy(_1E18.toString());
|
|
4520
4523
|
borR = new BigNumber(bor.toString()).dividedBy(_1E18.toString());
|
|
4521
4524
|
|
|
4522
|
-
if (!(balR.
|
|
4525
|
+
if (!(balR.lte(dust) && borR.lte(dust))) {
|
|
4523
4526
|
_context5.next = 26;
|
|
4524
4527
|
break;
|
|
4525
4528
|
}
|
|
@@ -4559,7 +4562,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4559
4562
|
}, _callee5, this);
|
|
4560
4563
|
}));
|
|
4561
4564
|
|
|
4562
|
-
function sneakAccounts(_x4, _x5) {
|
|
4565
|
+
function sneakAccounts(_x4, _x5, _x6) {
|
|
4563
4566
|
return _sneakAccounts.apply(this, arguments);
|
|
4564
4567
|
}
|
|
4565
4568
|
|
|
@@ -5238,14 +5241,18 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5238
5241
|
}();
|
|
5239
5242
|
|
|
5240
5243
|
_proto.sneakAccounts = /*#__PURE__*/function () {
|
|
5241
|
-
var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(accounts, tokenAddresses) {
|
|
5244
|
+
var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(accounts, tokenAddresses, dust) {
|
|
5242
5245
|
return runtime_1.wrap(function _callee9$(_context9) {
|
|
5243
5246
|
while (1) {
|
|
5244
5247
|
switch (_context9.prev = _context9.next) {
|
|
5245
5248
|
case 0:
|
|
5246
|
-
|
|
5249
|
+
if (dust === void 0) {
|
|
5250
|
+
dust = /*#__PURE__*/new BigNumber(0.1);
|
|
5251
|
+
}
|
|
5247
5252
|
|
|
5248
|
-
|
|
5253
|
+
return _context9.abrupt("return", this._misc.sneakAccounts(accounts, tokenAddresses, dust));
|
|
5254
|
+
|
|
5255
|
+
case 2:
|
|
5249
5256
|
case "end":
|
|
5250
5257
|
return _context9.stop();
|
|
5251
5258
|
}
|
|
@@ -5253,7 +5260,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5253
5260
|
}, _callee9, this);
|
|
5254
5261
|
}));
|
|
5255
5262
|
|
|
5256
|
-
function sneakAccounts(_x7, _x8) {
|
|
5263
|
+
function sneakAccounts(_x7, _x8, _x9) {
|
|
5257
5264
|
return _sneakAccounts.apply(this, arguments);
|
|
5258
5265
|
}
|
|
5259
5266
|
|
|
@@ -5315,7 +5322,7 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
|
5315
5322
|
}, _callee11, this);
|
|
5316
5323
|
}));
|
|
5317
5324
|
|
|
5318
|
-
function stake(
|
|
5325
|
+
function stake(_x10) {
|
|
5319
5326
|
return _stake.apply(this, arguments);
|
|
5320
5327
|
}
|
|
5321
5328
|
|
|
@@ -5338,7 +5345,7 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
|
5338
5345
|
}, _callee12, this);
|
|
5339
5346
|
}));
|
|
5340
5347
|
|
|
5341
|
-
function unstake(
|
|
5348
|
+
function unstake(_x11) {
|
|
5342
5349
|
return _unstake.apply(this, arguments);
|
|
5343
5350
|
}
|
|
5344
5351
|
|