mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow fractional fee multipliers (RIPD-626):
* Auto-fill fee maximum is `base * fee_mult_max / fee_div_max`. * `fee_div_max` defaults to 1 to preserve backward compatibility.
This commit is contained in:
@@ -44,9 +44,15 @@ namespace RPC {
|
||||
wants the fee filled in.
|
||||
|
||||
"fee_mult_max" A multiplier applied to the current ledger's transaction
|
||||
fee that caps the maximum the fee server should auto fill.
|
||||
fee that caps the maximum fee the server should auto fill.
|
||||
If this optional field is not specified, then a default
|
||||
multiplier is used.
|
||||
"fee_div_max" A divider applied to the current ledger's transaction
|
||||
fee that caps the maximum fee the server should auto fill.
|
||||
If this optional field is not specified, then a default
|
||||
divider (1) is used. "fee_mult_max" and "fee_div_max"
|
||||
are both used such that the maximum fee will be
|
||||
`base * fee_mult_max / fee_div_max` as an integer.
|
||||
|
||||
@param tx The JSON corresponding to the transaction to fill in.
|
||||
@param ledger A ledger for retrieving the current fee schedule.
|
||||
|
||||
Reference in New Issue
Block a user