You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For every user requesting a price on CoW Swap we send a request to 1Inch which the protocol has to pay for somehow which can become very expensive.
Suggested solution
According to their docs1Inch has the /tokens endpoint which returns all tokens that can get routed through 1Inch. This list could be used as a filter to not send request for trades that would not be supported according to that list.
Acceptance criteria
keep an up-to-date list of supported tokens in the 1Inch components responsible for price estimates
issue an error and bail out early for requests that contain unsupported tokens (effectively not sending any request to the 1Inch API)
The text was updated successfully, but these errors were encountered:
MartinquaXD
changed the title
feat:
feat: Don't send requests to 1Inch API for unsupported tokens
Oct 9, 2023
Problem
For every user requesting a price on CoW Swap we send a request to
1Inch
which the protocol has to pay for somehow which can become very expensive.Suggested solution
According to their docs
1Inch
has the/tokens
endpoint which returns all tokens that can get routed through1Inch
. This list could be used as a filter to not send request for trades that would not be supported according to that list.Acceptance criteria
1Inch
components responsible for price estimates1Inch
API)The text was updated successfully, but these errors were encountered: