Treasury allows deposits of tokens that later can be withdrawn by a manager.
When _processDistributions()
function of the feeCollector is invoked, it transfers fees belonging to the treasury via a simple safeTransfer()
.
This is problematic since as we've already seen for a manager to be able to withdraw funds, _balances
mapping of the treasury should've been incremented. As a result, tokens that are transferred via simple safeTransfer
will be locked in the treasury without a way to withdraw them.
Funds are stuck in the treasury without a way to withdraw them.
Instead of doing simple transfer, use deposit()
function of the treasury.
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.