Digcrypto - Audit

CertiKFiles named in the report

CertiK reviewed Digcrypto (Digcrypto - Audit) on 21 Sep 2022: 9 findings, 0 critical; 4 marked fixed, 2 acknowledged, 3 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings9

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

SeverityOpenAcknowledgedFixed
Critical000
High301
Medium003
Low020
HighCentralization Risks in DigCryptoHouse.solFixed

In the contract `DigCryptoHouse`, the role `MINTER_ROLE` has authority over the following functions: - setMaxHouseSupply - safeMint - setHousePrice Any compromise to the `MINTER_ROLE` account may allow the hacker to take advantage of this authority.

MediumPossible to mint if `_maxBoxSupply[boxRarity].maxFixed

A user is able to mint DGN NFT if the mapping `mapping(uint8 => boxSupply) private _maxBoxSupply` for certain box is not set using `setMaxBoxSupply`, as function `validateBoxSupply` does not check anything if `_maxBoxSupply[boxRarity].maxSupply ==0`.

MediumPotential Reentrancy AttackFixed

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. The ERC721 _safeMint() functions have an external call _checkOnERC721Received() to the recipient, which might cause potential reentrancy.

MediumUsing `msg.value` Inside a LoopFixed

`msg.value` is used inside a for loop. The incoming payment may be processed multiple times unexpectedly. Currently, houses are at different prices, so this would not be a big issue. However, function `setHousePrice` is added to change the house price, making it possible to let multiple houses have the same price. In this case, the user is able to buy multiple houses by paying once.

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/SquareToken.sol
  • contracts/BUSD.sol
  • contracts/DigCryptoICO.sol
  • contracts/PancakeSwapRouterMock.sol
  • contracts/DigCryptoHouse.sol
  • contracts/DigCryptoVIP.sol
  • contracts/DigCrypto.sol
  • contracts/DigCryptoNFT.sol

Part of Digcrypto’s security record

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