-
Notifications
You must be signed in to change notification settings - Fork 201
feat: yield.xyz POC #11578
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
Merged
Merged
feat: yield.xyz POC #11578
Changes from all commits
Commits
Show all changes
118 commits
Select commit
Hold shift + click to select a range
6f4de0d
[skip ci] feat: yield.xyz exploration
gomesalexandre bfd8e24
feat: add comprehensive Yield.xyz POC implementation plan
gomesalexandre 04619bd
feat: add Yield.xyz foundation (env vars, CSP, types, API, hooks)
gomesalexandre cce008e
feat: wip
gomesalexandre fd81d5e
fix: improve Yield.xyz types and filter SKIPPED/CREATED approval steps
gomesalexandre 988df70
wip: wip
gomesalexandre 374ce85
fix: shit
gomesalexandre 412a26f
feat: wip
gomesalexandre bdee0d8
wip: wip
gomesalexandre 07f2d57
fix: patch yield-xyz provider logo with local image
gomesalexandre 72b633d
feat: add yield filters, tx confirmation polling, and UI improvements
gomesalexandre 659dd71
fix: revert AssetIcon changes that caused nested icon bug
gomesalexandre 5e74f1f
feat: carrot
gomesalexandre 544b651
feat: wip
gomesalexandre 1cf9fd1
feat: visual bits
gomesalexandre 072cc5e
[skip ci] wip: disgusting ai spew wip
gomesalexandre 8862b52
[skip ci] fix: sui staking tx execution and yield detail icon
gomesalexandre 8b93520
[skip ci] fix: revert to base unit amount for yield api
gomesalexandre 2f96d10
[skip ci] wip: sui minimum deposit
gomesalexandre 2b2ece9
[skip ci] feat: add Solana staking support for yield.xyz
gomesalexandre 1b138f3
[skip ci] fix: show yield balances on account page and sum all balanc…
gomesalexandre 8350517
[skip ci] fix: hide duplicate opportunity row when no active positions
gomesalexandre 11dffe3
Merge remote-tracking branch 'origin/develop' into feat_yield
gomesalexandre fec6eeb
feat: robots review code
gomesalexandre d934342
Apply yield xyz fixes and cleanup
gomesalexandre 7134897
Follow-up yield xyz adjustments
gomesalexandre 57e4be5
fix: yield xyz query key inconsistencies and related improvements
gomesalexandre 3d71632
refactor: delete unused formatters.ts, replace with Amount component
gomesalexandre 8338e99
fix: yield component refinements and transaction flow hook
gomesalexandre 041ff35
feat: add token name to yields search
gomesalexandre 2e85e56
wip: wip
gomesalexandre 4677e65
fix: add Figment validator address for Monad native staking
gomesalexandre 52f4e71
wip: wip
gomesalexandre a4e09c9
fix: spacing
gomesalexandre 98778a3
wip: wip
gomesalexandre 2ece99e
feat: wip
gomesalexandre c1d8a85
chore: save yields page perf optimization attempts as diff for reference
gomesalexandre c312710
feat: validator breakdown
gomesalexandre b054c08
feat: normalization
gomesalexandre f85d171
fix: shit
gomesalexandre ff00a37
feat: normalize more
gomesalexandre ebe40fa
feat: even more normalization
gomesalexandre b1f789b
wip: wip
gomesalexandre bd6882e
wip: wip
gomesalexandre b7e172a
feat: wip
gomesalexandre afc01d3
wip: wip
gomesalexandre dedef6e
wip: wip
gomesalexandre a88afd5
feat: cr final
gomesalexandre 8be4d50
fix: yield.xyz claim modal validator fallback, precision amounts, tra…
gomesalexandre dfe412d
refactor(yields): normalize balance data architecture for O(1) lookups
gomesalexandre 1b1b577
fix(yields): use correct query key for useYield cache lookup
gomesalexandre bf50af6
[skip ci] wip: wip
gomesalexandre dd6dbf2
[skip ci] wip: rm cr
gomesalexandre b14cc3c
feat(AssetAccountDetails): explicitly gate YieldAssetSection behind Y…
gomesalexandre fbf8b97
refactor(lib/utils): remove dead code isTransactionStatusAdapter
gomesalexandre e43c4ac
fix(lib/utils): restore isTransactionStatusAdapter (was actually used)
gomesalexandre 76780f9
fix(yields): use context-based account selection and cleanup API
gomesalexandre 6b30286
feat: hyperevm
gomesalexandre 7ed1b99
[skip ci] wip: cleanup
gomesalexandre 0829eaa
[skip ci] wip: wip
gomesalexandre c3bda92
[skip ci] refactor(YieldDetail): add memo, useMemo, extract memoized …
gomesalexandre 9806a6a
[skip ci] refactor(YieldAssetDetails): add memo, useMemo, useCallback…
gomesalexandre ad3fa93
[skip ci] refactor(ValidatorBreakdown): add memo, useMemo, useCallbac…
gomesalexandre eca1a4a
[skip ci] refactor(YieldsList): add memo, useMemo, useCallback, extra…
gomesalexandre 187135e
[skip ci] refactor(Yields): add memo, implicit return
gomesalexandre af06793
[skip ci] refactor(YieldFilters): add memo, useMemo, useCallback, cle…
gomesalexandre 5cc8b1d
[skip ci] refactor(YieldAssetGroupRow): add memo, useMemo, useCallbac…
gomesalexandre 110a7b7
[skip ci] refactor(YieldActivePositions): add memo, useMemo, useCallb…
gomesalexandre 77e46f9
[skip ci] refactor(YieldAssetSection): add memo, useMemo, useCallback…
gomesalexandre 352cae8
[skip ci] refactor(YieldCard): add memo, useMemo, useCallback, clean …
gomesalexandre 8b44395
[skip ci] refactor(YieldStats): add memo, useMemo, useCallback, clean…
gomesalexandre ec18dda
[skip ci] refactor(YieldEnterExit): add memo, useMemo, useCallback, c…
gomesalexandre 8c7ed68
[skip ci] refactor(YieldPositionCard): add memo, useMemo, useCallback…
gomesalexandre b00280e
[skip ci] refactor(YieldOpportunityStats): add memo, useMemo, useCall…
gomesalexandre aaa03ba
[skip ci] refactor(YieldAssetCard): add memo, useMemo, useCallback, c…
gomesalexandre de8141e
[skip ci] refactor(YieldValidatorSelectModal): add memo, useMemo, use…
gomesalexandre bac2c43
[skip ci] refactor(YieldActionModal): add memo, useMemo, useCallback,…
gomesalexandre d34c044
[skip ci] refactor(YieldViewHelpers): add memo, useMemo, useCallback,…
gomesalexandre 9a913d0
[skip ci] refactor(GradientApy): add memo, useMemo, clean up JSX
gomesalexandre 4bd7b2f
[skip ci] refactor(YieldOpportunityCard): add memo, useMemo, useCallb…
gomesalexandre 095c086
[skip ci] refactor(YieldTable): add memo, useMemo, useCallback, clean…
gomesalexandre 22f96d6
[skip ci] refactor(YieldAccountContext): add memo, useMemo for contex…
gomesalexandre 77835d6
[skip ci] refactor(useYieldOpportunities): add useMemo, useCallback
gomesalexandre c798386
[skip ci] refactor(useYieldTransactionFlow): add useMemo, useCallback
gomesalexandre 6ac88d9
feat(yields): add NEAR signing, fix EVM nonce, improve validator TVL …
gomesalexandre c6228a7
merge: resolve conflicts with origin/develop, keep both Yield and Kat…
gomesalexandre 4416ee5
[skip ci] fix(YieldActivePositions): use ReactNode type instead of JS…
gomesalexandre 68b2368
[skip ci] perf(useYields): use push() instead of spread in pagination…
gomesalexandre c0ece7e
[skip ci] perf(useAllYieldBalances): use Map for O(1) chainId lookup …
gomesalexandre 1c93615
[skip ci] fix: restore yield.xyz feature flags lost in merge
gomesalexandre cb568e2
fix: flags
gomesalexandre 9fd5ed3
[skip ci] refactor(yieldxyz): extract poll constants and formatYieldT…
gomesalexandre a0247be
[skip ci] refactor(yieldxyz): extract hardcoded ShapeShift validator …
gomesalexandre fc6487a
Revert "[skip ci] refactor(yieldxyz): extract hardcoded ShapeShift va…
gomesalexandre f11f312
[skip ci] refactor(yieldxyz): cleanup - remove docs, add feature flag…
gomesalexandre 03de53b
[skip ci] refactor(yieldxyz): replace forEach/let patterns with funct…
gomesalexandre f592770
[skip ci] fix(YieldsList): fix positions grid not rendering and remov…
gomesalexandre 648d945
feat(yieldXYZ): add missing successClaim translation
gomesalexandre fab0c4d
fix(yieldXYZ): move action center notification and query invalidation…
gomesalexandre d336783
feat: cleanup dead code
gomesalexandre b8a6885
feat: more normalization
gomesalexandre 3e7d565
refactor: split ValidatorBreakdown into smaller components
gomesalexandre 0d2a359
refactor(yield): normalize data flow and consolidate components (-106…
gomesalexandre 8f9898c
fix(yield): preserve claim amount during transaction and cleanup unus…
gomesalexandre d55ac12
wip : wip
gomesalexandre 44e4b48
fix(yield): restore SUI gas buffer, improve claim detection, add miss…
gomesalexandre 5a357c8
feat: make @coderabbitai happy, pls resolve
gomesalexandre 4bb0509
feat: make @coderabbitai happy
gomesalexandre 77351bd
fix: lint
gomesalexandre 270ca59
fix: whoopsie
gomesalexandre 94db88b
fix: things @coderabbitai
gomesalexandre 8fc9cca
feat: @coderabbitai you nitty rabbit pls resolve
gomesalexandre a9d3df9
chore: lint fixes
gomesalexandre 39b2d89
Merge branch 'develop' into feat_yield
gomesalexandre 8476f7a
feat: rm todos
gomesalexandre 764d781
Merge remote-tracking branch 'origin/feat_yield' into feat_yield
gomesalexandre 60baf28
Merge branch 'develop' into feat_yield
gomesalexandre 3afcc5f
Merge branch 'develop' into feat_yield
gomesalexandre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import type { Csp } from '../types' | ||
|
|
||
| export const csp: Csp = { | ||
| 'connect-src': ['https://api.yield.xyz'], | ||
| 'img-src': ['https://assets.stakek.it'], | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
gomesalexandre marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a lot of duplicates (actually I found one but didn't check all of them) already existing in this file, maybe we could do a quick LLM pass to remove them |
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
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
gomesalexandre marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
gomesalexandre marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Oops, something went wrong.
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.
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.
Do we need those 2 different flags? Might discover later while reviewing
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 do! Though multi-account isn't implemented at all atm.