@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.
@@ -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
- maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
119247
- isAudited: true,
119248
- liveStatus: "Active" /* ACTIVE */,
119249
- isPaused: false,
119250
- isInstantWithdrawal: false,
119251
- hideHarvestInfo: true,
119252
- quoteToken: Global.getDefaultTokens().find(
119253
- (token) => token.symbol === tokenSymbol
119254
- ),
119255
- alerts: [
119256
- {
119257
- tab: "withdraw",
119258
- 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.",
119259
- type: "info"
119260
- }
119261
- ],
119262
- showWithdrawalWarningModal: true
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: {
@@ -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
- maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
31847
- isAudited: true,
31848
- liveStatus: "Active" /* ACTIVE */,
31849
- isPaused: false,
31850
- isInstantWithdrawal: false,
31851
- hideHarvestInfo: true,
31852
- quoteToken: Global.getDefaultTokens().find(
31853
- (token) => token.symbol === tokenSymbol
31854
- ),
31855
- alerts: [
31856
- {
31857
- tab: "withdraw",
31858
- 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.",
31859
- type: "info"
31860
- }
31861
- ],
31862
- showWithdrawalWarningModal: true
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
- maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
31980
- isAudited: true,
31981
- liveStatus: "Active" /* ACTIVE */,
31982
- isPaused: false,
31983
- isInstantWithdrawal: false,
31984
- hideHarvestInfo: true,
31985
- quoteToken: Global.getDefaultTokens().find(
31986
- (token) => token.symbol === tokenSymbol
31987
- ),
31988
- alerts: [
31989
- {
31990
- tab: "withdraw",
31991
- 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.",
31992
- type: "info"
31993
- }
31994
- ],
31995
- showWithdrawalWarningModal: true
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
- maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
31850
- isAudited: true,
31851
- liveStatus: "Active" /* ACTIVE */,
31852
- isPaused: false,
31853
- isInstantWithdrawal: false,
31854
- hideHarvestInfo: true,
31855
- quoteToken: Global.getDefaultTokens().find(
31856
- (token) => token.symbol === tokenSymbol
31857
- ),
31858
- alerts: [
31859
- {
31860
- tab: "withdraw",
31861
- 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.",
31862
- type: "info"
31863
- }
31864
- ],
31865
- showWithdrawalWarningModal: true
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-staging.19",
3
+ "version": "2.0.0-staging.20",
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",
@@ -1252,25 +1252,28 @@ const getUniversalRisk = () => ({
1252
1252
  const createUniversalSettings = (
1253
1253
  tokenSymbol: string,
1254
1254
  maxTVLDecimals: number
1255
- ): StrategySettings => ({
1256
- maxTVL: Web3Number.fromWei(0, maxTVLDecimals),
1257
- isAudited: true,
1258
- liveStatus: StrategyLiveStatus.ACTIVE,
1259
- isPaused: false,
1260
- isInstantWithdrawal: false,
1261
- hideHarvestInfo: true,
1262
- quoteToken: Global.getDefaultTokens().find(
1263
- (token) => token.symbol === tokenSymbol
1264
- )!,
1265
- alerts: [
1266
- {
1267
- tab: "withdraw" as const,
1268
- 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.",
1269
- type: "info" as const
1270
- }
1271
- ],
1272
- showWithdrawalWarningModal: true
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,