Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: trade factory use force approve #43

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

mil0xeth
Copy link
Contributor

@mil0xeth mil0xeth commented Apr 3, 2024

Use forceApprove() instead of safeApprove() to circumvent problems in rare cases when allowance is non-zero (e.g. using _addToken(_tokenFrom, _tokenTo) with the same _tokenFrom but different _tokenTo).

@tapired
Copy link

tapired commented Apr 3, 2024

lgtm

@Schlagonia Schlagonia changed the title fix: tradeFactory: safeApprove()-->forceApprove() fix: trade factory use force approve Apr 3, 2024
@Schlagonia Schlagonia merged commit 326da13 into yearn:master Apr 5, 2024
1 of 3 checks passed
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.

3 participants