* fix: removing Clipper custom integration (to add it later as a real PLP)
* fix: update CHHANGELOG
* fix: keep Clipper as BridgeProtocols so we dont have to redeploy and comment this is not used
* fix: prettier
* feat: integrate Rust router with asset-swapper WIP
* fix: produce outputFees in the format the Rust router expects
* fix: correct output fee calc and only use the rust router for sells
* fix: make sure numbers sent to the rust router are integers
* hack: try to debug why rust router output is being overestimated WIP
* refactor: clean up router debugging code
* fix: don't use negative output fees for sells
* feat: try VIP sources in isolation and compare with routing all sources
* fix: adjust for FQT overhead when choosing between VIP, all sources WIP
* fix: pass gasPrice to path_optimizer for EP overhead calculations
* feat: buy support with the Rust Router WIP
* chore: WIP commit trying to get buys working
* refactor: use samples instead of fills for the Rust router
* feat: add vip handling hack to sample based routing
* fix: revert to 200 samplings for rust router when using pure samples
* refactor: remove old hacky Path based Rust code, add back feature toggle
* fix: scale both fill output and adjustedOutput my same factor as input
* feat: initial plumbing for supporting RFQ/Limit orders
* fix: incorrect bump of input amount by one base unit before routing
* fix: add fake samples for rfq/limit orders to fulfill the 3 sample req
* fix pass rfq orders in the correct format to the rust router
* chore: remove debugging logs and clean up code & comments
* fix: use published version of @0x/neon-router
* hack: scale routed amounts to account for precision loss of number/f64
* refactor: clean up code and address initial review comments
* fix: only remove trailing 0 output samples before passing to the router
* refactor: consolidate eth to output token calc into ethToOutputAmount fn
* fix: interpolate input between samples on output amount instead of price
* fix: return no path when we have no samples, add sanity asserts
* refactor: fix interpolation comment wording
* fix: remove double adjusted source route input amount
* chore: update changelog for asset-swapper
* Set AssetSwapper protocol fee multiplier to zero
* Set market_operation_utils protocol fee multiplier to zero
* Updated CHANGELOG.json
* Removed whitespace in CHANGELOG.json
* Remove unnecessary timestamp in packages/asset-swapper/CHANGELOG.json
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
* Updated param for quote simulation test
* Updated quote simulation test
* fix failing tests
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
Co-authored-by: Lawrence Forman <me@merklejerk.com>
* Support cast vote by signature in ZrxTreasury
* Address comments and fix existing tests
* test that doesnt work
* test file format
* updates
* address some of the comments
* Remove unused const
* get rid of vote_factory
* unit test for castVoteBySignature p1
* unit test for castVoteBySignature p2
* Add version to domain, and one more test
* unit test for castVoteBySignature p3
* unit test for castVoteBySignature p4
* bump utils version
* remove debug code
* address some comments
* address more pr comments
* move Vote class to protocol-utils
* Address pr comments and update changelogs
* Refactor integrator ID and add Prometheus metrics
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Added documentation and fixed some minor requests
* Added more metrics
* more docs
* lint fix
* added new Integrator ID addition
* refactor tests
* Refactor new types
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Refactor integrator ID and add Prometheus metrics
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Update packages/asset-swapper/src/swap_quoter.ts
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Added documentation and fixed some minor requests
* Added more metrics
* more docs
* lint fix
* added new Integrator ID addition
* refactor tests
Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
* Initial commit of changes
* Added unit tests for filtering process
* linting
* Update packages/asset-swapper/src/utils/quote_requestor.ts
Co-authored-by: phil-ociraptor <philipliao@gmail.com>
* lint and refactor based on feedback
Co-authored-by: phil-ociraptor <philipliao@gmail.com>