-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: V2 routes quote with fee-on-transfer fees off the quote amou…
…nt (#395) * sor quote with fot fees * prettier * remove comments in quote provider and alpha router pass in enable FOT flag * remove comments in quote provider and alpha router pass in enable FOT flag * address feedback * flatten instead of flatMap * fix integ-test after making tokenPropertiesProvider a required property in alpha router * fix token properties provider unit test * update sdk-core to use Token with fot tax fields * fix CLI command to include FOT fee fetching * fix cli for passing in enableFOT flag * pass enable FOT flag to v2 subgraph candidate pools loading * make tokenValidatorProvider before tokenPropertiesProvider due to dependencies * fix v2 quote provider to get the fot tax from the pool objects from subgraph * populate enable fot tax everywhere to v2 pool provider * fix quote provider copy paste error * get rid of explicit enableFeeOnTransferFeeFetching passing * Revert "fix quote provider copy paste error" This reverts commit 5587a4e. * actual quote provider copy paste error fix * replace tokenIn and tokenOut with fox tax one after getting the candidate pools * amount distribution also adding fot tax * remove quote provider changes * v2 get routes from chain and cache use pools to re instantiate tokens with fox tax * get amount distribution add back black line * cached routes get pools for matched tokenIn and tokenOut only once * compute all v2 routes no longer need to get token with fot tax again * fix quote cli exact out to pass in debugRouting and enableFeeOnTransferFeeFetching as well * fix the input currency amount to not mutate during the swap methods * use currency for getSwapRouteFromCache v2 amountWithFotTax * amount to flash borror 10x for rebase tokens e.g. stETH * bump v2-sdk version * extract matched pools to for tokens to util functions * @mikeki offline feedback on no need to filter pools on getSwapRouteFromCache, because writing into Cached Routes can have FOT Token instances * 3.16.22 * fix cached routes side of bugs that caused fot quote to not work properly * remove custom pool reserve matching token logics
- Loading branch information
Showing
16 changed files
with
315 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.