@enzymefinance/testutils 4.0.0-next.7 → 4.0.0

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.
@@ -113,6 +113,8 @@ function _deployProtocolFixture() {
113
113
 
114
114
  deployment = {
115
115
  aaveAdapter: new protocol.AaveAdapter(fixture['AaveAdapter'].address, deployer),
116
+ aaveDebtPositionLib: new protocol.AaveDebtPositionLib(fixture['AaveDebtPositionLib'].address, deployer),
117
+ aaveDebtPositionParser: new protocol.AaveDebtPositionParser(fixture['AaveDebtPositionParser'].address, deployer),
116
118
  aavePriceFeed: new protocol.AavePriceFeed(fixture['AavePriceFeed'].address, deployer),
117
119
  addressListRegistry: new protocol.AddressListRegistry(fixture['AddressListRegistry'].address, deployer),
118
120
  allowedAdapterIncomingAssetsPolicy: new protocol.AllowedAdapterIncomingAssetsPolicy(fixture['AllowedAdapterIncomingAssetsPolicy'].address, deployer),
@@ -131,10 +133,7 @@ function _deployProtocolFixture() {
131
133
  convexCurveLpStakingWrapperPriceFeed: new protocol.ConvexCurveLpStakingWrapperPriceFeed(fixture['ConvexCurveLpStakingWrapperPriceFeed'].address, deployer),
132
134
  cumulativeSlippageTolerancePolicy: new protocol.CumulativeSlippageTolerancePolicy(fixture['CumulativeSlippageTolerancePolicy'].address, deployer),
133
135
  curveExchangeAdapter: new protocol.CurveExchangeAdapter(fixture['CurveExchangeAdapter'].address, deployer),
134
- curveLiquidityAaveAdapter: new protocol.CurveLiquidityAaveAdapter(fixture['CurveLiquidityAaveAdapter'].address, deployer),
135
136
  curveLiquidityAdapter: new protocol.CurveLiquidityAdapter(fixture['CurveLiquidityAdapter'].address, deployer),
136
- curveLiquiditySethAdapter: new protocol.CurveLiquiditySethAdapter(fixture['CurveLiquiditySethAdapter'].address, deployer),
137
- curveLiquidityStethAdapter: new protocol.CurveLiquidityStethAdapter(fixture['CurveLiquidityStethAdapter'].address, deployer),
138
137
  curvePriceFeed: new protocol.CurvePriceFeed(fixture['CurvePriceFeed'].address, deployer),
139
138
  depositWrapper: new protocol.DepositWrapper(fixture['DepositWrapper'].address, deployer),
140
139
  dispatcher: new protocol.Dispatcher(fixture['Dispatcher'].address, deployer),
@@ -162,7 +161,6 @@ function _deployProtocolFixture() {
162
161
  olympusV2Adapter: new protocol.OlympusV2Adapter(fixture['OlympusV2Adapter'].address, deployer),
163
162
  onlyRemoveDustExternalPositionPolicy: new protocol.OnlyRemoveDustExternalPositionPolicy(fixture['OnlyRemoveDustExternalPositionPolicy'].address, deployer),
164
163
  onlyUntrackDustOrPricelessAssetsPolicy: new protocol.OnlyUntrackDustOrPricelessAssetsPolicy(fixture['OnlyUntrackDustOrPricelessAssetsPolicy'].address, deployer),
165
- paraSwapV4Adapter: new protocol.ParaSwapV4Adapter(fixture['ParaSwapV4Adapter'].address, deployer),
166
164
  paraSwapV5Adapter: new protocol.ParaSwapV5Adapter(fixture['ParaSwapV5Adapter'].address, deployer),
167
165
  performanceFee: new protocol.PerformanceFee(fixture['PerformanceFee'].address, deployer),
168
166
  policyManager: new protocol.PolicyManager(fixture['PolicyManager'].address, deployer),
@@ -172,13 +170,13 @@ function _deployProtocolFixture() {
172
170
  protocolFeeReserveProxy: new protocol.ProtocolFeeReserveLib(fixture['ProtocolFeeReserveProxy'].address, deployer),
173
171
  protocolFeeTracker: new protocol.ProtocolFeeTracker(fixture['ProtocolFeeTracker'].address, deployer),
174
172
  revertingPriceFeed: new protocol.RevertingPriceFeed(fixture['RevertingPriceFeed'].address, deployer),
175
- stakehoundEthPriceFeed: new protocol.StakehoundEthPriceFeed(fixture['StakehoundEthPriceFeed'].address, deployer),
176
173
  synthetixAdapter: new protocol.SynthetixAdapter(fixture['SynthetixAdapter'].address, deployer),
177
174
  uniswapV2ExchangeAdapter: new protocol.UniswapV2ExchangeAdapter(fixture['UniswapV2ExchangeAdapter'].address, deployer),
178
175
  uniswapV2LiquidityAdapter: new protocol.UniswapV2LiquidityAdapter(fixture['UniswapV2LiquidityAdapter'].address, deployer),
179
176
  uniswapV2PoolPriceFeed: new protocol.UniswapV2PoolPriceFeed(fixture['UniswapV2PoolPriceFeed'].address, deployer),
180
177
  uniswapV3Adapter: new protocol.UniswapV3Adapter(fixture['UniswapV3Adapter'].address, deployer),
181
178
  unpermissionedActionsWrapper: new protocol.UnpermissionedActionsWrapper(fixture['UnpermissionedActionsWrapper'].address, deployer),
179
+ usdEthSimulatedAggregator: new protocol.UsdEthSimulatedAggregator(fixture['UsdEthSimulatedAggregator'].address, deployer),
182
180
  valueInterpreter: new protocol.ValueInterpreter(fixture['ValueInterpreter'].address, deployer),
183
181
  vaultLib: new protocol.VaultLib(fixture['VaultLib'].address, deployer),
184
182
  yearnVaultV2Adapter: new protocol.YearnVaultV2Adapter(fixture['YearnVaultV2Adapter'].address, deployer),
@@ -1118,6 +1116,209 @@ function _mockExternalPositionRemoveManagedAssets() {
1118
1116
  return _mockExternalPositionRemoveManagedAssets.apply(this, arguments);
1119
1117
  }
1120
1118
 
1119
+ function aaveDebtPositionAddCollateral(_x) {
1120
+ return _aaveDebtPositionAddCollateral.apply(this, arguments);
1121
+ }
1122
+
1123
+ function _aaveDebtPositionAddCollateral() {
1124
+ _aaveDebtPositionAddCollateral = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(_ref) {
1125
+ var comptrollerProxy, externalPositionManager, signer, aTokens, amounts, externalPositionProxy, actionArgs;
1126
+ return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
1127
+ while (1) {
1128
+ switch (_context.prev = _context.next) {
1129
+ case 0:
1130
+ comptrollerProxy = _ref.comptrollerProxy, externalPositionManager = _ref.externalPositionManager, signer = _ref.signer, aTokens = _ref.aTokens, amounts = _ref.amounts, externalPositionProxy = _ref.externalPositionProxy;
1131
+ actionArgs = protocol.aaveDebtPositionAddCollateralArgs({
1132
+ aTokens: aTokens,
1133
+ amounts: amounts
1134
+ });
1135
+ return _context.abrupt("return", callOnExternalPosition({
1136
+ actionArgs: actionArgs,
1137
+ actionId: protocol.AaveDebtPositionActionId.AddCollateralAssets,
1138
+ comptrollerProxy: comptrollerProxy,
1139
+ externalPositionManager: externalPositionManager,
1140
+ externalPositionProxy: externalPositionProxy,
1141
+ signer: signer
1142
+ }));
1143
+
1144
+ case 3:
1145
+ case "end":
1146
+ return _context.stop();
1147
+ }
1148
+ }
1149
+ }, _callee);
1150
+ }));
1151
+ return _aaveDebtPositionAddCollateral.apply(this, arguments);
1152
+ }
1153
+
1154
+ function aaveDebtPositionBorrow(_x2) {
1155
+ return _aaveDebtPositionBorrow.apply(this, arguments);
1156
+ }
1157
+
1158
+ function _aaveDebtPositionBorrow() {
1159
+ _aaveDebtPositionBorrow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2(_ref2) {
1160
+ var comptrollerProxy, externalPositionManager, signer, tokens, amounts, externalPositionProxy, actionArgs;
1161
+ return _regeneratorRuntime__default['default'].wrap(function _callee2$(_context2) {
1162
+ while (1) {
1163
+ switch (_context2.prev = _context2.next) {
1164
+ case 0:
1165
+ comptrollerProxy = _ref2.comptrollerProxy, externalPositionManager = _ref2.externalPositionManager, signer = _ref2.signer, tokens = _ref2.tokens, amounts = _ref2.amounts, externalPositionProxy = _ref2.externalPositionProxy;
1166
+ actionArgs = protocol.aaveDebtPositionBorrowArgs({
1167
+ amounts: amounts,
1168
+ tokens: tokens
1169
+ });
1170
+ return _context2.abrupt("return", callOnExternalPosition({
1171
+ actionArgs: actionArgs,
1172
+ actionId: protocol.AaveDebtPositionActionId.BorrowAsset,
1173
+ comptrollerProxy: comptrollerProxy,
1174
+ externalPositionManager: externalPositionManager,
1175
+ externalPositionProxy: externalPositionProxy,
1176
+ signer: signer
1177
+ }));
1178
+
1179
+ case 3:
1180
+ case "end":
1181
+ return _context2.stop();
1182
+ }
1183
+ }
1184
+ }, _callee2);
1185
+ }));
1186
+ return _aaveDebtPositionBorrow.apply(this, arguments);
1187
+ }
1188
+
1189
+ function aaveDebtPositionClaimRewards(_x3) {
1190
+ return _aaveDebtPositionClaimRewards.apply(this, arguments);
1191
+ }
1192
+
1193
+ function _aaveDebtPositionClaimRewards() {
1194
+ _aaveDebtPositionClaimRewards = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3(_ref3) {
1195
+ var comptrollerProxy, externalPositionManager, signer, assets, externalPositionProxy, actionArgs;
1196
+ return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
1197
+ while (1) {
1198
+ switch (_context3.prev = _context3.next) {
1199
+ case 0:
1200
+ comptrollerProxy = _ref3.comptrollerProxy, externalPositionManager = _ref3.externalPositionManager, signer = _ref3.signer, assets = _ref3.assets, externalPositionProxy = _ref3.externalPositionProxy;
1201
+ actionArgs = protocol.aaveDebtPositionClaimRewardsArgs({
1202
+ assets: assets
1203
+ });
1204
+ return _context3.abrupt("return", callOnExternalPosition({
1205
+ actionArgs: actionArgs,
1206
+ actionId: protocol.AaveDebtPositionActionId.ClaimRewards,
1207
+ comptrollerProxy: comptrollerProxy,
1208
+ externalPositionManager: externalPositionManager,
1209
+ externalPositionProxy: externalPositionProxy,
1210
+ signer: signer
1211
+ }));
1212
+
1213
+ case 3:
1214
+ case "end":
1215
+ return _context3.stop();
1216
+ }
1217
+ }
1218
+ }, _callee3);
1219
+ }));
1220
+ return _aaveDebtPositionClaimRewards.apply(this, arguments);
1221
+ }
1222
+
1223
+ function aaveDebtPositionRemoveCollateral(_x4) {
1224
+ return _aaveDebtPositionRemoveCollateral.apply(this, arguments);
1225
+ }
1226
+
1227
+ function _aaveDebtPositionRemoveCollateral() {
1228
+ _aaveDebtPositionRemoveCollateral = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee4(_ref4) {
1229
+ var comptrollerProxy, externalPositionManager, signer, aTokens, amounts, externalPositionProxy, actionArgs;
1230
+ return _regeneratorRuntime__default['default'].wrap(function _callee4$(_context4) {
1231
+ while (1) {
1232
+ switch (_context4.prev = _context4.next) {
1233
+ case 0:
1234
+ comptrollerProxy = _ref4.comptrollerProxy, externalPositionManager = _ref4.externalPositionManager, signer = _ref4.signer, aTokens = _ref4.aTokens, amounts = _ref4.amounts, externalPositionProxy = _ref4.externalPositionProxy;
1235
+ actionArgs = protocol.aaveDebtPositionRemoveCollateralArgs({
1236
+ aTokens: aTokens,
1237
+ amounts: amounts
1238
+ });
1239
+ return _context4.abrupt("return", callOnExternalPosition({
1240
+ actionArgs: actionArgs,
1241
+ actionId: protocol.AaveDebtPositionActionId.RemoveCollateralAssets,
1242
+ comptrollerProxy: comptrollerProxy,
1243
+ externalPositionManager: externalPositionManager,
1244
+ externalPositionProxy: externalPositionProxy,
1245
+ signer: signer
1246
+ }));
1247
+
1248
+ case 3:
1249
+ case "end":
1250
+ return _context4.stop();
1251
+ }
1252
+ }
1253
+ }, _callee4);
1254
+ }));
1255
+ return _aaveDebtPositionRemoveCollateral.apply(this, arguments);
1256
+ }
1257
+
1258
+ function aaveDebtPositionRepayBorrow(_x5) {
1259
+ return _aaveDebtPositionRepayBorrow.apply(this, arguments);
1260
+ }
1261
+
1262
+ function _aaveDebtPositionRepayBorrow() {
1263
+ _aaveDebtPositionRepayBorrow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5(_ref5) {
1264
+ var comptrollerProxy, externalPositionManager, signer, tokens, amounts, externalPositionProxy, actionArgs;
1265
+ return _regeneratorRuntime__default['default'].wrap(function _callee5$(_context5) {
1266
+ while (1) {
1267
+ switch (_context5.prev = _context5.next) {
1268
+ case 0:
1269
+ comptrollerProxy = _ref5.comptrollerProxy, externalPositionManager = _ref5.externalPositionManager, signer = _ref5.signer, tokens = _ref5.tokens, amounts = _ref5.amounts, externalPositionProxy = _ref5.externalPositionProxy;
1270
+ actionArgs = protocol.aaveDebtPositionRepayBorrowArgs({
1271
+ amounts: amounts,
1272
+ tokens: tokens
1273
+ });
1274
+ return _context5.abrupt("return", callOnExternalPosition({
1275
+ actionArgs: actionArgs,
1276
+ actionId: protocol.AaveDebtPositionActionId.RepayBorrowedAssets,
1277
+ comptrollerProxy: comptrollerProxy,
1278
+ externalPositionManager: externalPositionManager,
1279
+ externalPositionProxy: externalPositionProxy,
1280
+ signer: signer
1281
+ }));
1282
+
1283
+ case 3:
1284
+ case "end":
1285
+ return _context5.stop();
1286
+ }
1287
+ }
1288
+ }, _callee5);
1289
+ }));
1290
+ return _aaveDebtPositionRepayBorrow.apply(this, arguments);
1291
+ }
1292
+
1293
+ function createAaveDebtPosition(_x6) {
1294
+ return _createAaveDebtPosition.apply(this, arguments);
1295
+ }
1296
+
1297
+ function _createAaveDebtPosition() {
1298
+ _createAaveDebtPosition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6(_ref6) {
1299
+ var signer, comptrollerProxy, externalPositionManager;
1300
+ return _regeneratorRuntime__default['default'].wrap(function _callee6$(_context6) {
1301
+ while (1) {
1302
+ switch (_context6.prev = _context6.next) {
1303
+ case 0:
1304
+ signer = _ref6.signer, comptrollerProxy = _ref6.comptrollerProxy, externalPositionManager = _ref6.externalPositionManager;
1305
+ return _context6.abrupt("return", createExternalPosition({
1306
+ comptrollerProxy: comptrollerProxy,
1307
+ externalPositionManager: externalPositionManager,
1308
+ externalPositionTypeId: protocol.ExternalPositionType.AaveDebtPosition,
1309
+ signer: signer
1310
+ }));
1311
+
1312
+ case 2:
1313
+ case "end":
1314
+ return _context6.stop();
1315
+ }
1316
+ }
1317
+ }, _callee6);
1318
+ }));
1319
+ return _createAaveDebtPosition.apply(this, arguments);
1320
+ }
1321
+
1121
1322
  var _templateObject$3;
1122
1323
  exports.UniswapV3FeeAmount = void 0;
1123
1324
 
@@ -2058,7 +2259,7 @@ function _curveUnstake() {
2058
2259
 
2059
2260
  function curveUnstakeAndRedeem(_x7) {
2060
2261
  return _curveUnstakeAndRedeem.apply(this, arguments);
2061
- } // aave pool
2262
+ }
2062
2263
 
2063
2264
  function _curveUnstakeAndRedeem() {
2064
2265
  _curveUnstakeAndRedeem = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee7(_ref8) {
@@ -2092,411 +2293,6 @@ function _curveUnstakeAndRedeem() {
2092
2293
  return _curveUnstakeAndRedeem.apply(this, arguments);
2093
2294
  }
2094
2295
 
2095
- function curveAaveClaimRewards(_ref9) {
2096
- var comptrollerProxy = _ref9.comptrollerProxy,
2097
- integrationManager = _ref9.integrationManager,
2098
- fundOwner = _ref9.fundOwner,
2099
- curveLiquidityAaveAdapter = _ref9.curveLiquidityAaveAdapter;
2100
- var callArgs = protocol.callOnIntegrationArgs({
2101
- adapter: curveLiquidityAaveAdapter,
2102
- encodedCallArgs: ethers.constants.HashZero,
2103
- selector: protocol.claimRewardsSelector
2104
- });
2105
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2106
- }
2107
- function curveAaveLend(_ref10) {
2108
- var comptrollerProxy = _ref10.comptrollerProxy,
2109
- integrationManager = _ref10.integrationManager,
2110
- fundOwner = _ref10.fundOwner,
2111
- curveLiquidityAaveAdapter = _ref10.curveLiquidityAaveAdapter,
2112
- _ref10$outgoingAaveDa = _ref10.outgoingAaveDaiAmount,
2113
- outgoingAaveDaiAmount = _ref10$outgoingAaveDa === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveDa,
2114
- _ref10$outgoingAaveUs = _ref10.outgoingAaveUsdcAmount,
2115
- outgoingAaveUsdcAmount = _ref10$outgoingAaveUs === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveUs,
2116
- _ref10$outgoingAaveUs2 = _ref10.outgoingAaveUsdtAmount,
2117
- outgoingAaveUsdtAmount = _ref10$outgoingAaveUs2 === void 0 ? ethers.BigNumber.from(0) : _ref10$outgoingAaveUs2,
2118
- _ref10$minIncomingLPT = _ref10.minIncomingLPTokenAmount,
2119
- minIncomingLPTokenAmount = _ref10$minIncomingLPT === void 0 ? ethers.BigNumber.from(1) : _ref10$minIncomingLPT,
2120
- _ref10$useUnderlyings = _ref10.useUnderlyings,
2121
- useUnderlyings = _ref10$useUnderlyings === void 0 ? false : _ref10$useUnderlyings;
2122
- var callArgs = protocol.callOnIntegrationArgs({
2123
- adapter: curveLiquidityAaveAdapter,
2124
- encodedCallArgs: protocol.curveAaveLendArgs({
2125
- minIncomingLPTokenAmount: minIncomingLPTokenAmount,
2126
- outgoingAaveDaiAmount: outgoingAaveDaiAmount,
2127
- outgoingAaveUsdcAmount: outgoingAaveUsdcAmount,
2128
- outgoingAaveUsdtAmount: outgoingAaveUsdtAmount,
2129
- useUnderlyings: useUnderlyings
2130
- }),
2131
- selector: protocol.lendSelector
2132
- });
2133
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2134
- }
2135
- function curveAaveLendAndStake(_ref11) {
2136
- var comptrollerProxy = _ref11.comptrollerProxy,
2137
- integrationManager = _ref11.integrationManager,
2138
- fundOwner = _ref11.fundOwner,
2139
- curveLiquidityAaveAdapter = _ref11.curveLiquidityAaveAdapter,
2140
- _ref11$outgoingAaveDa = _ref11.outgoingAaveDaiAmount,
2141
- outgoingAaveDaiAmount = _ref11$outgoingAaveDa === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveDa,
2142
- _ref11$outgoingAaveUs = _ref11.outgoingAaveUsdcAmount,
2143
- outgoingAaveUsdcAmount = _ref11$outgoingAaveUs === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveUs,
2144
- _ref11$outgoingAaveUs2 = _ref11.outgoingAaveUsdtAmount,
2145
- outgoingAaveUsdtAmount = _ref11$outgoingAaveUs2 === void 0 ? ethers.BigNumber.from(0) : _ref11$outgoingAaveUs2,
2146
- _ref11$minIncomingLiq = _ref11.minIncomingLiquidityGaugeTokenAmount,
2147
- minIncomingLiquidityGaugeTokenAmount = _ref11$minIncomingLiq === void 0 ? ethers.BigNumber.from(1) : _ref11$minIncomingLiq,
2148
- _ref11$useUnderlyings = _ref11.useUnderlyings,
2149
- useUnderlyings = _ref11$useUnderlyings === void 0 ? false : _ref11$useUnderlyings;
2150
- var callArgs = protocol.callOnIntegrationArgs({
2151
- adapter: curveLiquidityAaveAdapter,
2152
- encodedCallArgs: protocol.curveAaveLendAndStakeArgs({
2153
- minIncomingLiquidityGaugeTokenAmount: minIncomingLiquidityGaugeTokenAmount,
2154
- outgoingAaveDaiAmount: outgoingAaveDaiAmount,
2155
- outgoingAaveUsdcAmount: outgoingAaveUsdcAmount,
2156
- outgoingAaveUsdtAmount: outgoingAaveUsdtAmount,
2157
- useUnderlyings: useUnderlyings
2158
- }),
2159
- selector: protocol.lendAndStakeSelector
2160
- });
2161
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2162
- }
2163
- function curveAaveRedeem(_ref12) {
2164
- var comptrollerProxy = _ref12.comptrollerProxy,
2165
- integrationManager = _ref12.integrationManager,
2166
- fundOwner = _ref12.fundOwner,
2167
- curveLiquidityAaveAdapter = _ref12.curveLiquidityAaveAdapter,
2168
- outgoingLPTokenAmount = _ref12.outgoingLPTokenAmount,
2169
- _ref12$minIncomingAav = _ref12.minIncomingAaveDaiAmount,
2170
- minIncomingAaveDaiAmount = _ref12$minIncomingAav === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav,
2171
- _ref12$minIncomingAav2 = _ref12.minIncomingAaveUsdcAmount,
2172
- minIncomingAaveUsdcAmount = _ref12$minIncomingAav2 === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav2,
2173
- _ref12$minIncomingAav3 = _ref12.minIncomingAaveUsdtAmount,
2174
- minIncomingAaveUsdtAmount = _ref12$minIncomingAav3 === void 0 ? ethers.BigNumber.from(1) : _ref12$minIncomingAav3,
2175
- _ref12$receiveSingleA = _ref12.receiveSingleAsset,
2176
- receiveSingleAsset = _ref12$receiveSingleA === void 0 ? false : _ref12$receiveSingleA,
2177
- _ref12$useUnderlyings = _ref12.useUnderlyings,
2178
- useUnderlyings = _ref12$useUnderlyings === void 0 ? false : _ref12$useUnderlyings;
2179
- var callArgs = protocol.callOnIntegrationArgs({
2180
- adapter: curveLiquidityAaveAdapter,
2181
- encodedCallArgs: protocol.curveAaveRedeemArgs({
2182
- minIncomingAaveDaiAmount: minIncomingAaveDaiAmount,
2183
- minIncomingAaveUsdcAmount: minIncomingAaveUsdcAmount,
2184
- minIncomingAaveUsdtAmount: minIncomingAaveUsdtAmount,
2185
- outgoingLPTokenAmount: outgoingLPTokenAmount,
2186
- receiveSingleAsset: receiveSingleAsset,
2187
- useUnderlyings: useUnderlyings
2188
- }),
2189
- selector: protocol.redeemSelector
2190
- });
2191
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2192
- }
2193
- function curveAaveStake(_ref13) {
2194
- var comptrollerProxy = _ref13.comptrollerProxy,
2195
- integrationManager = _ref13.integrationManager,
2196
- fundOwner = _ref13.fundOwner,
2197
- curveLiquidityAaveAdapter = _ref13.curveLiquidityAaveAdapter,
2198
- outgoingLPTokenAmount = _ref13.outgoingLPTokenAmount;
2199
- var callArgs = protocol.callOnIntegrationArgs({
2200
- adapter: curveLiquidityAaveAdapter,
2201
- encodedCallArgs: protocol.curveAaveStakeArgs({
2202
- outgoingLPTokenAmount: outgoingLPTokenAmount
2203
- }),
2204
- selector: protocol.stakeSelector
2205
- });
2206
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2207
- }
2208
- function curveAaveUnstakeAndRedeem(_ref14) {
2209
- var comptrollerProxy = _ref14.comptrollerProxy,
2210
- integrationManager = _ref14.integrationManager,
2211
- fundOwner = _ref14.fundOwner,
2212
- curveLiquidityAaveAdapter = _ref14.curveLiquidityAaveAdapter,
2213
- outgoingLiquidityGaugeTokenAmount = _ref14.outgoingLiquidityGaugeTokenAmount,
2214
- _ref14$minIncomingAav = _ref14.minIncomingAaveDaiAmount,
2215
- minIncomingAaveDaiAmount = _ref14$minIncomingAav === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav,
2216
- _ref14$minIncomingAav2 = _ref14.minIncomingAaveUsdcAmount,
2217
- minIncomingAaveUsdcAmount = _ref14$minIncomingAav2 === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav2,
2218
- _ref14$minIncomingAav3 = _ref14.minIncomingAaveUsdtAmount,
2219
- minIncomingAaveUsdtAmount = _ref14$minIncomingAav3 === void 0 ? ethers.BigNumber.from(1) : _ref14$minIncomingAav3,
2220
- _ref14$receiveSingleA = _ref14.receiveSingleAsset,
2221
- receiveSingleAsset = _ref14$receiveSingleA === void 0 ? false : _ref14$receiveSingleA,
2222
- _ref14$useUnderlyings = _ref14.useUnderlyings,
2223
- useUnderlyings = _ref14$useUnderlyings === void 0 ? false : _ref14$useUnderlyings;
2224
- var callArgs = protocol.callOnIntegrationArgs({
2225
- adapter: curveLiquidityAaveAdapter,
2226
- encodedCallArgs: protocol.curveAaveUnstakeAndRedeemArgs({
2227
- minIncomingAaveDaiAmount: minIncomingAaveDaiAmount,
2228
- minIncomingAaveUsdcAmount: minIncomingAaveUsdcAmount,
2229
- minIncomingAaveUsdtAmount: minIncomingAaveUsdtAmount,
2230
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount,
2231
- receiveSingleAsset: receiveSingleAsset,
2232
- useUnderlyings: useUnderlyings
2233
- }),
2234
- selector: protocol.unstakeAndRedeemSelector
2235
- });
2236
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2237
- }
2238
- function curveAaveUnstake(_ref15) {
2239
- var comptrollerProxy = _ref15.comptrollerProxy,
2240
- integrationManager = _ref15.integrationManager,
2241
- fundOwner = _ref15.fundOwner,
2242
- curveLiquidityAaveAdapter = _ref15.curveLiquidityAaveAdapter,
2243
- outgoingLiquidityGaugeTokenAmount = _ref15.outgoingLiquidityGaugeTokenAmount;
2244
- var callArgs = protocol.callOnIntegrationArgs({
2245
- adapter: curveLiquidityAaveAdapter,
2246
- encodedCallArgs: protocol.curveAaveUnstakeArgs({
2247
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount
2248
- }),
2249
- selector: protocol.unstakeSelector
2250
- });
2251
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2252
- } // sETH pool
2253
-
2254
- function curveSethClaimRewards(_ref16) {
2255
- var comptrollerProxy = _ref16.comptrollerProxy,
2256
- integrationManager = _ref16.integrationManager,
2257
- fundOwner = _ref16.fundOwner,
2258
- curveLiquiditySethAdapter = _ref16.curveLiquiditySethAdapter;
2259
- var callArgs = protocol.callOnIntegrationArgs({
2260
- adapter: curveLiquiditySethAdapter,
2261
- encodedCallArgs: ethers.constants.HashZero,
2262
- selector: protocol.claimRewardsSelector
2263
- });
2264
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2265
- }
2266
- function curveSethLend(_ref17) {
2267
- var comptrollerProxy = _ref17.comptrollerProxy,
2268
- integrationManager = _ref17.integrationManager,
2269
- fundOwner = _ref17.fundOwner,
2270
- curveLiquiditySethAdapter = _ref17.curveLiquiditySethAdapter,
2271
- outgoingWethAmount = _ref17.outgoingWethAmount,
2272
- outgoingSethAmount = _ref17.outgoingSethAmount,
2273
- minIncomingLPTokenAmount = _ref17.minIncomingLPTokenAmount;
2274
- var callArgs = protocol.callOnIntegrationArgs({
2275
- adapter: curveLiquiditySethAdapter,
2276
- encodedCallArgs: protocol.curveSethLendArgs({
2277
- minIncomingLPTokenAmount: minIncomingLPTokenAmount,
2278
- outgoingSethAmount: outgoingSethAmount,
2279
- outgoingWethAmount: outgoingWethAmount
2280
- }),
2281
- selector: protocol.lendSelector
2282
- });
2283
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2284
- }
2285
- function curveSethLendAndStake(_ref18) {
2286
- var comptrollerProxy = _ref18.comptrollerProxy,
2287
- integrationManager = _ref18.integrationManager,
2288
- fundOwner = _ref18.fundOwner,
2289
- curveLiquiditySethAdapter = _ref18.curveLiquiditySethAdapter,
2290
- outgoingWethAmount = _ref18.outgoingWethAmount,
2291
- outgoingSethAmount = _ref18.outgoingSethAmount,
2292
- minIncomingLiquidityGaugeTokenAmount = _ref18.minIncomingLiquidityGaugeTokenAmount;
2293
- var callArgs = protocol.callOnIntegrationArgs({
2294
- adapter: curveLiquiditySethAdapter,
2295
- encodedCallArgs: protocol.curveSethLendAndStakeArgs({
2296
- minIncomingLiquidityGaugeTokenAmount: minIncomingLiquidityGaugeTokenAmount,
2297
- outgoingSethAmount: outgoingSethAmount,
2298
- outgoingWethAmount: outgoingWethAmount
2299
- }),
2300
- selector: protocol.lendAndStakeSelector
2301
- });
2302
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2303
- }
2304
- function curveSethRedeem(_ref19) {
2305
- var comptrollerProxy = _ref19.comptrollerProxy,
2306
- integrationManager = _ref19.integrationManager,
2307
- fundOwner = _ref19.fundOwner,
2308
- curveLiquiditySethAdapter = _ref19.curveLiquiditySethAdapter,
2309
- outgoingLPTokenAmount = _ref19.outgoingLPTokenAmount,
2310
- minIncomingWethAmount = _ref19.minIncomingWethAmount,
2311
- minIncomingSethAmount = _ref19.minIncomingSethAmount,
2312
- receiveSingleAsset = _ref19.receiveSingleAsset;
2313
- var callArgs = protocol.callOnIntegrationArgs({
2314
- adapter: curveLiquiditySethAdapter,
2315
- encodedCallArgs: protocol.curveSethRedeemArgs({
2316
- minIncomingSethAmount: minIncomingSethAmount,
2317
- minIncomingWethAmount: minIncomingWethAmount,
2318
- outgoingLPTokenAmount: outgoingLPTokenAmount,
2319
- receiveSingleAsset: receiveSingleAsset
2320
- }),
2321
- selector: protocol.redeemSelector
2322
- });
2323
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2324
- }
2325
- function curveSethStake(_ref20) {
2326
- var comptrollerProxy = _ref20.comptrollerProxy,
2327
- integrationManager = _ref20.integrationManager,
2328
- fundOwner = _ref20.fundOwner,
2329
- curveLiquiditySethAdapter = _ref20.curveLiquiditySethAdapter,
2330
- outgoingLPTokenAmount = _ref20.outgoingLPTokenAmount;
2331
- var callArgs = protocol.callOnIntegrationArgs({
2332
- adapter: curveLiquiditySethAdapter,
2333
- encodedCallArgs: protocol.curveSethStakeArgs({
2334
- outgoingLPTokenAmount: outgoingLPTokenAmount
2335
- }),
2336
- selector: protocol.stakeSelector
2337
- });
2338
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2339
- }
2340
- function curveSethUnstakeAndRedeem(_ref21) {
2341
- var comptrollerProxy = _ref21.comptrollerProxy,
2342
- integrationManager = _ref21.integrationManager,
2343
- fundOwner = _ref21.fundOwner,
2344
- curveLiquiditySethAdapter = _ref21.curveLiquiditySethAdapter,
2345
- outgoingLiquidityGaugeTokenAmount = _ref21.outgoingLiquidityGaugeTokenAmount,
2346
- minIncomingWethAmount = _ref21.minIncomingWethAmount,
2347
- minIncomingSethAmount = _ref21.minIncomingSethAmount,
2348
- receiveSingleAsset = _ref21.receiveSingleAsset;
2349
- var callArgs = protocol.callOnIntegrationArgs({
2350
- adapter: curveLiquiditySethAdapter,
2351
- encodedCallArgs: protocol.curveSethUnstakeAndRedeemArgs({
2352
- minIncomingSethAmount: minIncomingSethAmount,
2353
- minIncomingWethAmount: minIncomingWethAmount,
2354
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount,
2355
- receiveSingleAsset: receiveSingleAsset
2356
- }),
2357
- selector: protocol.unstakeAndRedeemSelector
2358
- });
2359
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2360
- }
2361
- function curveSethUnstake(_ref22) {
2362
- var comptrollerProxy = _ref22.comptrollerProxy,
2363
- integrationManager = _ref22.integrationManager,
2364
- fundOwner = _ref22.fundOwner,
2365
- curveLiquiditySethAdapter = _ref22.curveLiquiditySethAdapter,
2366
- outgoingLiquidityGaugeTokenAmount = _ref22.outgoingLiquidityGaugeTokenAmount;
2367
- var callArgs = protocol.callOnIntegrationArgs({
2368
- adapter: curveLiquiditySethAdapter,
2369
- encodedCallArgs: protocol.curveSethUnstakeArgs({
2370
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount
2371
- }),
2372
- selector: protocol.unstakeSelector
2373
- });
2374
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2375
- } // stETH pool
2376
-
2377
- function curveStethClaimRewards(_ref23) {
2378
- var comptrollerProxy = _ref23.comptrollerProxy,
2379
- integrationManager = _ref23.integrationManager,
2380
- fundOwner = _ref23.fundOwner,
2381
- curveLiquidityStethAdapter = _ref23.curveLiquidityStethAdapter;
2382
- var callArgs = protocol.callOnIntegrationArgs({
2383
- adapter: curveLiquidityStethAdapter,
2384
- encodedCallArgs: ethers.constants.HashZero,
2385
- selector: protocol.claimRewardsSelector
2386
- });
2387
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2388
- }
2389
- function curveStethLend(_ref24) {
2390
- var comptrollerProxy = _ref24.comptrollerProxy,
2391
- integrationManager = _ref24.integrationManager,
2392
- fundOwner = _ref24.fundOwner,
2393
- curveLiquidityStethAdapter = _ref24.curveLiquidityStethAdapter,
2394
- outgoingWethAmount = _ref24.outgoingWethAmount,
2395
- outgoingStethAmount = _ref24.outgoingStethAmount,
2396
- minIncomingLPTokenAmount = _ref24.minIncomingLPTokenAmount;
2397
- var callArgs = protocol.callOnIntegrationArgs({
2398
- adapter: curveLiquidityStethAdapter,
2399
- encodedCallArgs: protocol.curveStethLendArgs({
2400
- minIncomingLPTokenAmount: minIncomingLPTokenAmount,
2401
- outgoingStethAmount: outgoingStethAmount,
2402
- outgoingWethAmount: outgoingWethAmount
2403
- }),
2404
- selector: protocol.lendSelector
2405
- });
2406
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2407
- }
2408
- function curveStethLendAndStake(_ref25) {
2409
- var comptrollerProxy = _ref25.comptrollerProxy,
2410
- integrationManager = _ref25.integrationManager,
2411
- fundOwner = _ref25.fundOwner,
2412
- curveLiquidityStethAdapter = _ref25.curveLiquidityStethAdapter,
2413
- outgoingWethAmount = _ref25.outgoingWethAmount,
2414
- outgoingStethAmount = _ref25.outgoingStethAmount,
2415
- minIncomingLiquidityGaugeTokenAmount = _ref25.minIncomingLiquidityGaugeTokenAmount;
2416
- var callArgs = protocol.callOnIntegrationArgs({
2417
- adapter: curveLiquidityStethAdapter,
2418
- encodedCallArgs: protocol.curveStethLendAndStakeArgs({
2419
- minIncomingLiquidityGaugeTokenAmount: minIncomingLiquidityGaugeTokenAmount,
2420
- outgoingStethAmount: outgoingStethAmount,
2421
- outgoingWethAmount: outgoingWethAmount
2422
- }),
2423
- selector: protocol.lendAndStakeSelector
2424
- });
2425
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2426
- }
2427
- function curveStethRedeem(_ref26) {
2428
- var comptrollerProxy = _ref26.comptrollerProxy,
2429
- integrationManager = _ref26.integrationManager,
2430
- fundOwner = _ref26.fundOwner,
2431
- curveLiquidityStethAdapter = _ref26.curveLiquidityStethAdapter,
2432
- outgoingLPTokenAmount = _ref26.outgoingLPTokenAmount,
2433
- minIncomingWethAmount = _ref26.minIncomingWethAmount,
2434
- minIncomingStethAmount = _ref26.minIncomingStethAmount,
2435
- receiveSingleAsset = _ref26.receiveSingleAsset;
2436
- var callArgs = protocol.callOnIntegrationArgs({
2437
- adapter: curveLiquidityStethAdapter,
2438
- encodedCallArgs: protocol.curveStethRedeemArgs({
2439
- minIncomingStethAmount: minIncomingStethAmount,
2440
- minIncomingWethAmount: minIncomingWethAmount,
2441
- outgoingLPTokenAmount: outgoingLPTokenAmount,
2442
- receiveSingleAsset: receiveSingleAsset
2443
- }),
2444
- selector: protocol.redeemSelector
2445
- });
2446
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2447
- }
2448
- function curveStethStake(_ref27) {
2449
- var comptrollerProxy = _ref27.comptrollerProxy,
2450
- integrationManager = _ref27.integrationManager,
2451
- fundOwner = _ref27.fundOwner,
2452
- curveLiquidityStethAdapter = _ref27.curveLiquidityStethAdapter,
2453
- outgoingLPTokenAmount = _ref27.outgoingLPTokenAmount;
2454
- var callArgs = protocol.callOnIntegrationArgs({
2455
- adapter: curveLiquidityStethAdapter,
2456
- encodedCallArgs: protocol.curveStethStakeArgs({
2457
- outgoingLPTokenAmount: outgoingLPTokenAmount
2458
- }),
2459
- selector: protocol.stakeSelector
2460
- });
2461
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2462
- }
2463
- function curveStethUnstakeAndRedeem(_ref28) {
2464
- var comptrollerProxy = _ref28.comptrollerProxy,
2465
- integrationManager = _ref28.integrationManager,
2466
- fundOwner = _ref28.fundOwner,
2467
- curveLiquidityStethAdapter = _ref28.curveLiquidityStethAdapter,
2468
- outgoingLiquidityGaugeTokenAmount = _ref28.outgoingLiquidityGaugeTokenAmount,
2469
- minIncomingWethAmount = _ref28.minIncomingWethAmount,
2470
- minIncomingStethAmount = _ref28.minIncomingStethAmount,
2471
- receiveSingleAsset = _ref28.receiveSingleAsset;
2472
- var callArgs = protocol.callOnIntegrationArgs({
2473
- adapter: curveLiquidityStethAdapter,
2474
- encodedCallArgs: protocol.curveStethUnstakeAndRedeemArgs({
2475
- minIncomingStethAmount: minIncomingStethAmount,
2476
- minIncomingWethAmount: minIncomingWethAmount,
2477
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount,
2478
- receiveSingleAsset: receiveSingleAsset
2479
- }),
2480
- selector: protocol.unstakeAndRedeemSelector
2481
- });
2482
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2483
- }
2484
- function curveStethUnstake(_ref29) {
2485
- var comptrollerProxy = _ref29.comptrollerProxy,
2486
- integrationManager = _ref29.integrationManager,
2487
- fundOwner = _ref29.fundOwner,
2488
- curveLiquidityStethAdapter = _ref29.curveLiquidityStethAdapter,
2489
- outgoingLiquidityGaugeTokenAmount = _ref29.outgoingLiquidityGaugeTokenAmount;
2490
- var callArgs = protocol.callOnIntegrationArgs({
2491
- adapter: curveLiquidityStethAdapter,
2492
- encodedCallArgs: protocol.curveStethUnstakeArgs({
2493
- outgoingLiquidityGaugeTokenAmount: outgoingLiquidityGaugeTokenAmount
2494
- }),
2495
- selector: protocol.unstakeSelector
2496
- });
2497
- return comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs);
2498
- }
2499
-
2500
2296
  function idleClaimRewards(_x) {
2501
2297
  return _idleClaimRewards.apply(this, arguments);
2502
2298
  }
@@ -2748,55 +2544,6 @@ function _olympusV2Unstake() {
2748
2544
  return _olympusV2Unstake.apply(this, arguments);
2749
2545
  }
2750
2546
 
2751
- function paraSwapV4GenerateDummyPaths(_ref) {
2752
- var toTokens = _ref.toTokens;
2753
- return toTokens.map(function (toToken) {
2754
- return {
2755
- // Not supported in our protocol
2756
- routes: [],
2757
- to: toToken,
2758
- totalNetworkFee: 0 // Can ignore this param in the dummy
2759
-
2760
- };
2761
- });
2762
- }
2763
- function paraSwapV4TakeOrder(_x) {
2764
- return _paraSwapV4TakeOrder.apply(this, arguments);
2765
- }
2766
-
2767
- function _paraSwapV4TakeOrder() {
2768
- _paraSwapV4TakeOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(_ref2) {
2769
- var comptrollerProxy, integrationManager, fundOwner, paraSwapV4Adapter, outgoingAsset, _ref2$outgoingAssetAm, outgoingAssetAmount, _ref2$minIncomingAsse, minIncomingAssetAmount, _ref2$expectedIncomin, expectedIncomingAssetAmount, paths, takeOrderArgs, callArgs;
2770
-
2771
- return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
2772
- while (1) {
2773
- switch (_context.prev = _context.next) {
2774
- case 0:
2775
- comptrollerProxy = _ref2.comptrollerProxy, integrationManager = _ref2.integrationManager, fundOwner = _ref2.fundOwner, paraSwapV4Adapter = _ref2.paraSwapV4Adapter, outgoingAsset = _ref2.outgoingAsset, _ref2$outgoingAssetAm = _ref2.outgoingAssetAmount, outgoingAssetAmount = _ref2$outgoingAssetAm === void 0 ? ethers.utils.parseEther('1') : _ref2$outgoingAssetAm, _ref2$minIncomingAsse = _ref2.minIncomingAssetAmount, minIncomingAssetAmount = _ref2$minIncomingAsse === void 0 ? 1 : _ref2$minIncomingAsse, _ref2$expectedIncomin = _ref2.expectedIncomingAssetAmount, expectedIncomingAssetAmount = _ref2$expectedIncomin === void 0 ? minIncomingAssetAmount : _ref2$expectedIncomin, paths = _ref2.paths;
2776
- takeOrderArgs = protocol.paraSwapV4TakeOrderArgs({
2777
- expectedIncomingAssetAmount: expectedIncomingAssetAmount,
2778
- minIncomingAssetAmount: minIncomingAssetAmount,
2779
- outgoingAsset: outgoingAsset,
2780
- outgoingAssetAmount: outgoingAssetAmount,
2781
- paths: paths
2782
- });
2783
- callArgs = protocol.callOnIntegrationArgs({
2784
- adapter: paraSwapV4Adapter,
2785
- encodedCallArgs: takeOrderArgs,
2786
- selector: protocol.takeOrderSelector
2787
- });
2788
- return _context.abrupt("return", comptrollerProxy.connect(fundOwner).callOnExtension(integrationManager, protocol.IntegrationManagerActionId.CallOnIntegration, callArgs));
2789
-
2790
- case 4:
2791
- case "end":
2792
- return _context.stop();
2793
- }
2794
- }
2795
- }, _callee);
2796
- }));
2797
- return _paraSwapV4TakeOrder.apply(this, arguments);
2798
- }
2799
-
2800
2547
  function paraSwapV5GenerateDummyPaths(_ref) {
2801
2548
  var toTokens = _ref.toTokens;
2802
2549
  return toTokens.map(function (toToken) {
@@ -4293,6 +4040,11 @@ exports.CurveSwaps = CurveSwaps;
4293
4040
  exports.ICompoundComptroller = ICompoundComptroller;
4294
4041
  exports.IUniswapV3NonFungibleTokenManager = IUniswapV3NonFungibleTokenManager;
4295
4042
  exports.UniswapV2Factory = UniswapV2Factory;
4043
+ exports.aaveDebtPositionAddCollateral = aaveDebtPositionAddCollateral;
4044
+ exports.aaveDebtPositionBorrow = aaveDebtPositionBorrow;
4045
+ exports.aaveDebtPositionClaimRewards = aaveDebtPositionClaimRewards;
4046
+ exports.aaveDebtPositionRemoveCollateral = aaveDebtPositionRemoveCollateral;
4047
+ exports.aaveDebtPositionRepayBorrow = aaveDebtPositionRepayBorrow;
4296
4048
  exports.aaveLend = aaveLend;
4297
4049
  exports.aaveRedeem = aaveRedeem;
4298
4050
  exports.addNewAssetsToFund = addNewAssetsToFund;
@@ -4320,6 +4072,7 @@ exports.compoundDebtPositionRemoveCollateral = compoundDebtPositionRemoveCollate
4320
4072
  exports.compoundDebtPositionRepayBorrow = compoundDebtPositionRepayBorrow;
4321
4073
  exports.compoundLend = compoundLend;
4322
4074
  exports.compoundRedeem = compoundRedeem;
4075
+ exports.createAaveDebtPosition = createAaveDebtPosition;
4323
4076
  exports.createCompoundDebtPosition = createCompoundDebtPosition;
4324
4077
  exports.createComptrollerProxy = createComptrollerProxy;
4325
4078
  exports.createExternalPosition = createExternalPosition;
@@ -4330,32 +4083,11 @@ exports.createNewFund = createNewFund;
4330
4083
  exports.createReconfigurationRequest = createReconfigurationRequest;
4331
4084
  exports.createUniswapV3LiquidityPosition = createUniswapV3LiquidityPosition;
4332
4085
  exports.createVaultProxy = createVaultProxy;
4333
- exports.curveAaveClaimRewards = curveAaveClaimRewards;
4334
- exports.curveAaveLend = curveAaveLend;
4335
- exports.curveAaveLendAndStake = curveAaveLendAndStake;
4336
- exports.curveAaveRedeem = curveAaveRedeem;
4337
- exports.curveAaveStake = curveAaveStake;
4338
- exports.curveAaveUnstake = curveAaveUnstake;
4339
- exports.curveAaveUnstakeAndRedeem = curveAaveUnstakeAndRedeem;
4340
4086
  exports.curveClaimRewards = curveClaimRewards;
4341
4087
  exports.curveLend = curveLend;
4342
4088
  exports.curveLendAndStake = curveLendAndStake;
4343
4089
  exports.curveRedeem = curveRedeem;
4344
- exports.curveSethClaimRewards = curveSethClaimRewards;
4345
- exports.curveSethLend = curveSethLend;
4346
- exports.curveSethLendAndStake = curveSethLendAndStake;
4347
- exports.curveSethRedeem = curveSethRedeem;
4348
- exports.curveSethStake = curveSethStake;
4349
- exports.curveSethUnstake = curveSethUnstake;
4350
- exports.curveSethUnstakeAndRedeem = curveSethUnstakeAndRedeem;
4351
4090
  exports.curveStake = curveStake;
4352
- exports.curveStethClaimRewards = curveStethClaimRewards;
4353
- exports.curveStethLend = curveStethLend;
4354
- exports.curveStethLendAndStake = curveStethLendAndStake;
4355
- exports.curveStethRedeem = curveStethRedeem;
4356
- exports.curveStethStake = curveStethStake;
4357
- exports.curveStethUnstake = curveStethUnstake;
4358
- exports.curveStethUnstakeAndRedeem = curveStethUnstakeAndRedeem;
4359
4091
  exports.curveTakeOrder = curveTakeOrder;
4360
4092
  exports.curveUnstake = curveUnstake;
4361
4093
  exports.curveUnstakeAndRedeem = curveUnstakeAndRedeem;
@@ -4384,8 +4116,6 @@ exports.mockGenericSwapDirectFromVaultSelector = mockGenericSwapDirectFromVaultS
4384
4116
  exports.mockGenericSwapViaApprovalSelector = mockGenericSwapViaApprovalSelector;
4385
4117
  exports.olympusV2Stake = olympusV2Stake;
4386
4118
  exports.olympusV2Unstake = olympusV2Unstake;
4387
- exports.paraSwapV4GenerateDummyPaths = paraSwapV4GenerateDummyPaths;
4388
- exports.paraSwapV4TakeOrder = paraSwapV4TakeOrder;
4389
4119
  exports.paraSwapV5GenerateDummyPaths = paraSwapV5GenerateDummyPaths;
4390
4120
  exports.paraSwapV5TakeOrder = paraSwapV5TakeOrder;
4391
4121
  exports.poolTogetherV4ClaimRewards = poolTogetherV4ClaimRewards;