Update public/content/developers/docs/gas/index.md#14934
Update public/content/developers/docs/gas/index.md#14934AvulaRamSwaroop wants to merge 1 commit into
Conversation
At line 102:
Incorrect Formula For refund :
max fee - (base fee + tip)
Corrected Formula For refund:
(gas limit−gas used)×(maxfee−(base fee+tip))
Reason:
1.max fee - (base fee + tip) gives the per-unit refund, but the
actual refund depends on how much gas was unused.
2.gas unused = gas limit- gas used .
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hey @AvulaRamSwaroop, thanks for the suggestion.. I see where you're coming from, just not sure this is really necessary? I think the calculation that is there is simple enough to read (in "per-unit" terms) and it gets the point across that the excess is returned. Feel free to push back; small change so not a hill I would die on |
|
Hi ,As a beginner I felt little confused for a While cause the line is stated as : any gas not used in a transaction is returned to the user (i.e. So I later came to known that ,this must be multiplied by gas unused units . if it is per-unit terms then no need to modify it . Thanks for your Time. |
|
Hi @wackerow.Can I close this Issue ? |
|
HI there. anyone @corwintines @wackerow @pettinarip @minimalsm Can I close this One? |
|
This issue is stale because it has been open 30 days with no activity. |
|
Hey @AvulaRamSwaroop, apologies for the delays... Yes, these are in per-unit terms. Going to close this out for now but appreciate the idea. If you'd like, feel free to open a separate suggestion to improve wording if you feel it's necessary ❤️ |
|
@all-contributors please add @AvulaRamSwaroop for ideas |
|
I've put up a pull request to add @AvulaRamSwaroop! 🎉 |

At line 102:
Incorrect Formula For refund :
max fee - (base fee + tip)
Corrected Formula For refund:
(gas limit−gas used)×(maxfee−(base fee+tip))
Reason:
1.max fee - (base fee + tip) gives the per-unit refund, but the
actual refund depends on how much gas was unused.
2.gas unused = gas limit- gas used .