Skip to content
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

R4R: increate relay reserved gas for additional erc20 approve #114

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

abelliumnt
Copy link
Contributor

https://etherscan.io/tx/0x002adc343f6af457d6ff1f7391850517461b866ca52e95268f637054da457711/advanced

Each approve costs approximate 50000 gas. So here, the reserved gas is increased 100000.

Copy link

WIP: increate relay reserved gas for additional erc20 approve

Generated at commit: 67f0904af76580e05b630714411b0e6dadfd5e83

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
18
45
69
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@Tri-stone Tri-stone changed the base branch from release/v0.5.0 to audits March 1, 2024 09:10
@abelliumnt abelliumnt changed the title WIP: increate relay reserved gas for additional erc20 approve R4R: increate relay reserved gas for additional erc20 approve Mar 1, 2024
@idyllsss
Copy link
Contributor

idyllsss commented Mar 1, 2024

https://etherscan.io/tx/0x002adc343f6af457d6ff1f7391850517461b866ca52e95268f637054da457711/advanced

Each approve costs approximate 50000 gas. So here, the reserved gas is increased 100000.

I tested the execution cost of 'approve' in the code, and it's around 12000.

@Tri-stone Tri-stone merged commit 1c219ef into audits Mar 3, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants