Skip to content

feat(bridge): add pyusd support through lifi#194

Open
chrstph-dvx wants to merge 2 commits intomasterfrom
add-pyusd-support
Open

feat(bridge): add pyusd support through lifi#194
chrstph-dvx wants to merge 2 commits intomasterfrom
add-pyusd-support

Conversation

@chrstph-dvx
Copy link
Contributor

@chrstph-dvx chrstph-dvx commented Mar 5, 2026

Summary

Steps to test

Copilot AI review requested due to automatic review settings March 5, 2026 02:38
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arbitrum-portal Ready Ready Preview Mar 5, 2026 2:44am

Request Review

Comment on lines +115 to +119
PYUSD: {
symbol: 'PYUSD',
name: 'PayPal USD',
},
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds PYUSD (PayPal USD) support through LiFi bridging between Ethereum and Arbitrum One. Previously, PYUSD was a withdraw-only token on Arbitrum One, meaning users could only withdraw it but not deposit. This PR enables bidirectional bridging via LiFi.

Changes:

  • Removes PYUSD from the withdraw-only token list and adds its addresses to the common address registry, enabling deposits through LiFi
  • Adds PYUSD to the LiFi token registry (CUSTOM_TOKENS) and metadata overrides in both the app and arb-token-bridge-ui packages
  • Refactors the normalizeTokenMetadata function in app/registry.ts to use a data-driven TOKEN_METADATA_OVERRIDES map, and fixes the USDT name field from 'USDT' to 'Tether USD'

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/arb-token-bridge-ui/src/util/WithdrawOnlyUtils.ts Removes PYUSD from the withdraw-only token list to enable deposits
packages/arb-token-bridge-ui/src/util/CommonAddressUtils.ts Adds PYUSD addresses for Ethereum and ArbitrumOne to the common address registry
packages/arb-token-bridge-ui/src/app/api/crosschain-transfers/lifi.ts Adds isPyUsdToken helper and PYUSD metadata override; fixes USDT name to 'Tether USD'
packages/app/src/app/api/crosschain-transfers/lifi/tokens/registry.ts Adds PYUSD to CUSTOM_TOKENS; refactors normalizeTokenMetadata to use a data-driven TOKEN_METADATA_OVERRIDES map

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

@dewanshparashar dewanshparashar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Search for PYUSD in token selector, 2. Select it. 3. Throws error.
Image

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.

3 participants