Events

The swap module emits the following events:

Handlers

MsgDeposit

TypeAttribute KeyAttribute Value
messagemoduleswap
messagesender{sender address}
swap_depositpool_id{poolID}
swap_depositdepositor{depositor address}
swap_depositamount{amount}
swap_depositshares{shares}

MsgWithdraw

TypeAttribute KeyAttribute Value
messagemoduleswap
messagesender{sender address}
swap_withdrawpool_id{poolID}
swap_withdrawowner{owner address}
swap_withdrawamount{amount}
swap_withdrawshares{shares}

MsgSwapExactForTokens

TypeAttribute KeyAttribute Value
messagemoduleswap
messagesender{sender address}
swap_tradepool_id{poolID}
swap_traderequester{requester address}
swap_tradeswap_input{input amount}
swap_tradeswap_output{output amount}
swap_tradefee_paid{fee amount}
swap_tradeexact{exact trade direction}

MsgSwapForExactTokens

TypeAttribute KeyAttribute Value
messagemoduleswap
messagesender{sender address}
swap_tradepool_id{poolID}
swap_traderequester{requester address}
swap_tradeswap_input{input amount}
swap_tradeswap_output{output amount}
swap_tradefee_paid{fee amount}
swap_tradeexact{exact trade direction}