@strkfarm/sdk 2.0.0-dev.30 → 2.0.0-dev.31

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.
@@ -93101,7 +93101,7 @@ spurious results.`);
93101
93101
  async _callQuoterApi(fromToken, toToken, amount, retry = 0) {
93102
93102
  try {
93103
93103
  const url = this.ENDPOINT.replace("{{AMOUNT}}", amount.toWei()).replace("{{TOKEN_FROM_ADDRESS}}", fromToken).replace("{{TOKEN_TO_ADDRESS}}", toToken);
93104
- logger2.info(`EkuboQuoter::_callQuoterApi url: ${url}`);
93104
+ logger2.verbose(`EkuboQuoter::_callQuoterApi url: ${url}`);
93105
93105
  const quote = await axios_default.get(url);
93106
93106
  return quote.data;
93107
93107
  } catch (error2) {
@@ -122362,7 +122362,6 @@ spurious results.`);
122362
122362
  collateralToken.address.address,
122363
122363
  requiredAmount
122364
122364
  );
122365
- logger2.info(`VesuMultiplyAdapter::_getIncreaseCalldata requiredAmount: ${requiredAmount}`);
122366
122365
  if (marginSwapQuote.price_impact > 0.01) {
122367
122366
  throw new Error(
122368
122367
  `VesuMultiplyAdapter: Margin swap price impact too high (${marginSwapQuote.price_impact})`
@@ -122407,10 +122406,8 @@ spurious results.`);
122407
122406
  collateralToken.address.address,
122408
122407
  params.leverSwap?.exactOutput?.abs()
122409
122408
  );
122410
- logger2.info(`VesuMultiplyAdapter::_getIncreaseCalldata amount: ${params.leverSwap?.exactOutput?.abs()}`);
122411
122409
  debtAmount = Web3Number.fromWei(swapQuote.total_calculated, debtToken.decimals).abs();
122412
122410
  }
122413
- logger2.info(`VesuMultiplyAdapter::_getIncreaseCalldata debtAmount: ${debtAmount}`);
122414
122411
  swapQuote = await ekuboQuoter.getQuoteExactInput(
122415
122412
  debtToken.address.address,
122416
122413
  collateralToken.address.address,
@@ -134942,7 +134939,7 @@ spurious results.`);
134942
134939
  },
134943
134940
  depositTokens: [
134944
134941
  Global.getDefaultTokens().find(
134945
- (token) => token.symbol === "WBTC"
134942
+ (token) => token.symbol === underlyingSymbol
134946
134943
  )
134947
134944
  ],
134948
134945
  additionalInfo: getLooperSettings3(
@@ -5800,7 +5800,7 @@ var EkuboQuoter = class _EkuboQuoter {
5800
5800
  async _callQuoterApi(fromToken, toToken, amount, retry = 0) {
5801
5801
  try {
5802
5802
  const url = this.ENDPOINT.replace("{{AMOUNT}}", amount.toWei()).replace("{{TOKEN_FROM_ADDRESS}}", fromToken).replace("{{TOKEN_TO_ADDRESS}}", toToken);
5803
- logger.info(`EkuboQuoter::_callQuoterApi url: ${url}`);
5803
+ logger.verbose(`EkuboQuoter::_callQuoterApi url: ${url}`);
5804
5804
  const quote = await axios6.get(url);
5805
5805
  return quote.data;
5806
5806
  } catch (error) {
@@ -35092,7 +35092,6 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
35092
35092
  collateralToken.address.address,
35093
35093
  requiredAmount
35094
35094
  );
35095
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata requiredAmount: ${requiredAmount}`);
35096
35095
  if (marginSwapQuote.price_impact > 0.01) {
35097
35096
  throw new Error(
35098
35097
  `VesuMultiplyAdapter: Margin swap price impact too high (${marginSwapQuote.price_impact})`
@@ -35137,10 +35136,8 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
35137
35136
  collateralToken.address.address,
35138
35137
  params.leverSwap?.exactOutput?.abs()
35139
35138
  );
35140
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata amount: ${params.leverSwap?.exactOutput?.abs()}`);
35141
35139
  debtAmount = Web3Number.fromWei(swapQuote.total_calculated, debtToken.decimals).abs();
35142
35140
  }
35143
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata debtAmount: ${debtAmount}`);
35144
35141
  swapQuote = await ekuboQuoter.getQuoteExactInput(
35145
35142
  debtToken.address.address,
35146
35143
  collateralToken.address.address,
@@ -47694,7 +47691,7 @@ function getStrategySettingsVesuExtended(collateralSymbol, underlyingSymbol, add
47694
47691
  },
47695
47692
  depositTokens: [
47696
47693
  Global.getDefaultTokens().find(
47697
- (token) => token.symbol === "WBTC"
47694
+ (token) => token.symbol === underlyingSymbol
47698
47695
  )
47699
47696
  ],
47700
47697
  additionalInfo: getLooperSettings3(
package/dist/index.js CHANGED
@@ -6215,7 +6215,7 @@ var EkuboQuoter = class _EkuboQuoter {
6215
6215
  async _callQuoterApi(fromToken, toToken, amount, retry = 0) {
6216
6216
  try {
6217
6217
  const url = this.ENDPOINT.replace("{{AMOUNT}}", amount.toWei()).replace("{{TOKEN_FROM_ADDRESS}}", fromToken).replace("{{TOKEN_TO_ADDRESS}}", toToken);
6218
- logger.info(`EkuboQuoter::_callQuoterApi url: ${url}`);
6218
+ logger.verbose(`EkuboQuoter::_callQuoterApi url: ${url}`);
6219
6219
  const quote = await import_axios6.default.get(url);
6220
6220
  return quote.data;
6221
6221
  } catch (error) {
@@ -34959,7 +34959,6 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
34959
34959
  collateralToken.address.address,
34960
34960
  requiredAmount
34961
34961
  );
34962
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata requiredAmount: ${requiredAmount}`);
34963
34962
  if (marginSwapQuote.price_impact > 0.01) {
34964
34963
  throw new Error(
34965
34964
  `VesuMultiplyAdapter: Margin swap price impact too high (${marginSwapQuote.price_impact})`
@@ -35004,10 +35003,8 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
35004
35003
  collateralToken.address.address,
35005
35004
  params.leverSwap?.exactOutput?.abs()
35006
35005
  );
35007
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata amount: ${params.leverSwap?.exactOutput?.abs()}`);
35008
35006
  debtAmount = Web3Number.fromWei(swapQuote.total_calculated, debtToken.decimals).abs();
35009
35007
  }
35010
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata debtAmount: ${debtAmount}`);
35011
35008
  swapQuote = await ekuboQuoter.getQuoteExactInput(
35012
35009
  debtToken.address.address,
35013
35010
  collateralToken.address.address,
@@ -48057,7 +48054,7 @@ function getStrategySettingsVesuExtended(collateralSymbol, underlyingSymbol, add
48057
48054
  },
48058
48055
  depositTokens: [
48059
48056
  Global.getDefaultTokens().find(
48060
- (token) => token.symbol === "WBTC"
48057
+ (token) => token.symbol === underlyingSymbol
48061
48058
  )
48062
48059
  ],
48063
48060
  additionalInfo: getLooperSettings3(
package/dist/index.mjs CHANGED
@@ -6013,7 +6013,7 @@ var EkuboQuoter = class _EkuboQuoter {
6013
6013
  async _callQuoterApi(fromToken, toToken, amount, retry = 0) {
6014
6014
  try {
6015
6015
  const url = this.ENDPOINT.replace("{{AMOUNT}}", amount.toWei()).replace("{{TOKEN_FROM_ADDRESS}}", fromToken).replace("{{TOKEN_TO_ADDRESS}}", toToken);
6016
- logger.info(`EkuboQuoter::_callQuoterApi url: ${url}`);
6016
+ logger.verbose(`EkuboQuoter::_callQuoterApi url: ${url}`);
6017
6017
  const quote = await axios6.get(url);
6018
6018
  return quote.data;
6019
6019
  } catch (error) {
@@ -34761,7 +34761,6 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
34761
34761
  collateralToken.address.address,
34762
34762
  requiredAmount
34763
34763
  );
34764
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata requiredAmount: ${requiredAmount}`);
34765
34764
  if (marginSwapQuote.price_impact > 0.01) {
34766
34765
  throw new Error(
34767
34766
  `VesuMultiplyAdapter: Margin swap price impact too high (${marginSwapQuote.price_impact})`
@@ -34806,10 +34805,8 @@ var VesuMultiplyAdapter = class _VesuMultiplyAdapter extends BaseAdapter {
34806
34805
  collateralToken.address.address,
34807
34806
  params.leverSwap?.exactOutput?.abs()
34808
34807
  );
34809
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata amount: ${params.leverSwap?.exactOutput?.abs()}`);
34810
34808
  debtAmount = Web3Number.fromWei(swapQuote.total_calculated, debtToken.decimals).abs();
34811
34809
  }
34812
- logger.info(`VesuMultiplyAdapter::_getIncreaseCalldata debtAmount: ${debtAmount}`);
34813
34810
  swapQuote = await ekuboQuoter.getQuoteExactInput(
34814
34811
  debtToken.address.address,
34815
34812
  collateralToken.address.address,
@@ -47859,7 +47856,7 @@ function getStrategySettingsVesuExtended(collateralSymbol, underlyingSymbol, add
47859
47856
  },
47860
47857
  depositTokens: [
47861
47858
  Global.getDefaultTokens().find(
47862
- (token) => token.symbol === "WBTC"
47859
+ (token) => token.symbol === underlyingSymbol
47863
47860
  )
47864
47861
  ],
47865
47862
  additionalInfo: getLooperSettings3(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-dev.30",
3
+ "version": "2.0.0-dev.31",
4
4
  "description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
5
5
  "typings": "dist/index.d.ts",
6
6
  "types": "dist/index.d.ts",
@@ -952,7 +952,7 @@ function getStrategySettingsVesuExtended(
952
952
  },
953
953
  depositTokens: [
954
954
  Global.getDefaultTokens().find(
955
- (token) => token.symbol === 'WBTC',
955
+ (token) => token.symbol === underlyingSymbol,
956
956
  )!,
957
957
  ],
958
958
  additionalInfo: getLooperSettings(