QA: Validate below-min block behavior against live TokenMapping PDA limits (Solana) #112

Closed
opened 2026-04-20 12:06:26 +00:00 by PlasticDigits · 6 comments
PlasticDigits commented 2026-04-20 12:06:26 +00:00 (Migrated from gitlab.com)

Context

Follow-up from bridge UI verification on v0.1.82 (2a127e66, mainnet). Primary fix is confirmed: MIN label on Solana destination, destTokenDecimals loading via TokenMapping PDA (findTokenMappingPda + resolveWithdrawSrcTokenBytesForSolana), net "You will receive" line, MIN preset + CTA flows (route tested: BSC → Solana, token testa).

What still needs validation

Below-min block behavior should be exercised against live PDA limits, not only the happy path. Today testa has a 1.0 minimum, which makes the below-min edge case hard to trigger without sub-1 testa transfers (or another asset / configuration with a more testable floor).

Scope / acceptance

  • Attempt an actual below-min amount on a Solana destination and confirm the UI blocks or warns as designed, consistent with on-chain TokenMapping / withdraw constraints.
  • Document route, token, amounts, and observed behavior (screenshots or notes) for regression reference.

cc @Brouie

## Context Follow-up from bridge UI verification on **v0.1.82** (`2a127e66`, mainnet). Primary fix is confirmed: MIN label on Solana destination, `destTokenDecimals` loading via TokenMapping PDA (`findTokenMappingPda` + `resolveWithdrawSrcTokenBytesForSolana`), net "You will receive" line, MIN preset + CTA flows (route tested: BSC → Solana, token **testa**). ## What still needs validation **Below-min block behavior** should be exercised against **live PDA limits**, not only the happy path. Today **testa** has a **1.0** minimum, which makes the below-min edge case hard to trigger without sub-1 **testa** transfers (or another asset / configuration with a more testable floor). ## Scope / acceptance - [ ] Attempt an actual **below-min** amount on a Solana destination and confirm the UI blocks or warns as designed, consistent with on-chain TokenMapping / withdraw constraints. - [ ] Document route, token, amounts, and observed behavior (screenshots or notes) for regression reference. cc @Brouie
PlasticDigits commented 2026-04-20 12:06:26 +00:00 (Migrated from gitlab.com)

assigned to @Brouie

assigned to @Brouie
PlasticDigits commented 2026-04-20 12:07:33 +00:00 (Migrated from gitlab.com)

mentioned in issue #108

mentioned in issue #108
Brouie commented 2026-04-21 04:31:26 +00:00 (Migrated from gitlab.com)

@PlasticDigits verified on v0.1.82 - 2a127e6.

Route: BSC → Solana
Token: tdec (18 decimals on BSC, MIN PDA 3Af1LkQo2g9xasGhCcofVnRPWJxPjSyBHnMiFdzVNRm5)
Live MIN displayed: 1.005251256281407037 tdec
Test amount: 0.0005 tdec (~2000x below MIN)

Result: BRIDGE button disabled, blocked cursor on hover. UI correctly prevents submission below MIN.

Minor UX note: button is silently disabled with no explicit error text or tooltip explaining "below MIN" — not blocking, just an observation. MIN value is shown in the header row so user has the reference.

Screenshot attached on request.

@PlasticDigits verified on v0.1.82 - 2a127e6. Route: BSC → Solana Token: tdec (18 decimals on BSC, MIN PDA 3Af1LkQo2g9xasGhCcofVnRPWJxPjSyBHnMiFdzVNRm5) Live MIN displayed: 1.005251256281407037 tdec Test amount: 0.0005 tdec (~2000x below MIN) Result: BRIDGE button disabled, blocked cursor on hover. UI correctly prevents submission below MIN. Minor UX note: button is silently disabled with no explicit error text or tooltip explaining "below MIN" — not blocking, just an observation. MIN value is shown in the header row so user has the reference. Screenshot attached on request.
PlasticDigits commented 2026-04-21 04:32:15 +00:00 (Migrated from gitlab.com)

@Brouie Open an issue for the minor ux note to add tooltip and explicit error text below button explaining the reason the button is disabled, then close this issue

@Brouie Open an issue for the minor ux note to add tooltip and explicit error text below button explaining the reason the button is disabled, then close this issue
Brouie commented 2026-04-21 04:34:41 +00:00 (Migrated from gitlab.com)

mentioned in issue #113

mentioned in issue #113
Brouie (Migrated from gitlab.com) closed this issue 2026-04-21 04:34:59 +00:00
Brouie commented 2026-04-21 05:20:06 +00:00 (Migrated from gitlab.com)

mentioned in issue #111

mentioned in issue #111
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-bridge-monorepo#112
No description provided.