Skip to content

Conversation

@SupaMega24
Copy link
Contributor

@SupaMega24 SupaMega24 commented Apr 8, 2025

Description

Added a new quiz to the Gas Fees page.

  1. Placed quiz content in learn-quizzes.json
  2. Entered correct answers in questionBank.ts
  3. Input quiz data in index.ts
  4. Imported StandAloneQuizWidget in gas.tsx
  5. Entered required name spaces in translations.ts
  6. Add gas as type in completedQuizzes of QuizzesStats.stories.tsx
  7. Ran yarn dev to confirm changes on live preview

Preview URL

https://deploy-preview-15254--ethereumorg.netlify.app/en/gas/#quiz

Related Issue

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels Apr 8, 2025
@netlify
Copy link

netlify bot commented Apr 8, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 46b6f25
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/680a49340e9893000756a0ac
😎 Deploy Preview https://deploy-preview-15254--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 45 (🔴 down 8 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@SupaMega24 SupaMega24 mentioned this pull request Apr 8, 2025
2 tasks
Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @SupaMega24, thanks! Looking great.. just left a round of comments, then I think we can get this in 💪

"gas-1-a-label": "A fee associated with transactions and smart contract operations",
"gas-1-a-explanation": "Partially correct, gas fees represent the cost of transactions and smart contract operations.",
"gas-1-b-label": "The amount of gas used to perform an operation, multiplied by the cost per unit of gas",
"gas-1-b-explanation": "Partially correct, while gas is a unit that measures computation, gas fees are the actual cost required to pay for that computation.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explanation feels confusing

"while gas is a unit that measures computation, gas fees are the actual cost required to pay for that computation" ... which is what the answer choice describes, Gas * Price of gas

Would make sure these explanations make it clear that this answer is "true" but not the best answer

"gas-1-c-label": "A payment that includes a priority fee to potentially expedite transaction processing",
"gas-1-c-explanation": "Partially correct, the total gas fee includes a base fee and a priority fee that can influence transaction processing speed",
"gas-1-d-label": "All of the above",
"gas-1-d-explanation": "Gas fees encompass all these aspects: they compensate for computation (B), apply to both transactions and smart contracts (A), and can include priority fees for faster inclusion (C).",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably just remove the (A)/(B)/(C) from this explanation to keep it direct

"gas-1-d-label": "All of the above",
"gas-1-d-explanation": "Gas fees encompass all these aspects: they compensate for computation (B), apply to both transactions and smart contracts (A), and can include priority fees for faster inclusion (C).",
"gas-2-prompt": "Which of the following is the LEAST effective strategy for reducing the cost of gas?",
"gas-2-a-label": " Executing transactions during low-congestion periods",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"gas-2-a-label": " Executing transactions during low-congestion periods",
"gas-2-a-label": "Executing transactions during low-congestion periods",

"gas-2-a-explanation": "Timing transactions during off-peak hours can lower gas costs.",
"gas-2-b-label": "Waiting for gas prices to decrease",
"gas-2-b-explanation": "Waiting for gas prices to decrease is a valid strategy since gas fluctuates based on congestion.",
"gas-2-c-label": "Using layer-2 chains for lower fees",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"gas-2-c-label": "Using layer-2 chains for lower fees",
"gas-2-c-label": "Using layer 2 chains for lower fees",

"gas-2-b-label": "Waiting for gas prices to decrease",
"gas-2-b-explanation": "Waiting for gas prices to decrease is a valid strategy since gas fluctuates based on congestion.",
"gas-2-c-label": "Using layer-2 chains for lower fees",
"gas-2-c-explanation": "Layer-2 solutions reduce fees and are an effective way to save on gas.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"gas-2-c-explanation": "Layer-2 solutions reduce fees and are an effective way to save on gas.",
"gas-2-c-explanation": "Layer 2 solutions reduce fees and are an effective way to save on gas.",

"gas-2-d-explanation": "Complex smart contract logic increases gas costs by requiring more computation. Efficient design minimizes steps, storage, and redundant operations to reduce fees.",
"gas-3-prompt": "What causes gas fees to be high?",
"gas-3-a-label": "Network computation exceeding a specific threshold",
"gas-3-a-explanation": "When computation on Ethereum exceeds a threshold, gas fees increase, especially during high activity periods like dApps or NFT drops.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"gas-3-a-explanation": "When computation on Ethereum exceeds a threshold, gas fees increase, especially during high activity periods like dApps or NFT drops.",
"gas-3-a-explanation": "When computation on Ethereum exceeds a threshold, gas fees increase, especially during high activity periods like dapps or NFT drops.",

"gas-3-a-label": "Network computation exceeding a specific threshold",
"gas-3-a-explanation": "When computation on Ethereum exceeds a threshold, gas fees increase, especially during high activity periods like dApps or NFT drops.",
"gas-3-b-label": "Validators increasing the base fee manually",
"gas-3-b-explanation": "Validators do not manually set base fees; they are determined by the protocol.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider "adjusted by the protocol based on demand in previous block"... just an idea if others agree... could add complexity too, but it is marked as an "advanced" quiz

@SupaMega24
Copy link
Contributor Author

Thanks for the feedback @wackerow . I've gone through and made the adjustments that you've recommended.

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @SupaMega24! Looking great, pulling this in 🎉

@wackerow wackerow merged commit 774843b into ethereum:dev Apr 24, 2025
6 checks passed
@gitpoap-bot
Copy link

gitpoap-bot bot commented Apr 24, 2025

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2025 Ethereum.org Contributor:

GitPOAP: 2025 Ethereum.org Contributor GitPOAP Badge

Join the [ethereum.org Discord server](https://ethereum.org/discord) to explore more ways to contribute to the project. Depending on the tasks you complete, you may also unlock additional rewards. Visit [ethereum.org/contributing](https://ethereum.org/contributing) to learn more.

Head to gitpoap.io & connect your GitHub account to mint!Keep buidling, keep learning, and let's grow the Ethereum open-source community together 🌱

Learn more about GitPOAPs here.

@SupaMega24
Copy link
Contributor Author

Thanks for the feedback @wackerow . I've gone through and made the adjustments that you've recommended.

Thank you for the support. Please let me know if there is anything you need help with or something I could work on next.

This was referenced Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Learn Quiz: Gas Fees

2 participants