Feature of some protocols whereby a contract sends tokens before the user pays for them with assets on the other side of the pair. A flash swap allows for near-instantaneous arbitrage. Whereas a must be repaid with the same asset, a flash swap allows the flexibility of repaying with a different asset. A key feature is that all trades occur within a single transaction.