Skip to content

Commit 12efc8a

Browse files
committed
typos and docs
spearbit #13
1 parent 6d35d87 commit 12efc8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Virtual reserves control the maximum debt that the EulerSwap contract will attem
4343

4444
### Reserve synchronisation
4545

46-
The EulerSwap contract tracks what it believes the reserves to be by caching their values in storage. These reserves are updated on each swap. However, since the balance is not actually held by the EulerSwap contract (it is simply an operator), the actual underlying balances may get out of sync. This can happen gradually as interest is accrued, or suddenly if the holder moves funds or the position is liquidated. When this occurs, the `syncVirtualReserves()` should be invoked. This determines the actual balances (and debts) of the holder and adjusts them by the configured virtual reserve levels.
46+
The EulerSwap contract tracks what it believes the reserves to be by caching their values in storage. These reserves are updated on each swap. However, since the balance is not actually held by the EulerSwap contract (it is simply an operator), the actual underlying balances may get out of sync. This can happen gradually as interest is accrued, or suddenly if the holder moves funds or the position is liquidated. When this occurs, the EulerSwap operator should be uninstalled and a new, updated one installed instead.
4747

4848
## Components
4949

src/EulerSwap.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ contract EulerSwap is IEulerSwap, EVCUtil {
126126
uint256 amount1In = IERC20(asset1).balanceOf(address(this));
127127
if (amount1In > 0) amount1In = depositAssets(vault1, amount1In) * feeMultiplier / 1e18;
128128

129-
// Verify curve invariant is satisified
129+
// Verify curve invariant is satisfied
130130

131131
{
132132
uint256 newReserve0 = reserve0 + amount0In - amount0Out;

0 commit comments

Comments
 (0)