In Auction.sol, the state variable bondTimestamp should be called something like bondBlocknumber since it saves the block.number and not timestamp.
It's possible that this may lead to issues if in the future the code is upgraded/forked and some new developers don't pay attention to the correct meaning of the variables.
Handle
0xsanson
Vulnerability details
Impact
In Auction.sol, the state variable
bondTimestamp
should be called something likebondBlocknumber
since it saves theblock.number
and not timestamp. It's possible that this may lead to issues if in the future the code is upgraded/forked and some new developers don't pay attention to the correct meaning of the variables.Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Auction.sol#L58
Tools Used
editor
Recommended Mitigation Steps
Consider renaming the variable as suggested.