> For the complete documentation index, see [llms.txt](https://docs.fly.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fly.trade/flycn/developers/deprecated-magpie-contracts/magpieaggregator-diamond-proxy.md).

# MagpieAggregator Diamond Proxy

It is a diamond proxy smart contract that handles the core logic of the magpie cross-chain swap aggregator. It includes functions for updating contract settings, performing token swaps, managing deposits, and ensuring security and access control. The use of the Diamond standard suggests a focus on modularity and upgradeability in the contract's design.
