Toyow ERC

Toyow ERC Security Assessment Report

Share
Share

QuillAudits ran a security assessment of Toyow ERC between Dec 8, 2023 and Jan 8, 2024. The assessment found 15 issues: 3 high, 4 low, 8 informational, of which 3 resolved and 12 acknowledged.

Project Description

Toyow ERC1155 is a contract designed for users to mint, list and purchase tokens for tokenID 1. The Toyow contract in herits the following contracts from the standard Openzep pelin library; ERC1155, Ownable, Pausable, ERC1155Supply, ReentrancyGuard, and IERC1155Receiver. These libraries and extensions helped in identifying privileged functions for the platform owner, track the total supply of tokenID, prevent reentrancy attacks and build the compatibility feature for the contract to receive ERC1155 tokens. Toyow ERC721 is built in the similar fashion to mint, list and purchase tokens. There is a maximum quantity of 27 tokens which could be increased in the future. These 27 tokens when f irst listed, the creators of these tokens receive a native token when purchased. Afterwards, these tokens can only be listed in USD.

Timeline

S1
Dec 8, 2023
S2
Jan 8, 2024

Scope of Audit

The scope of this audit was to analyze the Toyow codebase for quality, security, and correctness.

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

High

Medium

Low

Informational

open0000
acknowledged2046
partially resolved0000
resolved1002

High Severity Issues

Native token will be locked forever in contract

Resolved
arrow-right
Description

In toyow1155 contract, when user mints tokens with mint function, the matic token which is native token of polygon chain is transferred to the contract. But when the admin/owner of the protocol goes to withdraw the amount, there is no function which lets him do it. Which will result in permanently locking of the tokens in the contract

Contract

toyow1155.sol

Recommendation

To resolve the issue add withdrawal function for withdrawing native matic token.

Attacker can steal primary fees of the creator

Acknowledged
arrow-right
Description

In contract 721, when the nfts are minted their creators are set using a mapping for the primary sales. As setCreator() is set as a public function an attacker can come and update the value to make it his address. So when nft is bought by any other user the calculated creator fees/royalty is sent to the attacker’s address making loss of the user/creator

Contract

721.sol

Recommendation

To resolve the issue you can check that:
1) the creator is the one updating the address who owns that nft or
2) make this function private so it is only called once after successful mint.

Attacker can buy nfts at lower prices by calling editListing()

Acknowledged
arrow-right
Description

In contract 721, after the user lists nft for sale, an attacker can come and call the function editListing() and change the price to any lower amount and buy it simultaneously. The reason this issue occurs is that the editListing() function takes _userAddress as a parameter which is then checked with the seller address in the require statement bypassing the check.

Contract

721.sol

Recommendation

To resolve the issue the _userAddress can be removed and seller address can be checked with
msg.sender.

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Toyow ERC

Toyow ERC

High 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

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