Reward tokens could be locked in `VotingPool` contract
When SPTKN is configured as a stakeable token in VotingPool, staking and unstaking transfers SPTKN to and from the contract, which causes reward tokens to be sent to the contract as well. Because no mechanism handles those reward tokens, they become locked in the contract.
Source: https://github.com/sherlock-audit/2025-01-peapods-finance-judging/issues/180
Found by
ZoA
Summary
Using VotingPool, users can stake tokens from the token list set by the owner to earn rewards.
The owner sets the stakeable token and also IStakingConversionFactor, which defines the getConversionFactor function related to the token.
Looking at the current protocol implementation, ConversionFactorPTKN and ConversionFactorSPTKN exist together with VotingPool.
This means that PTKN or SPTKN are possible as tokens designated by the owner.
When users stake using SPTKN, the VotingPool contract receives reward tokens while transferring SPTKN.
As a result, some reward tokens will be locked in VotingPool contract because of the lack of mechanism handling reward tokens..
Root Cause
ConversionFactorPTKN and ConversionFactorSPTKN exist together with VotingPool. This means that SPTKN is possible as stakable token.
While staking and unstaking, SPTKN is transferred from and to VotingPool contract. This means that some reward tokens are distributed to VotingPool contract.
But there is no mechanism of handling reward tokens.
Internal Pre-conditions
SPTKN is set as stakable token.
External Pre-conditions
No response
Attack Path
No response
Impact
Reward tokens could be locked in VotingPool contract.
PoC
No response
Mitigation
Introduce mechanism of handling reward tokens.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the pool was not designed to handle a stakeable token that itself accrues rewards, so reward tokens sent to the contract have no withdrawal path.
What the attacker needed
SPTKN set as a stakeable token
The fix
A mechanism for handling reward tokens held by the contract should be introduced.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A staking pool lets people deposit a token and earn rewards. Here the deposited token is itself a reward-earning token, so when it sits in the pool contract it keeps generating rewards that nobody can collect. Those rewards are effectively stuck in the contract forever.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.