Skip to content
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

Refunding system fees #7

Open
olanod opened this issue Feb 24, 2022 · 0 comments
Open

Refunding system fees #7

olanod opened this issue Feb 24, 2022 · 0 comments
Milestone

Comments

@olanod
Copy link
Member

olanod commented Feb 24, 2022

The best practice is to refund fees whenever possible which also comes with the benefit of making users happy :) This can be divided in two

  • In extrinsics where different branches of the code differ in difficulty we can calculate the actual used weight and refund some fees.
  • In permissioned extrinsics where we already check that the call can only come from a specific origin we can return in the PostInfo the Pays::No to do a full refund to make it nicer for users that are doing a release for example.
@olanod olanod transferred this issue from virto-network/virto-node Mar 20, 2022
@olanod olanod added this to the Payments V1 milestone Mar 20, 2022
@olanod olanod removed the payments label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant