Feat/add pharos and rise mainnet - #90
Open
junjieit wants to merge 6 commits into
Open
Conversation
- Migrate direct useWeb3React() reads (account/chainId/provider) to the useWalletInfo() hook across swap, bridge, pool and mining modules - Add optional walletState prop to Widget so integrators can inject their own account/chainId/provider; skip internal auto-connect when present - useWeb3Connectors: skip integrator connection sync when walletState manages state externally - NumberInput: keep raw input while typing, sync to sanitized value on blur - Guard chain-mismatch checks on account presence (Swap, NeedConnectButton) - useSwitchChain: allow non-MetaMask providers - Normalize provider unwrap to (provider as any)?.provider ?? provider - Fix Pharos mainnet explorer domain to www.pharosscan.xyz - chore: bump version to 3.20.0-alpha.7 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pool list page gains an LP fee reward activity, driven by WidgetProps `lpFeeRewardActivity` and the reworked `lp_fee_reward_getUserReward` API. Banner: - Shows activity title/description/View more + "My rewards" amount + token icon - Reward amount and Claim state follow `claimStatus`: ESTIMATING -> estimatedReward (Claim disabled); CLAIMABLE -> claimableReward (Claim enabled); CLAIMED -> "Claimed"; NOT_ELIGIBLE -> disabled - Claim wired to the Merkle distributor: SystemApi.encode.claimLpFeeReward encodes claim(index, account, amount, proof) and submits via the existing submission flow (useClaimLpFeeRewardSubmit); refetches on success - Theme-aware colors (primary + contrastText), decorative background bands, responsive sizing (amount 18px mobile / 24px desktop) Pool list: - 🔥 badge + "Mining Only" filter driven by `pair.apy.lpFeeRewardApy` - Badge shows the bonus APY with a title/description tooltip API (@dodoex/api): - fetchLpFeeRewardUserReward updated to the new fields (estimated/claimable reward, claimStatus, claimContract, period*, merkleRoot, index, proof), input via periodId - lpFeeRewardApy added to the liquidity list apy selections - Regenerated gql types; SystemApi.encode.claimLpFeeReward added i18n: en-US / zh-CN catalogs updated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump @dodoex/api (schema + SystemApi.encode changes for LP fee reward) and point the widgets dependency at the new version. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pharos mainnet's native token symbol is PROS (testnets keep PHRS). Bump @dodoex/api 3.9.0-alpha.3 and @dodoex/widgets 3.20.0-alpha.9, and point the widgets dependency at the new api version. Co-Authored-By: Claude Opus 4.8 (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.
No description provided.