<!-- canonical: https://0xsimao.com/findings/trestle-tax-sells-vulnerable-mev -->

# On tax sells, swaps are vulnerable to MEV

Medium · Three Sigma · Modular blockchain infrastructure · 27th January 2024

Finding 3S-TR-M03 of the Trestle wTIA Bridge security review.

- Report: /reports/trestle-wtia-bridge
- Source: https://github.com/0xsimao/audits/blob/main/Three%20Sigma/2024-01-27-trestle.pdf

---

### Description

Tax sells specify a minimumAmountOut of 0, which is vulnerable to MEV. Keep in mind that
this is usually a design choice of tax tokens to avoid other issues.

### Status

Addressed by disabling taxes.

Disclosed by 0xSimao (https://0xsimao.com/).

---

Related findings:

- [Withdrawals logic allows MEV exploits of TVL changes and zero-slippage zero-fee swaps](https://0xsimao.com/findings/renzo-withdrawals-zero-slippage-fee): Renzo
- [Swapping with deadline as block.timestamp and 0 minimum amount out is vulnerable to MEV](https://0xsimao.com/findings/clip-finance-i-swapping-deadline-timestamp-mev): Clip Finance Strategies
