InfraBlockchain/infrablockchain-substrate

add a fee calculation logic without refunds

Closed this issue · 0 comments

Reqeust

  • add a fee calculation logic without any refunds for fee table

Description

  • Pre-dispatch: Estimate the predicted fee (benchmarked weight) for the given call.
  • Post-dispatch: Refund the difference between the actual fee and the predicted fee, and charge only the actual fee.
  • Issue with Fee Table: When the fee table sets a higher predicted fee than the original call, the excess amount is fully refunded, leading to an unintended fee application.

Solution

Proposed Solution: Add a logic to use the full fee without any refunds