The getExchangeRate
function in the contract uses a hardcoded exchange rate instead of dynamically fetching the rate from a reliable on-chain oracle. This introduces a significant risk as the exchange rate may become outdated or inaccurate over time, leading to incorrect asset valuations and potential exploitation.
The function returns a static value that does not account for market fluctuations, liquidity changes, or external pricing sources. This can lead to:
Overvaluation or undervaluation of assets.
Arbitrage exploits where users swap assets at outdated rates.
Economic instability in the protocol.
Market Rate Divergence: The actual market rate for the token changes to 800 units per token.
Exploitation: Attackers use the outdated hardcoded rate (1000) to exchange tokens at an inflated value.
Financial Loss: The protocol suffers losses as attackers gain a better deal than the actual market rate.
Incorrect asset valuation, leading to financial losses for users and the protocol.
Exploitable arbitrage opportunities, where attackers profit from outdated rates.
Loss of protocol credibility, as inaccurate pricing affects user trust and adoption.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
View preliminary resultsAppeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.