WithdrawalInitiated()

event WithdrawalInitiated()

This event is emitted when a withdrawal is initiated, starting the cooldown period.

event WithdrawalInitiated(
    Token indexed pool,
    address indexed provider,
    uint256 indexed requestId,
    uint256 poolTokenAmount,
    uint256 reserveTokenAmount
);
Parameter NameTypeDescription

pool

Token

The address of the token being withdrawn

provider

address

The address withdrawing

requestId

uint256

The unique ID assigned to the withdrawal

poolTokenAmount

unit256

The number of Bancor pool tokens (bnTokens) that will be burned by the withdrawal

reserveTokenAmount

unit256

The number of tokens being withdrawn

Uses

This event can be used to:

  • Monitor initiated withdrawals

Triggered By

This event is triggered by the following functions:

  • initWithdrawal()

  • initWithdrawalPermitted()

Last updated