Skip to content

Commit

Permalink
Merge pull request #203 from stabilitydao/4-vault
Browse files Browse the repository at this point in the history
fix: strategy shortNames
  • Loading branch information
DevTeaLeaf authored Jul 5, 2024
2 parents 9e9a397 + effbcc2 commit ba1e35f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/functions/getStrategyInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => {
? IL.GQFN
: vaultSymbol.match(/GQMFW$/)
? IL.GQFW
: { rate: 0, title: "None", desc: "None", color: "#000000" };
: { rate: 0, title: "None", desc: "None", color: "#4aff71" };

strategyInfo = {
name: strategies.GQMF?.id as string,
Expand All @@ -219,7 +219,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => {
il: il,
sourceCode: "",
};
} else if (vaultSymbol.match(/IRMF\d+$/)) {
} else if (vaultSymbol.match(/\bIRMF\b/)) {
strategyInfo = {
name: strategies.IRMF?.id as string,
shortName: strategies.IRMF?.shortId as string,
Expand All @@ -232,7 +232,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => {
sourceCode: "",
il: IL.IQMF,
};
} else if (vaultSymbol.match(/GRMF(S|N|W)$/)) {
} else if (vaultSymbol.match(/GRMF(S|N|W)?$/)) {
const il = vaultSymbol.match(/GRMFS$/)
? IL.GQFS
: vaultSymbol.match(/GRMFN$/)
Expand Down

0 comments on commit ba1e35f

Please sign in to comment.