@strkfarm/sdk 2.0.0-staging.19 → 2.0.0-staging.20
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 +22 -19
- package/dist/index.browser.mjs +22 -19
- package/dist/index.js +22 -19
- package/dist/index.mjs +22 -19
- package/package.json +1 -1
- package/src/strategies/universal-strategy.tsx +22 -19
|
@@ -119242,25 +119242,28 @@ spurious results.`);
|
|
|
119242
119242
|
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
119243
119243
|
notARisks: getNoRiskTags(_riskFactor3)
|
|
119244
119244
|
});
|
|
119245
|
-
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) =>
|
|
119246
|
-
|
|
119247
|
-
|
|
119248
|
-
|
|
119249
|
-
|
|
119250
|
-
|
|
119251
|
-
|
|
119252
|
-
|
|
119253
|
-
|
|
119254
|
-
|
|
119255
|
-
|
|
119256
|
-
|
|
119257
|
-
|
|
119258
|
-
|
|
119259
|
-
|
|
119260
|
-
|
|
119261
|
-
|
|
119262
|
-
|
|
119263
|
-
|
|
119245
|
+
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) => {
|
|
119246
|
+
const isUSDT = tokenSymbol === "USDT";
|
|
119247
|
+
return {
|
|
119248
|
+
maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
|
|
119249
|
+
isAudited: true,
|
|
119250
|
+
liveStatus: isUSDT ? "Retired" /* RETIRED */ : "Active" /* ACTIVE */,
|
|
119251
|
+
isPaused: isUSDT,
|
|
119252
|
+
isInstantWithdrawal: false,
|
|
119253
|
+
hideHarvestInfo: true,
|
|
119254
|
+
quoteToken: Global.getDefaultTokens().find(
|
|
119255
|
+
(token) => token.symbol === tokenSymbol
|
|
119256
|
+
),
|
|
119257
|
+
alerts: [
|
|
119258
|
+
{
|
|
119259
|
+
tab: "withdraw",
|
|
119260
|
+
text: "On withdrawal, you will receive an NFT representing your withdrawal request. The funds will be automatically sent to your wallet (NFT owner) in 1-2 hours. You can monitor the status in transactions tab.",
|
|
119261
|
+
type: "info"
|
|
119262
|
+
}
|
|
119263
|
+
],
|
|
119264
|
+
showWithdrawalWarningModal: true
|
|
119265
|
+
};
|
|
119266
|
+
};
|
|
119264
119267
|
var EVERGREEN_SECURITY = {
|
|
119265
119268
|
auditStatus: "Audited" /* AUDITED */,
|
|
119266
119269
|
sourceCode: {
|
package/dist/index.browser.mjs
CHANGED
|
@@ -31842,25 +31842,28 @@ var getUniversalRisk = () => ({
|
|
|
31842
31842
|
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
31843
31843
|
notARisks: getNoRiskTags(_riskFactor3)
|
|
31844
31844
|
});
|
|
31845
|
-
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) =>
|
|
31846
|
-
|
|
31847
|
-
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31845
|
+
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) => {
|
|
31846
|
+
const isUSDT = tokenSymbol === "USDT";
|
|
31847
|
+
return {
|
|
31848
|
+
maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
|
|
31849
|
+
isAudited: true,
|
|
31850
|
+
liveStatus: isUSDT ? "Retired" /* RETIRED */ : "Active" /* ACTIVE */,
|
|
31851
|
+
isPaused: isUSDT,
|
|
31852
|
+
isInstantWithdrawal: false,
|
|
31853
|
+
hideHarvestInfo: true,
|
|
31854
|
+
quoteToken: Global.getDefaultTokens().find(
|
|
31855
|
+
(token) => token.symbol === tokenSymbol
|
|
31856
|
+
),
|
|
31857
|
+
alerts: [
|
|
31858
|
+
{
|
|
31859
|
+
tab: "withdraw",
|
|
31860
|
+
text: "On withdrawal, you will receive an NFT representing your withdrawal request. The funds will be automatically sent to your wallet (NFT owner) in 1-2 hours. You can monitor the status in transactions tab.",
|
|
31861
|
+
type: "info"
|
|
31862
|
+
}
|
|
31863
|
+
],
|
|
31864
|
+
showWithdrawalWarningModal: true
|
|
31865
|
+
};
|
|
31866
|
+
};
|
|
31864
31867
|
var EVERGREEN_SECURITY = {
|
|
31865
31868
|
auditStatus: "Audited" /* AUDITED */,
|
|
31866
31869
|
sourceCode: {
|
package/dist/index.js
CHANGED
|
@@ -31975,25 +31975,28 @@ var getUniversalRisk = () => ({
|
|
|
31975
31975
|
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
31976
31976
|
notARisks: getNoRiskTags(_riskFactor3)
|
|
31977
31977
|
});
|
|
31978
|
-
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) =>
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31978
|
+
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) => {
|
|
31979
|
+
const isUSDT = tokenSymbol === "USDT";
|
|
31980
|
+
return {
|
|
31981
|
+
maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
|
|
31982
|
+
isAudited: true,
|
|
31983
|
+
liveStatus: isUSDT ? "Retired" /* RETIRED */ : "Active" /* ACTIVE */,
|
|
31984
|
+
isPaused: isUSDT,
|
|
31985
|
+
isInstantWithdrawal: false,
|
|
31986
|
+
hideHarvestInfo: true,
|
|
31987
|
+
quoteToken: Global.getDefaultTokens().find(
|
|
31988
|
+
(token) => token.symbol === tokenSymbol
|
|
31989
|
+
),
|
|
31990
|
+
alerts: [
|
|
31991
|
+
{
|
|
31992
|
+
tab: "withdraw",
|
|
31993
|
+
text: "On withdrawal, you will receive an NFT representing your withdrawal request. The funds will be automatically sent to your wallet (NFT owner) in 1-2 hours. You can monitor the status in transactions tab.",
|
|
31994
|
+
type: "info"
|
|
31995
|
+
}
|
|
31996
|
+
],
|
|
31997
|
+
showWithdrawalWarningModal: true
|
|
31998
|
+
};
|
|
31999
|
+
};
|
|
31997
32000
|
var EVERGREEN_SECURITY = {
|
|
31998
32001
|
auditStatus: "Audited" /* AUDITED */,
|
|
31999
32002
|
sourceCode: {
|
package/dist/index.mjs
CHANGED
|
@@ -31845,25 +31845,28 @@ var getUniversalRisk = () => ({
|
|
|
31845
31845
|
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
31846
31846
|
notARisks: getNoRiskTags(_riskFactor3)
|
|
31847
31847
|
});
|
|
31848
|
-
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) =>
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31864
|
-
|
|
31865
|
-
|
|
31866
|
-
|
|
31848
|
+
var createUniversalSettings = (tokenSymbol, maxTVLDecimals) => {
|
|
31849
|
+
const isUSDT = tokenSymbol === "USDT";
|
|
31850
|
+
return {
|
|
31851
|
+
maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
|
|
31852
|
+
isAudited: true,
|
|
31853
|
+
liveStatus: isUSDT ? "Retired" /* RETIRED */ : "Active" /* ACTIVE */,
|
|
31854
|
+
isPaused: isUSDT,
|
|
31855
|
+
isInstantWithdrawal: false,
|
|
31856
|
+
hideHarvestInfo: true,
|
|
31857
|
+
quoteToken: Global.getDefaultTokens().find(
|
|
31858
|
+
(token) => token.symbol === tokenSymbol
|
|
31859
|
+
),
|
|
31860
|
+
alerts: [
|
|
31861
|
+
{
|
|
31862
|
+
tab: "withdraw",
|
|
31863
|
+
text: "On withdrawal, you will receive an NFT representing your withdrawal request. The funds will be automatically sent to your wallet (NFT owner) in 1-2 hours. You can monitor the status in transactions tab.",
|
|
31864
|
+
type: "info"
|
|
31865
|
+
}
|
|
31866
|
+
],
|
|
31867
|
+
showWithdrawalWarningModal: true
|
|
31868
|
+
};
|
|
31869
|
+
};
|
|
31867
31870
|
var EVERGREEN_SECURITY = {
|
|
31868
31871
|
auditStatus: "Audited" /* AUDITED */,
|
|
31869
31872
|
sourceCode: {
|
package/package.json
CHANGED
|
@@ -1252,25 +1252,28 @@ const getUniversalRisk = () => ({
|
|
|
1252
1252
|
const createUniversalSettings = (
|
|
1253
1253
|
tokenSymbol: string,
|
|
1254
1254
|
maxTVLDecimals: number
|
|
1255
|
-
): StrategySettings =>
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1255
|
+
): StrategySettings => {
|
|
1256
|
+
const isUSDT = tokenSymbol === "USDT";
|
|
1257
|
+
return {
|
|
1258
|
+
maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
|
|
1259
|
+
isAudited: true,
|
|
1260
|
+
liveStatus: isUSDT ? StrategyLiveStatus.RETIRED : StrategyLiveStatus.ACTIVE,
|
|
1261
|
+
isPaused: isUSDT,
|
|
1262
|
+
isInstantWithdrawal: false,
|
|
1263
|
+
hideHarvestInfo: true,
|
|
1264
|
+
quoteToken: Global.getDefaultTokens().find(
|
|
1265
|
+
(token) => token.symbol === tokenSymbol
|
|
1266
|
+
)!,
|
|
1267
|
+
alerts: [
|
|
1268
|
+
{
|
|
1269
|
+
tab: "withdraw" as const,
|
|
1270
|
+
text: "On withdrawal, you will receive an NFT representing your withdrawal request. The funds will be automatically sent to your wallet (NFT owner) in 1-2 hours. You can monitor the status in transactions tab.",
|
|
1271
|
+
type: "info" as const
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
showWithdrawalWarningModal: true
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1274
1277
|
|
|
1275
1278
|
const EVERGREEN_SECURITY = {
|
|
1276
1279
|
auditStatus: AuditStatus.AUDITED,
|