Skip to content

Commit

Permalink
Merge pull request #83 from dockercui/main
Browse files Browse the repository at this point in the history
chore: remove repetitive words
  • Loading branch information
reednaa committed May 14, 2024
2 parents 4f19893 + b8ad4bb commit 5eaf375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Amplification: $P^\theta(w)= \frac{W_i}{(W_i \cdot w)^\theta} \cdot (1-\theta)$

**LocalSwap**: A combination of *sendAsset* and *receiveAsset* executed atomically, often on a single chain.

**Invariant**: A measure used to measure the vault value. Specific to the *invariant* measure, is that it is constant whenever a swap is completed. If a vault implements a swap fee, the measure increases as fees accumulate in the vault. The invariant is not invariant to deposits or withdrawals. The invariants can continously be examined if the the number of emitted Units is kept track of. In the below equations, this is representated as $\sum U$.
**Invariant**: A measure used to measure the vault value. Specific to the *invariant* measure, is that it is constant whenever a swap is completed. If a vault implements a swap fee, the measure increases as fees accumulate in the vault. The invariant is not invariant to deposits or withdrawals. The invariants can continously be examined if the number of emitted Units is kept track of. In the below equations, this is representated as $\sum U$.

## The AMM Equations

Expand Down
2 changes: 1 addition & 1 deletion evm/src/CatalystVaultCommon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ abstract contract CatalystVaultCommon is
if (_escrowLookup[sendAssetHash] != address(0)) revert EscrowAlreadyExists();
_escrowLookup[sendAssetHash] = fallbackUser;
unchecked {
// Must be less than than the vault balance.
// Must be less than the vault balance.
_escrowedTokens[fromAsset] += amount;
}
}
Expand Down

0 comments on commit 5eaf375

Please sign in to comment.