Skip to content

Commit f212e7c

Browse files
committed
lint
1 parent 28ea40f commit f212e7c

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/accountManager.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AccountManager {
1818
billingContract: BillingContract,
1919
slack: Slack,
2020
bondThreshold: bigint = TEN_ETH,
21-
scanUrl?: string
21+
scanUrl?: string,
2222
) {
2323
this.dataFetcher = dataFetcher;
2424
this.billingContract = billingContract;
@@ -40,7 +40,7 @@ export class AccountManager {
4040
BillingContract.fromEnv(),
4141
await Slack.fromEnv(),
4242
bondThreshold,
43-
SCAN_URL
43+
SCAN_URL,
4444
);
4545
}
4646

@@ -51,7 +51,7 @@ export class AccountManager {
5151
const txHash =
5252
await this.billingContract.updatePaymentDetails(billingResults);
5353
await this.slack.post(
54-
`MEV Billing ran successfully: ${this.txLink(txHash)}`
54+
`MEV Billing ran successfully: ${this.txLink(txHash)}`,
5555
);
5656
}
5757

@@ -69,13 +69,13 @@ export class AccountManager {
6969
}
7070

7171
async paymentStatusPost(
72-
paymentStatuses: LatestBillingStatus[]
72+
paymentStatuses: LatestBillingStatus[],
7373
): Promise<void> {
7474
let messages = ["MEVBlocker builder payment status update:"];
7575
for (let paymentStatus of paymentStatuses) {
7676
if (paymentStatus.status !== PaymentStatus.PAID) {
7777
messages.push(
78-
`${paymentStatus.account} was supposed to pay ${paymentStatus.billedAmount} but paid ${paymentStatus.paidAmount}`
78+
`${paymentStatus.account} was supposed to pay ${paymentStatus.billedAmount} but paid ${paymentStatus.paidAmount}`,
7979
);
8080
}
8181
}
@@ -96,7 +96,7 @@ export class AccountManager {
9696
const remainingBond = await this.billingContract.getBond(address);
9797
if (remainingBond < this.bondThreshold) {
9898
messages.push(
99-
`Account ${address} bond (${ethers.formatEther(remainingBond)} ETH) below threshold!`
99+
`Account ${address} bond (${ethers.formatEther(remainingBond)} ETH) below threshold!`,
100100
);
101101
}
102102
} catch (error) {

src/billingContract.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export class BillingContract {
6666
if (!BILLING_CONTRACT_ADDRESS) {
6767
throw new Error("Missing env var BILLING_CONTRACT_ADDRESS");
6868
}
69-
let roleData
70-
if ((ZODIAC_ROLE_KEY && ZODIAC_ROLES_MOD)) {
69+
let roleData;
70+
if (ZODIAC_ROLE_KEY && ZODIAC_ROLES_MOD) {
7171
roleData = {
7272
roleAddress: ZODIAC_ROLES_MOD,
7373
roleKey: ZODIAC_ROLE_KEY,
@@ -152,7 +152,9 @@ export class BillingContract {
152152

153153
async evaluateFine(drafts: MetaTransaction[]): Promise<bigint> {
154154
if (!this.roleData) {
155-
throw new Error("Cannot estimate gas penalty for `fine` without configured role module");
155+
throw new Error(
156+
"Cannot estimate gas penalty for `fine` without configured role module",
157+
);
156158
}
157159

158160
const metaTx = drafts.length > 1 ? encodeMulti(drafts) : drafts[0];
@@ -246,7 +248,9 @@ export class BillingContract {
246248
throw new Error("No transactions to execute");
247249
}
248250
if (!this.roleData) {
249-
throw new Error("Cannot execute transaction without configured role module");
251+
throw new Error(
252+
"Cannot execute transaction without configured role module",
253+
);
250254
}
251255

252256
// Combine transactions into one.

0 commit comments

Comments
 (0)