Skip to content

Remove ICP service passthrough methods#3378

Merged
bernd2022 merged 3 commits intodevelopfrom
fix/icp-remove-passthrough-methods
Mar 10, 2026
Merged

Remove ICP service passthrough methods#3378
bernd2022 merged 3 commits intodevelopfrom
fix/icp-remove-passthrough-methods

Conversation

@bernd2022
Copy link
Collaborator

Summary

  • Remove 14 passthrough methods from InternetComputerService — PayIn/Payout services now use InternetComputerClient directly via getDefaultClient()
  • Simplify fee asset logic in ICP payout/payin strategies (Reverse Gas Model: fee is always in the transacted asset)
  • Extract icpClient local variable in PaymentQuoteService.doIcpPayment() to avoid repeated getDefaultClient() calls
  • Remove unused InternetComputerController (debug endpoint)

Test plan

  • npx tsc --noEmit — no new type errors
  • npm test — no new test failures
  • npx prettier --write — all files formatted
  • E2E: Buy ICP (EUR → ICP)
  • E2E: Buy ckUSDT (EUR → ckUSDT)
  • E2E: Sell ICP (ICP → EUR)
  • E2E: Payment Link (TxId + ICRC-2 Approve)

@bernd2022 bernd2022 marked this pull request as ready for review March 10, 2026 11:13
@bernd2022 bernd2022 requested a review from TaprootFreak as a code owner March 10, 2026 11:13
@bernd2022 bernd2022 merged commit b774f06 into develop Mar 10, 2026
8 checks passed
@bernd2022 bernd2022 deleted the fix/icp-remove-passthrough-methods branch March 10, 2026 11:13
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