Wemix Retainer 106 DIOS Staking

CertiKFiles named in the report

Audit

Part of CertiK’s retainer series

CertiK reviewed WEMIX (Wemix Retainer 106 DIOS Staking) on 18 Mar 2024: 3 findings, 0 critical; 2 marked fixed, 1 open.

No open critical findings
Open the reportOpen WEMIX’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings3

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium001
Low101
MediumInherited Contracts Not Initialized In InitializeFixed

Contract StakingV10 extends the `OwnableUpgradeable`, and the `ReentrancyGuardUpgradeable` contracts, but the extended contract is not initialized by the current contract. Generally, the initializer function of a contract should always call all the initializer functions of the contracts that it extends. ------------- Missing the calling of __Ownable_init(). ```solidity /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } ``` ------------- Missing the calling of __ReentrancyGuard_init(). ```solidity /// @custom:storage-location erc7201:openzeppelin.storage.ReentrancyGuard struct ReentrancyGuardStorage { uint256 _status; } function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage(); $._status = NOT_ENTERED; } ```

LowIncorrect Error MessageFixed

The above-mentioned error messages in the `claim()`, `claimWithSwap()`, and `compound()` functions of `StakingV10` contract are not correct. These functions have different usages than the `deposit()` function.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (8)

  • contracts/interfaces/IDenylist.sol
  • contracts/interfaces/IWWEMIX.sol
  • contracts/StakingV10.sol
  • contracts/interfaces/IStakingVersion.sol
  • contracts/interfaces/IRewarder.sol
  • contracts/interfaces/IEnvStorage.sol
  • contracts/interfaces/IStaking.sol
  • contracts/interfaces/IWeswapRouter.sol

Part of WEMIX’s security record

WEMIX
Audits75 audits by 1 firmLast audit Feb 2025, by CertiK.
Critical findingsNo open critical findingsAcross the 75 reports, 17 critical findings were reported. Each is marked fixed by the firm that reported it.
Open WEMIX’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

Something 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