FreeCity

CertiKFiles named in the report

CertiK reviewed FreeCity on 26 Sep 2022: 23 findings, 0 critical; 9 marked fixed, 3 acknowledged, 11 open.

No open critical findings
Open the reportOpen FreeCity’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
High031
Medium100
Low1008
HighLack Of Access ControlFixed

In the contract `FreeCityGame_v2.sol`, the function `setBlindBoxBaseUrl()` can be called by anyone as it has no access restriction. This enables anyone to call this and change the URI (Uniform Resource Identifier) of a blind box.

LowComparison to Boolean ConstantFixed

Boolean constants can be used directly and do not need to be compared to `true` or `false`.

LowCostly Operation Inside LoopFixed

Accessing storage variables in a loop can be costly in terms of gas consumption. ```solidity=261 blindBoxCurrentData = blindBoxCurrentData + 1; ```

LowMissing Emit EventsFixed

There should always be events emitted in sensitive functions that are controlled by centralization roles.

LowMissing Upper Bound For FeesFixed

There is no limit on the `protocolFee`, which can therefore be set to an amount that could potentially disrupt contract functionality.

LowRedundant Code ComponentsFixed

The linked statements do not affect the functionality of the codebase and appear to be either leftovers from test code or older functionality.

LowTypoFixed

In the contract `FreeCityGame_v2.sol`, the variable `blindBoxBaseUri` is misspelled as `blindBoxBaseUrl`.

LowUnused State VariablesFixed

The following state variables are initialized, but never used in the codebase. * `proxyRegistryAddress` * `_tokenURIs` * `preSales` * `__gap`

LowUsage of `transfer`/`send` for sending EtherFixed

It is not recommended to use Solidity's `transfer()` and `send()` functions for transferring Ether, since some contracts may not be able to receive the funds. These functions forward only a fixed amount of gas (2300 specifically) and the receiving contracts may run out of gas before finishing the transfer. Additionally, EVM instructions' gas costs may increase in the future. Thus, some contracts that can receive now may stop working in the future due to the gas limitation. ```solidity=407 payable(protocolFeeRecipient).transfer(calculatedProtocolFee); ``` - `ExchangeCore.executeFundsTransfer` uses `transfer()`.

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

  • exchange/Exchange.sol
  • proxy/OwnableDelegateProxy.sol
  • exchange/SaleKindInterface.sol
  • exchange/SafeMath.sol
  • exchange/ERC20.sol
  • FreeCityGame_v2.sol
  • proxy/ProxyRegistry.sol
  • exchange/ERC20Basic.sol
  • proxy/FreeCityProxyRegistry.sol
  • exchange/TokenRecipient.sol
  • MyToken.sol
  • exchange/ArrayUtils.sol
  • proxy/OwnedUpgradeabilityProxy.sol
  • exchange/ERC721.sol
  • exchange/FreeCityExchange.sol
  • proxy/Proxy.sol
  • exchange/ReentrancyGuarded.sol
  • proxy/AuthenticatedProxy.sol
  • exchange/ERC721Instance.sol
  • proxy/TokenTransferProxy.sol
  • exchange/ExchangeCore.sol
  • proxy/OwnedUpgradeabilityStorage.sol

Part of FreeCity’s security record

FreeCity
Audits1 audit by 1 firmLast audit Sep 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open FreeCity’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