Questions tagged [weighttofee]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
43 views

How can I get an instruction's XCM base weight for Kusama and other substrate chains through Polkadot JS?

I can get instruction's XCM base weight from code (for example, WithdrawAsset instruction), but I can't found how to get this value from PolkadotJS. How can I get an instruction's XCM base weight for ...
Vitaly Peryatin's user avatar
3 votes
2 answers
161 views

expected struct `Weight`, found integer

I was making parity-bridges-common compatible to the stable version of polkadot-v0.9.32. I'm getting the error: expected struct Weight , found integer. Because earlier the weight in the frame-support ...
Arunjot Singh's user avatar
1 vote
2 answers
137 views

How To Adjust The Fees On A Running Substrate Chain?

Fees for transactions in our test net are too high and we would like to adjust them to be some factor lower across the board. Is there a simple way to do that using a call from the Polkadot.js apps ...
KathrynColleen's user avatar
10 votes
2 answers
2k views

Are weights really neccessary?

During block authorship, the execution time of each transaction is measured, rather than weights right? Doesn't that mean as a runtime developer, you only need weights for pricing your extrinsics, but ...
Web3 Philosopher's user avatar
2 votes
1 answer
69 views

Polkadot WeightToFee Coefficient

Can you please explain the reasoning for choosing the following coefficient p and q for the WeightToFeePolynomial in Polkadot? pub struct WeightToFee; impl WeightToFeePolynomial for ...
Yatusabes's user avatar
  • 766
1 vote
1 answer
60 views

Clarity on WeightToFee comment

I am trying to understand how to make modifications to the WeightToFee implementation after updating our decimal places by looking at how Polkadot and Rococo differ. Rococos decimal places are set to ...
Yatusabes's user avatar
  • 766
2 votes
2 answers
91 views

weight to fee computation

We have changed the decimal places of our currency to 10e8 and trying to understand how to adjust the WeightToFeePolynomial. When reading the code I noticed that filling up a block can produce a range ...
Yatusabes's user avatar
  • 766
1 vote
1 answer
34 views

How to specify weight for call with loop

I have a loop in call which depends on array from arguments, so how can i specify weight to be multiplied to array length from arguments
Nikita Chernega's user avatar
2 votes
1 answer
69 views

Can I add a base fee per extrinsic?

My understanding is that there is a configurable base fee which is the minimum amount that a user pays for ANY transaction. Is there a way to add an additional base fee per extrinsic? This fee should ...
Yatusabes's user avatar
  • 766
1 vote
1 answer
74 views

What is the polynomial corresponding to WeightToFee in the official library?

About Code: https://github.com/substrate-developer-hub/substrate-parachain-template/blob/main/runtime/src/lib.rs#L130-L145 pub struct WeightToFee; impl WeightToFeePolynomial for WeightToFee { type ...
99kies's user avatar
  • 733