bug: transfer amount mismatch - wallet debits 10 TESTA but bridge processes ~0.03 TESTA #9
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Frontend Bug Report
Issue Title
Environment
Steps to Reproduce
10 TESTA(user expected full 10 to bridge).Expected Behavior
Actual Behavior
10 TESTA.0.03 TESTA(screenshot also shows an unexpectedly reduced amount context, e.g.9.97in status card).Severity
Evidence (screenshots / recordings)
Console Errors (if available)
Transaction Hash (if applicable)
Source
Auto-uploaded Evidence
@brouieThis issue is a transfer mismatch not a display mismatch@brouieIt should be resolved but please verifyFix pushed —
b4f8247onmainRoot cause:
parseTerraLockReceiptwas using theamountfrom the last wasm event it encountered. For CW20 deposits, a fee transfer event (withamount= the 0.3% fee) appears after the bridge deposit event (withamount= net), overwriting the correct value. This caused the first withdrawal attempt to submit the fee as the transfer amount, which reverted on-chain.Fix: The parser now tracks which event contains the
nonce(the bridge deposit event) and prefers itsamountover amounts from other events. Priority:lock_amount> deposit event amount > generic amount.Tests added:
This also resolves #29 — the "HASH NOT FOUND ON DESTINATION" error was caused by the same first-attempt revert.
@brouiePlease verify on v0.1.35+ — the first withdrawal attempt should now use the correct amount without needing a retry.