Repository navigation
feat(docs): filter the routes table with the directory API and rename fixed rates - #971
Open
letstokenize wants to merge 2 commits into
Open
letstokenize wants to merge 2 commits into
letstokenize wants to merge 2 commits into
Conversation
… fixed rates Each selector now reads GET /v1/routes with the API's own filters (sourceChain and sourceToken, destinationChain and destinationToken, method, subsidies), and only offers choices that leave at least one route given the other selections. Every selector clears on its own, Reset clears them all, and clearing a funding method also clears fixed rates when it would otherwise leave nothing. The Fee coverage column is now Fixed rates, and the footer points to the Tempo API Console and Tempo contact page for eligibility.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The proxy only takes quotes as JSON POST bodies, so a GET fell through to a 500. It now answers 405 with Allow: POST.
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The available routes table on Supported routes now filters with the route directory API and can never filter down to zero routes. Each selector only offers choices that still match a route, clears on its own, and Reset clears them all. The fee coverage column becomes Fixed rates, with a note on how to get access.
Changes
GET /v1/routeswith the API's own filters:sourceChain+sourceToken,destinationChain+destinationToken,method, andsubsidies. The table shows what the directory returns for that selection.loadRoutestakes these filters.GETto/api/routes-quotenow answers405withAllow: POSTinstead of falling through to a500.The old either-side "Network" selector is gone, since the directory has no matching filter. Source and Destination still name each asset's network.
Testing
pnpm check:types, oxlint, Biome, and the Zyzz style policy pass.pnpm check:markdown(277 pages).destinationChain=tron:0x2b6653dc&destinationToken=…, shows 2 of 28 routes, and narrows Source to OUSD and USDT0 on Tempo.