Skip to content

feat: remap pathusd to usdc#188

Merged
nicholaspai merged 1 commit intomasterfrom
codex/pathusd-equivalence-remap
Mar 20, 2026
Merged

feat: remap pathusd to usdc#188
nicholaspai merged 1 commit intomasterfrom
codex/pathusd-equivalence-remap

Conversation

@nicholaspai
Copy link
Member

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4519ac419f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// Hard-coded mapping of token symbols that should be treated as having equivalent
// prices. The right-hand side should map to a token symbol in TOKEN_SYMBOLS_MAP.
export const TOKEN_EQUIVALENCE_REMAPPING: { [symbol: string]: string } = {
[TOKEN_SYMBOLS_MAP.pathUSD.symbol]: TOKEN_SYMBOLS_MAP.USDC.symbol,

Choose a reason for hiding this comment

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

P2 Badge Avoid collapsing pathUSD onto USDC pricing

If a consumer uses TOKEN_EQUIVALENCE_REMAPPING for price lookup, this forces pathUSD to bypass its own metadata in src/tokens.ts:285-293 (coingeckoId: "pathusd") and always inherit USDC's price instead. pathUSD is Tempo's native quote/fallback fee token rather than a wrapped USDC variant, so any pathUSD depeg or Tempo-specific premium/discount would now be hidden and balances or fees on Tempo would be misvalued as USDC.

Useful? React with 👍 / 👎.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is by design

@nicholaspai nicholaspai merged commit c3b548d into master Mar 20, 2026
@nicholaspai nicholaspai deleted the codex/pathusd-equivalence-remap branch March 20, 2026 15:33
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