Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Emit events for liquidity changes in Staking #5223

@joepetrowski

Description

@joepetrowski

Some infrastructure providers reconcile spendable balance against on-chain information (events, tx parameters). A number of functions in the Staking pallet update locks by an amount that is not known at dispatch, e.g. unbond will unbond let mut value = value.min(ledger.active);

We should either emit an event with the actual value (un)bonded or return an error if the input parameters are not valid for the operation.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions