Skip to content

feat: support Sepolia for faucet and use fixed ETH amount#3619

Merged
TaprootFreak merged 4 commits intodevelopfrom
feat/faucet-sepolia-support
Apr 23, 2026
Merged

feat: support Sepolia for faucet and use fixed ETH amount#3619
TaprootFreak merged 4 commits intodevelopfrom
feat/faucet-sepolia-support

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

  • Switch faucet target blockchain based on environment: Sepolia on DEV/LOC, Ethereum on PRD.
  • Replace CHF-based pricing conversion with a fixed native amount: Config.faucetAmount = 0.0005 ETH (applies to both Ethereum and Sepolia).
  • Remove unused PricingService dependency from FaucetRequestService.

Context

Needed for the upcoming BitBox (hardware-wallet) RealUnit sell flow: since BitBox02 firmware does not expose a raw EIP-7702 authorization signing API, BitBox users cannot use the gasless relayer path. Instead, DFX tops up the user wallet with a small fixed amount of ETH (enough for one ERC-20 transfer of REALU to the deposit address), so that the sell flow can be completed via the existing txHash fallback in confirmSell.

Test plan

  • DEV deploy: verify POST /v1/faucet succeeds for a user with a Sepolia wallet and KYC Level 30.
  • Confirm sendNativeCoinFromDex sends 0.0005 Sepolia-ETH from the DEX hot wallet.
  • Verify FaucetRequest entity is persisted with amount: 0.0005 and asset.blockchain: Sepolia.
  • Verify cron poller transitions the request to COMPLETED once the tx is mined.
  • PRD: unchanged behavior (Ethereum mainnet, 0.0005 ETH).

Switch faucet blockchain based on environment (Sepolia on DEV/LOC,
Ethereum otherwise) and replace CHF-based amount conversion with a
fixed native-coin amount (0.0005 ETH).
@TaprootFreak TaprootFreak requested a review from xlamn April 23, 2026 13:49
Match the readonly field style used in realunit.service.ts for
environment-based blockchain selection.
Faucet is required for the BitBox RealUnit sell flow on Sepolia
(DEV/LOC). Keep the ENV flag as an explicit override for PRD.
The flag is auto-enabled on DEV and LOC and only relevant on PRD,
where it is configured via deployment secrets.
@TaprootFreak TaprootFreak merged commit 80cc5e0 into develop Apr 23, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feat/faucet-sepolia-support branch April 23, 2026 13:57
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.

1 participant