From 4ff3dcdd38e5bce2ea32849fdcbf3f9c2d4c86ad Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Tue, 3 Oct 2023 10:13:09 +0100 Subject: [PATCH] new default gas saving description --- packages/shared/package.json | 2 +- packages/shared/src/severities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shared/package.json b/packages/shared/package.json index fc507ec89..85bc0b8d7 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@hats-finance/shared", - "version": "1.1.28", + "version": "1.1.29", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/shared/src/severities.ts b/packages/shared/src/severities.ts index dfd96a770..947e2952a 100644 --- a/packages/shared/src/severities.ts +++ b/packages/shared/src/severities.ts @@ -52,7 +52,7 @@ export const AUDIT_SEVERITIES_V1: { [key: string]: IEditedVulnerabilitySeverityV image: "ipfs://QmZAuKhEivpnrhPyvhJyPGti4fGLLYQLqvUtRtvsL8wkuC/SmallSize-Low-Tech%20Sphere.mp4", external_url: "", }, - description: `This competition will reward participants with ideas to maximize gas savings. The first place gets ⅔ (66.6%) of the prize pool, and the second place gets ⅓ (33.3%).\n \nThe guidelines are as follows:\n* Submissions should be forks of our repository, with the test suite unchanged.\n* Optimizations should use solidity (no inline assembly).\n* Entries will be measured on the total average amount of gas used for each function (i.e., the sum of all numbers in the “avg” column), as reported by the hardhat-gas-reporter when running the tests in the repository.`, + description: `This competition will reward participants with ideas to maximize gas savings. The first place gets ⅔ (66.6%) of the prize pool, and the second place gets ⅓ (33.3%).\n\nSubmissions get classified on the basis of the average gas savings as reported by the gas reporter. The submission with the lowest average gas usage will win.\n \nThe guidelines are as follows:\n* Changes should be limited to solidity files only. Tests should only be changed if they fail because of the changes in gas usage (e.g. tests that hardcode gas usage values).\n* Optimizations should use Solidity (no inline assembly).\n* All tests in the repository should pass.\n* The score of the submission is the total average amount of gas used for each function (i.e., the sum of all numbers in the “avg” column), as reported by the hardhat-gas-reporter when running the tests in the repository.\n* Submitters are kindly asked to include this number in their report, and can adapt this script for doing so: https://github.com/hats-finance/hats-contracts/blob/develop/gas-avg-check.py\n* Submissions should at least have a 5% improvement with respect to the original score.`, }, low: { id: "low-audit",