-
Notifications
You must be signed in to change notification settings - Fork 125
[CON-667] Update Solana Staking UI #146
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
Conversation
mikemaccana
left a comment
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.
Might be a security issue with the API key (see the comment) but looks good once that's resolved. 👍
| const url = new URL(JUPITER_PRICE_ENDPOINT); | ||
| url.searchParams.set("ids", WRAPPED_SOL_ADDRESS); | ||
|
|
||
| const apiKey = process.env.JUPITER_API_KEY; |
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.
Could we throw earlier (ie, as soon as the server starts) if the environment variable isn't set, rather than waiting for an incoming GET?
0xsergen
left a comment
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.
|
|
||
| This is a simple demo let's stand up a staking page to easily empower your users to stake to your validator. The demo will: | ||
|
|
||
|  |
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.
We can update the screenshot due to rebranding
NEXT_PUBLIC_JUPITER_API_KEYto .env.exampleNote
Adds server-side SOL pricing via Jupiter v3 and upgrades the app to Next 16, with related env, docs, and UI updates.
GET /api/priceproxy uses Jupiter Price API v3 withJUPITER_API_KEY; UI switches to fetch from/api/priceand removes old client price util.env.examplegainsJUPITER_API_KEY;.gitignoreexpanded to ignore.env.*while allowing.env.examplenextto^16.1.1(lockfile updated), setsjsx: react-jsx, and addssuppressHydrationWarningin layoutquicknode.svgWritten by Cursor Bugbot for commit 66fe802. This will update automatically on new commits. Configure here.