Skip to content

Commit

Permalink
switch to relative economic viability test for alternative solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed May 6, 2023
1 parent 951ea4e commit c5da1e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/off_chain/cow_endpoint_surplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ def get_order_surplus(self, competition_data: Dict[str, Any]) -> None:
surplus_deviation_dict = {}
soln_count = 0
for soln in competition_data["solutions"]:
if (
soln["objective"]["fees"] + 0.001 * pow(10, 18)
< soln["objective"]["cost"]
):
if soln["objective"]["fees"] < 0.9 * soln["objective"]["cost"]:
surplus_deviation_dict[soln_count] = 0.0, 0.0
soln_count += 1
continue
Expand Down

0 comments on commit c5da1e2

Please sign in to comment.