smart-order-router icon indicating copy to clipboard operation
smart-order-router copied to clipboard

Export calculateRatioAmountIn() function

Open eliotstock opened this issue 2 years ago • 1 comments

  • I'm submitting a ... [ ] bug report [*] feature request [ ] question about the decisions made in the repository [ ] question about how to use this project

  • Summary

This function...

https://github.com/Uniswap/smart-order-router/blob/main/src/routers/alpha-router/functions/calculate-ratio-amount-in.ts#L4

.. is highly useful outside the context of the Alpha Router, but it's not exported from:

https://github.com/Uniswap/smart-order-router/blob/main/src/routers/alpha-router/index.ts

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

eliotstock avatar Mar 23 '22 20:03 eliotstock

Feel free to submit a PR for this!

willpote avatar Jul 21 '22 23:07 willpote