Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Remove legacy fee #542

Merged
merged 3 commits into from
May 6, 2021
Merged

Remove legacy fee #542

merged 3 commits into from
May 6, 2021

Conversation

fleupold
Copy link
Contributor

This PR removes the legacy fee route and makes the "fee verification logic" upon order placement verify that the fee is actually valid for the given path / amount.

We should keep this change in staging for a while and make sure trades are still happening / we are not seeing errors because of fee estimation errors (as the check is now stricter than before)

Test Plan

Unit tests are still passing.

@fleupold fleupold requested a review from a team April 30, 2021 17:33
Copy link
Contributor

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

This is so much better 🧹 🗜️

@fleupold fleupold force-pushed the remove_legacy_fee branch from e794bb6 to bdc07b8 Compare May 6, 2021 09:51
@fleupold fleupold enabled auto-merge (squash) May 6, 2021 09:52
@fleupold fleupold merged commit 6e32892 into main May 6, 2021
@fleupold fleupold deleted the remove_legacy_fee branch May 6, 2021 09:56
fleupold added a commit that referenced this pull request May 10, 2021
fleupold added a commit that referenced this pull request May 10, 2021
#542 is causing issues with the frontend (cf. #569 and gnosis/gp-v2-trading-bot#22)

This change changes the fee_validation logic back to just checking if a quote from the specified sell token was made in the last minute (not checking buy token and traded amount)

### Test Plan

CI
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants