The CollateralDeposited event only logs the user address and amount, but omits the critical token_collateral_address:
Usage at line 226:
Compare with the CollateralRedeemed event, which correctly includes the token address:
Likelihood: High -- Every collateral deposit emits this incomplete event.
Impact: Low -- Off-chain monitoring systems (indexers, dashboards, analytics) cannot distinguish between WETH and WBTC deposits from events alone. This affects:
Protocol health dashboards that track collateral composition
Risk monitoring systems that need to know per-token deposit amounts
Incident response during security events (cannot quickly determine which token was deposited)
How the issue manifests:
User A deposits 1 WETH ($2,000) -- event logs CollateralDeposited(user=A, amount=1e18)
User B deposits 1e8 WBTC ($60,000) -- event logs CollateralDeposited(user=B, amount=1e8)
An off-chain indexer sees both events but cannot determine which is WETH vs WBTC
Expected outcome: Monitoring tools cannot accurately track per-token collateral flows.
Add token field to the CollateralDeposited event to match the pattern used by CollateralRedeemed:
Update the log statement:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.