@@ -23,7 +23,6 @@ use tap_core::rav::SignedRAV;
2323use thegraph_core:: Address ;
2424use tracing:: { error, Level } ;
2525
26- use super :: sender_accounts_manager:: NewReceiptNotification ;
2726use super :: sender_allocation:: { SenderAllocation , SenderAllocationArgs } ;
2827use crate :: agent:: sender_allocation:: SenderAllocationMessage ;
2928use crate :: agent:: sender_fee_tracker:: SenderFeeTracker ;
@@ -80,7 +79,7 @@ type Balance = U256;
8079
8180#[ derive( Debug , Eq , PartialEq ) ]
8281pub enum ReceiptFees {
83- NewReceipt ( NewReceiptNotification ) ,
82+ NewReceipt ( u128 ) ,
8483 UpdateValue ( UnaggregatedReceipts ) ,
8584 Retry ,
8685}
@@ -569,15 +568,15 @@ impl Actor for SenderAccount {
569568 }
570569
571570 match receipt_fees {
572- ReceiptFees :: NewReceipt ( receipt ) => {
573- state. sender_fee_tracker . add ( allocation_id, receipt . value ) ;
571+ ReceiptFees :: NewReceipt ( value ) => {
572+ state. sender_fee_tracker . add ( allocation_id, value) ;
574573
575574 UNAGGREGATED_FEES
576575 . with_label_values ( & [
577576 & state. sender . to_string ( ) ,
578577 & allocation_id. to_string ( ) ,
579578 ] )
580- . add ( receipt . value as f64 ) ;
579+ . add ( value as f64 ) ;
581580 }
582581 ReceiptFees :: UpdateValue ( unaggregated_fees) => {
583582 state
0 commit comments