





Ammalgam
Everything you need to learn for the Ammalgam contest: 26 comprehensive code tours totaling over 391 steps, formulas presented in LaTeX, and a detailed glossary.
Check out our free interactive demo
Cantina, 10 Jul → 24 Jul 2025
Everything you need to learn for the Ammalgam contest: 26 comprehensive code tours totaling over 391 steps, formulas presented in LaTeX, and a detailed glossary.
Check out our free interactive demo
Cantina, 10 Jul → 24 Jul 2025
Everything you need to learn for the Ammalgam contest: 26 comprehensive code tours totaling over 391 steps, formulas presented in LaTeX, and a detailed glossary.
Check out our free interactive demo
Cantina, 10 Jul → 24 Jul 2025
Code Tours
1.1: Ammalgam Protocol: A High-Level Overview
2.1: Plugins: Overview
2.2: Plugin Registry Interface
2.3: Plugin Registry Implementation and Security Analysis
3.1: Tokens: Overview
3.2: Tokens: ERC20Base Contract
3.3: Tokens: ERC20DebtBase Contract
3.4: Tokens: Liquidity Tokens
3.5: Tokens: ERC4626 Vaults
4.1: Saturation and TWAP: Overview
4.2: State Management for Saturation and TWAP
5.1: Liquidation Logic in Ammalgam
6.2: TokenController: Managing Pair Tokens
6.5: AmmalgamPair: Swapping Tokens
6.6: AmmalgamPair: Lending and Borrowing
6.7: AmmalgamPair: Liquidations
6.8: Pair: Interfaces
7.1: Factory: Overview
7.2: AmmalgamFactory and Interface Deep Dive
7.3: NewTokensFactory and Interface Deep Dive
7.5: Factory Callback System