Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nikhilx0111 - no error handling while pushing fees #76

Open
sherlock-admin2 opened this issue Sep 13, 2024 · 0 comments
Open

nikhilx0111 - no error handling while pushing fees #76

sherlock-admin2 opened this issue Sep 13, 2024 · 0 comments

Comments

@sherlock-admin2
Copy link

sherlock-admin2 commented Sep 13, 2024

nikhilx0111

Medium

no error handling while pushing fees

Summary

in market.sol while sending any protocol, oracle, risk, donation, and claimable fee there's no error handling incase of a failed transaction the function will return the fee as claimed leading to loss of fee for the fees claimer

Root Cause

https://github.com/sherlock-audit/2024-08-perennial-v2-update-3/blob/main/perennial-v2/packages/perennial/contracts/Market.sol#L322

https://github.com/sherlock-audit/2024-08-perennial-v2-update-3/blob/main/perennial-v2/packages/perennial/contracts/Market.sol#L323

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

loss of accued fee for users

PoC

No response

Mitigation

revert if the fee transfer fails

@sherlock-admin3 sherlock-admin3 changed the title Brave Crimson Yak - no error handling while pushing fees nikhilx0111 - no error handling while pushing fees Sep 23, 2024
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

No branches or pull requests

1 participant