Normal behavior: Deposit and redeem events should allow off‑chain indexers and analytics systems to reconstruct each user’s collateral position per token over time using event logs alone.
Issue: The CollateralDeposited event omits the token address, so downstream consumers cannot determine which collateral asset was deposited, breaking accounting for multi‑collateral setups.
Likelihood:
Reason 1 // Off‑chain infrastructure such as dashboards, alerting systems, and accounting tools commonly rely on events instead of reading full on‑chain state.
Reason 2 // The protocol already supports multiple collateral types, making token identification via events essential rather than optional.
Impact:
Impact 1 // Indexers cannot reconstruct accurate collateral balances per token, leading to incorrect health factor displays and risk metrics in external tools.
Impact 2 // Operators and users lose observability into which assets back the system, reducing transparency and complicating incident response or forensic analysis.
When two different collateral tokens are supported, deposits appear indistinguishable in logs:
Protocol supports both WETH and WBTC as collateral.
User A deposits 1 WETH; User B deposits 1 WBTC.
Off‑chain indexer consumes CollateralDeposited(user, amount) events without a token field.
Both deposits appear as amount = 1e18 from different users but cannot be mapped to WETH vs WBTC, making any per‑asset breakdown impossible.
Extend the CollateralDeposited event to include the collateral token address and update emit sites accordingly.
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.