@enzymefinance/testutils 4.0.0-next.5 → 4.0.0-next.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/dist/declarations/src/deployment.d.ts +12 -1
- package/dist/declarations/src/scaffolding/extensions/integrations/curve.d.ts +106 -32
- package/dist/declarations/src/scaffolding/extensions/integrations/index.d.ts +1 -0
- package/dist/declarations/src/scaffolding/extensions/integrations/olympusV2.d.ts +17 -0
- package/dist/declarations/src/whales.d.ts +7 -3
- package/dist/enzymefinance-testutils.browser.cjs.js +565 -249
- package/dist/enzymefinance-testutils.browser.esm.js +557 -251
- package/dist/enzymefinance-testutils.cjs.dev.js +565 -249
- package/dist/enzymefinance-testutils.cjs.prod.js +565 -249
- package/dist/enzymefinance-testutils.esm.js +557 -251
- package/package.json +5 -5
- package/src/deployment.ts +13 -0
- package/src/scaffolding/assets.ts +1 -1
- package/src/scaffolding/core.ts +2 -0
- package/src/scaffolding/extensions/integrations/curve.ts +262 -1
- package/src/scaffolding/extensions/integrations/index.ts +1 -0
- package/src/scaffolding/extensions/integrations/olympusV2.ts +71 -0
- package/src/whales.ts +6 -2
@@ -129,6 +129,7 @@ function _deployProtocolFixture() {
|
|
129
129
|
cumulativeSlippageTolerancePolicy: new protocol.CumulativeSlippageTolerancePolicy(fixture['CumulativeSlippageTolerancePolicy'].address, deployer),
|
130
130
|
curveExchangeAdapter: new protocol.CurveExchangeAdapter(fixture['CurveExchangeAdapter'].address, deployer),
|
131
131
|
curveLiquidityAaveAdapter: new protocol.CurveLiquidityAaveAdapter(fixture['CurveLiquidityAaveAdapter'].address, deployer),
|
132
|
+
curveLiquidityAdapter: new protocol.CurveLiquidityAdapter(fixture['CurveLiquidityAdapter'].address, deployer),
|
132
133
|
curveLiquidityEursAdapter: new protocol.CurveLiquidityEursAdapter(fixture['CurveLiquidityEursAdapter'].address, deployer),
|
133
134
|
curveLiquiditySethAdapter: new protocol.CurveLiquiditySethAdapter(fixture['CurveLiquiditySethAdapter'].address, deployer),
|
134
135
|
curveLiquidityStethAdapter: new protocol.CurveLiquidityStethAdapter(fixture['CurveLiquidityStethAdapter'].address, deployer),
|
@@ -155,6 +156,7 @@ function _deployProtocolFixture() {
|
|
155
156
|
managementFee: new protocol.ManagementFee(fixture['ManagementFee'].address, deployer),
|
156
157
|
minAssetBalancesPostRedemptionPolicy: new protocol.MinAssetBalancesPostRedemptionPolicy(fixture['MinAssetBalancesPostRedemptionPolicy'].address, deployer),
|
157
158
|
minMaxInvestmentPolicy: new protocol.MinMaxInvestmentPolicy(fixture['MinMaxInvestmentPolicy'].address, deployer),
|
159
|
+
olympusV2Adapter: new protocol.OlympusV2Adapter(fixture['OlympusV2Adapter'].address, deployer),
|
158
160
|
onlyRemoveDustExternalPositionPolicy: new protocol.OnlyRemoveDustExternalPositionPolicy(fixture['OnlyRemoveDustExternalPositionPolicy'].address, deployer),
|
159
161
|
onlyUntrackDustOrPricelessAssetsPolicy: new protocol.OnlyUntrackDustOrPricelessAssetsPolicy(fixture['OnlyUntrackDustOrPricelessAssetsPolicy'].address, deployer),
|
160
162
|
paraSwapV4Adapter: new protocol.ParaSwapV4Adapter(fixture['ParaSwapV4Adapter'].address, deployer),
|
@@ -230,7 +232,7 @@ function _addNewAssetsToFund() {
|
|
230
232
|
switch (_context.prev = _context.next) {
|
231
233
|
case 0:
|
232
234
|
signer = _ref.signer, comptrollerProxy = _ref.comptrollerProxy, integrationManager = _ref.integrationManager, assets = _ref.assets, _ref$amounts = _ref.amounts, amounts = _ref$amounts === void 0 ? new Array(assets.length).fill(1) : _ref$amounts;
|
233
|
-
// First, add tracked assets
|
235
|
+
// First, add tracked assets
|
234
236
|
receipt = addTrackedAssetsToVault({
|
235
237
|
assets: assets,
|
236
238
|
comptrollerProxy: comptrollerProxy,
|
@@ -481,40 +483,50 @@ function _createFundDeployer() {
|
|
481
483
|
case 54:
|
482
484
|
_context.t11 = _context.sent;
|
483
485
|
_context.next = 57;
|
484
|
-
return vaultLib.
|
486
|
+
return vaultLib.getMlnBurner();
|
485
487
|
|
486
488
|
case 57:
|
487
489
|
_context.t12 = _context.sent;
|
488
490
|
_context.next = 60;
|
489
|
-
return
|
491
|
+
return vaultLib.getWethToken();
|
490
492
|
|
491
493
|
case 60:
|
492
|
-
|
494
|
+
_context.t13 = _context.sent;
|
493
495
|
_context.next = 63;
|
494
|
-
return
|
496
|
+
return vaultLib.getPositionsLimit();
|
495
497
|
|
496
498
|
case 63:
|
499
|
+
_context.t14 = _context.sent;
|
500
|
+
_context.next = 66;
|
501
|
+
return _context.t5.deploy.call(_context.t5, _context.t6, _context.t7, _context.t8, _context.t9, _context.t10, _context.t11, _context.t12, _context.t13, _context.t14);
|
502
|
+
|
503
|
+
case 66:
|
504
|
+
nextVaultLib = _context.sent;
|
505
|
+
_context.next = 69;
|
506
|
+
return nextFundDeployer.setVaultLib(nextVaultLib);
|
507
|
+
|
508
|
+
case 69:
|
497
509
|
if (!setReleaseLive) {
|
498
|
-
_context.next =
|
510
|
+
_context.next = 72;
|
499
511
|
break;
|
500
512
|
}
|
501
513
|
|
502
|
-
_context.next =
|
514
|
+
_context.next = 72;
|
503
515
|
return nextFundDeployer.setReleaseLive();
|
504
516
|
|
505
|
-
case
|
517
|
+
case 72:
|
506
518
|
if (!setOnDispatcher) {
|
507
|
-
_context.next =
|
519
|
+
_context.next = 75;
|
508
520
|
break;
|
509
521
|
}
|
510
522
|
|
511
|
-
_context.next =
|
523
|
+
_context.next = 75;
|
512
524
|
return dispatcher.setCurrentFundDeployer(nextFundDeployer);
|
513
525
|
|
514
|
-
case
|
526
|
+
case 75:
|
515
527
|
return _context.abrupt("return", nextFundDeployer);
|
516
528
|
|
517
|
-
case
|
529
|
+
case 76:
|
518
530
|
case "end":
|
519
531
|
return _context.stop();
|
520
532
|
}
|
@@ -1598,15 +1610,16 @@ function _compoundRedeem() {
|
|
1598
1610
|
return _compoundRedeem.apply(this, arguments);
|
1599
1611
|
}
|
1600
1612
|
|
1601
|
-
var _templateObject$1, _templateObject2, _templateObject3;
|
1602
|
-
var CurveLiquidityGaugeV2 = ethers$1.contract()(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n function claim_rewards(address)\n function integrate_fraction(address) view returns (uint256)\n"])));
|
1613
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4;
|
1614
|
+
var CurveLiquidityGaugeV2 = ethers$1.contract()(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n function claim_rewards(address)\n function integrate_fraction(address) view returns (uint256)\n"])));
|
1615
|
+
var CurveRegistry = ethers$1.contract()(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n function get_coins(address) view returns (address[8])\n function get_lp_token(address) view returns (address)\n"]))); // prettier-ignore
|
1603
1616
|
|
1604
|
-
var CurveSwaps = ethers$1.contract()(
|
1605
|
-
var CurveMinter = ethers$1.contract()(
|
1617
|
+
var CurveSwaps = ethers$1.contract()(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n function get_best_rate(address _from, address to, uint256 amount) view returns (address bestPool, uint256 amountReceived)\n"])));
|
1618
|
+
var CurveMinter = ethers$1.contract()(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n function mint_for(address,address)\n"]))); // exchanges
|
1606
1619
|
|
1607
1620
|
function curveTakeOrder(_x) {
|
1608
1621
|
return _curveTakeOrder.apply(this, arguments);
|
1609
|
-
} //
|
1622
|
+
} // combined liquidity
|
1610
1623
|
|
1611
1624
|
function _curveTakeOrder() {
|
1612
1625
|
_curveTakeOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(_ref) {
|
@@ -1641,11 +1654,234 @@ function _curveTakeOrder() {
|
|
1641
1654
|
return _curveTakeOrder.apply(this, arguments);
|
1642
1655
|
}
|
1643
1656
|
|
1644
|
-
function
|
1657
|
+
function curveClaimRewards(_ref2) {
|
1645
1658
|
var comptrollerProxy = _ref2.comptrollerProxy,
|
1646
1659
|
integrationManager = _ref2.integrationManager,
|
1647
1660
|
fundOwner = _ref2.fundOwner,
|
1648
|
-
|
1661
|
+
curveLiquidityAdapter = _ref2.curveLiquidityAdapter,
|
1662
|
+
gaugeToken = _ref2.gaugeToken;
|
1663
|
+
var callArgs = protocol.callOnIntegrationArgs({
|
1664
|
+
adapter: curveLiquidityAdapter,
|
1665
|
+
encodedCallArgs: protocol.curveClaimRewardsArgs({
|
1666
|
+
gaugeToken: gaugeToken
|
1667
|
+
}),
|
1668
|
+
selector: protocol.claimRewardsSelector
|
1669
|
+
});
|
1670
|
+
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1671
|
+
}
|
1672
|
+
function curveLend(_x2) {
|
1673
|
+
return _curveLend.apply(this, arguments);
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
function _curveLend() {
|
1677
|
+
_curveLend = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2(_ref3) {
|
1678
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, orderedOutgoingAssetAmounts, _ref3$minIncomingLpTo, minIncomingLpTokenAmount, useUnderlyings, callArgs;
|
1679
|
+
|
1680
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee2$(_context2) {
|
1681
|
+
while (1) {
|
1682
|
+
switch (_context2.prev = _context2.next) {
|
1683
|
+
case 0:
|
1684
|
+
comptrollerProxy = _ref3.comptrollerProxy, integrationManager = _ref3.integrationManager, signer = _ref3.signer, curveLiquidityAdapter = _ref3.curveLiquidityAdapter, pool = _ref3.pool, orderedOutgoingAssetAmounts = _ref3.orderedOutgoingAssetAmounts, _ref3$minIncomingLpTo = _ref3.minIncomingLpTokenAmount, minIncomingLpTokenAmount = _ref3$minIncomingLpTo === void 0 ? ethers.BigNumber.from(1) : _ref3$minIncomingLpTo, useUnderlyings = _ref3.useUnderlyings;
|
1685
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1686
|
+
adapter: curveLiquidityAdapter,
|
1687
|
+
encodedCallArgs: protocol.curveLendArgs({
|
1688
|
+
minIncomingLpTokenAmount: minIncomingLpTokenAmount,
|
1689
|
+
orderedOutgoingAssetAmounts: orderedOutgoingAssetAmounts,
|
1690
|
+
pool: pool,
|
1691
|
+
useUnderlyings: useUnderlyings
|
1692
|
+
}),
|
1693
|
+
selector: protocol.lendSelector
|
1694
|
+
});
|
1695
|
+
return _context2.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1696
|
+
|
1697
|
+
case 3:
|
1698
|
+
case "end":
|
1699
|
+
return _context2.stop();
|
1700
|
+
}
|
1701
|
+
}
|
1702
|
+
}, _callee2);
|
1703
|
+
}));
|
1704
|
+
return _curveLend.apply(this, arguments);
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
function curveLendAndStake(_x3) {
|
1708
|
+
return _curveLendAndStake.apply(this, arguments);
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
function _curveLendAndStake() {
|
1712
|
+
_curveLendAndStake = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3(_ref4) {
|
1713
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, orderedOutgoingAssetAmounts, incomingGaugeToken, _ref4$minIncomingGaug, minIncomingGaugeTokenAmount, useUnderlyings, callArgs;
|
1714
|
+
|
1715
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
|
1716
|
+
while (1) {
|
1717
|
+
switch (_context3.prev = _context3.next) {
|
1718
|
+
case 0:
|
1719
|
+
comptrollerProxy = _ref4.comptrollerProxy, integrationManager = _ref4.integrationManager, signer = _ref4.signer, curveLiquidityAdapter = _ref4.curveLiquidityAdapter, pool = _ref4.pool, orderedOutgoingAssetAmounts = _ref4.orderedOutgoingAssetAmounts, incomingGaugeToken = _ref4.incomingGaugeToken, _ref4$minIncomingGaug = _ref4.minIncomingGaugeTokenAmount, minIncomingGaugeTokenAmount = _ref4$minIncomingGaug === void 0 ? ethers.BigNumber.from(1) : _ref4$minIncomingGaug, useUnderlyings = _ref4.useUnderlyings;
|
1720
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1721
|
+
adapter: curveLiquidityAdapter,
|
1722
|
+
encodedCallArgs: protocol.curveLendAndStakeArgs({
|
1723
|
+
incomingGaugeToken: incomingGaugeToken,
|
1724
|
+
minIncomingGaugeTokenAmount: minIncomingGaugeTokenAmount,
|
1725
|
+
orderedOutgoingAssetAmounts: orderedOutgoingAssetAmounts,
|
1726
|
+
pool: pool,
|
1727
|
+
useUnderlyings: useUnderlyings
|
1728
|
+
}),
|
1729
|
+
selector: protocol.lendAndStakeSelector
|
1730
|
+
});
|
1731
|
+
return _context3.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1732
|
+
|
1733
|
+
case 3:
|
1734
|
+
case "end":
|
1735
|
+
return _context3.stop();
|
1736
|
+
}
|
1737
|
+
}
|
1738
|
+
}, _callee3);
|
1739
|
+
}));
|
1740
|
+
return _curveLendAndStake.apply(this, arguments);
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
function curveRedeem(_x4) {
|
1744
|
+
return _curveRedeem.apply(this, arguments);
|
1745
|
+
}
|
1746
|
+
|
1747
|
+
function _curveRedeem() {
|
1748
|
+
_curveRedeem = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee4(_ref5) {
|
1749
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, outgoingLpTokenAmount, useUnderlyings, redeemType, incomingAssetData, callArgs;
|
1750
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee4$(_context4) {
|
1751
|
+
while (1) {
|
1752
|
+
switch (_context4.prev = _context4.next) {
|
1753
|
+
case 0:
|
1754
|
+
comptrollerProxy = _ref5.comptrollerProxy, integrationManager = _ref5.integrationManager, signer = _ref5.signer, curveLiquidityAdapter = _ref5.curveLiquidityAdapter, pool = _ref5.pool, outgoingLpTokenAmount = _ref5.outgoingLpTokenAmount, useUnderlyings = _ref5.useUnderlyings, redeemType = _ref5.redeemType, incomingAssetData = _ref5.incomingAssetData;
|
1755
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1756
|
+
adapter: curveLiquidityAdapter,
|
1757
|
+
encodedCallArgs: protocol.curveRedeemArgs({
|
1758
|
+
incomingAssetData: incomingAssetData,
|
1759
|
+
outgoingLpTokenAmount: outgoingLpTokenAmount,
|
1760
|
+
pool: pool,
|
1761
|
+
redeemType: redeemType,
|
1762
|
+
useUnderlyings: useUnderlyings
|
1763
|
+
}),
|
1764
|
+
selector: protocol.redeemSelector
|
1765
|
+
});
|
1766
|
+
return _context4.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1767
|
+
|
1768
|
+
case 3:
|
1769
|
+
case "end":
|
1770
|
+
return _context4.stop();
|
1771
|
+
}
|
1772
|
+
}
|
1773
|
+
}, _callee4);
|
1774
|
+
}));
|
1775
|
+
return _curveRedeem.apply(this, arguments);
|
1776
|
+
}
|
1777
|
+
|
1778
|
+
function curveStake(_x5) {
|
1779
|
+
return _curveStake.apply(this, arguments);
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
function _curveStake() {
|
1783
|
+
_curveStake = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5(_ref6) {
|
1784
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, incomingGaugeToken, amount, callArgs;
|
1785
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee5$(_context5) {
|
1786
|
+
while (1) {
|
1787
|
+
switch (_context5.prev = _context5.next) {
|
1788
|
+
case 0:
|
1789
|
+
comptrollerProxy = _ref6.comptrollerProxy, integrationManager = _ref6.integrationManager, signer = _ref6.signer, curveLiquidityAdapter = _ref6.curveLiquidityAdapter, pool = _ref6.pool, incomingGaugeToken = _ref6.incomingGaugeToken, amount = _ref6.amount;
|
1790
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1791
|
+
adapter: curveLiquidityAdapter,
|
1792
|
+
encodedCallArgs: protocol.curveStakeArgs({
|
1793
|
+
amount: amount,
|
1794
|
+
incomingGaugeToken: incomingGaugeToken,
|
1795
|
+
pool: pool
|
1796
|
+
}),
|
1797
|
+
selector: protocol.stakeSelector
|
1798
|
+
});
|
1799
|
+
return _context5.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1800
|
+
|
1801
|
+
case 3:
|
1802
|
+
case "end":
|
1803
|
+
return _context5.stop();
|
1804
|
+
}
|
1805
|
+
}
|
1806
|
+
}, _callee5);
|
1807
|
+
}));
|
1808
|
+
return _curveStake.apply(this, arguments);
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
function curveUnstake(_x6) {
|
1812
|
+
return _curveUnstake.apply(this, arguments);
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
function _curveUnstake() {
|
1816
|
+
_curveUnstake = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6(_ref7) {
|
1817
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, outgoingGaugeToken, amount, callArgs;
|
1818
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee6$(_context6) {
|
1819
|
+
while (1) {
|
1820
|
+
switch (_context6.prev = _context6.next) {
|
1821
|
+
case 0:
|
1822
|
+
comptrollerProxy = _ref7.comptrollerProxy, integrationManager = _ref7.integrationManager, signer = _ref7.signer, curveLiquidityAdapter = _ref7.curveLiquidityAdapter, pool = _ref7.pool, outgoingGaugeToken = _ref7.outgoingGaugeToken, amount = _ref7.amount;
|
1823
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1824
|
+
adapter: curveLiquidityAdapter,
|
1825
|
+
encodedCallArgs: protocol.curveUnstakeArgs({
|
1826
|
+
amount: amount,
|
1827
|
+
outgoingGaugeToken: outgoingGaugeToken,
|
1828
|
+
pool: pool
|
1829
|
+
}),
|
1830
|
+
selector: protocol.unstakeSelector
|
1831
|
+
});
|
1832
|
+
return _context6.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1833
|
+
|
1834
|
+
case 3:
|
1835
|
+
case "end":
|
1836
|
+
return _context6.stop();
|
1837
|
+
}
|
1838
|
+
}
|
1839
|
+
}, _callee6);
|
1840
|
+
}));
|
1841
|
+
return _curveUnstake.apply(this, arguments);
|
1842
|
+
}
|
1843
|
+
|
1844
|
+
function curveUnstakeAndRedeem(_x7) {
|
1845
|
+
return _curveUnstakeAndRedeem.apply(this, arguments);
|
1846
|
+
} // aave pool
|
1847
|
+
|
1848
|
+
function _curveUnstakeAndRedeem() {
|
1849
|
+
_curveUnstakeAndRedeem = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee7(_ref8) {
|
1850
|
+
var comptrollerProxy, integrationManager, signer, curveLiquidityAdapter, pool, outgoingGaugeToken, outgoingGaugeTokenAmount, useUnderlyings, redeemType, incomingAssetData, callArgs;
|
1851
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee7$(_context7) {
|
1852
|
+
while (1) {
|
1853
|
+
switch (_context7.prev = _context7.next) {
|
1854
|
+
case 0:
|
1855
|
+
comptrollerProxy = _ref8.comptrollerProxy, integrationManager = _ref8.integrationManager, signer = _ref8.signer, curveLiquidityAdapter = _ref8.curveLiquidityAdapter, pool = _ref8.pool, outgoingGaugeToken = _ref8.outgoingGaugeToken, outgoingGaugeTokenAmount = _ref8.outgoingGaugeTokenAmount, useUnderlyings = _ref8.useUnderlyings, redeemType = _ref8.redeemType, incomingAssetData = _ref8.incomingAssetData;
|
1856
|
+
callArgs = protocol.callOnIntegrationArgs({
|
1857
|
+
adapter: curveLiquidityAdapter,
|
1858
|
+
encodedCallArgs: protocol.curveUnstakeAndRedeemArgs({
|
1859
|
+
incomingAssetData: incomingAssetData,
|
1860
|
+
outgoingGaugeToken: outgoingGaugeToken,
|
1861
|
+
outgoingGaugeTokenAmount: outgoingGaugeTokenAmount,
|
1862
|
+
pool: pool,
|
1863
|
+
redeemType: redeemType,
|
1864
|
+
useUnderlyings: useUnderlyings
|
1865
|
+
}),
|
1866
|
+
selector: protocol.unstakeAndRedeemSelector
|
1867
|
+
});
|
1868
|
+
return _context7.abrupt("return", comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
|
1869
|
+
|
1870
|
+
case 3:
|
1871
|
+
case "end":
|
1872
|
+
return _context7.stop();
|
1873
|
+
}
|
1874
|
+
}
|
1875
|
+
}, _callee7);
|
1876
|
+
}));
|
1877
|
+
return _curveUnstakeAndRedeem.apply(this, arguments);
|
1878
|
+
}
|
1879
|
+
|
1880
|
+
function curveAaveClaimRewards(_ref9) {
|
1881
|
+
var comptrollerProxy = _ref9.comptrollerProxy,
|
1882
|
+
integrationManager = _ref9.integrationManager,
|
1883
|
+
fundOwner = _ref9.fundOwner,
|
1884
|
+
curveLiquidityAaveAdapter = _ref9.curveLiquidityAaveAdapter;
|
1649
1885
|
var callArgs = protocol.callOnIntegrationArgs({
|
1650
1886
|
adapter: curveLiquidityAaveAdapter,
|
1651
1887
|
encodedCallArgs: ethers.constants.HashZero,
|
@@ -1653,21 +1889,21 @@ function curveAaveClaimRewards(_ref2) {
|
|
1653
1889
|
});
|
1654
1890
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1655
1891
|
}
|
1656
|
-
function curveAaveLend(
|
1657
|
-
var comptrollerProxy =
|
1658
|
-
integrationManager =
|
1659
|
-
fundOwner =
|
1660
|
-
curveLiquidityAaveAdapter =
|
1661
|
-
|
1662
|
-
outgoingAaveDaiAmount =
|
1663
|
-
|
1664
|
-
outgoingAaveUsdcAmount =
|
1665
|
-
|
1666
|
-
outgoingAaveUsdtAmount =
|
1667
|
-
|
1668
|
-
minIncomingLPTokenAmount =
|
1669
|
-
|
1670
|
-
useUnderlyings =
|
1892
|
+
function curveAaveLend(_ref10) {
|
1893
|
+
var comptrollerProxy = _ref10.comptrollerProxy,
|
1894
|
+
integrationManager = _ref10.integrationManager,
|
1895
|
+
fundOwner = _ref10.fundOwner,
|
1896
|
+
curveLiquidityAaveAdapter = _ref10.curveLiquidityAaveAdapter,
|
1897
|
+
_ref10$outgoingAaveDa = _ref10.outgoingAaveDaiAmount,
|
1898
|
+
outgoingAaveDaiAmount = _ref10$outgoingAaveDa === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveDa,
|
1899
|
+
_ref10$outgoingAaveUs = _ref10.outgoingAaveUsdcAmount,
|
1900
|
+
outgoingAaveUsdcAmount = _ref10$outgoingAaveUs === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveUs,
|
1901
|
+
_ref10$outgoingAaveUs2 = _ref10.outgoingAaveUsdtAmount,
|
1902
|
+
outgoingAaveUsdtAmount = _ref10$outgoingAaveUs2 === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveUs2,
|
1903
|
+
_ref10$minIncomingLPT = _ref10.minIncomingLPTokenAmount,
|
1904
|
+
minIncomingLPTokenAmount = _ref10$minIncomingLPT === void 0 ? ethers.BigNumber.from(1) : _ref10$minIncomingLPT,
|
1905
|
+
_ref10$useUnderlyings = _ref10.useUnderlyings,
|
1906
|
+
useUnderlyings = _ref10$useUnderlyings === void 0 ? false : _ref10$useUnderlyings;
|
1671
1907
|
var callArgs = protocol.callOnIntegrationArgs({
|
1672
1908
|
adapter: curveLiquidityAaveAdapter,
|
1673
1909
|
encodedCallArgs: protocol.curveAaveLendArgs({
|
@@ -1681,21 +1917,21 @@ function curveAaveLend(_ref3) {
|
|
1681
1917
|
});
|
1682
1918
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1683
1919
|
}
|
1684
|
-
function curveAaveLendAndStake(
|
1685
|
-
var comptrollerProxy =
|
1686
|
-
integrationManager =
|
1687
|
-
fundOwner =
|
1688
|
-
curveLiquidityAaveAdapter =
|
1689
|
-
|
1690
|
-
outgoingAaveDaiAmount =
|
1691
|
-
|
1692
|
-
outgoingAaveUsdcAmount =
|
1693
|
-
|
1694
|
-
outgoingAaveUsdtAmount =
|
1695
|
-
|
1696
|
-
minIncomingLiquidityGaugeTokenAmount =
|
1697
|
-
|
1698
|
-
useUnderlyings =
|
1920
|
+
function curveAaveLendAndStake(_ref11) {
|
1921
|
+
var comptrollerProxy = _ref11.comptrollerProxy,
|
1922
|
+
integrationManager = _ref11.integrationManager,
|
1923
|
+
fundOwner = _ref11.fundOwner,
|
1924
|
+
curveLiquidityAaveAdapter = _ref11.curveLiquidityAaveAdapter,
|
1925
|
+
_ref11$outgoingAaveDa = _ref11.outgoingAaveDaiAmount,
|
1926
|
+
outgoingAaveDaiAmount = _ref11$outgoingAaveDa === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveDa,
|
1927
|
+
_ref11$outgoingAaveUs = _ref11.outgoingAaveUsdcAmount,
|
1928
|
+
outgoingAaveUsdcAmount = _ref11$outgoingAaveUs === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveUs,
|
1929
|
+
_ref11$outgoingAaveUs2 = _ref11.outgoingAaveUsdtAmount,
|
1930
|
+
outgoingAaveUsdtAmount = _ref11$outgoingAaveUs2 === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveUs2,
|
1931
|
+
_ref11$minIncomingLiq = _ref11.minIncomingLiquidityGaugeTokenAmount,
|
1932
|
+
minIncomingLiquidityGaugeTokenAmount = _ref11$minIncomingLiq === void 0 ? ethers.BigNumber.from(1) : _ref11$minIncomingLiq,
|
1933
|
+
_ref11$useUnderlyings = _ref11.useUnderlyings,
|
1934
|
+
useUnderlyings = _ref11$useUnderlyings === void 0 ? false : _ref11$useUnderlyings;
|
1699
1935
|
var callArgs = protocol.callOnIntegrationArgs({
|
1700
1936
|
adapter: curveLiquidityAaveAdapter,
|
1701
1937
|
encodedCallArgs: protocol.curveAaveLendAndStakeArgs({
|
@@ -1709,22 +1945,22 @@ function curveAaveLendAndStake(_ref4) {
|
|
1709
1945
|
});
|
1710
1946
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1711
1947
|
}
|
1712
|
-
function curveAaveRedeem(
|
1713
|
-
var comptrollerProxy =
|
1714
|
-
integrationManager =
|
1715
|
-
fundOwner =
|
1716
|
-
curveLiquidityAaveAdapter =
|
1717
|
-
outgoingLPTokenAmount =
|
1718
|
-
|
1719
|
-
minIncomingAaveDaiAmount =
|
1720
|
-
|
1721
|
-
minIncomingAaveUsdcAmount =
|
1722
|
-
|
1723
|
-
minIncomingAaveUsdtAmount =
|
1724
|
-
|
1725
|
-
receiveSingleAsset =
|
1726
|
-
|
1727
|
-
useUnderlyings =
|
1948
|
+
function curveAaveRedeem(_ref12) {
|
1949
|
+
var comptrollerProxy = _ref12.comptrollerProxy,
|
1950
|
+
integrationManager = _ref12.integrationManager,
|
1951
|
+
fundOwner = _ref12.fundOwner,
|
1952
|
+
curveLiquidityAaveAdapter = _ref12.curveLiquidityAaveAdapter,
|
1953
|
+
outgoingLPTokenAmount = _ref12.outgoingLPTokenAmount,
|
1954
|
+
_ref12$minIncomingAav = _ref12.minIncomingAaveDaiAmount,
|
1955
|
+
minIncomingAaveDaiAmount = _ref12$minIncomingAav === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav,
|
1956
|
+
_ref12$minIncomingAav2 = _ref12.minIncomingAaveUsdcAmount,
|
1957
|
+
minIncomingAaveUsdcAmount = _ref12$minIncomingAav2 === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav2,
|
1958
|
+
_ref12$minIncomingAav3 = _ref12.minIncomingAaveUsdtAmount,
|
1959
|
+
minIncomingAaveUsdtAmount = _ref12$minIncomingAav3 === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav3,
|
1960
|
+
_ref12$receiveSingleA = _ref12.receiveSingleAsset,
|
1961
|
+
receiveSingleAsset = _ref12$receiveSingleA === void 0 ? false : _ref12$receiveSingleA,
|
1962
|
+
_ref12$useUnderlyings = _ref12.useUnderlyings,
|
1963
|
+
useUnderlyings = _ref12$useUnderlyings === void 0 ? false : _ref12$useUnderlyings;
|
1728
1964
|
var callArgs = protocol.callOnIntegrationArgs({
|
1729
1965
|
adapter: curveLiquidityAaveAdapter,
|
1730
1966
|
encodedCallArgs: protocol.curveAaveRedeemArgs({
|
@@ -1739,12 +1975,12 @@ function curveAaveRedeem(_ref5) {
|
|
1739
1975
|
});
|
1740
1976
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1741
1977
|
}
|
1742
|
-
function curveAaveStake(
|
1743
|
-
var comptrollerProxy =
|
1744
|
-
integrationManager =
|
1745
|
-
fundOwner =
|
1746
|
-
curveLiquidityAaveAdapter =
|
1747
|
-
outgoingLPTokenAmount =
|
1978
|
+
function curveAaveStake(_ref13) {
|
1979
|
+
var comptrollerProxy = _ref13.comptrollerProxy,
|
1980
|
+
integrationManager = _ref13.integrationManager,
|
1981
|
+
fundOwner = _ref13.fundOwner,
|
1982
|
+
curveLiquidityAaveAdapter = _ref13.curveLiquidityAaveAdapter,
|
1983
|
+
outgoingLPTokenAmount = _ref13.outgoingLPTokenAmount;
|
1748
1984
|
var callArgs = protocol.callOnIntegrationArgs({
|
1749
1985
|
adapter: curveLiquidityAaveAdapter,
|
1750
1986
|
encodedCallArgs: protocol.curveAaveStakeArgs({
|
@@ -1754,22 +1990,22 @@ function curveAaveStake(_ref6) {
|
|
1754
1990
|
});
|
1755
1991
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1756
1992
|
}
|
1757
|
-
function curveAaveUnstakeAndRedeem(
|
1758
|
-
var comptrollerProxy =
|
1759
|
-
integrationManager =
|
1760
|
-
fundOwner =
|
1761
|
-
curveLiquidityAaveAdapter =
|
1762
|
-
outgoingLiquidityGaugeTokenAmount =
|
1763
|
-
|
1764
|
-
minIncomingAaveDaiAmount =
|
1765
|
-
|
1766
|
-
minIncomingAaveUsdcAmount =
|
1767
|
-
|
1768
|
-
minIncomingAaveUsdtAmount =
|
1769
|
-
|
1770
|
-
receiveSingleAsset =
|
1771
|
-
|
1772
|
-
useUnderlyings =
|
1993
|
+
function curveAaveUnstakeAndRedeem(_ref14) {
|
1994
|
+
var comptrollerProxy = _ref14.comptrollerProxy,
|
1995
|
+
integrationManager = _ref14.integrationManager,
|
1996
|
+
fundOwner = _ref14.fundOwner,
|
1997
|
+
curveLiquidityAaveAdapter = _ref14.curveLiquidityAaveAdapter,
|
1998
|
+
outgoingLiquidityGaugeTokenAmount = _ref14.outgoingLiquidityGaugeTokenAmount,
|
1999
|
+
_ref14$minIncomingAav = _ref14.minIncomingAaveDaiAmount,
|
2000
|
+
minIncomingAaveDaiAmount = _ref14$minIncomingAav === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav,
|
2001
|
+
_ref14$minIncomingAav2 = _ref14.minIncomingAaveUsdcAmount,
|
2002
|
+
minIncomingAaveUsdcAmount = _ref14$minIncomingAav2 === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav2,
|
2003
|
+
_ref14$minIncomingAav3 = _ref14.minIncomingAaveUsdtAmount,
|
2004
|
+
minIncomingAaveUsdtAmount = _ref14$minIncomingAav3 === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav3,
|
2005
|
+
_ref14$receiveSingleA = _ref14.receiveSingleAsset,
|
2006
|
+
receiveSingleAsset = _ref14$receiveSingleA === void 0 ? false : _ref14$receiveSingleA,
|
2007
|
+
_ref14$useUnderlyings = _ref14.useUnderlyings,
|
2008
|
+
useUnderlyings = _ref14$useUnderlyings === void 0 ? false : _ref14$useUnderlyings;
|
1773
2009
|
var callArgs = protocol.callOnIntegrationArgs({
|
1774
2010
|
adapter: curveLiquidityAaveAdapter,
|
1775
2011
|
encodedCallArgs: protocol.curveAaveUnstakeAndRedeemArgs({
|
@@ -1784,12 +2020,12 @@ function curveAaveUnstakeAndRedeem(_ref7) {
|
|
1784
2020
|
});
|
1785
2021
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1786
2022
|
}
|
1787
|
-
function curveAaveUnstake(
|
1788
|
-
var comptrollerProxy =
|
1789
|
-
integrationManager =
|
1790
|
-
fundOwner =
|
1791
|
-
curveLiquidityAaveAdapter =
|
1792
|
-
outgoingLiquidityGaugeTokenAmount =
|
2023
|
+
function curveAaveUnstake(_ref15) {
|
2024
|
+
var comptrollerProxy = _ref15.comptrollerProxy,
|
2025
|
+
integrationManager = _ref15.integrationManager,
|
2026
|
+
fundOwner = _ref15.fundOwner,
|
2027
|
+
curveLiquidityAaveAdapter = _ref15.curveLiquidityAaveAdapter,
|
2028
|
+
outgoingLiquidityGaugeTokenAmount = _ref15.outgoingLiquidityGaugeTokenAmount;
|
1793
2029
|
var callArgs = protocol.callOnIntegrationArgs({
|
1794
2030
|
adapter: curveLiquidityAaveAdapter,
|
1795
2031
|
encodedCallArgs: protocol.curveAaveUnstakeArgs({
|
@@ -1800,11 +2036,11 @@ function curveAaveUnstake(_ref8) {
|
|
1800
2036
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1801
2037
|
} // eurs pool
|
1802
2038
|
|
1803
|
-
function curveEursClaimRewards(
|
1804
|
-
var comptrollerProxy =
|
1805
|
-
integrationManager =
|
1806
|
-
fundOwner =
|
1807
|
-
curveLiquidityEursAdapter =
|
2039
|
+
function curveEursClaimRewards(_ref16) {
|
2040
|
+
var comptrollerProxy = _ref16.comptrollerProxy,
|
2041
|
+
integrationManager = _ref16.integrationManager,
|
2042
|
+
fundOwner = _ref16.fundOwner,
|
2043
|
+
curveLiquidityEursAdapter = _ref16.curveLiquidityEursAdapter;
|
1808
2044
|
var callArgs = protocol.callOnIntegrationArgs({
|
1809
2045
|
adapter: curveLiquidityEursAdapter,
|
1810
2046
|
encodedCallArgs: ethers.constants.HashZero,
|
@@ -1812,14 +2048,14 @@ function curveEursClaimRewards(_ref9) {
|
|
1812
2048
|
});
|
1813
2049
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1814
2050
|
}
|
1815
|
-
function curveEursLend(
|
1816
|
-
var comptrollerProxy =
|
1817
|
-
integrationManager =
|
1818
|
-
fundOwner =
|
1819
|
-
curveLiquidityEursAdapter =
|
1820
|
-
outgoingEursAmount =
|
1821
|
-
outgoingSeurAmount =
|
1822
|
-
minIncomingLPTokenAmount =
|
2051
|
+
function curveEursLend(_ref17) {
|
2052
|
+
var comptrollerProxy = _ref17.comptrollerProxy,
|
2053
|
+
integrationManager = _ref17.integrationManager,
|
2054
|
+
fundOwner = _ref17.fundOwner,
|
2055
|
+
curveLiquidityEursAdapter = _ref17.curveLiquidityEursAdapter,
|
2056
|
+
outgoingEursAmount = _ref17.outgoingEursAmount,
|
2057
|
+
outgoingSeurAmount = _ref17.outgoingSeurAmount,
|
2058
|
+
minIncomingLPTokenAmount = _ref17.minIncomingLPTokenAmount;
|
1823
2059
|
var callArgs = protocol.callOnIntegrationArgs({
|
1824
2060
|
adapter: curveLiquidityEursAdapter,
|
1825
2061
|
encodedCallArgs: protocol.curveEursLendArgs({
|
@@ -1831,14 +2067,14 @@ function curveEursLend(_ref10) {
|
|
1831
2067
|
});
|
1832
2068
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1833
2069
|
}
|
1834
|
-
function curveEursLendAndStake(
|
1835
|
-
var comptrollerProxy =
|
1836
|
-
integrationManager =
|
1837
|
-
fundOwner =
|
1838
|
-
curveLiquidityEursAdapter =
|
1839
|
-
outgoingEursAmount =
|
1840
|
-
outgoingSeurAmount =
|
1841
|
-
minIncomingLiquidityGaugeTokenAmount =
|
2070
|
+
function curveEursLendAndStake(_ref18) {
|
2071
|
+
var comptrollerProxy = _ref18.comptrollerProxy,
|
2072
|
+
integrationManager = _ref18.integrationManager,
|
2073
|
+
fundOwner = _ref18.fundOwner,
|
2074
|
+
curveLiquidityEursAdapter = _ref18.curveLiquidityEursAdapter,
|
2075
|
+
outgoingEursAmount = _ref18.outgoingEursAmount,
|
2076
|
+
outgoingSeurAmount = _ref18.outgoingSeurAmount,
|
2077
|
+
minIncomingLiquidityGaugeTokenAmount = _ref18.minIncomingLiquidityGaugeTokenAmount;
|
1842
2078
|
var callArgs = protocol.callOnIntegrationArgs({
|
1843
2079
|
adapter: curveLiquidityEursAdapter,
|
1844
2080
|
encodedCallArgs: protocol.curveEursLendAndStakeArgs({
|
@@ -1850,15 +2086,15 @@ function curveEursLendAndStake(_ref11) {
|
|
1850
2086
|
});
|
1851
2087
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1852
2088
|
}
|
1853
|
-
function curveEursRedeem(
|
1854
|
-
var comptrollerProxy =
|
1855
|
-
integrationManager =
|
1856
|
-
fundOwner =
|
1857
|
-
curveLiquidityEursAdapter =
|
1858
|
-
outgoingLPTokenAmount =
|
1859
|
-
minIncomingEursAmount =
|
1860
|
-
minIncomingSeurAmount =
|
1861
|
-
receiveSingleAsset =
|
2089
|
+
function curveEursRedeem(_ref19) {
|
2090
|
+
var comptrollerProxy = _ref19.comptrollerProxy,
|
2091
|
+
integrationManager = _ref19.integrationManager,
|
2092
|
+
fundOwner = _ref19.fundOwner,
|
2093
|
+
curveLiquidityEursAdapter = _ref19.curveLiquidityEursAdapter,
|
2094
|
+
outgoingLPTokenAmount = _ref19.outgoingLPTokenAmount,
|
2095
|
+
minIncomingEursAmount = _ref19.minIncomingEursAmount,
|
2096
|
+
minIncomingSeurAmount = _ref19.minIncomingSeurAmount,
|
2097
|
+
receiveSingleAsset = _ref19.receiveSingleAsset;
|
1862
2098
|
var callArgs = protocol.callOnIntegrationArgs({
|
1863
2099
|
adapter: curveLiquidityEursAdapter,
|
1864
2100
|
encodedCallArgs: protocol.curveEursRedeemArgs({
|
@@ -1871,12 +2107,12 @@ function curveEursRedeem(_ref12) {
|
|
1871
2107
|
});
|
1872
2108
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1873
2109
|
}
|
1874
|
-
function curveEursStake(
|
1875
|
-
var comptrollerProxy =
|
1876
|
-
integrationManager =
|
1877
|
-
fundOwner =
|
1878
|
-
curveLiquidityEursAdapter =
|
1879
|
-
outgoingLPTokenAmount =
|
2110
|
+
function curveEursStake(_ref20) {
|
2111
|
+
var comptrollerProxy = _ref20.comptrollerProxy,
|
2112
|
+
integrationManager = _ref20.integrationManager,
|
2113
|
+
fundOwner = _ref20.fundOwner,
|
2114
|
+
curveLiquidityEursAdapter = _ref20.curveLiquidityEursAdapter,
|
2115
|
+
outgoingLPTokenAmount = _ref20.outgoingLPTokenAmount;
|
1880
2116
|
var callArgs = protocol.callOnIntegrationArgs({
|
1881
2117
|
adapter: curveLiquidityEursAdapter,
|
1882
2118
|
encodedCallArgs: protocol.curveEursStakeArgs({
|
@@ -1886,15 +2122,15 @@ function curveEursStake(_ref13) {
|
|
1886
2122
|
});
|
1887
2123
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1888
2124
|
}
|
1889
|
-
function curveEursUnstakeAndRedeem(
|
1890
|
-
var comptrollerProxy =
|
1891
|
-
integrationManager =
|
1892
|
-
fundOwner =
|
1893
|
-
curveLiquidityEursAdapter =
|
1894
|
-
outgoingLiquidityGaugeTokenAmount =
|
1895
|
-
minIncomingEursAmount =
|
1896
|
-
minIncomingSeurAmount =
|
1897
|
-
receiveSingleAsset =
|
2125
|
+
function curveEursUnstakeAndRedeem(_ref21) {
|
2126
|
+
var comptrollerProxy = _ref21.comptrollerProxy,
|
2127
|
+
integrationManager = _ref21.integrationManager,
|
2128
|
+
fundOwner = _ref21.fundOwner,
|
2129
|
+
curveLiquidityEursAdapter = _ref21.curveLiquidityEursAdapter,
|
2130
|
+
outgoingLiquidityGaugeTokenAmount = _ref21.outgoingLiquidityGaugeTokenAmount,
|
2131
|
+
minIncomingEursAmount = _ref21.minIncomingEursAmount,
|
2132
|
+
minIncomingSeurAmount = _ref21.minIncomingSeurAmount,
|
2133
|
+
receiveSingleAsset = _ref21.receiveSingleAsset;
|
1898
2134
|
var callArgs = protocol.callOnIntegrationArgs({
|
1899
2135
|
adapter: curveLiquidityEursAdapter,
|
1900
2136
|
encodedCallArgs: protocol.curveEursUnstakeAndRedeemArgs({
|
@@ -1907,12 +2143,12 @@ function curveEursUnstakeAndRedeem(_ref14) {
|
|
1907
2143
|
});
|
1908
2144
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1909
2145
|
}
|
1910
|
-
function curveEursUnstake(
|
1911
|
-
var comptrollerProxy =
|
1912
|
-
integrationManager =
|
1913
|
-
fundOwner =
|
1914
|
-
curveLiquidityEursAdapter =
|
1915
|
-
outgoingLiquidityGaugeTokenAmount =
|
2146
|
+
function curveEursUnstake(_ref22) {
|
2147
|
+
var comptrollerProxy = _ref22.comptrollerProxy,
|
2148
|
+
integrationManager = _ref22.integrationManager,
|
2149
|
+
fundOwner = _ref22.fundOwner,
|
2150
|
+
curveLiquidityEursAdapter = _ref22.curveLiquidityEursAdapter,
|
2151
|
+
outgoingLiquidityGaugeTokenAmount = _ref22.outgoingLiquidityGaugeTokenAmount;
|
1916
2152
|
var callArgs = protocol.callOnIntegrationArgs({
|
1917
2153
|
adapter: curveLiquidityEursAdapter,
|
1918
2154
|
encodedCallArgs: protocol.curveEursUnstakeArgs({
|
@@ -1923,11 +2159,11 @@ function curveEursUnstake(_ref15) {
|
|
1923
2159
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1924
2160
|
} // sETH pool
|
1925
2161
|
|
1926
|
-
function curveSethClaimRewards(
|
1927
|
-
var comptrollerProxy =
|
1928
|
-
integrationManager =
|
1929
|
-
fundOwner =
|
1930
|
-
curveLiquiditySethAdapter =
|
2162
|
+
function curveSethClaimRewards(_ref23) {
|
2163
|
+
var comptrollerProxy = _ref23.comptrollerProxy,
|
2164
|
+
integrationManager = _ref23.integrationManager,
|
2165
|
+
fundOwner = _ref23.fundOwner,
|
2166
|
+
curveLiquiditySethAdapter = _ref23.curveLiquiditySethAdapter;
|
1931
2167
|
var callArgs = protocol.callOnIntegrationArgs({
|
1932
2168
|
adapter: curveLiquiditySethAdapter,
|
1933
2169
|
encodedCallArgs: ethers.constants.HashZero,
|
@@ -1935,14 +2171,14 @@ function curveSethClaimRewards(_ref16) {
|
|
1935
2171
|
});
|
1936
2172
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1937
2173
|
}
|
1938
|
-
function curveSethLend(
|
1939
|
-
var comptrollerProxy =
|
1940
|
-
integrationManager =
|
1941
|
-
fundOwner =
|
1942
|
-
curveLiquiditySethAdapter =
|
1943
|
-
outgoingWethAmount =
|
1944
|
-
outgoingSethAmount =
|
1945
|
-
minIncomingLPTokenAmount =
|
2174
|
+
function curveSethLend(_ref24) {
|
2175
|
+
var comptrollerProxy = _ref24.comptrollerProxy,
|
2176
|
+
integrationManager = _ref24.integrationManager,
|
2177
|
+
fundOwner = _ref24.fundOwner,
|
2178
|
+
curveLiquiditySethAdapter = _ref24.curveLiquiditySethAdapter,
|
2179
|
+
outgoingWethAmount = _ref24.outgoingWethAmount,
|
2180
|
+
outgoingSethAmount = _ref24.outgoingSethAmount,
|
2181
|
+
minIncomingLPTokenAmount = _ref24.minIncomingLPTokenAmount;
|
1946
2182
|
var callArgs = protocol.callOnIntegrationArgs({
|
1947
2183
|
adapter: curveLiquiditySethAdapter,
|
1948
2184
|
encodedCallArgs: protocol.curveSethLendArgs({
|
@@ -1954,14 +2190,14 @@ function curveSethLend(_ref17) {
|
|
1954
2190
|
});
|
1955
2191
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1956
2192
|
}
|
1957
|
-
function curveSethLendAndStake(
|
1958
|
-
var comptrollerProxy =
|
1959
|
-
integrationManager =
|
1960
|
-
fundOwner =
|
1961
|
-
curveLiquiditySethAdapter =
|
1962
|
-
outgoingWethAmount =
|
1963
|
-
outgoingSethAmount =
|
1964
|
-
minIncomingLiquidityGaugeTokenAmount =
|
2193
|
+
function curveSethLendAndStake(_ref25) {
|
2194
|
+
var comptrollerProxy = _ref25.comptrollerProxy,
|
2195
|
+
integrationManager = _ref25.integrationManager,
|
2196
|
+
fundOwner = _ref25.fundOwner,
|
2197
|
+
curveLiquiditySethAdapter = _ref25.curveLiquiditySethAdapter,
|
2198
|
+
outgoingWethAmount = _ref25.outgoingWethAmount,
|
2199
|
+
outgoingSethAmount = _ref25.outgoingSethAmount,
|
2200
|
+
minIncomingLiquidityGaugeTokenAmount = _ref25.minIncomingLiquidityGaugeTokenAmount;
|
1965
2201
|
var callArgs = protocol.callOnIntegrationArgs({
|
1966
2202
|
adapter: curveLiquiditySethAdapter,
|
1967
2203
|
encodedCallArgs: protocol.curveSethLendAndStakeArgs({
|
@@ -1973,15 +2209,15 @@ function curveSethLendAndStake(_ref18) {
|
|
1973
2209
|
});
|
1974
2210
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1975
2211
|
}
|
1976
|
-
function curveSethRedeem(
|
1977
|
-
var comptrollerProxy =
|
1978
|
-
integrationManager =
|
1979
|
-
fundOwner =
|
1980
|
-
curveLiquiditySethAdapter =
|
1981
|
-
outgoingLPTokenAmount =
|
1982
|
-
minIncomingWethAmount =
|
1983
|
-
minIncomingSethAmount =
|
1984
|
-
receiveSingleAsset =
|
2212
|
+
function curveSethRedeem(_ref26) {
|
2213
|
+
var comptrollerProxy = _ref26.comptrollerProxy,
|
2214
|
+
integrationManager = _ref26.integrationManager,
|
2215
|
+
fundOwner = _ref26.fundOwner,
|
2216
|
+
curveLiquiditySethAdapter = _ref26.curveLiquiditySethAdapter,
|
2217
|
+
outgoingLPTokenAmount = _ref26.outgoingLPTokenAmount,
|
2218
|
+
minIncomingWethAmount = _ref26.minIncomingWethAmount,
|
2219
|
+
minIncomingSethAmount = _ref26.minIncomingSethAmount,
|
2220
|
+
receiveSingleAsset = _ref26.receiveSingleAsset;
|
1985
2221
|
var callArgs = protocol.callOnIntegrationArgs({
|
1986
2222
|
adapter: curveLiquiditySethAdapter,
|
1987
2223
|
encodedCallArgs: protocol.curveSethRedeemArgs({
|
@@ -1994,12 +2230,12 @@ function curveSethRedeem(_ref19) {
|
|
1994
2230
|
});
|
1995
2231
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
1996
2232
|
}
|
1997
|
-
function curveSethStake(
|
1998
|
-
var comptrollerProxy =
|
1999
|
-
integrationManager =
|
2000
|
-
fundOwner =
|
2001
|
-
curveLiquiditySethAdapter =
|
2002
|
-
outgoingLPTokenAmount =
|
2233
|
+
function curveSethStake(_ref27) {
|
2234
|
+
var comptrollerProxy = _ref27.comptrollerProxy,
|
2235
|
+
integrationManager = _ref27.integrationManager,
|
2236
|
+
fundOwner = _ref27.fundOwner,
|
2237
|
+
curveLiquiditySethAdapter = _ref27.curveLiquiditySethAdapter,
|
2238
|
+
outgoingLPTokenAmount = _ref27.outgoingLPTokenAmount;
|
2003
2239
|
var callArgs = protocol.callOnIntegrationArgs({
|
2004
2240
|
adapter: curveLiquiditySethAdapter,
|
2005
2241
|
encodedCallArgs: protocol.curveSethStakeArgs({
|
@@ -2009,15 +2245,15 @@ function curveSethStake(_ref20) {
|
|
2009
2245
|
});
|
2010
2246
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2011
2247
|
}
|
2012
|
-
function curveSethUnstakeAndRedeem(
|
2013
|
-
var comptrollerProxy =
|
2014
|
-
integrationManager =
|
2015
|
-
fundOwner =
|
2016
|
-
curveLiquiditySethAdapter =
|
2017
|
-
outgoingLiquidityGaugeTokenAmount =
|
2018
|
-
minIncomingWethAmount =
|
2019
|
-
minIncomingSethAmount =
|
2020
|
-
receiveSingleAsset =
|
2248
|
+
function curveSethUnstakeAndRedeem(_ref28) {
|
2249
|
+
var comptrollerProxy = _ref28.comptrollerProxy,
|
2250
|
+
integrationManager = _ref28.integrationManager,
|
2251
|
+
fundOwner = _ref28.fundOwner,
|
2252
|
+
curveLiquiditySethAdapter = _ref28.curveLiquiditySethAdapter,
|
2253
|
+
outgoingLiquidityGaugeTokenAmount = _ref28.outgoingLiquidityGaugeTokenAmount,
|
2254
|
+
minIncomingWethAmount = _ref28.minIncomingWethAmount,
|
2255
|
+
minIncomingSethAmount = _ref28.minIncomingSethAmount,
|
2256
|
+
receiveSingleAsset = _ref28.receiveSingleAsset;
|
2021
2257
|
var callArgs = protocol.callOnIntegrationArgs({
|
2022
2258
|
adapter: curveLiquiditySethAdapter,
|
2023
2259
|
encodedCallArgs: protocol.curveSethUnstakeAndRedeemArgs({
|
@@ -2030,12 +2266,12 @@ function curveSethUnstakeAndRedeem(_ref21) {
|
|
2030
2266
|
});
|
2031
2267
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2032
2268
|
}
|
2033
|
-
function curveSethUnstake(
|
2034
|
-
var comptrollerProxy =
|
2035
|
-
integrationManager =
|
2036
|
-
fundOwner =
|
2037
|
-
curveLiquiditySethAdapter =
|
2038
|
-
outgoingLiquidityGaugeTokenAmount =
|
2269
|
+
function curveSethUnstake(_ref29) {
|
2270
|
+
var comptrollerProxy = _ref29.comptrollerProxy,
|
2271
|
+
integrationManager = _ref29.integrationManager,
|
2272
|
+
fundOwner = _ref29.fundOwner,
|
2273
|
+
curveLiquiditySethAdapter = _ref29.curveLiquiditySethAdapter,
|
2274
|
+
outgoingLiquidityGaugeTokenAmount = _ref29.outgoingLiquidityGaugeTokenAmount;
|
2039
2275
|
var callArgs = protocol.callOnIntegrationArgs({
|
2040
2276
|
adapter: curveLiquiditySethAdapter,
|
2041
2277
|
encodedCallArgs: protocol.curveSethUnstakeArgs({
|
@@ -2046,11 +2282,11 @@ function curveSethUnstake(_ref22) {
|
|
2046
2282
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2047
2283
|
} // stETH pool
|
2048
2284
|
|
2049
|
-
function curveStethClaimRewards(
|
2050
|
-
var comptrollerProxy =
|
2051
|
-
integrationManager =
|
2052
|
-
fundOwner =
|
2053
|
-
curveLiquidityStethAdapter =
|
2285
|
+
function curveStethClaimRewards(_ref30) {
|
2286
|
+
var comptrollerProxy = _ref30.comptrollerProxy,
|
2287
|
+
integrationManager = _ref30.integrationManager,
|
2288
|
+
fundOwner = _ref30.fundOwner,
|
2289
|
+
curveLiquidityStethAdapter = _ref30.curveLiquidityStethAdapter;
|
2054
2290
|
var callArgs = protocol.callOnIntegrationArgs({
|
2055
2291
|
adapter: curveLiquidityStethAdapter,
|
2056
2292
|
encodedCallArgs: ethers.constants.HashZero,
|
@@ -2058,14 +2294,14 @@ function curveStethClaimRewards(_ref23) {
|
|
2058
2294
|
});
|
2059
2295
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2060
2296
|
}
|
2061
|
-
function curveStethLend(
|
2062
|
-
var comptrollerProxy =
|
2063
|
-
integrationManager =
|
2064
|
-
fundOwner =
|
2065
|
-
curveLiquidityStethAdapter =
|
2066
|
-
outgoingWethAmount =
|
2067
|
-
outgoingStethAmount =
|
2068
|
-
minIncomingLPTokenAmount =
|
2297
|
+
function curveStethLend(_ref31) {
|
2298
|
+
var comptrollerProxy = _ref31.comptrollerProxy,
|
2299
|
+
integrationManager = _ref31.integrationManager,
|
2300
|
+
fundOwner = _ref31.fundOwner,
|
2301
|
+
curveLiquidityStethAdapter = _ref31.curveLiquidityStethAdapter,
|
2302
|
+
outgoingWethAmount = _ref31.outgoingWethAmount,
|
2303
|
+
outgoingStethAmount = _ref31.outgoingStethAmount,
|
2304
|
+
minIncomingLPTokenAmount = _ref31.minIncomingLPTokenAmount;
|
2069
2305
|
var callArgs = protocol.callOnIntegrationArgs({
|
2070
2306
|
adapter: curveLiquidityStethAdapter,
|
2071
2307
|
encodedCallArgs: protocol.curveStethLendArgs({
|
@@ -2077,14 +2313,14 @@ function curveStethLend(_ref24) {
|
|
2077
2313
|
});
|
2078
2314
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2079
2315
|
}
|
2080
|
-
function curveStethLendAndStake(
|
2081
|
-
var comptrollerProxy =
|
2082
|
-
integrationManager =
|
2083
|
-
fundOwner =
|
2084
|
-
curveLiquidityStethAdapter =
|
2085
|
-
outgoingWethAmount =
|
2086
|
-
outgoingStethAmount =
|
2087
|
-
minIncomingLiquidityGaugeTokenAmount =
|
2316
|
+
function curveStethLendAndStake(_ref32) {
|
2317
|
+
var comptrollerProxy = _ref32.comptrollerProxy,
|
2318
|
+
integrationManager = _ref32.integrationManager,
|
2319
|
+
fundOwner = _ref32.fundOwner,
|
2320
|
+
curveLiquidityStethAdapter = _ref32.curveLiquidityStethAdapter,
|
2321
|
+
outgoingWethAmount = _ref32.outgoingWethAmount,
|
2322
|
+
outgoingStethAmount = _ref32.outgoingStethAmount,
|
2323
|
+
minIncomingLiquidityGaugeTokenAmount = _ref32.minIncomingLiquidityGaugeTokenAmount;
|
2088
2324
|
var callArgs = protocol.callOnIntegrationArgs({
|
2089
2325
|
adapter: curveLiquidityStethAdapter,
|
2090
2326
|
encodedCallArgs: protocol.curveStethLendAndStakeArgs({
|
@@ -2096,15 +2332,15 @@ function curveStethLendAndStake(_ref25) {
|
|
2096
2332
|
});
|
2097
2333
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2098
2334
|
}
|
2099
|
-
function curveStethRedeem(
|
2100
|
-
var comptrollerProxy =
|
2101
|
-
integrationManager =
|
2102
|
-
fundOwner =
|
2103
|
-
curveLiquidityStethAdapter =
|
2104
|
-
outgoingLPTokenAmount =
|
2105
|
-
minIncomingWethAmount =
|
2106
|
-
minIncomingStethAmount =
|
2107
|
-
receiveSingleAsset =
|
2335
|
+
function curveStethRedeem(_ref33) {
|
2336
|
+
var comptrollerProxy = _ref33.comptrollerProxy,
|
2337
|
+
integrationManager = _ref33.integrationManager,
|
2338
|
+
fundOwner = _ref33.fundOwner,
|
2339
|
+
curveLiquidityStethAdapter = _ref33.curveLiquidityStethAdapter,
|
2340
|
+
outgoingLPTokenAmount = _ref33.outgoingLPTokenAmount,
|
2341
|
+
minIncomingWethAmount = _ref33.minIncomingWethAmount,
|
2342
|
+
minIncomingStethAmount = _ref33.minIncomingStethAmount,
|
2343
|
+
receiveSingleAsset = _ref33.receiveSingleAsset;
|
2108
2344
|
var callArgs = protocol.callOnIntegrationArgs({
|
2109
2345
|
adapter: curveLiquidityStethAdapter,
|
2110
2346
|
encodedCallArgs: protocol.curveStethRedeemArgs({
|
@@ -2117,12 +2353,12 @@ function curveStethRedeem(_ref26) {
|
|
2117
2353
|
});
|
2118
2354
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2119
2355
|
}
|
2120
|
-
function curveStethStake(
|
2121
|
-
var comptrollerProxy =
|
2122
|
-
integrationManager =
|
2123
|
-
fundOwner =
|
2124
|
-
curveLiquidityStethAdapter =
|
2125
|
-
outgoingLPTokenAmount =
|
2356
|
+
function curveStethStake(_ref34) {
|
2357
|
+
var comptrollerProxy = _ref34.comptrollerProxy,
|
2358
|
+
integrationManager = _ref34.integrationManager,
|
2359
|
+
fundOwner = _ref34.fundOwner,
|
2360
|
+
curveLiquidityStethAdapter = _ref34.curveLiquidityStethAdapter,
|
2361
|
+
outgoingLPTokenAmount = _ref34.outgoingLPTokenAmount;
|
2126
2362
|
var callArgs = protocol.callOnIntegrationArgs({
|
2127
2363
|
adapter: curveLiquidityStethAdapter,
|
2128
2364
|
encodedCallArgs: protocol.curveStethStakeArgs({
|
@@ -2132,15 +2368,15 @@ function curveStethStake(_ref27) {
|
|
2132
2368
|
});
|
2133
2369
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2134
2370
|
}
|
2135
|
-
function curveStethUnstakeAndRedeem(
|
2136
|
-
var comptrollerProxy =
|
2137
|
-
integrationManager =
|
2138
|
-
fundOwner =
|
2139
|
-
curveLiquidityStethAdapter =
|
2140
|
-
outgoingLiquidityGaugeTokenAmount =
|
2141
|
-
minIncomingWethAmount =
|
2142
|
-
minIncomingStethAmount =
|
2143
|
-
receiveSingleAsset =
|
2371
|
+
function curveStethUnstakeAndRedeem(_ref35) {
|
2372
|
+
var comptrollerProxy = _ref35.comptrollerProxy,
|
2373
|
+
integrationManager = _ref35.integrationManager,
|
2374
|
+
fundOwner = _ref35.fundOwner,
|
2375
|
+
curveLiquidityStethAdapter = _ref35.curveLiquidityStethAdapter,
|
2376
|
+
outgoingLiquidityGaugeTokenAmount = _ref35.outgoingLiquidityGaugeTokenAmount,
|
2377
|
+
minIncomingWethAmount = _ref35.minIncomingWethAmount,
|
2378
|
+
minIncomingStethAmount = _ref35.minIncomingStethAmount,
|
2379
|
+
receiveSingleAsset = _ref35.receiveSingleAsset;
|
2144
2380
|
var callArgs = protocol.callOnIntegrationArgs({
|
2145
2381
|
adapter: curveLiquidityStethAdapter,
|
2146
2382
|
encodedCallArgs: protocol.curveStethUnstakeAndRedeemArgs({
|
@@ -2153,12 +2389,12 @@ function curveStethUnstakeAndRedeem(_ref28) {
|
|
2153
2389
|
});
|
2154
2390
|
return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2155
2391
|
}
|
2156
|
-
function curveStethUnstake(
|
2157
|
-
var comptrollerProxy =
|
2158
|
-
integrationManager =
|
2159
|
-
fundOwner =
|
2160
|
-
curveLiquidityStethAdapter =
|
2161
|
-
outgoingLiquidityGaugeTokenAmount =
|
2392
|
+
function curveStethUnstake(_ref36) {
|
2393
|
+
var comptrollerProxy = _ref36.comptrollerProxy,
|
2394
|
+
integrationManager = _ref36.integrationManager,
|
2395
|
+
fundOwner = _ref36.fundOwner,
|
2396
|
+
curveLiquidityStethAdapter = _ref36.curveLiquidityStethAdapter,
|
2397
|
+
outgoingLiquidityGaugeTokenAmount = _ref36.outgoingLiquidityGaugeTokenAmount;
|
2162
2398
|
var callArgs = protocol.callOnIntegrationArgs({
|
2163
2399
|
adapter: curveLiquidityStethAdapter,
|
2164
2400
|
encodedCallArgs: protocol.curveStethUnstakeArgs({
|
@@ -2354,6 +2590,72 @@ function _mockGenericSwap() {
|
|
2354
2590
|
return _mockGenericSwap.apply(this, arguments);
|
2355
2591
|
}
|
2356
2592
|
|
2593
|
+
function olympusV2Stake(_x) {
|
2594
|
+
return _olympusV2Stake.apply(this, arguments);
|
2595
|
+
}
|
2596
|
+
|
2597
|
+
function _olympusV2Stake() {
|
2598
|
+
_olympusV2Stake = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(_ref) {
|
2599
|
+
var comptrollerProxy, integrationManager, signer, olympusV2Adapter, amount, stakeArgs, callArgs, stakeTx;
|
2600
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
|
2601
|
+
while (1) {
|
2602
|
+
switch (_context.prev = _context.next) {
|
2603
|
+
case 0:
|
2604
|
+
comptrollerProxy = _ref.comptrollerProxy, integrationManager = _ref.integrationManager, signer = _ref.signer, olympusV2Adapter = _ref.olympusV2Adapter, amount = _ref.amount;
|
2605
|
+
stakeArgs = protocol.olympusV2StakeArgs({
|
2606
|
+
amount: amount
|
2607
|
+
});
|
2608
|
+
callArgs = protocol.callOnIntegrationArgs({
|
2609
|
+
adapter: olympusV2Adapter,
|
2610
|
+
encodedCallArgs: stakeArgs,
|
2611
|
+
selector: protocol.stakeSelector
|
2612
|
+
});
|
2613
|
+
stakeTx = comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2614
|
+
return _context.abrupt("return", stakeTx);
|
2615
|
+
|
2616
|
+
case 5:
|
2617
|
+
case "end":
|
2618
|
+
return _context.stop();
|
2619
|
+
}
|
2620
|
+
}
|
2621
|
+
}, _callee);
|
2622
|
+
}));
|
2623
|
+
return _olympusV2Stake.apply(this, arguments);
|
2624
|
+
}
|
2625
|
+
|
2626
|
+
function olympusV2Unstake(_x2) {
|
2627
|
+
return _olympusV2Unstake.apply(this, arguments);
|
2628
|
+
}
|
2629
|
+
|
2630
|
+
function _olympusV2Unstake() {
|
2631
|
+
_olympusV2Unstake = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2(_ref2) {
|
2632
|
+
var comptrollerProxy, integrationManager, signer, olympusV2Adapter, amount, unstakeArgs, callArgs, unstakeTx;
|
2633
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee2$(_context2) {
|
2634
|
+
while (1) {
|
2635
|
+
switch (_context2.prev = _context2.next) {
|
2636
|
+
case 0:
|
2637
|
+
comptrollerProxy = _ref2.comptrollerProxy, integrationManager = _ref2.integrationManager, signer = _ref2.signer, olympusV2Adapter = _ref2.olympusV2Adapter, amount = _ref2.amount;
|
2638
|
+
unstakeArgs = protocol.olympusV2UnstakeArgs({
|
2639
|
+
amount: amount
|
2640
|
+
});
|
2641
|
+
callArgs = protocol.callOnIntegrationArgs({
|
2642
|
+
adapter: olympusV2Adapter,
|
2643
|
+
encodedCallArgs: unstakeArgs,
|
2644
|
+
selector: protocol.unstakeSelector
|
2645
|
+
});
|
2646
|
+
unstakeTx = comptrollerProxy.connect(signer).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
|
2647
|
+
return _context2.abrupt("return", unstakeTx);
|
2648
|
+
|
2649
|
+
case 5:
|
2650
|
+
case "end":
|
2651
|
+
return _context2.stop();
|
2652
|
+
}
|
2653
|
+
}
|
2654
|
+
}, _callee2);
|
2655
|
+
}));
|
2656
|
+
return _olympusV2Unstake.apply(this, arguments);
|
2657
|
+
}
|
2658
|
+
|
2357
2659
|
function paraSwapV4GenerateDummyPaths(_ref) {
|
2358
2660
|
var toTokens = _ref.toTokens;
|
2359
2661
|
return toTokens.map(function (toToken) {
|
@@ -3653,12 +3955,15 @@ var whales = {
|
|
3653
3955
|
crv: '0x4ce799e6eD8D64536b67dD428565d52A531B3640',
|
3654
3956
|
dai: '0x47ac0fb4f2d84898e4d9e7b4dab3c24507a6d503',
|
3655
3957
|
knc: '0x09d51654bd9efbfcb56da3491989cc1444095fff',
|
3958
|
+
ldo: '0x3dba737ccc50a32a1764b493285dd51c8af6c278',
|
3656
3959
|
link: '0xbe6977e08d4479c0a6777539ae0e8fa27be4e9d6',
|
3657
3960
|
mana: '0xefb94ac00f1cee8a89d5c3f49faa799da6f03024',
|
3658
3961
|
mln: '0xd8f8a53945bcfbbc19da162aa405e662ef71c40d',
|
3962
|
+
ohm: '0x71a53aff36a699110d66d6bdfff2320caf8d2d59',
|
3659
3963
|
rep: '0xc6a043b07d33b6f30d8cb501026c391cfd25abe1',
|
3660
3964
|
ren: '0xbe0eb53f46cd790cd13851d5eff43d12404d33e8',
|
3661
3965
|
susd: '0xa5f7a39e55d7878bc5bd754ee5d6bd7a7662355b',
|
3966
|
+
sohm: '0xf280f037cdbda99727ddf5dfede91e68fa78605c',
|
3662
3967
|
uni: '0x47173b170c64d16393a52e6c480b3ad8c302ba1e',
|
3663
3968
|
usdc: '0xae2d4617c862309a3d75a0ffb358c7a5009c673f',
|
3664
3969
|
usdt: '0x5041ed759dd4afc3a72b8192c143f72f4724081a',
|
@@ -3666,12 +3971,13 @@ var whales = {
|
|
3666
3971
|
zrx: '0x206376e8940e42538781cd94ef024df3c1e0fd43',
|
3667
3972
|
// aTokens
|
3668
3973
|
ausdc: '0x3DdfA8eC3052539b6C9549F12cEA2C295cfF5296',
|
3974
|
+
ausdt: '0x7d6149ad9a573a6e2ca6ebf7d4897c1b766841b4',
|
3669
3975
|
// cTokens
|
3670
3976
|
ccomp: '0xd74f186194ab9219fafac5c2fe4b3270169666db',
|
3671
3977
|
cdai: '0xab4ce310054a11328685ece1043211b68ba5d082',
|
3672
3978
|
ceth: '0x8aceab8167c80cb8b3de7fa6228b889bb1130ee8',
|
3673
3979
|
cuni: '0x39d8014b4f40d2cbc441137011d32023f4f1fd87',
|
3674
|
-
cusdc: '
|
3980
|
+
cusdc: '0xe1ed4da4284924ddaf69983b4d813fb1be58c380',
|
3675
3981
|
// ptTokens
|
3676
3982
|
ptUsdc: '0xd18236cd213f39d078177b6f6908f0e44e88e4aa',
|
3677
3983
|
// synths
|
@@ -3681,8 +3987,8 @@ var whales = {
|
|
3681
3987
|
sxau: '0x92eb453b7b5b8d41edb44e2c8b8b53eb70a482c7',
|
3682
3988
|
// misc
|
3683
3989
|
lidoSteth: '0x31f644e2dd5d74f5c8d6d9de89dd517474d51800',
|
3684
|
-
|
3685
|
-
|
3990
|
+
eurs: '0x98ed26de6451db36246672df78ae7c50f2c76f6d',
|
3991
|
+
ust: '0xf584f8728b874a6a5c7a8d4d387c9aae9172d621'
|
3686
3992
|
};
|
3687
3993
|
/* eslint-enable sort-keys-fix/sort-keys-fix */
|
3688
3994
|
|
@@ -3918,6 +4224,7 @@ function assertPaymasterDidRejectForReason(receipt, reason) {
|
|
3918
4224
|
|
3919
4225
|
exports.CurveLiquidityGaugeV2 = CurveLiquidityGaugeV2;
|
3920
4226
|
exports.CurveMinter = CurveMinter;
|
4227
|
+
exports.CurveRegistry = CurveRegistry;
|
3921
4228
|
exports.CurveSwaps = CurveSwaps;
|
3922
4229
|
exports.ICompoundComptroller = ICompoundComptroller;
|
3923
4230
|
exports.IUniswapV3NonFungibleTokenManager = IUniswapV3NonFungibleTokenManager;
|
@@ -3963,6 +4270,7 @@ exports.curveAaveRedeem = curveAaveRedeem;
|
|
3963
4270
|
exports.curveAaveStake = curveAaveStake;
|
3964
4271
|
exports.curveAaveUnstake = curveAaveUnstake;
|
3965
4272
|
exports.curveAaveUnstakeAndRedeem = curveAaveUnstakeAndRedeem;
|
4273
|
+
exports.curveClaimRewards = curveClaimRewards;
|
3966
4274
|
exports.curveEursClaimRewards = curveEursClaimRewards;
|
3967
4275
|
exports.curveEursLend = curveEursLend;
|
3968
4276
|
exports.curveEursLendAndStake = curveEursLendAndStake;
|
@@ -3970,6 +4278,9 @@ exports.curveEursRedeem = curveEursRedeem;
|
|
3970
4278
|
exports.curveEursStake = curveEursStake;
|
3971
4279
|
exports.curveEursUnstake = curveEursUnstake;
|
3972
4280
|
exports.curveEursUnstakeAndRedeem = curveEursUnstakeAndRedeem;
|
4281
|
+
exports.curveLend = curveLend;
|
4282
|
+
exports.curveLendAndStake = curveLendAndStake;
|
4283
|
+
exports.curveRedeem = curveRedeem;
|
3973
4284
|
exports.curveSethClaimRewards = curveSethClaimRewards;
|
3974
4285
|
exports.curveSethLend = curveSethLend;
|
3975
4286
|
exports.curveSethLendAndStake = curveSethLendAndStake;
|
@@ -3977,6 +4288,7 @@ exports.curveSethRedeem = curveSethRedeem;
|
|
3977
4288
|
exports.curveSethStake = curveSethStake;
|
3978
4289
|
exports.curveSethUnstake = curveSethUnstake;
|
3979
4290
|
exports.curveSethUnstakeAndRedeem = curveSethUnstakeAndRedeem;
|
4291
|
+
exports.curveStake = curveStake;
|
3980
4292
|
exports.curveStethClaimRewards = curveStethClaimRewards;
|
3981
4293
|
exports.curveStethLend = curveStethLend;
|
3982
4294
|
exports.curveStethLendAndStake = curveStethLendAndStake;
|
@@ -3985,6 +4297,8 @@ exports.curveStethStake = curveStethStake;
|
|
3985
4297
|
exports.curveStethUnstake = curveStethUnstake;
|
3986
4298
|
exports.curveStethUnstakeAndRedeem = curveStethUnstakeAndRedeem;
|
3987
4299
|
exports.curveTakeOrder = curveTakeOrder;
|
4300
|
+
exports.curveUnstake = curveUnstake;
|
4301
|
+
exports.curveUnstakeAndRedeem = curveUnstakeAndRedeem;
|
3988
4302
|
exports.deployProtocolFixture = deployProtocolFixture;
|
3989
4303
|
exports.generateFeeManagerConfigWithMockFees = generateFeeManagerConfigWithMockFees;
|
3990
4304
|
exports.generateMockFees = generateMockFees;
|
@@ -4008,6 +4322,8 @@ exports.mockGenericSwapArgs = mockGenericSwapArgs;
|
|
4008
4322
|
exports.mockGenericSwapBSelector = mockGenericSwapBSelector;
|
4009
4323
|
exports.mockGenericSwapDirectFromVaultSelector = mockGenericSwapDirectFromVaultSelector;
|
4010
4324
|
exports.mockGenericSwapViaApprovalSelector = mockGenericSwapViaApprovalSelector;
|
4325
|
+
exports.olympusV2Stake = olympusV2Stake;
|
4326
|
+
exports.olympusV2Unstake = olympusV2Unstake;
|
4011
4327
|
exports.paraSwapV4GenerateDummyPaths = paraSwapV4GenerateDummyPaths;
|
4012
4328
|
exports.paraSwapV4TakeOrder = paraSwapV4TakeOrder;
|
4013
4329
|
exports.paraSwapV5GenerateDummyPaths = paraSwapV5GenerateDummyPaths;
|