Skip to content

Commit

Permalink
Update architecture.mdx
Browse files Browse the repository at this point in the history
- Typo
  • Loading branch information
pavlovdog authored Nov 6, 2024
1 parent 930d29c commit 3c8665a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages/infra/magic-spend/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ struct Withdrawal {
This section describes the flow of the MagicSpend++ protocol. In order to start using MagicSpend++, users have to stake their funds. Read how to do that in the [Staking](/infra/magic-spend/staking) section.

1. User stakes their funds in the `MagicSpendStakeManager` contract, on one or many networks.
2. User sends a `pimlico_prepareMagicSpendAllowance` call, which returns the `Allowance`
3. User signs the `Allowance` and sends it with `pimlico_grantMagicSpendClaimAllowance` call.
2. User sends a `pimlico_prepareMagicSpendAllowance` call, which returns the `Allowance`.
3. User signs the `Allowance` and sends it with `pimlico_grantMagicSpendAllowance` call.
4. Pimlico validates the `Allowance` and returns it's hash.
5. User sends a `pimlico_sponsorMagicSpendWithdrawal` call, where they specify the asset, amount, recipient, chain id, etc.
6. Pimlico signs the corresponding `Withdrawal` and returns it with a signature to user
7. User sends a transaction, which contains `MagicSpendWithdrawalManager.withdraw(Withdrawal withdrawal, bytes signature)` call and receives the funds.
8. Once `Withdrawal` is executed, Pimlico can claim the user's stake by calling `MagicSpendStakeManager.claim(Allowance allowance, bytes signature)`.
8. Once `Withdrawal` is executed, Pimlico can claim the user's stake by calling `MagicSpendStakeManager.claim(Allowance allowance, bytes signature)`.

0 comments on commit 3c8665a

Please sign in to comment.