# Processing the rebalances and liquidations

### Introduction

In DeFi, a Keeper is an entity or system responsible for *automating on-chain actions* that cannot execute themselves. Since smart contracts on blockchains are passive, they require an external trigger—this is where Keepers come in.

While f(x) is a fully on-chain system, the Keeper is designed to actively monitor positions and initiate actions once certain conditions are met.

Maintaining an active Keeper community is critical for the f(x) Protocol. Therefore, we’ve written this document to help you understand some key concepts and processes related to Keepers.

### Related contract addresses

* PoolManager(Long): `0x250893CA4Ba5d05626C785e8da758026928FCD24`
* WBTC Long Pool: `0xAB709e26Fa6B0A30c119D8c55B887DeD24952473`
* wstETH Long Pool: `0x6Ecfa38FeE8a5277B91eFdA204c235814F0122E8`
* ShortPoolManager: `0xaCDc0AB51178d0Ae8F70c1EAd7d3cF5421FDd66D`
* wstETH Short Pool: `0x25707b9e6690B52C60aE6744d711cf9C1dFC1876`
* WBTC Short Pool: `0xA0cC8162c523998856D59065fAa254F87D20A5b0`
* fxETH(wstETH CreditNote): `0x7c5350BaC0eB97F86A366Ee4F9619a560480F05A`
* fxBTC(WBTC CreditNote): `0xB25a554033C59e33e48c5dc05A7192Fb1bbDdfc6`

You can double-check the contracts for the last update on [Github](https://github.com/AladdinDAO/fx-protocol-contracts/tree/main/ignition/deployments)


---

# 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://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations.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.
