Skip to content

Restrict pledge NFT burn function to only treasuries#38

Open
adnanhq wants to merge 2 commits intooz-audit-fixesfrom
oz-fix-issue-12
Open

Restrict pledge NFT burn function to only treasuries#38
adnanhq wants to merge 2 commits intooz-audit-fixesfrom
oz-fix-issue-12

Conversation

@adnanhq
Copy link
Contributor

@adnanhq adnanhq commented Mar 4, 2026

Changes

  • Replace MINTER_ROLE with TREASURY_ROLE in PledgeNFT.sol so mint and burn are restricted to treasuries.
  • Add onlyRole(TREASURY_ROLE) to burn in PledgeNFT.sol so only treasuries can burn pledge NFTs; backers can no longer burn directly.
  • Add onlyRole(TREASURY_ROLE) to mintNFTForPledge in PledgeNFT.sol (replacing the previous minter role).
  • Grant TREASURY_ROLE in _setPlatformInfo in CampaignInfo.sol when a platform treasury is deployed.
  • Update ICampaignInfo NatSpec to document that mint and burn require TREASURY_ROLE.

@adnanhq adnanhq self-assigned this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant