Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate Comment #16

Open
code423n4 opened this issue Aug 22, 2021 · 2 comments
Open

Inaccurate Comment #16

code423n4 opened this issue Aug 22, 2021 · 2 comments
Labels
1 (Low Risk) bug Something isn't working Resolved Used when a fix has been implemented. sponsor confirmed

Comments

@code423n4
Copy link
Contributor

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

@code423n4 code423n4 added 0 (Non-critical) bug Something isn't working labels Aug 22, 2021
code423n4 added a commit that referenced this issue Aug 22, 2021
@Splidge Splidge added sponsor confirmed Resolved Used when a fix has been implemented. labels Aug 24, 2021
@0xean
Copy link
Collaborator

0xean commented Sep 2, 2021

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
Copy link
Collaborator

Splidge commented Sep 7, 2021

Fixed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 (Low Risk) bug Something isn't working Resolved Used when a fix has been implemented. sponsor confirmed
Projects
None yet
Development

No branches or pull requests

3 participants