-
Notifications
You must be signed in to change notification settings - Fork 10
Dynamic Fee Adjustment Crate #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
@@ -0,0 +1,35 @@ | |||
[package] | |||
name = "dynamic-fee-adjustment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about sugondat-length-fee-adjustment
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, for now, I used pallet-sugondat-length-fee-adjustment
. The only thing is that the pallet currently implements both length and weight to the fee. So, pallet-sugondat-dynamic-fee-adjustment
is probably more general?
Seems fine to me! I also considered placing it within the
No. That should be done in each runtime individually. It would work, I think, but convention is not to define storage items within crates that are implicitly used by structures from that crate. That's for a good reason: there would be hidden magic when using the struct. |
Actually, reflecting on the few questions you have brought to mind another approach. I believe that this should be refactored into a new pallet. There are a few reasons for this:
This also answers the directory location question: it would exist in |
101b79a
to
ea1deab
Compare
ba39405
to
7153de9
Compare
7153de9
to
a97d7d3
Compare
a97d7d3
to
b7c6eb8
Compare
The implementation has been moved to #174 |
This PR extracts the fee adjustment logic into its own crate, requiring multiple modifications because each parameter needs to be passed to the struct instead of being used directly.
Open questions:
DynamicFeeAdjustment
an acceptable name?NextLengthMultiplier
inside the crate?TODOs: