Attacker can mint long position with dust amount to make a loss to protocol #581
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-313
grade-b
Q-01
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_352_group
AI based duplicate group recommendation
Lines of code
https://github.com/code-423n4/2024-04-panoptic/blob/main/contracts/PanopticPool.sol#L547-#L561
https://github.com/code-423n4/2024-04-panoptic/blob/main/contracts/SemiFungiblePositionManager.sol#L688
Vulnerability details
Vulnerability details
In current design of protocol, it only restrict user from minting position with position size = 0:
Attacker can conduct a griefing attack by continuously minting long position with dust amount, which lead to bad debt for protocol in worst case
Impact
No incentive for anyone to minting them, which lead to bad debt for protool.
Tools Used
Manual review
Recommended Mitigation Steps
Add minimum positionSize
Assessed type
Context
The text was updated successfully, but these errors were encountered: