Part of CertiK’s retainer series
CertiK reviewed WEMIX (Wemix Retainer 131 NightCrowTWAPV3) on 22 Aug 2024: 5 findings, 0 critical; 2 marked fixed, 3 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 1 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 2 | 0 | 2 |
In the contract `GameTokenTwapRouterV2` the role `_editor` has authority over the functions shown in the diagram below. Any compromise to the `_editor` account may allow the hacker to take advantage of this authority and register/remove game token, token minter and change lock price and freeze period of the minter. 
The `changeGameTokenMinter()` function does not check whether the `newGameTokenMinter` is the same as the `oldMinter`. If these addresses are the same, the function will mistakenly delete the lock price and freeze period information associated with the `newGameTokenMinter` at the end of the function, leading to unintended consequences. ```solidity=93 function changeGameTokenMinter(address newGameTokenMinter, address gameToken, string memory symbol) external onlyEditor { require(newGameTokenMinter != address(0) && gameToken != address(0), "GTTR : address is zero"); require(tokenToTwap[gameToken] != address(0), "GTTR : not registered game token"); require(tokenToTwap[gameToken] == symbolToTwap[symbol] , "GTTR : wrong input"); address oldMinter = tokenToTwap[gameToken]; //relation info symbolToTwap[symbol] = newGameTokenMinter; tokenToTwap[gameToken] = newGameTokenMinter; //lock price info lockPrice[newGameTokenMinter] = lockPrice[oldMinter]; freezePeriod[newGameTokenMinter] = freezePeriod[oldMinter]; delete lockPrice[oldMinter]; delete freezePeriod[oldMinter]; emit GameTokenChanged(gameToken, oldMinter, newGameTokenMinter); } ```
The protocol serves as the underlying entity to interact with out-of-scope dependencies. The out-of-scope dependencies that the contracts interact with are: - `IGameTokenTwapRouter.sol`; - `IGameTokenMinter.sol` - `EditorRole.sol`; The scope of the audit treats out-of-scope dependencies as black boxes and assumes their functional correctness.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (1)
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us