High
High
Treasury.sol
is supposed to have functionality to allocate funds to participants by the allocator, It supposed to be "allocation without transfer". However, There is no actual function so that the recipients can withdraw the allocation, by that it will be worthless to allocate to recipients
And other function withdraw()
is used by the Manager_role
to withdraw, things
It does not have any considerations for already allocated funds to other users, which can cause difference in accounting
Example =>
Before Admin Withdrawal=> 1000e18
allocated to different users => 700e18
Admin withdraw => 900e18
balance after withdrawal=> 100e18
The allocated funds mapping would still have 700e18
but the real balance would be 100e18, resulting in incorrect accounting.
Adding a function to withdraw the allocation to the recipient, also consider adding a check in withdraw()
for total user Allocations .
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.