pub fn compute_rent_fee(
changed_entries: &[LedgerEntryRentChange],
fee_config: &RentFeeConfiguration,
current_ledger_seq: u32,
) -> i64
Expand description
Computes the total rent-related fee for the provided ledger entry changes.
The rent-related fees consist of the fees for TTL extensions and fees for increasing the entry size (with or without TTL extensions).
This cannot handle unsantized inputs and relies on sane configuration and ledger changes. This is due to the fact that rent is managed automatically wihtout user-provided inputs.