sherlock-audit / 2024-07-sense-points-marketplace-judging

2 stars 0 forks source link

Cool Cream Rhino - Lack Of Total pTokens Minted Tracked #204

Closed sherlock-admin4 closed 2 weeks ago

sherlock-admin4 commented 2 weeks ago

Cool Cream Rhino

Low/Info

Lack Of Total pTokens Minted Tracked

Summary

In the claimPTokens function of the PointTokenVault.sol contract on Line:142-162, there is currently no mechanism to track the total number of pTokens minted for each pointsId. https://github.com/sherlock-audit/2024-07-sense-points-marketplace/blob/main/point-tokenization-vault/contracts/PointTokenVault.sol?plain=1#L142-L162

Root Cause

Current Mechanism:

Attack Path

Attack Path:

Impact

Potential Issues:

Mitigation

Mitigations:

Total Supply Tracking: Implement a mechanism to track the total number of pTokens minted for each pointsId. This can be achieved by incorporating a counter that increments with each mint operation.