Skip to content

Commit 44ae1a0

Browse files
committed
fix: remove swap account language in architecture.md
1 parent 73e57c9 commit 44ae1a0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/architecture.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22

33
## Overview
44

5-
EulerSwap is an automated market maker (AMM) that integrates with Euler lending vaults to provide deeper liquidity for swaps.
6-
7-
Unlike traditional AMMs that use shared liquidity pools, EulerSwap operates with independent swap accounts, where each account manages liquidity for a single user or entity.
5+
EulerSwap is an automated market maker (AMM) that integrates with Euler credit vaults to provide deeper liquidity for swaps.
86

97
Each EulerSwap instance is a lightweight smart contract that functions as an [EVC operator](https://evc.wtf/docs/whitepaper/#operators) while implementing a highly customizable AMM curve to determine swap output amounts.
108

11-
When a user initiates a swap, the swap account borrows the required output token using the input token as collateral. The swap account’s AMM curve governs the exchange rate, ensuring deep liquidity over short timeframes while maintaining a balance between collateral and debt over the long term.
9+
When a user initiates a swap, the EulerSwap operator borrows the required output token using the input token as collateral. The operator’s internal AMM curve governs the exchange rate, ensuring deep liquidity over short timeframes while maintaining a balance between collateral and debt over the long term.
1210

1311
## Code structure
1412

1513
EulerSwap’s code is split into two main smart contracts:
1614

1715
### EulerSwap core (`EulerSwap.sol`)
1816

19-
- Handles collateralization via EVC and Euler lending vaults.
17+
- Handles collateralization via EVC and Euler credit vaults.
2018
- Implements AMM curve invariant checks through the `verify()` function.
2119

2220
### EulerSwap periphery (`EulerSwapPeriphery.sol`)
@@ -26,10 +24,10 @@ EulerSwap’s code is split into two main smart contracts:
2624

2725
## Operational flow
2826

29-
The following steps outline how a swap account is created and configured:
27+
The following steps outline how an EulerSwap operator is created and configured:
3028

31-
1. Deposit initial liquidity into one or both of the vaults to enable swaps.
32-
2. Deploy the EulerSwap contract, specifying AMM curve parameters and the `fee`.
29+
1. Deposit initial liquidity into one or both of the underlying credit vaults to enable swaps.
30+
2. Deploy an instance of EulerSwap, specifying AMM curve parameters and the `fee`.
3331
3. Set the [virtual reserves](#virtual-reserves) by invoking `setVirtualReserves()`.
3432
4. Install the EulerSwap contract as an operator for the user's account.
3533
5. Invoke the `configure()` function on the EulerSwap contract.

0 commit comments

Comments
 (0)