Skip to content

Commit

Permalink
Fix ArbitrageFinderBase.sort_order
Browse files Browse the repository at this point in the history
  • Loading branch information
barak manos committed May 27, 2024
1 parent 785c0eb commit 054fffe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fastlane_bot/modes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ def __init__(self, flashloan_tokens, CCm, ConfigObj):
self.flashloan_tokens = flashloan_tokens
self.CCm = CCm
self.ConfigObj = ConfigObj
self.sort_order = {key: index for index, key in enumerate(["bancor_v2", "bancor_v3"] + ConfigObj.UNI_V2_FORKS + ConfigObj.UNI_V3_FORKS)}
self.sort_order = {
key: index for index, key in enumerate(
["bancor_v2", "bancor_v3"]
+ ConfigObj.UNI_V2_FORKS
+ ConfigObj.UNI_V3_FORKS
+ ConfigObj.CARBON_V1_FORKS
)
}

def find_combos(self) -> List[Any]:
return self.find_arbitrage()["combos"]
Expand Down

0 comments on commit 054fffe

Please sign in to comment.