> For the complete documentation index, see [llms.txt](https://fantasm-finance.gitbook.io/fantasm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fantasm-finance.gitbook.io/fantasm/mechanisms/flash-loan-protection.md).

# Flash Loan Protection

Fantastic Protocol is secure again flashloan types of attacks due to a simple yet absolutely effective **2-step minting and redemption mechanism**. When a user wants to mint or redeem a Synthetic Token, 2 transactions (2 steps) need to be performed:\
\
**2-step Minting**\
Minting Step 1 (tx#1): Mint Synthetic tokens\
Minting Step 2 (tx#2): Collect (claim) Synthetic tokens minted in Step 1

**2-step Redemption**\
Redemption Step 1 (tx#1): Redeem Synthetic tokens\
Redemption Step 2 (tx#2): Collect (claim) L1 (e.g. FTM) and Protocol utility (e.g. FXM) tokens
