You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
sherlock-admin opened this issue
Jul 3, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Position can fall below minimum acceptable quote value after partial closing
Summary
The remaining quote value is not checked when a partial cancellation of a position in the CANCEL_CLOSE_PENDING status is requested, which might lead to a situation where the remaining quote value is too low.
Vulnerability Detail
The protocol has a minimum acceptable quote value that tries to prevent the existence of quotes or positions with a value that is too small, which might descent into situations where there is no economic incentive to act on the position.
When creating a new quote, opening a position, requesting to close a position or closing a position, it is checked that the remaining quote value is not too low. However, when a partial cancellation of a position in the CANCEL_CLOSE_PENDING status is requested, the remaining quote value is not checked, which might lead to a situation where the remaining quote value is too low.
Impact
The remaining quote value might be too low, which might lead to a situation where there is no economic incentive to act on the position, creating a loss of funds for the user.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
shaka
medium
Position can fall below minimum acceptable quote value after partial closing
Summary
The remaining quote value is not checked when a partial cancellation of a position in the
CANCEL_CLOSE_PENDING
status is requested, which might lead to a situation where the remaining quote value is too low.Vulnerability Detail
The protocol has a minimum acceptable quote value that tries to prevent the existence of quotes or positions with a value that is too small, which might descent into situations where there is no economic incentive to act on the position.
When creating a new quote, opening a position, requesting to close a position or closing a position, it is checked that the remaining quote value is not too low. However, when a partial cancellation of a position in the
CANCEL_CLOSE_PENDING
status is requested, the remaining quote value is not checked, which might lead to a situation where the remaining quote value is too low.Impact
The remaining quote value might be too low, which might lead to a situation where there is no economic incentive to act on the position, creating a loss of funds for the user.
Code Snippet
https://github.com/sherlock-audit/2023-06-symmetrical/blob/main/symmio-core/contracts/libraries/LibQuote.sol#L195-L207
Tool used
Manual Review
Recommendation
Duplicate of #248
The text was updated successfully, but these errors were encountered: