fix bnb token and wbnb token differentiation#274
Conversation
WalkthroughThe pull request adds a conditional block within the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant loadTokensData
participant Token
Caller->>loadTokensData: Request token data
loadTokensData->>Token: Retrieve token details
alt Token is "BNB" with mismatched contract
loadTokensData->>Token: Update name to "Wrapped BNB" and symbol to "WBNB"
else Token is not "BNB" or contract matches
loadTokensData->>Token: Use token data unchanged
end
loadTokensData->>Caller: Return processed token data
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying x with
|
| Latest commit: |
41a93c3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://39249ec0.x-e62.pages.dev |
| Branch Preview URL: | https://feat-arbitrum-optimism-bnb-i.x-e62.pages.dev |
Description
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Summary by CodeRabbit