The current implementation of allocateFunds() and the _allocations mapping in Treasury.sol have a significant limitation in their design.
The allocations mapping only tracks numeric amounts without specifying which token they correspond to. This is problematic because:
The Treasury can hold multiple types of tokens (it accepts any ERC20 token in its deposit() function)
There's no way to associate an allocation with a specific token
This could lead to confusion or inconsistencies when managing allocations for different tokens
Change the mapping to:
and add a parameter tokenAddress to allocateFunds().
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.