Conversation
There was a problem hiding this comment.
💡 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, |
There was a problem hiding this comment.
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 👍 / 👎.
No description provided.