> ## Documentation Index
> Fetch the complete documentation index at: https://berachain-422fce37-codex-update-mintlify-mcp-description.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployed Contracts

> Registry of deployed BEX contract addresses by network.

<Warning>
  On January 21st, 2025, Balancer disclosed a long-standing vulnerability in their V2 Vault implementation. BEX incorporates contract logic from Balancer V2 and shares the same vulnerability. Exercise additional caution when creating new pools, particularly when including **untrusted or newly-created tokens**.

  **Funds currently deposited in BEX are safe, and no action from LPs is needed.** The issue only potentially affects tokens that are not live on-chain today. Frontend warnings are displayed on BEX for potentially vulnerable tokens.

  Future plans include integrating the Balancer V3 codebase, which mitigates this vulnerability and is cross-compatible with current BEX pools.

  For more information, see the [Balancer disclosure](https://forum.balancer.fi/t/balancer-v2-token-frontrun-vulnerability-disclosure/6309).
</Warning>

The following is a list of contract addresses for interacting with Berachain BEX.

## Mainnet contracts

<CardGroup cols={2}>
  <Card title="Vault">
    ```text theme={null}
    0x4Be03f781C497A489E3cB0287833452cA9B9E80B
    ```

    [Berascan](https://berascan.com/address/0x4Be03f781C497A489E3cB0287833452cA9B9E80B)
  </Card>

  <Card title="ProtocolFeesCollector">
    ```text theme={null}
    0xB8Cf46Cf1b1476E707619913a70B2085d26f1707
    ```

    [Berascan](https://berascan.com/address/0xB8Cf46Cf1b1476E707619913a70B2085d26f1707)
  </Card>

  <Card title="BalancerHelpers">
    ```text theme={null}
    0x5083737EC75a728c265BE578C9d0d5333a2c5951
    ```

    [Berascan](https://berascan.com/address/0x5083737EC75a728c265BE578C9d0d5333a2c5951)
  </Card>

  <Card title="PoolCreationHelper">
    ```text theme={null}
    0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2
    ```

    [Berascan](https://berascan.com/address/0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2)
  </Card>

  <Card title="ProtocolFeesWithdrawer">
    ```text theme={null}
    0x1635F0E1B3e8A6713d03aE155ba79458Ba3240C7
    ```

    [Berascan](https://berascan.com/address/0x1635F0E1B3e8A6713d03aE155ba79458Ba3240C7)
  </Card>

  <Card title="ComposableStablePoolFactory">
    ```text theme={null}
    0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1
    ```

    [Berascan](https://berascan.com/address/0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1)
  </Card>

  <Card title="BatchRelayerLibrary">
    ```text theme={null}
    0xCB4AE3030bA06F7EEE54A7B96AfcA7457f9525cf
    ```

    [Berascan](https://berascan.com/address/0xCB4AE3030bA06F7EEE54A7B96AfcA7457f9525cf)
  </Card>

  <Card title="BatchRelayerQueryLibrary">
    ```text theme={null}
    0x4151083172b2CEFB83A33fD7FC9F6cBabb3Fd08d
    ```

    [Berascan](https://berascan.com/address/0x4151083172b2CEFB83A33fD7FC9F6cBabb3Fd08d)
  </Card>

  <Card title="BalancerRelayer">
    ```text theme={null}
    0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7
    ```

    [Berascan](https://berascan.com/address/0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7)
  </Card>

  <Card title="WeightedPoolFactory">
    ```text theme={null}
    0xa966fA8F2d5B087FFFA499C0C1240589371Af409
    ```

    [Berascan](https://berascan.com/address/0xa966fA8F2d5B087FFFA499C0C1240589371Af409)
  </Card>

  <Card title="ProtocolFeePercentagesProvider">
    ```text theme={null}
    0x33C88ffdEe710ed3908C791137Bd1D4421AabBBf
    ```

    [Berascan](https://berascan.com/address/0x33C88ffdEe710ed3908C791137Bd1D4421AabBBf)
  </Card>

  <Card title="BalancerQueries">
    ```text theme={null}
    0x3C612e132624f4Bd500eE1495F54565F0bcc9b59
    ```

    [Berascan](https://berascan.com/address/0x3C612e132624f4Bd500eE1495F54565F0bcc9b59)
  </Card>
</CardGroup>

## Bepolia testnet contracts

<CardGroup cols={2}>
  <Card title="Vault">
    ```text theme={null}
    0x708cA656b68A6b7384a488A36aD33505a77241FE
    ```

    [Berascan](https://testnet.berascan.com/address/0x708cA656b68A6b7384a488A36aD33505a77241FE)
  </Card>

  <Card title="ProtocolFeesCollector">
    ```text theme={null}
    0x05A607aCf3548E84DD1E44c3706F850c849058Da
    ```

    [Berascan](https://testnet.berascan.com/address/0x05A607aCf3548E84DD1E44c3706F850c849058Da)
  </Card>

  <Card title="BalancerHelpers">
    ```text theme={null}
    0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f
    ```

    [Berascan](https://testnet.berascan.com/address/0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f)
  </Card>

  <Card title="PoolCreationHelper">
    ```text theme={null}
    0x0dC9964F6CA33d9EF38DEB4925234766127C6B36
    ```

    [Berascan](https://testnet.berascan.com/address/0x0dC9964F6CA33d9EF38DEB4925234766127C6B36)
  </Card>

  <Card title="ProtocolFeesWithdrawer">
    ```text theme={null}
    0x8c2D77f0CfcD4Af9cF41494EfE500FE324012c06
    ```

    [Berascan](https://testnet.berascan.com/address/0x8c2D77f0CfcD4Af9cF41494EfE500FE324012c06)
  </Card>

  <Card title="ComposableStablePoolFactory">
    ```text theme={null}
    0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1
    ```

    [Berascan](https://testnet.berascan.com/address/0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1)
  </Card>

  <Card title="BatchRelayerLibrary">
    ```text theme={null}
    0xfD772657FC8c4Ed3884AfF151b680883814052FA
    ```

    [Berascan](https://testnet.berascan.com/address/0xfD772657FC8c4Ed3884AfF151b680883814052FA)
  </Card>

  <Card title="BatchRelayerQueryLibrary">
    ```text theme={null}
    0x263a1C5B2c5851beA2177eb8D6caefdfF2A25601
    ```

    [Berascan](https://testnet.berascan.com/address/0x263a1C5B2c5851beA2177eb8D6caefdfF2A25601)
  </Card>

  <Card title="BalancerRelayer">
    ```text theme={null}
    0x343215E156Ff586711a5B8C49Fe3099BAF22624C
    ```

    [Berascan](https://testnet.berascan.com/address/0x343215E156Ff586711a5B8C49Fe3099BAF22624C)
  </Card>

  <Card title="WeightedPoolFactory">
    ```text theme={null}
    0xf1d23276C7b271B2aC595C78977b2312E9954D57
    ```

    [Berascan](https://testnet.berascan.com/address/0xf1d23276C7b271B2aC595C78977b2312E9954D57)
  </Card>

  <Card title="ProtocolFeePercentagesProvider">
    ```text theme={null}
    0x8119E412E00fe3c857739E95dB147817Bf615dB8
    ```

    [Berascan](https://testnet.berascan.com/address/0x8119E412E00fe3c857739E95dB147817Bf615dB8)
  </Card>

  <Card title="BalancerQueries">
    ```text theme={null}
    0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92
    ```

    [Berascan](https://testnet.berascan.com/address/0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92)
  </Card>
</CardGroup>
