GGP will keep inflating while the protocol is paused #745
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-823
fix security (sponsor)
Security related fix, should be fixed prior to launch
satisfactory
satisfies C4 submission criteria; eligible for awards
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/Ocyticus.sol#L37
Vulnerability details
Impact
Ocyticus.pauseEverything()
is called when the defender wants to pause the whole protocol. However, it doesn’t pauseRewardPool
. So GGP will keep inflating while the protocol is paused. This is unfair since no one can create mini pool to share the inflated GGP when the protocol is paused.Proof of Concept
Ocyticus.pauseEverything()
doesn’t pauseRewardPool
https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/Ocyticus.sol#L37
But GGP will keep inflating while the protocol is paused.
Tools Used
Manual Review
Recommended Mitigation Steps
Ocyticus.pauseEverything()
should also pauseRewardPool
The text was updated successfully, but these errors were encountered: