safeApprove may revert #10
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2022-06-connext/blob/4dd6149748b635f95460d4c3924c7e3fb6716967/contracts/contracts/core/connext/libraries/AssetLogic.sol#L347
Vulnerability details
description
OpenZeppelin's safeApprove() will revert if the account already is approved and the new safeApprove() is done with a non-zero value
recommend using safeIncreaseAllowance() instead
The text was updated successfully, but these errors were encountered: