pub async fn determine_replacement_pricing<PC: PriceCalculatorTrait>(
old_evm_data: &EvmTransactionData,
new_evm_data: &EvmTransactionData,
relayer: &RelayerRepoModel,
price_calculator: &PC,
network_lacks_mempool: bool,
) -> Result<PriceParams, TransactionError>Expand description
Determines the pricing strategy for a replacement transaction.
§Arguments
old_evm_data- The EVM transaction data from the old transactionnew_evm_data- The EVM transaction data for the new transactionrelayer- The relayer model for policy validationprice_calculator- The price calculator instancenetwork_lacks_mempool- Whether the network lacks mempool (skips bump validation)
§Returns
A Result containing the price parameters or a TransactionError.