Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: added swapExact...SupportingFeeOnTransferTokens() support#132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ErikBjare merged 14 commits intouniswap-python:masterfromliquid-8:master
Jul 7, 2021

Conversation

liquid-8
Copy link
Member

Closes#40#130

ErikBjare reacted with hooray emojiErikBjare reacted with rocket emoji
@liquid-8
Copy link
MemberAuthor

Comments kinda trivial but whatever.
Router contract has according methods for exact input only so there is no need to rework make_trade_output() as it wraps exact output methods.
If we need these calls for swap then usage gonna be like
make_trade(token0, token1, qty, ... fee_on_transfer=True)
If we don't then just omitfee_on_transfer param.
Also, please note that univ3 doesn't and won't support this kind of tokens.

Copy link
Member

@ErikBjareErikBjare left a comment

Choose a reason for hiding this comment

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

Nice work! A few comments.

And also: Huge thanks for helping with replying to issues, much appreciated!

@ErikBjare
Copy link
Member

Do the tests pass for you locally? (CI is not working right for PRs...#88)

liquid-8and others added5 commitsJuly 5, 2021 14:38
Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>
Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>
Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>
@liquid-8
Copy link
MemberAuthor

I like your suggestions about method selection but can't commit them as they are marked "outdated" dunno why. Tests are OK.

Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>
@ErikBjare
Copy link
Member

ErikBjare commentedJul 5, 2021
edited
Loading

Nice! Just one more thing: runblack on the files to apply correct formatting.

After that I'll merge 🙂

Copy link
Member

@ErikBjareErikBjare left a comment

Choose a reason for hiding this comment

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

Not sure what happened, but some lines were duplicated.

@liquid-8
Copy link
MemberAuthor

Nice! Just one more thing: runblack on the files to apply correct formatting.

After that I'll merge 🙂

Bruh I swear I didn't got ya🤷‍♀️

@liquid-8
Copy link
MemberAuthor

Nice!Just one more thing: runblack on the files to apply correct formatting.

After that I'll merge 🙂

+++
Seems OK

@debaenenicolas
Copy link

Hello,
First thanks for the great repo you built.

I tried to buy reflection tokens with make_trade(token0, token1, qty, ... fee_on_transfer=True) but I still get an error:
"reason : transaction failed"

Do you have an idea why?

Thanks

@liquid-8
Copy link
MemberAuthor

liquid-8 commentedJul 7, 2021
edited
Loading

still get an error:
"reason : transaction failed"
Do you have an idea why?

Well, this PR hasn't been merged yet.

debaenenicolas reacted with thumbs up emoji

@ErikBjare
Copy link
Member

LGTM, merging.

Thanks for your contributions@liquid-8!

liquid-8 reacted with thumbs up emoji

@ErikBjareErikBjare changed the titleenhancement: added swapExact...SupportingFeeOnTransferTokens() supportfeat: added swapExact...SupportingFeeOnTransferTokens() supportJul 7, 2021
@ErikBjareErikBjare merged commitc2cc36c intouniswap-python:masterJul 7, 2021
@liquid-8
Copy link
MemberAuthor

Hello,
First thanks for the great repo you built.

I tried to buy reflection tokens with make_trade(token0, token1, qty, ... fee_on_transfer=True) but I still get an error:
"reason : transaction failed"

Do you have an idea why?

Thanks

@debaenenicolas if problem still persists please create thread in Discussions.

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

@ErikBjareErikBjareErikBjare left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add support for swapExactTokensForTokensSupportingFeeOnTransferTokens
3 participants
@liquid-8@ErikBjare@debaenenicolas

[8]ページ先頭

©2009-2025 Movatter.jp