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

Removed trades sorting and trade types functions from App and moved it to sdk #1601

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mi-Lan
Copy link
Collaborator

@Mi-Lan Mi-Lan commented Nov 28, 2022

This pr is linked to sdk pr SwaprHQ/swapr-sdk#221

  • So I moved all the logic related to eco router trades from dapp to the sdk so that it fetches and sorts trades all on the sdk side and on the front-end we just take those trades and display them.
  • It is reduced to one function which you get from sdk which takes in these parameters
    Screenshot 2022-11-28 at 19 06 33

@netlify
Copy link

netlify bot commented Nov 28, 2022

Deploy Preview for swapr ready!

Name Link
🔨 Latest commit a10bcfa
🔍 Latest deploy log https://app.netlify.com/sites/swapr/deploys/6384f7d39fab230008de9037
😎 Deploy Preview https://deploy-preview-1601--swapr.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@MilanVojnovic95
Copy link
Collaborator

Tested and noticed difference was in the values ​​of min. received between the results on the eco router results and the official dex website...

image

Sushiswap
image

Uniswap
image

@Mi-Lan
Copy link
Collaborator Author

Mi-Lan commented Dec 1, 2022

Tested and noticed difference was in the values ​​of min. received between the results on the eco router results and the official dex website...

image

Sushiswap image

Uniswap image

@MilanVojnovic95 Can you give steps to reproduce it...I can't trigger that behaviour for me it works. Thats very weird since its accurately inaccurate by 200$....

Copy link
Collaborator

@berteotti berteotti left a comment

Choose a reason for hiding this comment

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

Awesome work man, looks good to me!

Copy link
Collaborator

@MilanVojnovic95 MilanVojnovic95 left a comment

Choose a reason for hiding this comment

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

Retested and the bug is no longer present. 👍

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.

None yet

3 participants