withdrawPOL()

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

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

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.

Function Arguments

Name
Type
Description

pool

Token

The pool (which is also the token) address to disable and/or migrate surplus

Example

withdrawPOL(
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 //token address
)

Last updated