-
Notifications
You must be signed in to change notification settings - Fork 480
fix: api endpoint and logo #2916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ type ReserveIncentiveAdditionalData = { | |
| // Normalize to lowercase for case-insensitive comparison | ||
| const INK_POINT_TOKEN_ADDRESSES = ['0x40aBd730Cc9dA34a8EE9823fEaBDBa35E50c4ac7'.toLowerCase()]; | ||
| const MERKL_TYDRO_ENDPOINT = | ||
| 'https://api-merkl.angle.money/v4/opportunities?mainProtocolId=tydro&chainName=ink&items=100&status=LIVE'; // Merkl API | ||
| 'https://api.merkl.xyz/v4/opportunities?mainProtocolId=tydro&chainName=ink&items=100&status=LIVE'; // Merkl API | ||
|
|
||
|
Comment on lines
33
to
35
|
||
| const checkOpportunityAction = ( | ||
| opportunityAction: OpportunityAction, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useMerklIncentivesfetches a third-party API but does not checkresponse.okbefore callingresponse.json(). If Merkl returns a non-2xx (rate limit, outage, HTML error page), this will throw a less actionable JSON parse error and can result in noisy retries/cached errors. Add an explicitresponse.okguard and throw a descriptive error (include status / endpoint) similar to the whitelist fetch in this file.