Skip to content

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

Open
Mi-Lan wants to merge 1 commit into
developfrom
eco-router-optimization
Open

Removed trades sorting and trade types functions from App and moved it to sdk#1601
Mi-Lan wants to merge 1 commit into
developfrom
eco-router-optimization

Conversation

@Mi-Lan

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

Copy link
Copy Markdown
Collaborator

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

netlify Bot commented Nov 28, 2022

Copy link
Copy Markdown

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
Copy Markdown
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

Mi-Lan commented Dec 1, 2022

Copy link
Copy Markdown
Collaborator Author

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$....

@berteotti berteotti left a comment

Copy link
Copy Markdown
Collaborator

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!

@MilanVojnovic95 MilanVojnovic95 left a comment

Copy link
Copy Markdown
Collaborator

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.

3 participants