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

M-11 MitigationConfirmed #27

Open
code423n4 opened this issue Aug 18, 2023 · 2 comments
Open

M-11 MitigationConfirmed #27

code423n4 opened this issue Aug 18, 2023 · 2 comments
Labels
confirmed for report This issue is confirmed for report mitigation-confirmed MR-M-11 satisfactory satisfies C4 submission criteria; eligible for awards

Comments

@code423n4
Copy link
Contributor

Lines of code

Vulnerability details

Comments

The mitigation adds a constant of expanded gas named GAS_FOR_BH_QTY to ensure there are enough gas to call bh.quantity:

uint256 public constant GAS_FOR_BH_QTY = 100_000; 

And it's used in the _reserveGas check:

        require(
            gas > GAS_FOR_DISABLE_BASKET + GAS_FOR_BH_QTY,
            "not enough gas to unregister safely"
        );
@c4-judge
Copy link

0xean marked the issue as satisfactory

@c4-judge c4-judge added the satisfactory satisfies C4 submission criteria; eligible for awards label Aug 28, 2023
@c4-judge
Copy link

0xean marked the issue as confirmed for report

@c4-judge c4-judge added the confirmed for report This issue is confirmed for report label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed for report This issue is confirmed for report mitigation-confirmed MR-M-11 satisfactory satisfies C4 submission criteria; eligible for awards
Projects
None yet
Development

No branches or pull requests

2 participants