Skip to content

Commit 265bb22

Browse files
committed
update
- add OpenOcean and 1Inch to multiswap
1 parent 49395e7 commit 265bb22

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

modules/multiswap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def __init__(self, account_id: int, private_key: str, proxy: Union[None, str]) -
2222
"woofi": WooFi,
2323
"odos": Odos,
2424
"zkswap": ZKSwap,
25-
"xyswap": XYSwap
25+
"xyswap": XYSwap,
26+
"openocean": OpenOcean,
27+
"inch": Inch
2628
}
2729

2830
def get_swap_module(self, use_dex: list):

modules_settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,14 +622,14 @@ def swap_multiswap(account_id, key, proxy):
622622
"""
623623
Multi-Swap module: Automatically performs the specified number of swaps in one of the dexes.
624624
______________________________________________________
625-
use_dex - Choose any dex: syncswap, mute, spacefi, pancake, woofi, velocore, odos, zkswap, xyswap
625+
use_dex - Choose any dex: syncswap, mute, spacefi, pancake, woofi, velocore, odos, zkswap, xyswap, openocean, inch
626626
quantity_swap - Quantity swaps
627627
______________________________________________________
628628
random_swap_token - If True the swap path will be [ETH -> USDC -> USDC -> ETH] (random!)
629629
If False the swap path will be [ETH -> USDC -> ETH -> USDC]
630630
"""
631631

632-
use_dex = ["velocore", "mute", "pancake", "syncswap", "woofi", "spacefi", "odos", "zkswap", "xyswap"]
632+
use_dex = ["velocore", "mute", "pancake", "syncswap", "woofi", "spacefi", "odos", "zkswap", "xyswap", "openocean", "inch"]
633633

634634
min_swap = 4
635635
max_swap = 10
@@ -675,7 +675,8 @@ def custom_routes(account_id, key, proxy):
675675
"""
676676
You can use these methods:
677677
bridge_zksync, withdraw_zksync, bridge_orbiter, wrap_eth, unwrap_eth, swap_syncswap, liquidity_syncswap, swap_mute,
678-
swap_spacefi, liquidity_spacefi, swap_pancake, swap_woofi, swap_velocore, swap_odos, swap_zkswap, swap_xyswap
678+
swap_spacefi, liquidity_spacefi, swap_pancake, swap_woofi, swap_velocore, swap_odos, swap_zkswap, swap_xyswap, swap_inch,
679+
swap_openocean,
679680
bungee_refuel, stargate_bridge, deposit_eralend, withdraw_erlaned, deposit_basilisk, withdraw_basilisk,
680681
deposit_reactorfusion, withdraw_reactorfusion,
681682
enable_collateral_eralend, disable_collateral_eralend

0 commit comments

Comments
 (0)