Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

Adding reentrancy protection

Summary

Importing ReentrancyGuard contract to secure functions

Vulnerability Details

We need to import the OpenZeppelin ReentrancyGuard contract into TokenDivider.sol to be able to put a nonReentrant modifier on functions

Impact

Potential for Reentrancy attacks

Tools Used

GitHub Copilot

Recommendations

Importing the contract with

import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

And adding a nonReentrant modifier to functions like claimNft, divideNft, transferErcTokens, etc.

Updates

Lead Judging Commences

fishy Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.