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

Fee calculation question #168

Closed
avolkov-dev opened this issue Nov 16, 2021 · 1 comment
Closed

Fee calculation question #168

avolkov-dev opened this issue Nov 16, 2021 · 1 comment

Comments

@avolkov-dev
Copy link

avolkov-dev commented Nov 16, 2021

i'm trying to understand how the fee is being calculated. Was not able to find any related docs about fee calculation based on event.
So, for example, let take a look at this transaction
Calculated fee is : 0.0156000014 DOT
The events related to fee are:
DustLost: 0.0124800011 DOT
Deposit (2 events) : 0.0031200003 DOT and 0.0031200003 DOT.
So calculated fee should be 0.0124800011 + 0.0031200003 + 0.0031200003 = 0.01872002 DOT
But on explorer there is value of 0.0156000014 DOT

I think it was calculated as 0.0124800011 + 0.0031200003, but why the second deposit event was not taken into account?

@freehere107
Copy link
Collaborator

freehere107 commented Nov 17, 2021

@avolkov-dev hi, you can look this paritytech/polkadot#4230

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

2 participants