Open hats-bug-reporter[bot] opened 1 month ago
The sentence
the market name is formed using questionStart + outcomeType + questionEnd.
is correct. It doesn't mean only those elements are used. The brackets are also "used" but because they are always the same, it didn't look necessary to specify that on the comments.
As per contest rules are excluded: Issues about code/project quality which do not lead to exploitable vulnerabilities.
Github username: -- Twitter username: -- Submission hash (on-chain): 0xa12d42f476f20830a264cbc23a927d34e2ef13fd1e0364ee588147dbb15ca3be Severity: low
Description: Description
The
createMultiScalarMarket
function creates a market name using a format that is inconsistent with the documentation provided. The documentation indicates that the market name should be constructed by concatenating thequestionStart
,outcomeType
, andquestionEnd
parameters. However, the actual implementation includes square brackets around theoutcomeType
, resulting in a different format than described.Attachments
outcomeType
. This ensures consistency between the documentation and the actual behavior of the function.