feat: support Sepolia for faucet and use fixed ETH amount#3619
Merged
TaprootFreak merged 4 commits intodevelopfrom Apr 23, 2026
Merged
feat: support Sepolia for faucet and use fixed ETH amount#3619TaprootFreak merged 4 commits intodevelopfrom
TaprootFreak merged 4 commits intodevelopfrom
Conversation
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).
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sepoliaon DEV/LOC,Ethereumon PRD.Config.faucetAmount = 0.0005 ETH(applies to both Ethereum and Sepolia).PricingServicedependency fromFaucetRequestService.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
txHashfallback inconfirmSell.Test plan
POST /v1/faucetsucceeds for a user with a Sepolia wallet and KYC Level 30.sendNativeCoinFromDexsends 0.0005 Sepolia-ETH from the DEX hot wallet.FaucetRequestentity is persisted withamount: 0.0005andasset.blockchain: Sepolia.COMPLETEDonce the tx is mined.