How do atomic swaps work?
Let’s take our case, user gives an intent to swap. The auction house selects a solver for this. After executing the intent, the solver and the user have to settle (swap) their assets.
- User deposits asset A into a transparent vault on chain A.
- Solver checks the deposited amount and, if it matches the expected amount, deposits asset B into an identical transparent vault on chain B.
- User (client UI) verifies the amount deposited by the solver and, if correct, opens the vault to collect asset B on chain B.
- Solver can now collect asset A from the user’s vault on chain A; the swap is complete.
Scenarios and safeguards
1. Lock Asset A and B happens, but claim asset B doesn’t happen

- Penalty: Stakers are slashed 1% of the intent value.
- Solver resolution: Refund of Asset B after 24 hours, plus slashed SEED as compensation.
- User resolution: Refund of Asset A after 48 hours.
2. Lock Asset B doesn’t happen

- Penalty: Solver and stakers are slashed 0.5% of the intent value.
- User resolution: Refund of Asset A after 48 hours, plus slashed SEED as compensation.