WithdrawalCompleted()

event WithdrawalCompleted()

This event is emitted when a withdrawal is completed.

event WithdrawalCompleted(
        bytes32 indexed contextId,
        Token indexed pool,
        address indexed provider,
        uint256 requestId,
        uint256 poolTokenAmount,
        uint256 reserveTokenAmount,
        uint32 timeElapsed
);
Parameter NameTypeDescription

contextId

bytes32

Unique identifier for the specific transaction (can be used for grouping multiple events)

pool

Token

The address of the token that was withdrawn

provider

address

The address that withdrew

requestId

uint256

The unique ID assigned to the withdrawal

poolTokenAmount

unit256

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

reserveTokenAmount

unit256

The number of tokens withdrawn

timeElapsed

uint32

The amount of time since the withdrawal was initiated

Uses

This event can be used to:

  • Monitor withdrawals

Triggered By

This event is triggered by the following functions:

  • withdraw()

Last updated