-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Easy] Pass settlement contract as from address when requesting 1Inch… (
#1817) Otherwise 1Inch may suggest routes in which the proceeds are transferred directly to the trader (instead of the settlement contract), which will make the settlement call fail. Cf this [simulation](https://dashboard.tenderly.co/gp-v2/barn/simulator/0c112512-c0be-4675-a06f-ab0c153bd4d6) for instance. ## Test Plan The integration test can't be easily get working because 1Inch closed down their public API and their dev API uses a different format (using our endpoint would also require injecting custom header). We use the settlement contract already when requesting solutions though (cf [here](https://github.com/cowprotocol/services/blob/ea860194f4e16e97680490660ebc494909959df7/crates/solver/src/solver/oneinch_solver.rs#L116)).
- Loading branch information
Showing
3 changed files
with
31 additions
and
8 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
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