Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fee_for_submit_call does not include per-byte fee #3383

Open
coriolinus opened this issue Jun 29, 2021 · 0 comments
Open

fee_for_submit_call does not include per-byte fee #3383

coriolinus opened this issue Jun 29, 2021 · 0 comments
Projects

Comments

@coriolinus
Copy link
Contributor

pub fn fee_for_submit_call<T, WeightToFee, WeightInfo>(multiplier: Perbill) -> WeightToFee::Balance
where
T: pallet_election_provider_multi_phase::Config,
WeightToFee: WeightToFeePolynomial,
WeightInfo: pallet_election_provider_multi_phase::WeightInfo,
{
let expected_weight = WeightInfo::submit(T::SignedMaxSubmissions::get());
multiplier * WeightToFee::calc(&expected_weight)
}

Its signature should include an expected_solution_size parameter which is used to more accurately estimate what the submit call costs.

@coriolinus coriolinus added this to Backlog in Runtime via automation Jun 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Runtime
Backlog
Development

No branches or pull requests

1 participant