File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,16 @@ export class AccountManager {
50
50
const billingResults = await this . dataFetcher . getBillingData ( today ) ;
51
51
const txHash =
52
52
await this . billingContract . updatePaymentDetails ( billingResults ) ;
53
- await this . slack . post (
54
- `MEV Billing ran successfully: ${ this . txLink ( txHash ) } `
55
- ) ;
53
+
54
+ let messages = [ `MEV Billing ran successfully: ${ this . txLink ( txHash ) } ` ] ;
55
+ for ( const amountDue of billingResults . dueAmounts ) {
56
+ messages . push (
57
+ `${ amountDue . builder } was billed ${ ethers . formatEther (
58
+ amountDue . dueAmountWei
59
+ ) } ETH`
60
+ ) ;
61
+ }
62
+ await this . slack . post ( messages . join ( "\n" ) ) ;
56
63
}
57
64
58
65
async runDrafting ( ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export class QueryRunner {
29
29
billingQuery : number ,
30
30
paymentQuery : number ,
31
31
feeQuery : number ,
32
- options ?: RuntimeOptions ,
32
+ options ?: RuntimeOptions
33
33
) {
34
34
this . dune = new DuneClient ( apiKey ) ;
35
35
this . billingQuery = billingQuery ;
@@ -53,7 +53,7 @@ export class QueryRunner {
53
53
parseInt ( BILLING_QUERY ! ) ,
54
54
parseInt ( PAYMENT_QUERY ! ) ,
55
55
parseInt ( FEE_QUERY ! ) ,
56
- options ,
56
+ options
57
57
) ;
58
58
}
59
59
@@ -68,6 +68,7 @@ export class QueryRunner {
68
68
console . log ( "Got Billing Results:" , results ) ;
69
69
return results . map ( ( row : any ) => ( {
70
70
billingAddress : row . miner_biller_address ! ,
71
+ builder : row . miner_label ,
71
72
dueAmountWei : BigInt ( row . amount_due_wei ! ) ,
72
73
} ) ) ;
73
74
} catch ( error ) {
Original file line number Diff line number Diff line change 1
1
export interface AmountDue {
2
2
billingAddress : `0x${string } `;
3
+ builder ?: string ;
3
4
dueAmountWei : bigint ;
4
5
}
5
6
You can’t perform that action at this time.
0 commit comments