The ChainlinkOracle contract's lack of circuit breaker protection fundamentally undermines QuantAMM's TFMM mechanism. The _getData() function processes all price updates without circuit breaker controls, leaving the automated portfolio management system exposed during extreme market conditions.
In QuantAMM's context, this vulnerability becomes particularly dangerous because the TFMM system continuously executes weight adjustments based on price inputs. When extreme market movements occur, the absence of circuit breakers allows the temporal function to continue adjusting weights without restriction, potentially causing a cascade of harmful portfolio rebalancing actions. The automated nature of TFMM means that these adjustments happen deterministically, regardless of market stress conditions.
The composite pool structure amplifies this risk, as extreme price movements in one pool can trigger automated rebalancing across multiple interconnected strategies. BTF operations become especially vulnerable as rapid portfolio adjustments could lead to significant value destruction through forced rebalancing at unfavorable prices. The temporal function's continuous operation without circuit breaker protection means that strategy drift could accelerate during market stress, leading to systemic portfolio misalignment.
Implement a comprehensive circuit breaker mechanism:
The circuit breaker protection prevents catastrophic cascades while allowing for orderly market recovery during extreme conditions. Parameters should be carefully calibrated based on asset volatility and market depth.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.