You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modifier canAddLiquidity calls internal function _canAddLiquidity. This function is not called anywhere else so I do not see a reason why all the logic can't be moved to the modifier to save some gas by reducing the extra call.
Recommended Mitigation Steps
Remove function _canAddLiquidity, place its logic directly in the canAddLiquidity modifier.
The text was updated successfully, but these errors were encountered:
Handle
pauliax
Vulnerability details
Impact
modifier canAddLiquidity calls internal function _canAddLiquidity. This function is not called anywhere else so I do not see a reason why all the logic can't be moved to the modifier to save some gas by reducing the extra call.
Recommended Mitigation Steps
Remove function _canAddLiquidity, place its logic directly in the canAddLiquidity modifier.
The text was updated successfully, but these errors were encountered: