This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
PawelK - No deadline in submitBid
function
#25
Labels
Non-Reward
This issue will not receive a payout
PawelK
medium
No deadline in
submitBid
functionSummary
No deadline parameter in
submitBid
functionVulnerability Detail
The
submitBid
function doesn't contain deadline parameter. If the borrower would submit function, and forget about it, or would be blocked to send the function via griefing attack, or any other reason, he might not callcancelBid
function and might get a not favorable deal, because of the volatile market conditions.Impact
Unfavorable loan for the borrower.
Code Snippet
Tool used
Manual Review
Recommendation
Add
deadline
field tosubmitBid
, and if theacceptLoan
function would be called after it, it should revert.You could also add that if the user sets
deadline
to0
, then it lasts until canceled.It should be up to the borrower to decide what risk of market change condition he is willing to take, and set according to the deadline for the bid.
Duplicate of #187
The text was updated successfully, but these errors were encountered: