Decrypt

Decrypt Smart Contract Audit Report

Share
Share
EthereumEthereum
ERC721 ContractERC1155NFTMarketPlace+1
EthereumEthereum
ERC721 ContractERC1155+2

QuillAudits audited the Decrypt smart contracts on Ethereum between Sep 7, 2022 and Dec 8, 2022. The audit found 17 issues: 1 high, 5 medium, 7 low, 4 informational, of which 11 resolved, 5 acknowledged and 1 open.

Project Description

DecryptMarketplace is an NFT marketplace that allows for the trading of ERC721 and ERC1155 tokens. This marketplace features four different tokens; SimpleERC721, ExtendedERC721, SimpleERC1155, and ExtendedERC1155. The differences that exist between the Simple and Extended tokens are the characteristics of a Presale feature present in the Extended tokens. The marketplace utilizes the Openzeppelin UUPSUpgradable.sol, Initializable.sol, OwnableUpgradable.sol for upgradability of DecryptMarketplace and access control features, respectively. It also integrated ERC2981 features to handle the distribution of royalties among involved parties in the marketplace and also EIP712Upgradable for cryptography; used in the recognition of the signatures of sellers and buyers.

Timeline

S1
Sep 7, 2022
S2
Dec 8, 2022

Scope of Audit

The scope of this audit was to analyse DecryptMarketplace.sol, CustomERC721.sol, PreSale721.sol, SimpleERC721.sol, SimpleERC721Deployer.sol, ExtendedERC721.sol, ExtendedERC721Deployer.sol, CustomERC1155.sol, PreSale1155.sol, SimpleERC1155.sol, SimpleERC1155Deployer.sol, ExtendedERC1155.sol, ExtendedERC1155Deployer.sol, CreatorV1, and Royalty

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
95.8%
AUDIT SCORE
icon

High

Medium

Low

Informational

open0010
acknowledged0032
partially resolved0000
resolved1532

High Severity Issues

Reentrancy in prePurchase

Resolved
arrow-right
Description

prePurchase() is getting used to purchase tokens in the presale event. while sending ERC721 or ERC1155, transferTokens() function is getting used first on L485,L514 and then countTokensBought() getting called to update the state of NFT contract which uses tokensBoughtDuringEvent and preSaleEventInfo mappings to check if token is available for buyer. In this case reentrant call can be made via transferTokens() which uses lazyMint() and/ or safeTransferFrom() to send the NFT to to msg.sender address.

Contract

DecryptMarketplace.sol

Recommendation

Follow Checks Effects Interaction pattern, Call countTokensBought() before sending tokens using transferTokens() on L485 and L514.

Medium Severity Issues

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Decrypt

Decrypt

High Severity Issues
Medium Severity Issues
Low Severity Issues
Informational Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC