https://github.com/drift-labs/superstakesol
UI for superstakesol (powered by Drift)
https://github.com/drift-labs/superstakesol
Last synced: 6 days ago
JSON representation
UI for superstakesol (powered by Drift)
- Host: GitHub
- URL: https://github.com/drift-labs/superstakesol
- Owner: drift-labs
- Created: 2023-10-30T16:07:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-04T21:11:18.000Z (7 months ago)
- Last Synced: 2024-11-04T22:20:21.578Z (7 months ago)
- Language: TypeScript
- Homepage: https://superstakesol.vercel.app
- Size: 610 KB
- Stars: 5
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
Run `sh ./build_all_sm.sh` to
- fetch the git submodules
- build the submodule dependencies
- link submodules to the project
- build the projectTo start development, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
# Adding a new Liquid Staking Token (LST)
1. Add the relevant config in `LST.ts`
2. Add the method to get historical prices of the LST to `calculateSolEarned()` in `superStake.ts` of the Drift SDK.
3. Add hook to fetch metrics e.g. `useSyncMSolMetrics.tsx`
4. Add metrics to `useCurrentLstMetrics.tsx`
5. Update `NEW_LST_DATE_ADDED` in `useLastAcknowledgedTerms.tsx`
6. Update Terms and FAQ## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!