# Deprecated Magpie Contracts

The magpie contracts consists of:

1. **MagpieAggregator Diamond Proxy**: This contract serves as the core module overseeing crucial functions like  "swapIn," and "swapOut," pivotal for users conducting cross-chain asset transfers. These essential operations empower users to effortlessly navigate and initiate transfers within the Magpie Protocol ecosystem.
2. **MagpieRouterV2:** This smart contract is designed for executing token swaps on the Ethereum blockchain, with features for handling various swap strategies, ensuring transaction deadlines, and integrating with multiple DeFi protocols.
3. **MagpieCelerBridge**: Designed to seamlessly integrate with the Celer Bridge, this contract plays a crucial role in receiving funds and subsequently transferring them to the Magpie Aggregator. Its primary function is to act as a bridge between the Celer Bridge and the MagpieAggregator, facilitating the smooth flow of funds.
4. **MagpieStargateBridge**: Designed to seamlessly integrate with the Stargate Bridge, this contract plays a crucial role in receiving funds and subsequently transferring them to the Magpie Aggregator. Its primary function is to act as a bridge between the Celer Bridge and the MagpieAggregator, facilitating the smooth flow of funds.
5. **MagpieStargateBridgeV2**: Similar functionality like MagpieStargateBridge. This contract was created because Stargate released a new version of their bridge.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fly.trade/developers/deprecated-magpie-contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
