Withdrawing FIL for Liquidity
An SP can withdraw FIL by unstaking minted pFIL to obtain liquidity.
Behind the scenes, wrapped pFIL (wpFIL) and wrapped FIL (wFIL) are used in the liquidity pool to facilitate the exchange, ensuring that liquidity providers also receive pFIL rewards. Website frontend will automatically wrap FIL or pFIL when entering into the liquidity pool (including both staking/unstaking and providing liquidity). Therefore, there might be multiple transactions that require user approval.
After pFIL is successfully minted, pFIL balance will be displayed in a wallet. To unstake pFIL and withdraw FIL, go to the “Withdraw” section under the "Stake" page, and click “Withdraw”.
To unstake pFIL and withdraw FIL, go to the “Withdraw” section under the "Stake" page. Enter the amount of pFIL to unstake. Click “Withdraw” to continue.
Click “Confirm” on the pop up window after chekcing the details. Then, approve the transactions with a wallet.
When unstaking pFIL to withdraw FIL, here are the following transaction approvals required:
- Approve pFIL spending
- Execute unstaking - “CONTRACT INTERACTION”
- Approve unwrap wFIL to FIL (“WITHDRAW”)
These transactions are necessary because the liquidity pool is made up of wrapped pFIL (wpFIL) and wrapped FIL (wFIL) to ensure that liquidity providers of the liquidity pool can receive pFIL rewards while providing liquidity. Patience is appreciated during this multi-step process.
After seeing the success message, an updated FIL and pFIL balance will be displayed.