-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add Deposit and Withdraw Events to Balances Pallet #9425
Conversation
+ add deposit_event() calls where appropriate to signal fund movement + adjust and extend tests
Can you add some justification why we need these events? Seems to me we have been fine so far without them, and there is non-zero overhead of such things. |
Added a justification based on the linked Polkadot issue. |
Even with this, from payment receiver point of view, is it possible to know where the fund is coming from? |
Only if you track the fund movements on the source and target chains. As the receiver you would only see a |
This is useful for exchanges to detect incoming deposits. But doesn't solve the problem of tracking funds. I guess we need some event system rework at some stage. Still, we will want this get released ASAP otherwise it is impossible for exchanges to handling deposits via XCM. |
bot merge |
Trying merge. |
In which runtime it will be active? |
I think 0912 it should get in |
Signed-off-by: Xavier Lau <xavier@inv.cafe>
addresses paritytech/polkadot#3508
This PR adds
Deposit
,Withdraw
andSlashed
events as well asdeposit_event
calls where appropriate in order to make it easier to trace balance movements.