@dhedge/v2-sdk 1.9.6 → 1.9.8

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.
@@ -4213,6 +4213,7 @@ var Dapp;
4213
4213
  Dapp["LYRA"] = "lyra";
4214
4214
  Dapp["ZEROEX"] = "0x";
4215
4215
  Dapp["RAMSES"] = "ramses";
4216
+ Dapp["AERODROME"] = "aerodrome";
4216
4217
  })(Dapp || (Dapp = {}));
4217
4218
 
4218
4219
  var Transaction;
@@ -4244,7 +4245,7 @@ var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _Network$ARBITRUM, _Ne
4244
4245
  require("dotenv").config();
4245
4246
 
4246
4247
  var factoryAddress = (_factoryAddress = {}, _factoryAddress[Network.POLYGON] = process.env.STAGING_CONTRACTS ? "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53" : "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", _factoryAddress[Network.OPTIMISM] = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", _factoryAddress[Network.ARBITRUM] = "0xfffb5fb14606eb3a548c113026355020ddf27535", _factoryAddress[Network.BASE] = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", _factoryAddress);
4247
- var routerAddress = (_routerAddress = {}, _routerAddress[Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[Dapp.TOROS] = "0xB2F1498983bf9c9442c35F772e6C1AdE66a8DeDE", _Network$POLYGON[Dapp.ZEROEX] = "0xdef1c0ded9bec7f1a1670819833240f027b25eff", _Network$POLYGON), _routerAddress[Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$OPTIMISM[Dapp.TOROS] = "0x3988513793bCE39f0167064A9F7fC3617FaF35AB", _Network$OPTIMISM[Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[Dapp.ZEROEX] = "0xdef1abe32c034e558cdd535791643c58a13acc10", _Network$OPTIMISM), _routerAddress[Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$ARBITRUM[Dapp.UNISWAPV3] = "0xe592427a0aece92de3edee1f18e0157c05861564", _Network$ARBITRUM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM), _routerAddress[Network.BASE] = (_Network$BASE = {}, _Network$BASE[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$BASE[Dapp.ZEROEX] = "0xdef1c0ded9bec7f1a1670819833240f027b25eff", _Network$BASE), _routerAddress);
4248
+ var routerAddress = (_routerAddress = {}, _routerAddress[Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[Dapp.TOROS] = "0xB2F1498983bf9c9442c35F772e6C1AdE66a8DeDE", _Network$POLYGON[Dapp.ZEROEX] = "0xdef1c0ded9bec7f1a1670819833240f027b25eff", _Network$POLYGON), _routerAddress[Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$OPTIMISM[Dapp.TOROS] = "0x3988513793bCE39f0167064A9F7fC3617FaF35AB", _Network$OPTIMISM[Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[Dapp.ZEROEX] = "0xdef1abe32c034e558cdd535791643c58a13acc10", _Network$OPTIMISM), _routerAddress[Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$ARBITRUM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$ARBITRUM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM), _routerAddress[Network.BASE] = (_Network$BASE = {}, _Network$BASE[Dapp.ONEINCH] = "0x1111111254EEB25477B68fb85Ed929f73A960582", _Network$BASE[Dapp.ZEROEX] = "0xdef1c0ded9bec7f1a1670819833240f027b25eff", _Network$BASE[Dapp.AERODROME] = "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43", _Network$BASE[Dapp.AAVEV3] = "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5", _Network$BASE), _routerAddress);
4248
4249
  var dappFactoryAddress = (_dappFactoryAddress = {}, _dappFactoryAddress[Network.POLYGON] = (_Network$POLYGON2 = {}, _Network$POLYGON2[Dapp.SUSHISWAP] = "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", _Network$POLYGON2[Dapp.QUICKSWAP] = "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32", _Network$POLYGON2), _dappFactoryAddress[Network.OPTIMISM] = {}, _dappFactoryAddress[Network.ARBITRUM] = {}, _dappFactoryAddress[Network.BASE] = {}, _dappFactoryAddress);
4249
4250
  var stakingAddress = (_stakingAddress = {}, _stakingAddress[Network.POLYGON] = (_Network$POLYGON3 = {}, _Network$POLYGON3[Dapp.SUSHISWAP] = "0x0769fd68dFb93167989C6f7254cd0D766Fb2841F", _Network$POLYGON3[Dapp.BALANCER] = "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", _Network$POLYGON3[Dapp.AAVE] = "0x357D51124f59836DeD84c8a1730D72B749d8BC23", _Network$POLYGON3[Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$POLYGON3), _stakingAddress[Network.OPTIMISM] = {}, _stakingAddress[Network.ARBITRUM] = {}, _stakingAddress[Network.BASE] = {}, _stakingAddress);
4250
4251
  var aaveAddressProvider = (_aaveAddressProvider = {}, _aaveAddressProvider[Network.POLYGON] = (_Network$POLYGON4 = {}, _Network$POLYGON4[Dapp.AAVE] = "0xd05e3E715d945B59290df0ae8eF85c1BdB684744", _Network$POLYGON4[Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$POLYGON4), _aaveAddressProvider[Network.OPTIMISM] = (_Network$OPTIMISM2 = {}, _Network$OPTIMISM2[Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$OPTIMISM2), _aaveAddressProvider[Network.ARBITRUM] = (_Network$ARBITRUM2 = {}, _Network$ARBITRUM2[Dapp.AAVEV3] = "0xa97684ead0e402dc232d5a977953df7ecbab3cdb", _Network$ARBITRUM2), _aaveAddressProvider[Network.BASE] = (_Network$BASE2 = {}, _Network$BASE2[Dapp.AAVEV3] = "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D", _Network$BASE2), _aaveAddressProvider);
@@ -20121,6 +20122,7 @@ var Pool = /*#__PURE__*/function () {
20121
20122
  * @param {string} nasset Address of deposit asset
20122
20123
  * @param {BigNumber | string} amount Amount to be approved
20123
20124
  * @param {any} options Transaction options
20125
+ * @param {boolean} estimateGas Simulate/estimate gas
20124
20126
  * @returns {Promise<any>} Transaction
20125
20127
  */
20126
20128
  ;
@@ -20128,7 +20130,7 @@ var Pool = /*#__PURE__*/function () {
20128
20130
  _proto.approveDeposit =
20129
20131
  /*#__PURE__*/
20130
20132
  function () {
20131
- var _approveDeposit = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(asset, amount, options) {
20133
+ var _approveDeposit = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(asset, amount, options, estimateGas) {
20132
20134
  var iERC20, tx;
20133
20135
  return runtime_1.wrap(function _callee2$(_context2) {
20134
20136
  while (1) {
@@ -20138,15 +20140,32 @@ var Pool = /*#__PURE__*/function () {
20138
20140
  options = null;
20139
20141
  }
20140
20142
 
20143
+ if (estimateGas === void 0) {
20144
+ estimateGas = false;
20145
+ }
20146
+
20141
20147
  iERC20 = new ethers.Contract(asset, IERC20.abi, this.signer);
20142
- _context2.next = 4;
20148
+
20149
+ if (!estimateGas) {
20150
+ _context2.next = 7;
20151
+ break;
20152
+ }
20153
+
20154
+ _context2.next = 6;
20155
+ return iERC20.estimateGas.approve(this.address, amount, options);
20156
+
20157
+ case 6:
20158
+ return _context2.abrupt("return", _context2.sent);
20159
+
20160
+ case 7:
20161
+ _context2.next = 9;
20143
20162
  return iERC20.approve(this.address, amount, options);
20144
20163
 
20145
- case 4:
20164
+ case 9:
20146
20165
  tx = _context2.sent;
20147
20166
  return _context2.abrupt("return", tx);
20148
20167
 
20149
- case 6:
20168
+ case 11:
20150
20169
  case "end":
20151
20170
  return _context2.stop();
20152
20171
  }
@@ -20154,7 +20173,7 @@ var Pool = /*#__PURE__*/function () {
20154
20173
  }, _callee2, this);
20155
20174
  }));
20156
20175
 
20157
- function approveDeposit(_x, _x2, _x3) {
20176
+ function approveDeposit(_x, _x2, _x3, _x4) {
20158
20177
  return _approveDeposit.apply(this, arguments);
20159
20178
  }
20160
20179
 
@@ -20165,6 +20184,7 @@ var Pool = /*#__PURE__*/function () {
20165
20184
  * @param {string} asset Address of asset
20166
20185
  * @param {BigNumber | string} amount Amount to be deposited
20167
20186
  * @param {any} options Transaction options
20187
+ * @param {boolean} estimateGas Simulate/estimate gas
20168
20188
  * @returns {Promise<any>} Transaction
20169
20189
  */
20170
20190
  ;
@@ -20172,7 +20192,7 @@ var Pool = /*#__PURE__*/function () {
20172
20192
  _proto.deposit =
20173
20193
  /*#__PURE__*/
20174
20194
  function () {
20175
- var _deposit = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(asset, amount, options) {
20195
+ var _deposit = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(asset, amount, options, estimateGas) {
20176
20196
  var tx;
20177
20197
  return runtime_1.wrap(function _callee3$(_context3) {
20178
20198
  while (1) {
@@ -20182,14 +20202,30 @@ var Pool = /*#__PURE__*/function () {
20182
20202
  options = null;
20183
20203
  }
20184
20204
 
20185
- _context3.next = 3;
20205
+ if (estimateGas === void 0) {
20206
+ estimateGas = false;
20207
+ }
20208
+
20209
+ if (!estimateGas) {
20210
+ _context3.next = 6;
20211
+ break;
20212
+ }
20213
+
20214
+ _context3.next = 5;
20215
+ return this.poolLogic.estimateGas.deposit(asset, amount, options);
20216
+
20217
+ case 5:
20218
+ return _context3.abrupt("return", _context3.sent);
20219
+
20220
+ case 6:
20221
+ _context3.next = 8;
20186
20222
  return this.poolLogic.deposit(asset, amount, options);
20187
20223
 
20188
- case 3:
20224
+ case 8:
20189
20225
  tx = _context3.sent;
20190
20226
  return _context3.abrupt("return", tx);
20191
20227
 
20192
- case 5:
20228
+ case 10:
20193
20229
  case "end":
20194
20230
  return _context3.stop();
20195
20231
  }
@@ -20197,7 +20233,7 @@ var Pool = /*#__PURE__*/function () {
20197
20233
  }, _callee3, this);
20198
20234
  }));
20199
20235
 
20200
- function deposit(_x4, _x5, _x6) {
20236
+ function deposit(_x5, _x6, _x7, _x8) {
20201
20237
  return _deposit.apply(this, arguments);
20202
20238
  }
20203
20239
 
@@ -20207,6 +20243,7 @@ var Pool = /*#__PURE__*/function () {
20207
20243
  * Withdraw assets from a pool
20208
20244
  * @param fundTokenAmount Amount of pool tokens to be withdrawn
20209
20245
  * @param {any} options Transaction options
20246
+ * @param {boolean} estimateGas Simulate/estimate gas
20210
20247
  * @returns {Promise<any>} Transaction
20211
20248
  */
20212
20249
  ;
@@ -20214,7 +20251,7 @@ var Pool = /*#__PURE__*/function () {
20214
20251
  _proto.withdraw =
20215
20252
  /*#__PURE__*/
20216
20253
  function () {
20217
- var _withdraw = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(fundTokenAmount, options) {
20254
+ var _withdraw = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(fundTokenAmount, options, estimateGas) {
20218
20255
  var tx;
20219
20256
  return runtime_1.wrap(function _callee4$(_context4) {
20220
20257
  while (1) {
@@ -20224,14 +20261,30 @@ var Pool = /*#__PURE__*/function () {
20224
20261
  options = null;
20225
20262
  }
20226
20263
 
20227
- _context4.next = 3;
20264
+ if (estimateGas === void 0) {
20265
+ estimateGas = false;
20266
+ }
20267
+
20268
+ if (!estimateGas) {
20269
+ _context4.next = 6;
20270
+ break;
20271
+ }
20272
+
20273
+ _context4.next = 5;
20274
+ return this.poolLogic.estimateGas.withdraw(fundTokenAmount, options);
20275
+
20276
+ case 5:
20277
+ return _context4.abrupt("return", _context4.sent);
20278
+
20279
+ case 6:
20280
+ _context4.next = 8;
20228
20281
  return this.poolLogic.withdraw(fundTokenAmount, options);
20229
20282
 
20230
- case 3:
20283
+ case 8:
20231
20284
  tx = _context4.sent;
20232
20285
  return _context4.abrupt("return", tx);
20233
20286
 
20234
- case 5:
20287
+ case 10:
20235
20288
  case "end":
20236
20289
  return _context4.stop();
20237
20290
  }
@@ -20239,7 +20292,7 @@ var Pool = /*#__PURE__*/function () {
20239
20292
  }, _callee4, this);
20240
20293
  }));
20241
20294
 
20242
- function withdraw(_x7, _x8) {
20295
+ function withdraw(_x9, _x10, _x11) {
20243
20296
  return _withdraw.apply(this, arguments);
20244
20297
  }
20245
20298
 
@@ -20291,7 +20344,7 @@ var Pool = /*#__PURE__*/function () {
20291
20344
  }, _callee5, this);
20292
20345
  }));
20293
20346
 
20294
- function approve(_x9, _x10, _x11, _x12, _x13) {
20347
+ function approve(_x12, _x13, _x14, _x15, _x16) {
20295
20348
  return _approve.apply(this, arguments);
20296
20349
  }
20297
20350
 
@@ -20342,7 +20395,7 @@ var Pool = /*#__PURE__*/function () {
20342
20395
  }, _callee6, this);
20343
20396
  }));
20344
20397
 
20345
- function approveStaking(_x14, _x15, _x16, _x17, _x18) {
20398
+ function approveStaking(_x17, _x18, _x19, _x20, _x21) {
20346
20399
  return _approveStaking.apply(this, arguments);
20347
20400
  }
20348
20401
 
@@ -20393,7 +20446,7 @@ var Pool = /*#__PURE__*/function () {
20393
20446
  }, _callee7, this);
20394
20447
  }));
20395
20448
 
20396
- function approveUniswapV3Liquidity(_x19, _x20, _x21, _x22) {
20449
+ function approveUniswapV3Liquidity(_x22, _x23, _x24, _x25) {
20397
20450
  return _approveUniswapV3Liquidity.apply(this, arguments);
20398
20451
  }
20399
20452
 
@@ -20444,7 +20497,7 @@ var Pool = /*#__PURE__*/function () {
20444
20497
  }, _callee8, this);
20445
20498
  }));
20446
20499
 
20447
- function approveSpender(_x23, _x24, _x25, _x26, _x27) {
20500
+ function approveSpender(_x26, _x27, _x28, _x29, _x30) {
20448
20501
  return _approveSpender.apply(this, arguments);
20449
20502
  }
20450
20503
 
@@ -20570,7 +20623,7 @@ var Pool = /*#__PURE__*/function () {
20570
20623
  }, _callee9, this);
20571
20624
  }));
20572
20625
 
20573
- function trade(_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
20626
+ function trade(_x31, _x32, _x33, _x34, _x35, _x36, _x37) {
20574
20627
  return _trade.apply(this, arguments);
20575
20628
  }
20576
20629
 
@@ -20636,7 +20689,7 @@ var Pool = /*#__PURE__*/function () {
20636
20689
  }, _callee10, this);
20637
20690
  }));
20638
20691
 
20639
- function addLiquidity(_x35, _x36, _x37, _x38, _x39, _x40, _x41) {
20692
+ function addLiquidity(_x38, _x39, _x40, _x41, _x42, _x43, _x44) {
20640
20693
  return _addLiquidity.apply(this, arguments);
20641
20694
  }
20642
20695
 
@@ -20700,7 +20753,7 @@ var Pool = /*#__PURE__*/function () {
20700
20753
  }, _callee11, this);
20701
20754
  }));
20702
20755
 
20703
- function removeLiquidity(_x42, _x43, _x44, _x45, _x46, _x47) {
20756
+ function removeLiquidity(_x45, _x46, _x47, _x48, _x49, _x50) {
20704
20757
  return _removeLiquidity.apply(this, arguments);
20705
20758
  }
20706
20759
 
@@ -20756,7 +20809,7 @@ var Pool = /*#__PURE__*/function () {
20756
20809
  }, _callee12, this);
20757
20810
  }));
20758
20811
 
20759
- function stake(_x48, _x49, _x50, _x51, _x52) {
20812
+ function stake(_x51, _x52, _x53, _x54, _x55) {
20760
20813
  return _stake.apply(this, arguments);
20761
20814
  }
20762
20815
 
@@ -20791,7 +20844,7 @@ var Pool = /*#__PURE__*/function () {
20791
20844
  }
20792
20845
 
20793
20846
  _context13.t0 = dapp;
20794
- _context13.next = _context13.t0 === Dapp.BALANCER ? 5 : _context13.t0 === Dapp.VELODROME ? 8 : _context13.t0 === Dapp.RAMSES ? 8 : _context13.t0 === Dapp.VELODROMEV2 ? 10 : 12;
20847
+ _context13.next = _context13.t0 === Dapp.BALANCER ? 5 : _context13.t0 === Dapp.VELODROME ? 8 : _context13.t0 === Dapp.RAMSES ? 8 : _context13.t0 === Dapp.VELODROMEV2 ? 10 : _context13.t0 === Dapp.AERODROME ? 10 : 12;
20795
20848
  break;
20796
20849
 
20797
20850
  case 5:
@@ -20826,7 +20879,7 @@ var Pool = /*#__PURE__*/function () {
20826
20879
  }, _callee13, this);
20827
20880
  }));
20828
20881
 
20829
- function stakeInGauge(_x53, _x54, _x55, _x56, _x57) {
20882
+ function stakeInGauge(_x56, _x57, _x58, _x59, _x60) {
20830
20883
  return _stakeInGauge.apply(this, arguments);
20831
20884
  }
20832
20885
 
@@ -20882,7 +20935,7 @@ var Pool = /*#__PURE__*/function () {
20882
20935
  }, _callee14, this);
20883
20936
  }));
20884
20937
 
20885
- function unStake(_x58, _x59, _x60, _x61, _x62) {
20938
+ function unStake(_x61, _x62, _x63, _x64, _x65) {
20886
20939
  return _unStake.apply(this, arguments);
20887
20940
  }
20888
20941
 
@@ -20932,7 +20985,7 @@ var Pool = /*#__PURE__*/function () {
20932
20985
  }, _callee15, this);
20933
20986
  }));
20934
20987
 
20935
- function unstakeFromGauge(_x63, _x64, _x65, _x66) {
20988
+ function unstakeFromGauge(_x66, _x67, _x68, _x69) {
20936
20989
  return _unstakeFromGauge.apply(this, arguments);
20937
20990
  }
20938
20991
 
@@ -20988,7 +21041,7 @@ var Pool = /*#__PURE__*/function () {
20988
21041
  }, _callee16, this);
20989
21042
  }));
20990
21043
 
20991
- function lend(_x67, _x68, _x69, _x70, _x71, _x72) {
21044
+ function lend(_x70, _x71, _x72, _x73, _x74, _x75) {
20992
21045
  return _lend.apply(this, arguments);
20993
21046
  }
20994
21047
 
@@ -21039,7 +21092,7 @@ var Pool = /*#__PURE__*/function () {
21039
21092
  }, _callee17, this);
21040
21093
  }));
21041
21094
 
21042
- function withdrawDeposit(_x73, _x74, _x75, _x76, _x77) {
21095
+ function withdrawDeposit(_x76, _x77, _x78, _x79, _x80) {
21043
21096
  return _withdrawDeposit.apply(this, arguments);
21044
21097
  }
21045
21098
 
@@ -21095,7 +21148,7 @@ var Pool = /*#__PURE__*/function () {
21095
21148
  }, _callee18, this);
21096
21149
  }));
21097
21150
 
21098
- function borrow(_x78, _x79, _x80, _x81, _x82, _x83) {
21151
+ function borrow(_x81, _x82, _x83, _x84, _x85, _x86) {
21099
21152
  return _borrow.apply(this, arguments);
21100
21153
  }
21101
21154
 
@@ -21146,7 +21199,7 @@ var Pool = /*#__PURE__*/function () {
21146
21199
  }, _callee19, this);
21147
21200
  }));
21148
21201
 
21149
- function repay(_x84, _x85, _x86, _x87, _x88) {
21202
+ function repay(_x87, _x88, _x89, _x90, _x91) {
21150
21203
  return _repay.apply(this, arguments);
21151
21204
  }
21152
21205
 
@@ -21201,7 +21254,7 @@ var Pool = /*#__PURE__*/function () {
21201
21254
  }, _callee20, this);
21202
21255
  }));
21203
21256
 
21204
- function harvestRewards(_x89, _x90, _x91, _x92) {
21257
+ function harvestRewards(_x92, _x93, _x94, _x95) {
21205
21258
  return _harvestRewards.apply(this, arguments);
21206
21259
  }
21207
21260
 
@@ -21211,6 +21264,7 @@ var Pool = /*#__PURE__*/function () {
21211
21264
  * Change enabled pool assets
21212
21265
  * @param {AssetEnabled[]} assets New pool assets
21213
21266
  * @param {any} options Transaction options
21267
+ * @param {boolean} estimateGas Simulate/estimate gas
21214
21268
  * @returns {Promise<any>} Transaction
21215
21269
  */
21216
21270
  ;
@@ -21218,7 +21272,7 @@ var Pool = /*#__PURE__*/function () {
21218
21272
  _proto.changeAssets =
21219
21273
  /*#__PURE__*/
21220
21274
  function () {
21221
- var _changeAssets = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21(assets, options) {
21275
+ var _changeAssets = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21(assets, options, estimateGas) {
21222
21276
  var currentAssetsEnabled, currentAssets, newAssets, removedAssets, changedAssets, tx;
21223
21277
  return runtime_1.wrap(function _callee21$(_context21) {
21224
21278
  while (1) {
@@ -21228,10 +21282,14 @@ var Pool = /*#__PURE__*/function () {
21228
21282
  options = null;
21229
21283
  }
21230
21284
 
21231
- _context21.next = 3;
21285
+ if (estimateGas === void 0) {
21286
+ estimateGas = false;
21287
+ }
21288
+
21289
+ _context21.next = 4;
21232
21290
  return this.getComposition();
21233
21291
 
21234
- case 3:
21292
+ case 4:
21235
21293
  currentAssetsEnabled = _context21.sent;
21236
21294
  currentAssets = currentAssetsEnabled.map(function (e) {
21237
21295
  return e.asset.toLocaleLowerCase();
@@ -21245,14 +21303,27 @@ var Pool = /*#__PURE__*/function () {
21245
21303
  changedAssets = assets.map(function (e) {
21246
21304
  return [e.asset, e.isDeposit];
21247
21305
  });
21248
- _context21.next = 10;
21306
+
21307
+ if (!estimateGas) {
21308
+ _context21.next = 13;
21309
+ break;
21310
+ }
21311
+
21312
+ _context21.next = 12;
21313
+ return this.managerLogic.estimateGas.changeAssets(changedAssets, removedAssets, options);
21314
+
21315
+ case 12:
21316
+ return _context21.abrupt("return", _context21.sent);
21317
+
21318
+ case 13:
21319
+ _context21.next = 15;
21249
21320
  return this.managerLogic.changeAssets(changedAssets, removedAssets, options);
21250
21321
 
21251
- case 10:
21322
+ case 15:
21252
21323
  tx = _context21.sent;
21253
21324
  return _context21.abrupt("return", tx);
21254
21325
 
21255
- case 12:
21326
+ case 17:
21256
21327
  case "end":
21257
21328
  return _context21.stop();
21258
21329
  }
@@ -21260,7 +21331,7 @@ var Pool = /*#__PURE__*/function () {
21260
21331
  }, _callee21, this);
21261
21332
  }));
21262
21333
 
21263
- function changeAssets(_x93, _x94) {
21334
+ function changeAssets(_x96, _x97, _x98) {
21264
21335
  return _changeAssets.apply(this, arguments);
21265
21336
  }
21266
21337
 
@@ -21270,6 +21341,7 @@ var Pool = /*#__PURE__*/function () {
21270
21341
  * Set a new trader with trading permissions
21271
21342
  * @param {string} trader Address trader account
21272
21343
  * @param {any} options Transaction options
21344
+ * @param {boolean} estimateGas Simulate/estimate gas
21273
21345
  * @returns {Promise<any>} Transaction
21274
21346
  */
21275
21347
  ;
@@ -21277,7 +21349,7 @@ var Pool = /*#__PURE__*/function () {
21277
21349
  _proto.setTrader =
21278
21350
  /*#__PURE__*/
21279
21351
  function () {
21280
- var _setTrader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(trader, options) {
21352
+ var _setTrader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(trader, options, estimateGas) {
21281
21353
  var tx;
21282
21354
  return runtime_1.wrap(function _callee22$(_context22) {
21283
21355
  while (1) {
@@ -21287,14 +21359,30 @@ var Pool = /*#__PURE__*/function () {
21287
21359
  options = null;
21288
21360
  }
21289
21361
 
21290
- _context22.next = 3;
21362
+ if (estimateGas === void 0) {
21363
+ estimateGas = false;
21364
+ }
21365
+
21366
+ if (!estimateGas) {
21367
+ _context22.next = 6;
21368
+ break;
21369
+ }
21370
+
21371
+ _context22.next = 5;
21372
+ return this.managerLogic.estimateGas.setTrader(trader, options);
21373
+
21374
+ case 5:
21375
+ return _context22.abrupt("return", _context22.sent);
21376
+
21377
+ case 6:
21378
+ _context22.next = 8;
21291
21379
  return this.managerLogic.setTrader(trader, options);
21292
21380
 
21293
- case 3:
21381
+ case 8:
21294
21382
  tx = _context22.sent;
21295
21383
  return _context22.abrupt("return", tx);
21296
21384
 
21297
- case 5:
21385
+ case 10:
21298
21386
  case "end":
21299
21387
  return _context22.stop();
21300
21388
  }
@@ -21302,7 +21390,7 @@ var Pool = /*#__PURE__*/function () {
21302
21390
  }, _callee22, this);
21303
21391
  }));
21304
21392
 
21305
- function setTrader(_x95, _x96) {
21393
+ function setTrader(_x99, _x100, _x101) {
21306
21394
  return _setTrader.apply(this, arguments);
21307
21395
  }
21308
21396
 
@@ -21352,7 +21440,7 @@ var Pool = /*#__PURE__*/function () {
21352
21440
  }, _callee23, this);
21353
21441
  }));
21354
21442
 
21355
- function joinBalancerPool(_x97, _x98, _x99, _x100, _x101) {
21443
+ function joinBalancerPool(_x102, _x103, _x104, _x105, _x106) {
21356
21444
  return _joinBalancerPool.apply(this, arguments);
21357
21445
  }
21358
21446
 
@@ -21407,7 +21495,7 @@ var Pool = /*#__PURE__*/function () {
21407
21495
  }, _callee24, this);
21408
21496
  }));
21409
21497
 
21410
- function exitBalancerPool(_x102, _x103, _x104, _x105, _x106, _x107) {
21498
+ function exitBalancerPool(_x107, _x108, _x109, _x110, _x111, _x112) {
21411
21499
  return _exitBalancerPool.apply(this, arguments);
21412
21500
  }
21413
21501
 
@@ -21463,7 +21551,7 @@ var Pool = /*#__PURE__*/function () {
21463
21551
  }, _callee25, this);
21464
21552
  }));
21465
21553
 
21466
- function harvestAaveRewards(_x108, _x109, _x110) {
21554
+ function harvestAaveRewards(_x113, _x114, _x115) {
21467
21555
  return _harvestAaveRewards.apply(this, arguments);
21468
21556
  }
21469
21557
 
@@ -21516,7 +21604,7 @@ var Pool = /*#__PURE__*/function () {
21516
21604
  }, _callee26, this);
21517
21605
  }));
21518
21606
 
21519
- function harvestAaveV3Rewards(_x111, _x112, _x113, _x114) {
21607
+ function harvestAaveV3Rewards(_x116, _x117, _x118, _x119) {
21520
21608
  return _harvestAaveV3Rewards.apply(this, arguments);
21521
21609
  }
21522
21610
 
@@ -21586,7 +21674,7 @@ var Pool = /*#__PURE__*/function () {
21586
21674
  }, _callee27, this);
21587
21675
  }));
21588
21676
 
21589
- function addLiquidityUniswapV3(_x115, _x116, _x117, _x118, _x119, _x120, _x121, _x122, _x123, _x124, _x125) {
21677
+ function addLiquidityUniswapV3(_x120, _x121, _x122, _x123, _x124, _x125, _x126, _x127, _x128, _x129, _x130) {
21590
21678
  return _addLiquidityUniswapV.apply(this, arguments);
21591
21679
  }
21592
21680
 
@@ -21697,7 +21785,7 @@ var Pool = /*#__PURE__*/function () {
21697
21785
  }, _callee28, this);
21698
21786
  }));
21699
21787
 
21700
- function decreaseLiquidity(_x126, _x127, _x128, _x129, _x130) {
21788
+ function decreaseLiquidity(_x131, _x132, _x133, _x134, _x135) {
21701
21789
  return _decreaseLiquidity.apply(this, arguments);
21702
21790
  }
21703
21791
 
@@ -21787,7 +21875,7 @@ var Pool = /*#__PURE__*/function () {
21787
21875
  }, _callee29, this);
21788
21876
  }));
21789
21877
 
21790
- function increaseLiquidity(_x131, _x132, _x133, _x134, _x135, _x136) {
21878
+ function increaseLiquidity(_x136, _x137, _x138, _x139, _x140, _x141) {
21791
21879
  return _increaseLiquidity.apply(this, arguments);
21792
21880
  }
21793
21881
 
@@ -21821,7 +21909,7 @@ var Pool = /*#__PURE__*/function () {
21821
21909
  }
21822
21910
 
21823
21911
  _context30.t0 = dapp;
21824
- _context30.next = _context30.t0 === Dapp.UNISWAPV3 ? 5 : _context30.t0 === Dapp.ARRAKIS ? 9 : _context30.t0 === Dapp.BALANCER ? 9 : _context30.t0 === Dapp.VELODROME ? 13 : _context30.t0 === Dapp.RAMSES ? 13 : _context30.t0 === Dapp.VELODROMEV2 ? 16 : 19;
21912
+ _context30.next = _context30.t0 === Dapp.UNISWAPV3 ? 5 : _context30.t0 === Dapp.ARRAKIS ? 9 : _context30.t0 === Dapp.BALANCER ? 9 : _context30.t0 === Dapp.VELODROME ? 13 : _context30.t0 === Dapp.RAMSES ? 13 : _context30.t0 === Dapp.VELODROMEV2 ? 16 : _context30.t0 === Dapp.AERODROME ? 16 : 19;
21825
21913
  break;
21826
21914
 
21827
21915
  case 5:
@@ -21865,7 +21953,7 @@ var Pool = /*#__PURE__*/function () {
21865
21953
  }, _callee30, this);
21866
21954
  }));
21867
21955
 
21868
- function claimFees(_x137, _x138, _x139, _x140) {
21956
+ function claimFees(_x142, _x143, _x144, _x145) {
21869
21957
  return _claimFees.apply(this, arguments);
21870
21958
  }
21871
21959
 
@@ -21926,7 +22014,7 @@ var Pool = /*#__PURE__*/function () {
21926
22014
  }, _callee31, this);
21927
22015
  }));
21928
22016
 
21929
- function tradeUniswapV3(_x141, _x142, _x143, _x144, _x145, _x146, _x147) {
22017
+ function tradeUniswapV3(_x146, _x147, _x148, _x149, _x150, _x151, _x152) {
21930
22018
  return _tradeUniswapV.apply(this, arguments);
21931
22019
  }
21932
22020
 
@@ -21988,7 +22076,7 @@ var Pool = /*#__PURE__*/function () {
21988
22076
  }, _callee32, this);
21989
22077
  }));
21990
22078
 
21991
- function addLiquidityVelodrome(_x148, _x149, _x150, _x151, _x152, _x153, _x154) {
22079
+ function addLiquidityVelodrome(_x153, _x154, _x155, _x156, _x157, _x158, _x159) {
21992
22080
  return _addLiquidityVelodrome.apply(this, arguments);
21993
22081
  }
21994
22082
 
@@ -22049,7 +22137,7 @@ var Pool = /*#__PURE__*/function () {
22049
22137
  }, _callee33, this);
22050
22138
  }));
22051
22139
 
22052
- function removeLiquidityVelodrome(_x155, _x156, _x157, _x158, _x159, _x160) {
22140
+ function removeLiquidityVelodrome(_x160, _x161, _x162, _x163, _x164, _x165) {
22053
22141
  return _removeLiquidityVelodrome.apply(this, arguments);
22054
22142
  }
22055
22143
 
@@ -22111,7 +22199,7 @@ var Pool = /*#__PURE__*/function () {
22111
22199
  }, _callee34, this);
22112
22200
  }));
22113
22201
 
22114
- function addLiquidityVelodromeV2(_x161, _x162, _x163, _x164, _x165, _x166, _x167) {
22202
+ function addLiquidityVelodromeV2(_x166, _x167, _x168, _x169, _x170, _x171, _x172) {
22115
22203
  return _addLiquidityVelodromeV.apply(this, arguments);
22116
22204
  }
22117
22205
 
@@ -22172,7 +22260,7 @@ var Pool = /*#__PURE__*/function () {
22172
22260
  }, _callee35, this);
22173
22261
  }));
22174
22262
 
22175
- function removeLiquidityVelodromeV2(_x168, _x169, _x170, _x171, _x172, _x173) {
22263
+ function removeLiquidityVelodromeV2(_x173, _x174, _x175, _x176, _x177, _x178) {
22176
22264
  return _removeLiquidityVelodromeV.apply(this, arguments);
22177
22265
  }
22178
22266
 
@@ -22180,7 +22268,7 @@ var Pool = /*#__PURE__*/function () {
22180
22268
  }()
22181
22269
  /**
22182
22270
  * Add liquidity to Velodrome V2 or Ramses pool
22183
- * @param {Dapp} dapp VelodromeV2 or Ramses
22271
+ * @param {Dapp} dapp VelodromeV2, Ramses or Aerodrome
22184
22272
  * @param {string} assetA First asset
22185
22273
  * @param {string} assetB Second asset
22186
22274
  * @param {BigNumber | string} amountA Amount first asset
@@ -22235,7 +22323,7 @@ var Pool = /*#__PURE__*/function () {
22235
22323
  }, _callee36, this);
22236
22324
  }));
22237
22325
 
22238
- function addLiquidityV2(_x174, _x175, _x176, _x177, _x178, _x179, _x180, _x181) {
22326
+ function addLiquidityV2(_x179, _x180, _x181, _x182, _x183, _x184, _x185, _x186) {
22239
22327
  return _addLiquidityV.apply(this, arguments);
22240
22328
  }
22241
22329
 
@@ -22243,7 +22331,7 @@ var Pool = /*#__PURE__*/function () {
22243
22331
  }()
22244
22332
  /**
22245
22333
  * Remove liquidity from Velodrome V2 or Ramses pool
22246
- * @param {Dapp} dapp VelodromeV2 or Ramses
22334
+ * @param {Dapp} dapp VelodromeV2, Ramses or Aerodrome
22247
22335
  * @param {string} assetA First asset
22248
22336
  * @param {string} assetB Second asset
22249
22337
  * @param {BigNumber | string} amount Amount of LP tokens
@@ -22297,7 +22385,7 @@ var Pool = /*#__PURE__*/function () {
22297
22385
  }, _callee37, this);
22298
22386
  }));
22299
22387
 
22300
- function removeLiquidityV2(_x182, _x183, _x184, _x185, _x186, _x187, _x188) {
22388
+ function removeLiquidityV2(_x187, _x188, _x189, _x190, _x191, _x192, _x193) {
22301
22389
  return _removeLiquidityV.apply(this, arguments);
22302
22390
  }
22303
22391
 
@@ -22365,7 +22453,7 @@ var Pool = /*#__PURE__*/function () {
22365
22453
  }, _callee38, this);
22366
22454
  }));
22367
22455
 
22368
- function tradeLyraOption(_x189, _x190, _x191, _x192, _x193, _x194, _x195, _x196, _x197, _x198, _x199) {
22456
+ function tradeLyraOption(_x194, _x195, _x196, _x197, _x198, _x199, _x200, _x201, _x202, _x203, _x204) {
22369
22457
  return _tradeLyraOption.apply(this, arguments);
22370
22458
  }
22371
22459
 
@@ -22399,7 +22487,7 @@ var Pool = /*#__PURE__*/function () {
22399
22487
  }, _callee39, this);
22400
22488
  }));
22401
22489
 
22402
- function getLyraPositions(_x200) {
22490
+ function getLyraPositions(_x205) {
22403
22491
  return _getLyraPositions.apply(this, arguments);
22404
22492
  }
22405
22493
 
@@ -22447,7 +22535,7 @@ var Pool = /*#__PURE__*/function () {
22447
22535
  }, _callee40, this);
22448
22536
  }));
22449
22537
 
22450
- function changeFuturesMargin(_x201, _x202, _x203, _x204) {
22538
+ function changeFuturesMargin(_x206, _x207, _x208, _x209) {
22451
22539
  return _changeFuturesMargin.apply(this, arguments);
22452
22540
  }
22453
22541
 
@@ -22500,7 +22588,7 @@ var Pool = /*#__PURE__*/function () {
22500
22588
  }, _callee41, this);
22501
22589
  }));
22502
22590
 
22503
- function changeFuturesPosition(_x205, _x206, _x207, _x208) {
22591
+ function changeFuturesPosition(_x210, _x211, _x212, _x213) {
22504
22592
  return _changeFuturesPosition.apply(this, arguments);
22505
22593
  }
22506
22594
 
@@ -22552,7 +22640,7 @@ var Pool = /*#__PURE__*/function () {
22552
22640
  }, _callee42, this);
22553
22641
  }));
22554
22642
 
22555
- function cancelFuturesOrder(_x209, _x210, _x211) {
22643
+ function cancelFuturesOrder(_x214, _x215, _x216) {
22556
22644
  return _cancelFuturesOrder.apply(this, arguments);
22557
22645
  }
22558
22646
 
@@ -22561,6 +22649,7 @@ var Pool = /*#__PURE__*/function () {
22561
22649
  /**
22562
22650
  * mintManagerFee
22563
22651
  * @param {any} options Transaction options
22652
+ * @param {boolean} estimateGas Simulate/estimate gas
22564
22653
  * @returns {Promise<any>} Transaction
22565
22654
  */
22566
22655
  ;
@@ -22568,7 +22657,7 @@ var Pool = /*#__PURE__*/function () {
22568
22657
  _proto.mintManagerFee =
22569
22658
  /*#__PURE__*/
22570
22659
  function () {
22571
- var _mintManagerFee = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(options) {
22660
+ var _mintManagerFee = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(options, estimateGas) {
22572
22661
  var tx;
22573
22662
  return runtime_1.wrap(function _callee43$(_context43) {
22574
22663
  while (1) {
@@ -22578,14 +22667,30 @@ var Pool = /*#__PURE__*/function () {
22578
22667
  options = null;
22579
22668
  }
22580
22669
 
22581
- _context43.next = 3;
22670
+ if (estimateGas === void 0) {
22671
+ estimateGas = false;
22672
+ }
22673
+
22674
+ if (!estimateGas) {
22675
+ _context43.next = 6;
22676
+ break;
22677
+ }
22678
+
22679
+ _context43.next = 5;
22680
+ return this.poolLogic.estimateGas.mintManagerFee(options);
22681
+
22682
+ case 5:
22683
+ return _context43.abrupt("return", _context43.sent);
22684
+
22685
+ case 6:
22686
+ _context43.next = 8;
22582
22687
  return this.poolLogic.mintManagerFee(options);
22583
22688
 
22584
- case 3:
22689
+ case 8:
22585
22690
  tx = _context43.sent;
22586
22691
  return _context43.abrupt("return", tx);
22587
22692
 
22588
- case 5:
22693
+ case 10:
22589
22694
  case "end":
22590
22695
  return _context43.stop();
22591
22696
  }
@@ -22593,7 +22698,7 @@ var Pool = /*#__PURE__*/function () {
22593
22698
  }, _callee43, this);
22594
22699
  }));
22595
22700
 
22596
- function mintManagerFee(_x212) {
22701
+ function mintManagerFee(_x217, _x218) {
22597
22702
  return _mintManagerFee.apply(this, arguments);
22598
22703
  }
22599
22704
 
@@ -22682,7 +22787,7 @@ var Pool = /*#__PURE__*/function () {
22682
22787
  }, _callee45, this);
22683
22788
  }));
22684
22789
 
22685
- function vestTokens(_x213, _x214, _x215, _x216) {
22790
+ function vestTokens(_x219, _x220, _x221, _x222) {
22686
22791
  return _vestTokens.apply(this, arguments);
22687
22792
  }
22688
22793
 
@@ -22735,7 +22840,7 @@ var Pool = /*#__PURE__*/function () {
22735
22840
  }, _callee46, this);
22736
22841
  }));
22737
22842
 
22738
- function exitVestedToken(_x217, _x218, _x219, _x220) {
22843
+ function exitVestedToken(_x223, _x224, _x225, _x226) {
22739
22844
  return _exitVestedToken.apply(this, arguments);
22740
22845
  }
22741
22846