Skip to content

Commit 3920461

Browse files
committed
Removed constants, and updated logger usage
1 parent 439c45f commit 3920461

File tree

3 files changed

+2
-86
lines changed

3 files changed

+2
-86
lines changed

circuit_breaker_validator/constants.py

Lines changed: 0 additions & 84 deletions
This file was deleted.

circuit_breaker_validator/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def get_logger(name: str = "default") -> logging.Logger:
3030
return result_logger
3131

3232

33-
logger = get_logger()
33+
logger = get_logger(name="validator")

circuit_breaker_validator/scores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from fractions import Fraction
44

5-
from circuit_breaker_validator.constants import NATIVE_TOKEN_PRICE
65
from circuit_breaker_validator.models import (
76
OffchainSettlementData,
87
OnchainSettlementData,
98
)
109

10+
NATIVE_TOKEN_PRICE = 10**18
1111

1212
def compute_score(
1313
onchain_data: OnchainSettlementData,

0 commit comments

Comments
 (0)