v2 quote with fee-on-transfer tax considerations (#144)
* v2 quote with fot tax considerations
* Fix code style issues with Prettier
* fix tax amount check
* fix the quote fot taxation calculation and correct test assertions
* getAmountIn tax calculation bug fix
* Fix code style issues with Prettier
* update the getAmountIn formula derivation to make it clearer
* Fix code style issues with Prettier
* update the reserve as well as getAmountIn amountInAfterTax calculation order
* address feedbacks
* Fix code style issues with Prettier
---------
Co-authored-by:
Lint Action <lint-action@samuelmeuli.com>
Showing
| ... | ... | @@ -24,7 +24,7 @@ |
| "dependencies": { | ||
| "@ethersproject/address": "^5.0.0", | ||
| "@ethersproject/solidity": "^5.0.0", | ||
| "@uniswap/sdk-core": "^4.0.2", | ||
| "@uniswap/sdk-core": "^4.0.7", | ||
| "tiny-invariant": "^1.1.0", | ||
| "tiny-warning": "^1.0.3" | ||
| }, | ||
| ... | ... |
This diff is collapsed.
Please register or sign in to comment