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

# FXMetaPool

{% hint style="info" %}
:link: Preview Link <https://dev-app-xave--pr163-balancer-demo-3-r6vnwazl.web.app/#/pool>
{% endhint %}

### **How to test:**

⚠️ *Please contact any of our team members so we can send test tokens to your addresses*

#### Polygon Mainnet fork / Buildbear

⚠️ *The RPC URL is updated regularly. Please always check for the updated RPC URL on this page when testing in Polygon Mainnet Fork.*

🦊 Add this RPC your Metamask: \
RPC URL: <https://rpc.buildbear.io/olympic-kit-fisto-40004d73>\
Chain Id: 137 \
Explorer URL: <https://explorer.buildbear.io/xclabs/transactions>\
Faucet URL: <https://explorer.buildbear.io/olympic-kit-fisto-40004d73/transactions>\
\
Use the faucet to send the tokens needed to your address. Refer to the token addresses below:

```typescript
  USDC: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
  XSGD: '0xDC3326e71D45186F113a2F448984CA0e8D201995',
  DAI: '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063',
  EURS: '0xE111178A87A3BFf0c8d18DECBa5798827539Ae99',
  USDT: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F',
  'bb-a-usd': '0x48e6B98ef6329f8f0A30eBB8c7C960330d648085', // balancer ComposableStablePool
 
```

Once added, follow the steps listed below for Add Liquidity and Swap, but connect to the Polygon Mainnet Fork network you’ve just added.<br>

**💰 Add/Remove Liquidity**

1. Connect your wallet (Metamask) to Polygon Mainnet fork / Buildbear
2. Go to the /pool page
3. You should be able to see the following pools&#x20;

   <figure><img src="/files/XfoTy0iNCXpcqYznqWqm" alt=""><figcaption></figcaption></figure>
4. Click on the "Manage" button.
5. To add liquidity click the "Add Liquidity" tab.&#x20;
6. To remove liquidity, click the "Remove Liquidity" tab

**💱 Swap**

1. Connect your wallet (Metamask) to Polygon Mainnet fork / Buildbear
2. Go to the /pool page
3. Make sure “AmmV2” is selected
4. Try to swap any of the available tokens<br>

{% hint style="info" %}
:construction: Coming Soon - Sepolia Deployment
{% endhint %}

<details>

<summary>Contract Addresses used in Polygon Mainnet Fork</summary>

```json
// Contract Addresses Used:

oracles: {
     USDC: '0xfE4A8cc5b5B2366C1B58Bea3858e81843581b2F7',
     EURS: '0x73366Fe0AA0Ded304479862808e02506FE556a98',
     XSGD: '0x8CE3cAc0E6635ce04783709ca3CC4F5fc5304299',
     DAI: '0x4746DeC9e833A82EC7C2C1356372CcF2cfcD2F3D',
     USDT: '0x0A6513e40db6EB1b165753AD52E80663aeA50545',
     'bb-a-usd': '0x7111a302b929d14a323b489f234ef912903bf374'
   },

const tokens = {
 USDC: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
 XSGD: '0xDC3326e71D45186F113a2F448984CA0e8D201995',
 DAI: '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063',
 EURS: '0xE111178A87A3BFf0c8d18DECBa5798827539Ae99',
 USDT: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F',
 'bb-a-usd': '0x48e6B98ef6329f8f0A30eBB8c7C960330d648085', // balancer ComposableStablePool
 'bb-a-USDC': '0xF93579002DBE8046c43FEfE86ec78b1112247BB8', // balancer USDC:aUSDC AaveLinearPool
 'bb-a-DAI': '0x178E029173417b1F9C8bC16DCeC6f697bC323746', // balancer DAI:aDAI AaveLinearPool
 'bb-a-USDT': '0xFf4ce5AAAb5a627bf82f4A571AB1cE94Aa365eA6' // balancer USDT:aUSDT AaveLinearPool
}

const fxPools = {
 'LP_XSGD_bb-a-usd': '0x2c7223699099ca6785a9da783ededfca5218bd27',
 'LP_EURS_bb-a-usd': '0x70bbCeB61B5dD6645aABa80693B0078aee18E2e9'
}

const poolIds = {
 'XSGD_bb-a-usd':
   '0x2c7223699099ca6785a9da783ededfca5218bd27000200000000000000000b0d',
 'EURS_bb-a-usd':
   '0x70bbceb61b5dd6645aaba80693b0078aee18e2e9000200000000000000000b0e',
 'bb-a-usd':
   '0x48e6b98ef6329f8f0a30ebb8c7c960330d64808500000000000000000000075b',
 'bb-a-USDC':
   '0xf93579002dbe8046c43fefe86ec78b1112247bb8000000000000000000000759',
 'bb-a-DAI':
   '0x178e029173417b1f9c8bc16dcec6f697bc323746000000000000000000000758',
 'bb-a-USDT':
   '0xff4ce5aaab5a627bf82f4a571ab1ce94aa365ea600000000000000000000075a'
}
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://xave-finance.gitbook.io/general/future/fxmetapool.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
