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.

Add OnFeeCharged trait in fees module. #1923

@shaunxw

Description

@shaunxw

OnFeeCharged trait with on_fee_charged function gives other modules a chance to deal with accumulated fees in the current block.

pub trait OnFeeCharged<Amount> {
	fn on_fee_charged(fee: &Amount);
}

For instance, a reward module could implement it and distribute fees to validators.

Metadata

Metadata

Assignees

Labels

I7-refactorCode needs refactoring.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions