W3-Macondo

CertiKFiles named in the report

CertiK reviewed Macondo (W3-Macondo) on 4 Jan 2023: 23 findings, 0 critical; 11 marked fixed, 4 acknowledged, 8 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings23

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

SeverityOpenAcknowledgedFixed
Critical000
High030
Medium011
Low8010
MediumShadowing State VariableFixed

A state variable is shadowing another component defined in a parent contract. Variable `vrfCoordinator` in `RandomOracleConsumer` shadows the variable `vrfCoordinator` in `VRFConsumerBaseV2`. ```solidity=22 address vrfCoordinator; ``` ```solidity=99 address private immutable vrfCoordinator; ```

Low`_sale()` Function Reverts When `_salePrice == 1`Fixed

In the contract `NFTStore`, the function `_sale()` requires that the `price` parameter is strictly greater than 1. However, the function `_setSaleConfigPrice()` allows setting `defaultConfig.price = 1`. \ This could cause unexpected errors.

Low`_saleStartTime` Can be Equal to `_saleEndTime`Fixed

The function `_setSaleConfigSaleTime()` prevents having `_saleStartTime > _saleEndTime` however the two parameters can still be equal.

Low`msg.value == price` Should be RequiredFixed

When function `_sale()` is called, if the caller sent more `BNB` than `price`, then the surplus will be sent back to the caller. This causes an external call to an untrusted contract during the execution of a sensitive function. \ Since the `price` is supposed to be known before calling the function, not requiring that the exact amount is paid seems to introduce unnecessary risks into the protocol.

LowCheck Effect Interaction Pattern Violated (Out-ofFixed

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. *This finding is considered minor because the reentrancy only causes out-of-order events.*

LowMissing Zero Address ValidationFixed

Addresses should be checked before assignment or external call to make sure they are not zero addresses. ```solidity=54 vrfCoordinator = m_vrfCoordinator; ``` - `m_vrfCoordinator` is not zero-checked before being used. --- ```solidity=51 withdrawAddress = _withdrawAddress; ``` - `_withdrawAddress` is not zero-checked before being used. --- ```solidity=137 withdrawAddress = _withdrawAddress; ``` - `_withdrawAddress` is not zero-checked before being used.

LowMissing Zero Address ValidationFixed

In the contract `NFTStore`, the function `_sale()` does not check that `to != address(0)`. \ This could potentially allows to bypass the check: ```solidity=90 if (soldList[tokenId] != address(0)) { revert(string(abi.encodePacked("token already sold"))); } ``` in case of a user tries to resell a token.

LowPrivileged `view` FunctionFixed

The function `getRandomWords()` is a `view` function that only the `owner` of the contract can call.

LowRedundant CheckFixed

The function `_setSaleConfigPrice()` checks that `_salePrice <= 0`. `_salePrice` being an `uint256` it cannot be less than zero.

LowState Variable Should Be Declared ConstantFixed

State variables that never change should be declared as `constant` to save gas. ```solidity=35 uint32 callbackGasLimit = 300000; ``` - `callbackGasLimit` should be declared `constant`. --- ```solidity=38 uint16 requestConfirmations = 3; ``` - `requestConfirmations` should be declared `constant`. --- ```solidity=42 uint32 numWords = 10; ``` - `numWords` should be declared `constant`.

Show 1 more
LowVariables That Could Be Declared as ImmutableFixed

The linked variable assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

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 (11)

  • contracts/token/nft-table/MacondoTableNFTMinterBlindBox.sol
  • contracts/core/utils/random/OnChainRandomUpgradeable.sol
  • contracts/token/token-MCD/MacondoMCD.sol
  • contracts/game/poker/PokerValidator.sol
  • contracts/core/nft-store/NFTStoreSellerIncrease.sol
  • contracts/core/nft-store/NFTStore.sol
  • contracts/token/token-MCD/MacondoMCDVestingEcosystemWallet.sol
  • contracts/token/token-BFB/MacondoBFB.sol
  • contracts/token/nft-table/MacondoTableNFT.sol
  • contracts/random/RandomOracleConsumer.sol
  • contracts/TokenCollection.sol

Part of Macondo’s security record

Macondo
Audits1 audit by 1 firmLast audit Jan 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Macondo’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 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