@dhedge/v2-sdk 1.4.1 → 1.4.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.
@@ -14418,17 +14418,16 @@ var Dhedge = /*#__PURE__*/function () {
14418
14418
  while (1) {
14419
14419
  switch (_context2.prev = _context2.next) {
14420
14420
  case 0:
14421
- this.validatePool(address);
14422
14421
  poolLogic = new Contract(address, PoolLogic.abi, this.signer);
14423
- _context2.next = 4;
14422
+ _context2.next = 3;
14424
14423
  return poolLogic.poolManagerLogic();
14425
14424
 
14426
- case 4:
14425
+ case 3:
14427
14426
  managerLogicAddress = _context2.sent;
14428
14427
  managerLogic = new Contract(managerLogicAddress, ManagerLogic.abi, this.signer);
14429
14428
  return _context2.abrupt("return", new Pool(this.network, this.signer, poolLogic, managerLogic, this.utils, this.factory));
14430
14429
 
14431
- case 7:
14430
+ case 6:
14432
14431
  case "end":
14433
14432
  return _context2.stop();
14434
14433
  }
@@ -14441,49 +14440,6 @@ var Dhedge = /*#__PURE__*/function () {
14441
14440
  }
14442
14441
 
14443
14442
  return loadPool;
14444
- }()
14445
- /**
14446
- * Check if pool address is valid
14447
- * @param {string} address Pool address
14448
- * @returns {boolean} Is valid pool address
14449
- */
14450
- ;
14451
-
14452
- _proto.validatePool =
14453
- /*#__PURE__*/
14454
- function () {
14455
- var _validatePool = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(address) {
14456
- var isPool;
14457
- return runtime_1.wrap(function _callee3$(_context3) {
14458
- while (1) {
14459
- switch (_context3.prev = _context3.next) {
14460
- case 0:
14461
- _context3.next = 2;
14462
- return this.factory.isPool(address);
14463
-
14464
- case 2:
14465
- isPool = _context3.sent;
14466
-
14467
- if (isPool) {
14468
- _context3.next = 5;
14469
- break;
14470
- }
14471
-
14472
- throw new Error("Given address not a pool");
14473
-
14474
- case 5:
14475
- case "end":
14476
- return _context3.stop();
14477
- }
14478
- }
14479
- }, _callee3, this);
14480
- }));
14481
-
14482
- function validatePool(_x8) {
14483
- return _validatePool.apply(this, arguments);
14484
- }
14485
-
14486
- return validatePool;
14487
14443
  }();
14488
14444
 
14489
14445
  return Dhedge;