Open hats-bug-reporter[bot] opened 1 month ago
Thank you for your report on the potential reentrancy in _mintAndUpdateTotalSupply. After review, we've determined this is not an issue.
While we appreciate the attention to good coding practices, the current implementation does not pose a security risk. Unlike the situation in Issue #8, the total supply is not used as a status gate in our code.
However, we acknowledge your point about following best practices. We'll consider adjusting the order of operations in future updates for improved style, even though it doesn't affect security in this case.
We appreciate your thorough examination of our minting process and your commitment to identifying potential vulnerabilities. Thank you for your valuable contribution to this security review.
Github username: -- Twitter username: -- Submission hash (on-chain): 0xc092c837b465caa7b233ddf4018591b74784268a0b540bfe55bd8cec16c7c7ac Severity: low
Description:
Description
The _mintAndUpdateTotalSupply function in the Circles contract updates the discountedTotalSupplies after minting tokens. This order of operations could potentially lead to a reentrancy vulnerability that affects the total supply calculation, particularly if used in external contracts or third-party integrations.
While this vulnerability doesn't appear to be directly exploitable within the current Circles contract implementation, it could pose risks in future integrations or extensions of the system.
Attack Scenario
Attachments
Revised Code