code-423n4 / 2022-04-backd-findings

6 stars 4 forks source link

QA Report #191

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

N-01: Incorrect error in _resetUInt256Config and _resetAddressConfig functions of Preperable.sol contract

Line References

Preperable.sol#L86 Preperable.sol#L98

Description

The require statements on lines 86 and 98 fail if the deadlines are zero. However, the error DEADLINE_NOT_ZERO shows "deadline must be 0".

The error should display something like "deadline must not be 0"

chase-manning commented 2 years ago

I consider this report to be of particularly high quality