# withdrawPOL()

```solidity
    function withdrawPOL(Token pool) external returns (uint256);
```

This function allows to disable trading in pools and migrate any available surplus to the CarbonPOL contract.&#x20;

The function is public and can be called by any caller.

Only tokens that are on the whitelist AND in surplus can be effected by this function.

{% hint style="info" %}
It is recommended to call this function only on pools that are in surplus state and part of the [approved whitelist](/developer-guides/read-functions/surplus-whitelist/protectedtokenwhitelist.md)
{% endhint %}

### **Function Arguments**

<table><thead><tr><th width="162">Name</th><th width="114.66666666666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>pool</td><td>Token</td><td>The pool (which is also the token) address to disable and/or migrate surplus </td></tr></tbody></table>

### Example

{% code overflow="wrap" %}

```solidity
withdrawPOL(
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 //token address
)

```

{% endcode %}


---

# 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://docs.bancor.network/developer-guides/write-functions/surplus-migration/withdrawpol.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.
