> 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/libraries/libmagpierouterv2.md).

# LibMagpieRouterV2

This library declared struct and a library used by MagpieRouterV2. This structure and library design help organize data and provide access to the app's storage, allowing other parts of the system to fetch essential data or settings as needed.

### CurveSettings:

```solidity
struct AppStorage {
    mapping(uint16 => bytes4) selectors;
}
```

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><pre><code>selectors
</code></pre></td><td><pre><code>mapping(uint16 => bytes4)
</code></pre></td><td>Mapping of command to its corresponding function selector.</td></tr></tbody></table>
