iqlusioninc / liquidity-staking-module

Other
88 stars 29 forks source link

TokenizedShares message handlers don't emit events #19

Open joe-bowman opened 2 years ago

joe-bowman commented 2 years ago

The message handling functions around tokenized shares do not emit events themselves (the functions they call - undelegate, sendCoins etc. do), so we have account changing balances (notably the record.GetModuleAddress() module address, whose delegated balance (see liquidstakingd q staking delegations-to <addr>) reduces when shares are redeemed) without an associated event or attribute set.

Not a functional issue, but had me confused for a while as I was trying to track down why a delegated balance of an account I did not control changed as a result of my redeem-tokens tx.