Potential System Instability When PriorityPool is a Fee Receiver in StakingPool
In the StakingPool contract's _updateStrategyRewards
function, when receivers[i][j]
corresponds to the PriorityPool
address, it can lead to unexpected behavior and potential system instability. This occurs because the transferAndCallFrom
function triggers the onTokenTransfer
function in PriorityPool
, which in turn may call WithdrawalPool.queueWithdrawal
, creating a complex chain of interactions between contracts.
This issue could lead to:
Unexpected state changes across multiple contracts.
Potential reentrancy vulnerabilities.
vscode
Limit fees.receiver
to PriorityPool
address
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.