We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
G06 : Switch the order of if statement to fail early saves 1 function call half of the times where function have SLOAD (Saves ~2100 Gas Half of the times)
G02 : Optimization Proposal for Withdraw Function in MagicSpend Contract
Gas optimization are correctly implemented as suggested. Main point being the different order of operation/checks consumes less gas.
Changes are included into PR16
From the difference in gas snapshot there is a slightly decrease of gas usage for the patched version which is to be expected.
Successful Mitigation
The text was updated successfully, but these errors were encountered:
imare issue #10
b113e85
3docSec marked the issue as satisfactory
Sorry, something went wrong.
No branches or pull requests
Lines of code
Vulnerability details
C4 Issue
G06 : Switch the order of if statement to fail early saves 1 function call half of the times where function have SLOAD (Saves ~2100 Gas Half of the times)
G02 : Optimization Proposal for Withdraw Function in MagicSpend Contract
Mitigation
Gas optimization are correctly implemented as suggested.
Main point being the different order of operation/checks consumes less gas.
Changes are included into PR16
From the difference in gas snapshot there is a slightly decrease of gas usage for the patched version which is to be expected.
Conclusions
Successful Mitigation
The text was updated successfully, but these errors were encountered: