Priority: High
Estimated Time: 1 hour
Description:
The same game_id can be used to create multiple matches. An attacker could create duplicate matches for the same game and collect payouts multiple times if the oracle submits results for the same game ID.
Tasks:
- Track used
game_id values in a DataKey::GameId(String) persistent entry
- Reject
create_match if game_id already exists, returning Error::AlreadyExists
- Add test for duplicate game ID rejection
Priority: High
Estimated Time: 1 hour
Description:
The same
game_idcan be used to create multiple matches. An attacker could create duplicate matches for the same game and collect payouts multiple times if the oracle submits results for the same game ID.Tasks:
game_idvalues in aDataKey::GameId(String)persistent entrycreate_matchifgame_idalready exists, returningError::AlreadyExists