Skip to content

Feat/add pharos and rise mainnet - #90

Open
junjieit wants to merge 6 commits into
mainfrom
feat/add-pharos-and-rise-mainnet
Open

Feat/add pharos and rise mainnet#90
junjieit wants to merge 6 commits into
mainfrom
feat/add-pharos-and-rise-mainnet

Conversation

@junjieit

@junjieit junjieit commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

junjieit and others added 6 commits March 19, 2026 15:04
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant