Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
WalkthroughIn TokensStore.swift, the AZTEC token's decimal precision in the Maya Chain token list was adjusted from 8 to 4. Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
VultisigApp/VultisigApp/Stores/TokensStore.swift (1)
1213-1221:⚠️ Potential issue | 🔴 CriticalRevert AZTEC decimals to 8 per MayaChain specification.
AZTEC must use 8 decimals (1e8) on MayaChain according to official specification, not 4. The change introduces a critical bug affecting all balance calculations and transactions by 10,000x.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@VultisigApp/VultisigApp/Stores/TokensStore.swift` around lines 1213 - 1221, The CoinMeta entry for AZTEC under chain: .mayaChain currently sets decimals: 4 but must be 8; update the AZTEC CoinMeta (ticker: "AZTEC", chain: .mayaChain) to use decimals: 8 so balance math and token amounts use 1e8 precision consistently across the TokenStore and any consumers that rely on CoinMeta.decimals.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@VultisigApp/VultisigApp/Stores/TokensStore.swift`:
- Around line 1213-1221: The CoinMeta entry for AZTEC under chain: .mayaChain
currently sets decimals: 4 but must be 8; update the AZTEC CoinMeta (ticker:
"AZTEC", chain: .mayaChain) to use decimals: 8 so balance math and token amounts
use 1e8 precision consistently across the TokenStore and any consumers that rely
on CoinMeta.decimals.
Summary
TokensStore.swiftTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit