initWithdrawal()

Functions on the PendingWithdrawals contract

Function initWithdrawal()

function initWithdrawal(IPoolToken poolToken, uint256 poolTokenAmount)
        external

The traditional function initWithdrawal() takes only a pool and an amount as arguments, this means that the address calling the function must be the depositor of the pool tokens or have approval from the depositor to access their pool tokens.

Function Arguments

Name
Type
Description

poolToken

IPoolToken

The address of the token deposited into the pool

poolTokenAmount

uint256

Amount to withdraw

In order to identify the poolToken address needed for this function, follow the steps in the poolToken Mapping section

Last updated