smart-order-router
smart-order-router copied to clipboard
Export calculateRatioAmountIn() function
-
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.)
Feel free to submit a PR for this!