-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revert: Rrevert "fix: ada token decimals (#6592)" #6594
Conversation
This reverts commit c73e3be.
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
WalkthroughThe pull request modifies the Changes
Sequence DiagramsequenceDiagram
participant Vault
participant Transaction
participant Network
Vault->>Transaction: buildDecodedTx()
Transaction->>Network: Get network decimals
Network-->>Transaction: Return decimal value
Transaction->>Transaction: Shift amount using network decimals
The sequence diagram illustrates how the decimal shifting now occurs using network-level decimal information instead of token-specific decimals during transaction decoding. ✨ Finishing Touches
🪧 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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
packages/kit-bg/src/vaults/impls/ada/Vault.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: lint (20.x)
🔇 Additional comments (1)
packages/kit-bg/src/vaults/impls/ada/Vault.ts (1)
267-267
: Verify token decimal handling across the codebaseLet's check how token decimals are handled in other parts of the codebase.
✅ Verification successful
Decimal shifting implementation is consistent with codebase patterns
The negative decimal shift for display amount conversion follows the standard pattern used across all vault implementations.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for token decimal usage patterns echo "Searching for token decimal usage..." rg -A 3 "token.*decimal" # Search for shiftedBy operations echo "Searching for decimal shifting operations..." rg -A 3 "shiftedBy" # Search for ADA token-related tests echo "Searching for ADA token tests..." rg -A 5 "test.*ada.*token"Length of output: 69374
This reverts commit c73e3be.
Summary by CodeRabbit