File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -857,6 +857,7 @@ where
857857 get_retry_envs ( ) ?;
858858
859859 let mut attempt: u8 = 0 ;
860+ let mut last_estimates: Vec < f64 > = vec ! [ ] ;
860861
861862 let tx_hash: B256 = loop {
862863 let effective_gas_estimate = self
@@ -867,6 +868,8 @@ where
867868 let should_send_now = effective_gas_estimate <= max_usd_fee_threshold
868869 || attempt == max_estimate_retries;
869870
871+ last_estimates. push ( round_to_decimals ( effective_gas_estimate, 2 ) ) ;
872+
870873 if should_send_now {
871874 let receipt = self . submit_proof ( chain_id, tx) . await ?;
872875 let wei = Unit :: ETHER . wei_const ( ) . to :: < u128 > ( ) as f64 ;
@@ -881,7 +884,8 @@ where
881884 message = "Transaction gas fee used" ,
882885 gas_fee = effective_gas_used,
883886 usd_fee = usd_fee,
884- tx_hash = %receipt. transaction_hash( )
887+ tx_hash = %receipt. transaction_hash( ) ,
888+ last_usd_gas_estimates = ?last_estimates
885889 ) ;
886890
887891 break receipt. transaction_hash ( ) ;
You can’t perform that action at this time.
0 commit comments