Route
Hashlock (HTLC)Linked by one sha256 hashlock, visible on both chains.
- Estimated time
- –
- Refund after
- –
- Claim gas
- Relayer
Zcash: Unshield the swap amount
Only this amount leaves the shielded pool, into a dedicated swap address. Change and refunds are shielded again.
Zcash: You lock ZEC
Into an HTLC: the maker can claim it only with the secret; after a timeout it's yours again.
Tempo: Maker locks OUSD
In an HTLC on Tempo that pays you, under the same hashlock. Expires before your ZEC refund opens.
Tempo: You claim OUSD
Claiming publishes the secret on Tempo, the only way the maker can open the ZEC. A relayer submits the claim.
Zcash: Maker claims ZEC
The maker reads the secret from the claim and opens the ZEC lock. Both sides are paid.
- Hashlocksha256 of the secret
- Set when the swap starts
- Secret
- Private until you claim on Tempo
- Zcash HTLC addressP2SH
- Set when the swap starts
- Redeem script
- Set when the swap starts
- Refundtimeout branch
- Set when the swap starts
- Tempo contractParalockHTLC
- Set when the swap starts
- Stablecoin token6 decimals
- Set when the swap starts
- Maker addresslocks the dollars
- Set when the swap starts
- Maker Zcash pubkeyclaims the ZEC
- Set when the swap starts
Run the three endings
Every swap ends one of two ways: both sides are paid, or both get their money back. Each run starts a swap above with your current amount, chain and mode, played by the simulated maker.
Normal swap
You lock ZEC, the maker locks dollars, you claim. Claiming hands the maker the key to the ZEC.
You get the dollars; the maker gets the ZEC.
About 20 sThe maker disappears
You lock ZEC and the maker never locks dollars. Nothing was traded, so nothing is owed.
You refund your ZEC once the timeout passes.
Refund in about 50 sYou walk away
The maker locks dollars but you never claim. The maker's lock expires first, by design.
The maker takes back the dollars, then you refund your ZEC.
Refund in about 50 s
Request a payment
Make a link for a customer or a friend. It opens this app in Pay mode with your address, price and chain filled in, and you receive exactly that amount.
Enter your address to make the link.