code-423n4 / 2021-08-realitycards-findings

1 stars 0 forks source link

Inaccurate Comment #16

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

leastwood

Vulnerability details

Impact

This issue has no direct security implications, however, there may be some confusion when understanding what the RCFactory.createMarket() function actually does.

Proof of Concept

https://github.com/code-423n4/2021-08-realitycards/blob/main/contracts/RCFactory.sol#L625

Tools Used

Manual code review

Recommended Mitigation Steps

Update the line (linked above) to include the SAFE_MODE option outline in the enum type in IRCMarket.sol. For example, the line /// @param _mode 0 = normal, 1 = winner takes all could be updated to /// @param _mode 0 = normal, 1 = winner takes all, 2 = SAFE_MODE

0xean commented 3 years ago

Based on C4's docs - Comment issues are 1, bumping to 1.

"1 — Low: Low: Assets are not at risk. State handling, function incorrect as to spec, issues with comments."

Splidge commented 3 years ago

Fixed here