The chop function is designed to convert an unripe token to its underlying ripe token. The conversion rate is dynamic, depending on the total supply of the unripe token at the time of the transaction.
The function is susceptible to front-running because the transaction can be seen in the mempool before being mined. An attacker could execute a transaction that modifies the total supply of the unripe token, thus affecting the conversion rate for the pending chop transaction.
Users will receive a different amount of underlying tokens than expected if an attacker successfully front-runs the transaction.
manual review
Implement a time-weighted average price (TWAP) oracle to determine conversion rates.
Use commit-reveal schemes to obscure transaction details.
Consider using gas price limits to prevent front-running by prioritizing transactions with lower gas prices.
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.