Skip to content

feat: add bridge-in command to JuiceAdapter for USDT.e → JUSD#3354

Merged
TaprootFreak merged 3 commits intodevelopfrom
feat/juice-bridge-in-command
Mar 5, 2026
Merged

feat: add bridge-in command to JuiceAdapter for USDT.e → JUSD#3354
TaprootFreak merged 3 commits intodevelopfrom
feat/juice-bridge-in-command

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add bridge-in (and bridge-out stub) commands to JuiceAdapter, following the DEuroAdapter pattern
  • Wire up JuiceService.bridgeToJusd() in the liquidity management adapter to convert USDT.e → JUSD on Citrea
  • Handle .e suffixed asset names in JuiceClient.getBridgeContract() (maps USDT.e → USDT bridge contract)

Test plan

  • Verify build passes (npm run build)
  • Verify lint passes (npm run lint)
  • Verify bridge-in command with { asset: "USDT.e" } param triggers bridgeToJusd() correctly
  • Verify bridge-out command throws OrderNotProcessableException
  • Verify checkCompletion() delegates to isTxComplete() for bridge commands and falls through to base class for mint

Wire up the JuiceDollar Bridge in the liquidity management adapter
to support converting USDT.e to JUSD on Citrea, completing the
USDT → JUSD pipeline (step 3: Citrea/USDT.e → Citrea/JUSD).
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

ℹ️ New TODOs/FIXMEs (1)

+    // TODO: Implement bridge out (JUSD → USD stablecoins)

@TaprootFreak TaprootFreak marked this pull request as ready for review March 4, 2026 18:37
TaprootFreak and others added 2 commits March 4, 2026 20:03
Create action chain for rule 321 (JUSD/Citrea):
- Juice bridge-in (USDT.e) with LiquidityPipeline buy fallback
- Activate rule with deficit thresholds (min=0, optimal=1000)
@TaprootFreak TaprootFreak merged commit bc65c51 into develop Mar 5, 2026
8 checks passed
@TaprootFreak TaprootFreak deleted the feat/juice-bridge-in-command branch March 5, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants