feat(#978): add key subscription status and content access gate - #1004
Open
whitezaddy wants to merge 2 commits into
Open
whitezaddy wants to merge 2 commits into
whitezaddy wants to merge 2 commits into
Conversation
|
@whitezaddy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Member
|
MC |
Chucks1093
pushed a commit
that referenced
this pull request
Sep 28, 2026
Adds a Liquidity tab to /profile (read-only on /profile/:wallet) showing active LP positions, total LP earnings, and add / claim / remove controls. - Reads positions and pool APR from the LP API specified in accesslayer-server #980 (GET /lp/positions, GET /lp/pool/:keyId). - Submits add_liquidity / claim_lp_rewards / remove_liquidity on the Creator Keys contract (accesslayer-contracts #1002, PR #1004) through the existing Soroban Client + Signer pattern used by governance votes. - Validates add-liquidity amounts against spendable XLM read from the account ledger entry (net of reserve and selling liabilities), and re-validates against a fresh balance right before signing. - Pool share uses exact integer math, floored to 0.01%. All amounts are bigint stroops end to end. - Claim is simulated first and never prompts the wallet for a zero payout. Removal is blocked with a live countdown while locked, and the lock is re-checked from fresh data before signing. - Success is only reported once getTransaction returns SUCCESS; an on-chain FAILED is surfaced as an error. - Earnings total is de-duplicated by lpId and withheld when any position's rewards are unavailable. Documented in docs/LpPositionManagement.md, including the expected API shape and the known limitations (no lock in the current contract, XLM assumed as the pool asset). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Summary
Closes #978
SubscriptionAccessGatecomponent to gate content based on a user's wallet key holdings.CreatorDetailPageto wrap the exclusive content section.Testing
pnpm lintpnpm buildChecklist