Open code423n4 opened 1 year ago
The mitigation adds a constant of expanded gas named GAS_FOR_BH_QTY to ensure there are enough gas to call bh.quantity:
GAS_FOR_BH_QTY
uint256 public constant GAS_FOR_BH_QTY = 100_000;
And it's used in the _reserveGas check:
_reserveGas
require( gas > GAS_FOR_DISABLE_BASKET + GAS_FOR_BH_QTY, "not enough gas to unregister safely" );
0xean marked the issue as satisfactory
0xean marked the issue as confirmed for report
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:And it's used in the
_reserveGas
check: