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 Feb 18, 2024. It is now read-only.
sherlock-admin opened this issue
Aug 15, 2023
· 1 comment
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
2 comment(s) were left on this issue during the judging contest.
141345 commented:
d
darkart commented:
Valid point but horrible report
sherlock-admin2
changed the title
Happy Mocha Worm - Protocol's fee is claimed by the factory, but there is no way to move tokens out.
WATCHPUG - Protocol's fee is claimed by the factory, but there is no way to move tokens out.
Aug 23, 2023
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` labelHighA valid High severity issueRewardA payout will be made for this issue
WATCHPUG
high
Protocol's fee is claimed by the factory, but there is no way to move tokens out.
Summary
Vulnerability Detail
MarketFactory
will claim the fees belongs to it but there is no way to move these funds out.OracleFactory
may have a similar issue. There should be a way to withdraw the surplus Oracle fee.Impact
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial/contracts/MarketFactory.sol#L85-L90
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial/contracts/Market.sol#L128-L151
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial-oracle/contracts/OracleFactory.sol#L109-L114
Tool used
Manual Review
Recommendation
Duplicate of #52
The text was updated successfully, but these errors were encountered: