-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add learning quiz for gas fees [Fixes #14752] #15254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
wackerow
left a comment
There was a problem hiding this 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 💪
src/intl/en/learn-quizzes.json
Outdated
| "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.", |
There was a problem hiding this comment.
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
src/intl/en/learn-quizzes.json
Outdated
| "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).", |
There was a problem hiding this comment.
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
src/intl/en/learn-quizzes.json
Outdated
| "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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "gas-2-a-label": " Executing transactions during low-congestion periods", | |
| "gas-2-a-label": "Executing transactions during low-congestion periods", |
src/intl/en/learn-quizzes.json
Outdated
| "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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "gas-2-c-label": "Using layer-2 chains for lower fees", | |
| "gas-2-c-label": "Using layer 2 chains for lower fees", |
src/intl/en/learn-quizzes.json
Outdated
| "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.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.", |
src/intl/en/learn-quizzes.json
Outdated
| "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.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.", |
src/intl/en/learn-quizzes.json
Outdated
| "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.", |
There was a problem hiding this comment.
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
|
Thanks for the feedback @wackerow . I've gone through and made the adjustments that you've recommended. |
wackerow
left a comment
There was a problem hiding this 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 🎉
|
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2025 Ethereum.org Contributor: 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. |
Thank you for the support. Please let me know if there is anything you need help with or something I could work on next. |


Description
Added a new quiz to the Gas Fees page.
learn-quizzes.jsonquestionBank.tsindex.tsStandAloneQuizWidgetingas.tsxtranslations.tsgasas type incompletedQuizzesofQuizzesStats.stories.tsxyarn devto confirm changes on live previewPreview URL
https://deploy-preview-15254--ethereumorg.netlify.app/en/gas/#quiz
Related Issue