The setPool
function checks whether the pool balance is greater than or less than the previous balance of the pool and based on it either it creates the pool or updates it.
But if the pool balance will be equal then no transfer will happen and no balance will be updated, and we will unnecessarily emit these events PoolBalanceUpdated
and either PoolCreated
or PoolUpdated
.
We should add the else
condition which reverts when no balance changes.
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.