Skip to content

Commit

Permalink
Merge pull request #774 from hats-finance/fixes-shared
Browse files Browse the repository at this point in the history
Fixes shared
  • Loading branch information
shayzluf authored Oct 21, 2024
2 parents e3eea1a + b91bd48 commit 955f774
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/public/_headers
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion packages/web/src/hooks/subgraph/vaults/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,14 @@ const fixVaultsData = (vaults: IVault[]) => {
eulerCTFVault.stakingToken = "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48";
eulerCTFVault.stakingTokenDecimals = "6";
eulerCTFVault.stakingTokenSymbol = "USDC";
eulerCTFVault.honeyPotBalance = "4000000000000";
eulerCTFVault.honeyPotBalance = "3500000000000";
}

// 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;
};

Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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 [email protected] 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",
Expand All @@ -1333,7 +1333,7 @@
"editSubmission": "Edit submission",
"terms": {
"bugBounty": {
"submissionSection": "<p>Your submission will be sent to the committee who will process your submission.</p> <p>The committee of the vault will respond within 12 hours to acknowledge the receipt of submission via the communication channel you provided.<p/>",
"submissionSection": "<p>Your submission will be sent to the committee who will process your submission.</p> <p>The committee of the vault will respond within 24 hours to acknowledge the receipt of submission via the communication channel you provided.<p/>",
"fixRemedySection": "<p>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:</p> <br> <ul class='no-decoration'> <li class='align-center'>##question## Questions to help with clarification</li> <li class='align-center'>##warning## Identification of any errors that they have noticed in your submission</li> </ul> <br><br> <p>The committee may also request confirmation of the accuracy of your submission and details regarding the solution, which may include the following:</p> <br> <ul class='no-decoration'> <li class='align-center'>##timeline## Timeline for implementing the solution</li> <li class='align-center'>##bug## Severity level of the identified vulnerability</li> <li class='align-center'>##award## Level of reward</li> </ul>",
"awardsSection": "<p>For low-level severity vulnerabilities rewards are likely to be released within 14 days of the validation of your submission.</p> <p>For medium, high and critical level severity vulnerabilities, rewards will be released within two weeks of the deployment of the vault committee's solution.</p>",
"alertSection": "<p class='title small-margin-top'>Please be aware!</p> <p>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.</p>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const InScopeSection = ({ vault }: InScopeSectionProps) => {
style={{ whiteSpace: "normal", fontSize: "var(--xsmall)", background: "transparent", color: "var(--white)" }}
/>
<div className="code-languages">
{vault.description.scope.codeLangs.map((codeLang) => (
{vault.description.scope?.codeLangs?.map((codeLang) => (
<Pill key={codeLang} isChecked text={codeLang} />
))}
</div>
Expand Down

0 comments on commit 955f774

Please sign in to comment.