Hunt prep
Before you test GoGoPool contest
What 28 disclosed reports say about GoGoPool contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 18 | 0 | – | – | $0 |
| Smart contracts lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Node operator is getting slashed for full duration even though rewards are distributed based on a 14 day cycle
The fix was to base the slash on the validation period (14 days) rather than the full duration.
Disclosed
-
Inflation of ggAVAX share price by first depositor
The vault should be initialized with an initial deposit to make price inflation harder and prevent front-running.
Disclosed
-
RewardsPool.sol : It is safe to have the startRewardsCycle with WhenNotPaused modifier
The function should be fixed by adding the WhenNotPaused modifier, and the project later mitigated it by pausing startRewardsCycle when the protocol is paused.
Disclosed
-
Coding logic of the contract upgrading renders upgrading contracts impractical
The upgrade function was fixed to work when a contract keeps the same name, by unregistering the old contract before registering the new one.
Disclosed
-
requireNextActiveMultisig will always return the first enabled multisig which increases the probability of stuck minipools
The reporter recommended rotating between enabled multisigs, for example with a round-robin pointer; the team acknowledged the point but said they would not fix it in the first iteration because they expect only one active multisig.
Disclosed
-
Inflation rate can be reduced by half at most if it gets called every 1.99 interval
The start time should be increased by the interval length multiplied by the number of intervals elapsed, not set to the current timestamp.
Disclosed
-
State Transition: Minipools can be created using other operator’s AVAX deposit via recreateMinipool
The mitigation made the recreate operation atomic so a node operator cannot withdraw funds in between.
Disclosed
-
MultisigManager may not be able to add a valid Multisig
The contract should be fixed by adding a method to replace an old multisig with a new one, or by counting only enabled multisigs toward the limit.
Disclosed
-
Slashing fails when node operator doesn’t have enough staked GGP
If the amount to be slashed is greater than what the node operator has staked, slash all their stake.
Disclosed
-
TokenggAVAX: maxDeposit and maxMint return wrong value when contract is paused
The maxDeposit and maxMint functions should be overridden to return 0 when the contract is paused, and this was later mitigated.
Disclosed
-
Division by zero error can block RewardsPool#startRewardCycle if all multisig wallet are disabled
The project mitigated the issue by preventing the division by zero error from blocking startRewardCycle().
Disclosed
-
Inaccurate estimation of validation rewards from function ExpectedRewardAVA in MiniPoolManager.sol
The project should update the reward estimation function to match Avalanche's actual reward calculation.
Disclosed
-
Recreated pools receive a wrong AVAX amount due to miscalculated compounded liquid staker amount
The fix was to use the liquid staker AVAX amount instead of the node operator amount for both, ensuring a 1:1 match and avoiding the need for extra funds.
Disclosed
-
Any duration can be passed by node operator
The duration passed by the node operator was fixed by adding bounds so it must fall between 14 and 365 days.
Disclosed
-
maxWithdraw() and maxRedeem() doesn’t return correct value which can make other contracts fail while working with protocol
The maxWithdraw() and maxRedeem() functions should consider totalReleaseAssets when calculating the maximum withdrawal amount.
Disclosed