From 487ca69e108d9f1be01ba91abae73359b533c26d Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Wed, 21 Aug 2024 00:08:58 +0100 Subject: [PATCH 1/4] chore: smal fixes --- packages/web/public/_headers | 2 +- packages/web/src/hooks/subgraph/vaults/parser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/public/_headers b/packages/web/public/_headers index 7374fb50a..2ef63e3f0 100644 --- a/packages/web/public/_headers +++ b/packages/web/public/_headers @@ -1,6 +1,6 @@ # This is a comment /* - X-Frame-Options: DENY + X-Frame-Options: SAMEORIGIN Strict-Transport-Security: max-age=63072000; includeSubDomains; preload X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff \ No newline at end of file diff --git a/packages/web/src/hooks/subgraph/vaults/parser.ts b/packages/web/src/hooks/subgraph/vaults/parser.ts index 9465ad928..0483a56c4 100644 --- a/packages/web/src/hooks/subgraph/vaults/parser.ts +++ b/packages/web/src/hooks/subgraph/vaults/parser.ts @@ -108,7 +108,7 @@ const fixVaultsData = (vaults: IVault[]) => { eulerCTFVault.stakingToken = "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"; eulerCTFVault.stakingTokenDecimals = "6"; eulerCTFVault.stakingTokenSymbol = "USDC"; - eulerCTFVault.honeyPotBalance = "4000000000000"; + eulerCTFVault.honeyPotBalance = "3500000000000"; } return newVaults; From eb481b69c8c665ad9ebc0f13856a96f7ef360628 Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Mon, 2 Sep 2024 16:34:37 +0100 Subject: [PATCH 2/4] chore: fixed hash --- packages/web/src/hooks/subgraph/vaults/parser.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web/src/hooks/subgraph/vaults/parser.ts b/packages/web/src/hooks/subgraph/vaults/parser.ts index 271c3643b..6e6c42c68 100644 --- a/packages/web/src/hooks/subgraph/vaults/parser.ts +++ b/packages/web/src/hooks/subgraph/vaults/parser.ts @@ -111,6 +111,11 @@ const fixVaultsData = (vaults: IVault[]) => { eulerCTFVault.honeyPotBalance = "4000000000000"; } + // Override information for Accumulated Finance vault + const accumulatedVault = newVaults.find((vault) => vault.id.toLowerCase() === "0x75278bcc0fa7c9e3af98654bce195eaf3bb6a784"); + if (accumulatedVault && accumulatedVault.descriptionHash === "QmfDcBsAwfUhqG9Mvj6ZmSZfxCwzTMUNTfFxERddBvtFeL") + accumulatedVault.descriptionHash = "QmSRrEZ3GMDe2CuezSbfRCHFmCNQNWHXmhvHy7VAD4jzDX"; + return newVaults; }; From 5e71b67412e15b62b8e3558aca00b8eaa00de22a Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Wed, 16 Oct 2024 15:03:32 +0100 Subject: [PATCH 3/4] fix --- .../VaultScopeSection/InScopeSection/InScopeSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/pages/Honeypots/VaultDetailsPage/Sections/VaultScopeSection/InScopeSection/InScopeSection.tsx b/packages/web/src/pages/Honeypots/VaultDetailsPage/Sections/VaultScopeSection/InScopeSection/InScopeSection.tsx index 9fd1ee8bd..acd44f81d 100644 --- a/packages/web/src/pages/Honeypots/VaultDetailsPage/Sections/VaultScopeSection/InScopeSection/InScopeSection.tsx +++ b/packages/web/src/pages/Honeypots/VaultDetailsPage/Sections/VaultScopeSection/InScopeSection/InScopeSection.tsx @@ -230,7 +230,7 @@ export const InScopeSection = ({ vault }: InScopeSectionProps) => { style={{ whiteSpace: "normal", fontSize: "var(--xsmall)", background: "transparent", color: "var(--white)" }} />
- {vault.description.scope.codeLangs.map((codeLang) => ( + {vault.description.scope?.codeLangs?.map((codeLang) => ( ))}
From b91bd48e7fabf4b93ea9b57d2b096dd313ca8f0e Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Mon, 21 Oct 2024 14:08:13 +0100 Subject: [PATCH 4/4] changes --- packages/shared/package.json | 2 +- packages/web/src/languages/en.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/shared/package.json b/packages/shared/package.json index 5966182d0..4a3b9c008 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@hats.finance/shared", - "version": "1.1.121", + "version": "1.1.122", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/web/src/languages/en.json b/packages/web/src/languages/en.json index ebce9c6a9..a28eb99d4 100644 --- a/packages/web/src/languages/en.json +++ b/packages/web/src/languages/en.json @@ -1321,7 +1321,7 @@ "submissionOnChain": "Submission on chain", "submissionSentToCommittee": "Submission sent to committee", "resendToServer": "Resend to server", - "responseNotice": "If you have not received response within 12 hours please contact security@hats.finance in order to check if there is an issue with the bot or the committee.", + "responseNotice": "If you have not received response within 24 hours please contact security@hats.finance in order to check if there is an issue with the bot or the committee.", "submitNewIssues": "Submit new issues", "whileWaitingJoinCommunity": "While waiting, become an active member of our community and let us know what you think.", "checkAuditCompetitionRepo": "Check here the audit competition repo", @@ -1333,7 +1333,7 @@ "editSubmission": "Edit submission", "terms": { "bugBounty": { - "submissionSection": "

Your submission will be sent to the committee who will process your submission.

The committee of the vault will respond within 12 hours to acknowledge the receipt of submission via the communication channel you provided.

", + "submissionSection": "

Your submission will be sent to the committee who will process your submission.

The committee of the vault will respond within 24 hours to acknowledge the receipt of submission via the communication channel you provided.

", "fixRemedySection": "

In order to clarify your submission, the committee might open a direct communication channel with you and ask for one or both of the following:


  • ##question## Questions to help with clarification
  • ##warning## Identification of any errors that they have noticed in your submission


The committee may also request confirmation of the accuracy of your submission and details regarding the solution, which may include the following:


  • ##timeline## Timeline for implementing the solution
  • ##bug## Severity level of the identified vulnerability
  • ##award## Level of reward
", "awardsSection": "

For low-level severity vulnerabilities rewards are likely to be released within 14 days of the validation of your submission.

For medium, high and critical level severity vulnerabilities, rewards will be released within two weeks of the deployment of the vault committee's solution.

", "alertSection": "

Please be aware!

If the vulnerability is exploited prior to the solution being implemented the reward will be voided. As such, please keep all activity in relation to Hats Finance vaults private and confidential.

"