Skip to content

Commit ce603db

Browse files
committed
fix: code clean up
1 parent 32e11b2 commit ce603db

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/common/sweep/sweep.service.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Inject, Injectable, LoggerService, OnModuleInit } from '@nestjs/common';
1+
import { Inject, Injectable, LoggerService } from '@nestjs/common';
22
import { LOGGER_PROVIDER } from '@lido-nestjs/logger';
33
import { GenesisTimeService, SLOTS_PER_EPOCH } from '../genesis-time';
44
import {
@@ -16,15 +16,14 @@ import { parseGwei } from '../utils/parse-gwei';
1616
import { bigNumberMin } from '../utils/big-number-min';
1717
import { Withdrawal } from './sweep.types';
1818
import { BeaconState, IndexedValidator, Validator } from '../consensus-provider/consensus-provider.types';
19-
import { ethers, Interface } from 'ethers';
19+
import { ethers } from 'ethers';
2020
import { OracleV2__factory } from '../contracts/generated';
2121
import { VALIDATORS_EXIT_BUS_ORACLE_CONTRACT_ADDRESSES } from '../contracts/modules/validators-exit-bus-oracle/validators-exit-bus-oracle.constants';
2222
import { ConfigService } from '../config';
23-
import { ExecutionProviderService } from '../execution-provider';
2423
import { SimpleFallbackJsonRpcBatchProvider } from '@lido-nestjs/execution';
2524

2625
@Injectable()
27-
export class SweepService implements OnModuleInit {
26+
export class SweepService {
2827
constructor(
2928
@Inject(LOGGER_PROVIDER) protected readonly logger: LoggerService,
3029
protected readonly consensusClientService: ConsensusClientService,
@@ -33,11 +32,6 @@ export class SweepService implements OnModuleInit {
3332
protected readonly configService: ConfigService,
3433
) {}
3534

36-
public async onModuleInit(): Promise<void> {
37-
const epoch = this.genesisService.getCurrentEpoch();
38-
await this.getSweepDelayInEpochs([], epoch);
39-
}
40-
4135
async getConsensusVersion() {
4236
const chainId = this.configService.get('CHAIN_ID');
4337
const provider = new ethers.JsonRpcProvider(this.configService.get('EL_RPC_URLS')[0]);

0 commit comments

Comments
 (0)