Tokens not accepted by the token manager contract can be used during the distribution of assets.
As an input parameter, the distributeAssets
function receives ILiquidationPoolManager.Asset[] memory _assets
, which contains information about the token address, token decimals, token symbols and token amount. If the _assets
array contains a token that is not accepted by the tokenManager
contract, an invalid reward will be created, which cannot be claimed afterward.
rewards[abi.encodePacked(_position.holder, asset.token.symbol)] += _portion;
Also, holders will lose their EUROs for bearing the cost.
_position.EUROs -= costInEuros;
An unclaimable reward can be created, and holders will lose their EUROs.
Manual Review
The distributeAssets
function should only accept tokens that are deemed acceptable by the tokenManager contract.
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.