Withdraw

How to withdraw pool tokens from the Liquidity Mining contract.

Call this function to withdraw pool tokens and the accumulated reward tokens.

function withdraw(address _poolToken, uint256 _amount, address _user) external nonpayable

Arguments

Name
Type
Description

_poolToken

address

the address of the pool token to withdraw

_amount

uint256

the amount of the pool tokens to withdraw

_user

address

the user address will be used to process a withdrawal. Only the wrapper contract may pass a non-zero value. For all other cases the msg.sender will be used.

Last updated