Coder Social home page Coder Social logo

router-sdk's Introduction

@uniswap/router-sdk - Now at Uniswap/sdks

All versions after 1.9.0 of this SDK can be found in the SDK monorepo! Please file all future issues, PR’s, and discussions there.

Old Issues and PR’s

If you have an issue or open PR that is still active on this SDK in this repository, please recreate it in the new repository. Some existing issues and PR’s may be automatically migrated by the Uniswap Labs team.

router-sdk's People

Contributors

ewilz avatar felipebrahm avatar grabbou avatar jesse-sawa avatar jsy1218 avatar just-toby avatar lint-action avatar marktoda avatar noahzinsmeister avatar raghava-pamula avatar snreynolds avatar tinaszheng avatar willpote avatar zhongeric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

router-sdk's Issues

Incorrect Calculation for Trade.minimumAmountOut

The math for the Trade.minimumAmountOut() is wrong. This is an issue in the interface because the Minimum output in the SwapDetailsDropdown is showing the wrong number.

Steps to Reproduce

  1. Go to app.uniswap.org
  2. Add two tokens to swap (Easier to test with two stablecoins like USDC & DAI)
  3. Add Custom Slippage (Easier to test with a round number like 50%)
  4. Open SwapDetailsDropdown see the incorrect number in the "Minimum output" row

Expected Behavior

Trade.minimumAmountOut() method should correctly calculate the slippage

Additional Context

In the screenshot the Minimum output is 666.604 when it should be 499.953.

Screenshot 2023-05-13 at 12 27 06 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.