Broker Account Token Reception Issues
/// @param account The address receiving the broker's fee.
/// @param fee The broker's percentage fee charged from the deposit amount, denoted as a fixed-point percentage where
/// 1e18 is 100%.
struct Broker {
address account;
UD60x18 fee;
}
The code assumes the broker.account can always receive tokens, but there are several scenarios where this might fail.
If broker.account is a smart contract, it might not implement logic to handle incoming tokens. The contract might lack a token reception interface. Some contracts might actively reject token transfers. Some could have blacklist mechanisms or Might be temporarily paused. The contract does not check for any of these. It only checks if the broker is a zero address.
Tokens could become permanently stuck or waste of gas due to reverts
Manual Review
Always validate broker accounts before attempting transfers. Consider implementing a broker whitelist
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.