Skip to content

Commit bceaed6

Browse files
committed
remove alerts for cost coverage
1 parent cebab1a commit bceaed6

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

src/monitoring_tests/cost_coverage_zero_signed_fee.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class CostCoverageForZeroSignedFee(BaseTest):
1414
"""
1515
This test checks the cost coverage of in-market orders that are
16-
sent as zero-signed fee orders from CoW Swap.
17-
"""
16+
sent as zero-signed fee orders from CoW Swap. """
1817

1918
def __init__(self) -> None:
2019
super().__init__()
@@ -63,19 +62,11 @@ def cost_coverage(self, competition_data: dict[str, Any], gas_cost: float) -> bo
6362
/ 10**36
6463
)
6564
total_fee += fee
66-
if total_fee - gas_cost > 0.002 or total_fee - gas_cost < -0.002:
67-
if zero_signed_fee_market and (
68-
total_fee - gas_cost > 0.02 or total_fee - gas_cost < -0.01
69-
):
70-
self.alert(
71-
f'"Fees - gasCost" is {total_fee - gas_cost} \
72-
for {competition_data["transactionHash"]}.'
73-
)
74-
else:
75-
self.logger.info(
76-
f'"Fees - gasCost" is {total_fee - gas_cost} \
77-
for {competition_data["transactionHash"]}.'
78-
)
65+
if total_fee - gas_cost > 0.02 or total_fee - gas_cost < -0.04:
66+
self.logger.info(
67+
f'"Fees - gasCost" is {total_fee - gas_cost} \
68+
for {competition_data["transactionHash"]}.'
69+
)
7970
return True
8071

8172
def run(self, tx_hash: str) -> bool:

0 commit comments

Comments
 (0)