The RAACNFT
contract has an issue in its mint
function where users pay with an ERC20 token, but there is no mechanism to withdraw these tokens from the contract. As a result, the tokens remain locked indefinitely.
In the mint
function, users pay for an NFT using an ERC20 token:
The issue arises because the contract never provides a way to withdraw the received ERC20 tokens. This leads to a situation where the contract accumulates tokens that are inaccessible.
The contract becomes a sink for ERC20 tokens, making them permanently inaccessible.
The loss funds collected from NFT sales.
Manual code review
To prevent funds from being permanently locked, implement a withdraw
mechnism that allows token withdrawal from the contract
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.