> For the complete documentation index, see [llms.txt](https://docs.fringe.fi/v2-fringe-finance-platform-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fringe.fi/v2-fringe-finance-platform-docs/plp-liquidation-instructions.md).

# PLP Liquidation Instructions

The following document describes how to undertake liquidations. It also includes links to our template liquidation bot as a starting point to help liquidators build their more sophisticated, custom liquidation engines. &#x20;

{% file src="/files/A2JAb93kzQQGIuW0ChyS" %}

The liquidation query (described in the embedded document - in relation to the liquidation query NPM package <https://www.npmjs.com/package/@fringefinance/primary-scripts>) requires you to define the setup in `.env` files - which declare the relevant Fringe V2 contract addresses and subgraph query endpoints. The setups required for the `.env` file for each chain are listed below \
\
(you'll also find related instructions in the github repo README.md file for the Fringe V2 liquidation bot ==>  : <https://github.com/fringe-finance/liquidation-bot/tree/master>)

Configuration for mainnet ⚙️

(you may alter the following network RPCs if they are not working suitably for you.)

#### Ethereum mainnet

```
NETWORK_RPC='https://mainnet.infura.io/v3/'
PIT_CONTRACT_ADDRESS='0x70467416507B75543C18093096BA4612a9261DB8'
PIT_LIQUIDATION_CONTRACT_ADDRESS='0x747088fA37fB08d7F8326FBe119D5bf332d0F60d'
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-eth-mainnet/version/latest'
```

#### Arbitrum mainnet

```
NETWORK_RPC='https://arb1.arbitrum.io/rpc'
PIT_CONTRACT_ADDRESS=’0x5855F919E89c5cb5e0052Cb09addEFF62EB9339A’     
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0x0438b74336E042BB596Be593cfF8D84FD0D8935B’
PIT_SUBGRAPH_URL=’https://api.studio.thegraph.com/query/57877/fringe-plpv2-arb-mainnet2/version/latest'
```

#### Polygon mainnet

```
NETWORK_RPC='https://polygon-mainnet.infura.io'
PIT_CONTRACT_ADDRESS=’0x286475366f736fcEeB0480d7233ef169AE614Fe4’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0x4cc524E21222Ec40E586f7C6da21a4F4DD2B1D2f’
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-poly-mainnet/version/latest'
```

#### Optimism mainnet

```
NETWORK_RPC='https://mainnet.optimism.io/'
PIT_CONTRACT_ADDRESS=’0x088F23ac0c07A3Ce008FB88c4bacFF06FECC6158’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0xfE56364C8157E7A459693FE481bB2d138949cB47’
PIT_SUBGRAPH_URL='https://api.thegraph.com/subgraphs/name/brainspacer/fringe-plpv2-opt-mainnet2'
```

#### zkSync Era mainnet

```
NETWORK_RPC='https://mainnet.era.zksync.io'
PIT_CONTRACT_ADDRESS=’0x8f1d37769a56340542Fb399Cb1cA49d46Aa9fec8’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0xe0dBcD250EDbF3638349C2d0cCA1a97A6B93a995’
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-zk-mainnet/version/latest'
```

###

\
&#x20;&#x20;
