@strkfarm/sdk 2.0.0-dev.11 → 2.0.0-dev.12
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.
- package/dist/index.browser.global.js +4 -1
- package/dist/index.browser.mjs +4 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
- package/src/strategies/universal-adapters/extended-adapter.ts +1 -1
- package/src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx +4 -0
|
@@ -94342,7 +94342,7 @@ spurious results.`);
|
|
|
94342
94342
|
});
|
|
94343
94343
|
if (operationsType === "DEPOSIT" /* DEPOSIT */) {
|
|
94344
94344
|
const myTransferStatus = transferHistory.data.find(
|
|
94345
|
-
(operation) => operation.transactionHash === orderId
|
|
94345
|
+
(operation) => operation.transactionHash?.toLowerCase() === orderId.toString().toLowerCase()
|
|
94346
94346
|
);
|
|
94347
94347
|
if (!myTransferStatus) {
|
|
94348
94348
|
if (attempt < maxAttempts) {
|
|
@@ -99062,7 +99062,10 @@ spurious results.`);
|
|
|
99062
99062
|
logger2.error(`error getting btc price avnu: ${btcPriceAvnu}`);
|
|
99063
99063
|
return false;
|
|
99064
99064
|
}
|
|
99065
|
+
logger2.info(`price: ${price}`);
|
|
99066
|
+
logger2.info(`btcPriceAvnu: ${btcPriceAvnu}`);
|
|
99065
99067
|
const priceDifference = new Web3Number(price.minus(btcPriceAvnu).toFixed(2), 0);
|
|
99068
|
+
logger2.info(`priceDifference: ${priceDifference}`);
|
|
99066
99069
|
if (priceDifference.isNegative()) {
|
|
99067
99070
|
return false;
|
|
99068
99071
|
}
|
package/dist/index.browser.mjs
CHANGED
|
@@ -30314,7 +30314,7 @@ var ExtendedAdapter = class _ExtendedAdapter extends BaseAdapter {
|
|
|
30314
30314
|
});
|
|
30315
30315
|
if (operationsType === "DEPOSIT" /* DEPOSIT */) {
|
|
30316
30316
|
const myTransferStatus = transferHistory.data.find(
|
|
30317
|
-
(operation) => operation.transactionHash === orderId
|
|
30317
|
+
(operation) => operation.transactionHash?.toLowerCase() === orderId.toString().toLowerCase()
|
|
30318
30318
|
);
|
|
30319
30319
|
if (!myTransferStatus) {
|
|
30320
30320
|
if (attempt < maxAttempts) {
|
|
@@ -35039,7 +35039,10 @@ var VesuExtendedMultiplierStrategy = class _VesuExtendedMultiplierStrategy exten
|
|
|
35039
35039
|
logger.error(`error getting btc price avnu: ${btcPriceAvnu}`);
|
|
35040
35040
|
return false;
|
|
35041
35041
|
}
|
|
35042
|
+
logger.info(`price: ${price}`);
|
|
35043
|
+
logger.info(`btcPriceAvnu: ${btcPriceAvnu}`);
|
|
35042
35044
|
const priceDifference = new Web3Number(price.minus(btcPriceAvnu).toFixed(2), 0);
|
|
35045
|
+
logger.info(`priceDifference: ${priceDifference}`);
|
|
35043
35046
|
if (priceDifference.isNegative()) {
|
|
35044
35047
|
return false;
|
|
35045
35048
|
}
|
package/dist/index.js
CHANGED
|
@@ -30468,7 +30468,7 @@ var ExtendedAdapter = class _ExtendedAdapter extends BaseAdapter {
|
|
|
30468
30468
|
});
|
|
30469
30469
|
if (operationsType === "DEPOSIT" /* DEPOSIT */) {
|
|
30470
30470
|
const myTransferStatus = transferHistory.data.find(
|
|
30471
|
-
(operation) => operation.transactionHash === orderId
|
|
30471
|
+
(operation) => operation.transactionHash?.toLowerCase() === orderId.toString().toLowerCase()
|
|
30472
30472
|
);
|
|
30473
30473
|
if (!myTransferStatus) {
|
|
30474
30474
|
if (attempt < maxAttempts) {
|
|
@@ -35193,7 +35193,10 @@ var VesuExtendedMultiplierStrategy = class _VesuExtendedMultiplierStrategy exten
|
|
|
35193
35193
|
logger.error(`error getting btc price avnu: ${btcPriceAvnu}`);
|
|
35194
35194
|
return false;
|
|
35195
35195
|
}
|
|
35196
|
+
logger.info(`price: ${price}`);
|
|
35197
|
+
logger.info(`btcPriceAvnu: ${btcPriceAvnu}`);
|
|
35196
35198
|
const priceDifference = new Web3Number(price.minus(btcPriceAvnu).toFixed(2), 0);
|
|
35199
|
+
logger.info(`priceDifference: ${priceDifference}`);
|
|
35197
35200
|
if (priceDifference.isNegative()) {
|
|
35198
35201
|
return false;
|
|
35199
35202
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -30325,7 +30325,7 @@ var ExtendedAdapter = class _ExtendedAdapter extends BaseAdapter {
|
|
|
30325
30325
|
});
|
|
30326
30326
|
if (operationsType === "DEPOSIT" /* DEPOSIT */) {
|
|
30327
30327
|
const myTransferStatus = transferHistory.data.find(
|
|
30328
|
-
(operation) => operation.transactionHash === orderId
|
|
30328
|
+
(operation) => operation.transactionHash?.toLowerCase() === orderId.toString().toLowerCase()
|
|
30329
30329
|
);
|
|
30330
30330
|
if (!myTransferStatus) {
|
|
30331
30331
|
if (attempt < maxAttempts) {
|
|
@@ -35050,7 +35050,10 @@ var VesuExtendedMultiplierStrategy = class _VesuExtendedMultiplierStrategy exten
|
|
|
35050
35050
|
logger.error(`error getting btc price avnu: ${btcPriceAvnu}`);
|
|
35051
35051
|
return false;
|
|
35052
35052
|
}
|
|
35053
|
+
logger.info(`price: ${price}`);
|
|
35054
|
+
logger.info(`btcPriceAvnu: ${btcPriceAvnu}`);
|
|
35053
35055
|
const priceDifference = new Web3Number(price.minus(btcPriceAvnu).toFixed(2), 0);
|
|
35056
|
+
logger.info(`priceDifference: ${priceDifference}`);
|
|
35054
35057
|
if (priceDifference.isNegative()) {
|
|
35055
35058
|
return false;
|
|
35056
35059
|
}
|
package/package.json
CHANGED
|
@@ -880,7 +880,7 @@ export class ExtendedAdapter extends BaseAdapter<
|
|
|
880
880
|
});
|
|
881
881
|
if (operationsType === AssetOperationType.DEPOSIT) {
|
|
882
882
|
const myTransferStatus = transferHistory.data.find(
|
|
883
|
-
(operation) => operation.transactionHash === orderId
|
|
883
|
+
(operation) => operation.transactionHash?.toLowerCase() === orderId.toString().toLowerCase()
|
|
884
884
|
);
|
|
885
885
|
if (!myTransferStatus) {
|
|
886
886
|
if (attempt < maxAttempts) {
|
|
@@ -981,11 +981,15 @@ export class VesuExtendedMultiplierStrategy<
|
|
|
981
981
|
const price = ask.plus(bid).dividedBy(2);
|
|
982
982
|
const btcToken = vesuAdapter.config.supportedPositions[0].asset;
|
|
983
983
|
const btcPriceAvnu = await avnuAdapter.getPriceOfToken(btcToken.address.toString());
|
|
984
|
+
|
|
984
985
|
if (!btcPriceAvnu) {
|
|
985
986
|
logger.error(`error getting btc price avnu: ${btcPriceAvnu}`);
|
|
986
987
|
return false;
|
|
987
988
|
}
|
|
989
|
+
logger.info(`price: ${price}`);
|
|
990
|
+
logger.info(`btcPriceAvnu: ${btcPriceAvnu}`);
|
|
988
991
|
const priceDifference = new Web3Number(price.minus(btcPriceAvnu).toFixed(2), 0);
|
|
992
|
+
logger.info(`priceDifference: ${priceDifference}`);
|
|
989
993
|
if(priceDifference.isNegative()){
|
|
990
994
|
return false;
|
|
991
995
|
}
|