Skip to content

feat: make_trade add optional route param#239

Open
starascendin wants to merge 4 commits intouniswap-python:masterfrom
starascendin:master-no-version
Open

feat: make_trade add optional route param#239
starascendin wants to merge 4 commits intouniswap-python:masterfrom
starascendin:master-no-version

Conversation

@starascendin
Copy link

No description provided.

fee: int = None,
slippage: float = None,
fee_on_transfer: bool = False,
route: Optional[List[AddressLike]] = None,
Copy link
Member

@ErikBjare ErikBjare Jul 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might lead to unexpected behavior if route is specified but not respected (such as in the eth_to_token and token_to_eth cases).

fee: int,
slippage: float,
fee_on_transfer: bool = False,
route: Optional[List[AddressLike]] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern as above, needs to be respected in all cases, or raise an exception if it can't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants