Found Academy useful? A $5 donation by May 14 helps us ship more, faster. Every donor counts (QF matching).

Donate
Shadow Arena/Shadow Arena #002: ElasticSwap
DEX/AMMBeginner

Shadow Arena #002: ElasticSwap

ElasticSwap is the first AMM built to support elastic supply (rebasing) tokens. It uses the constant product formula x * y = k, extended with a novel mathematical model for handling supply changes. The core challenge: how does an AMM maintain fair pricing when one token's total supply changes between transactions?

Scope (739 SLOC)

FileSLOC
src/contracts/Exchange.sol218
src/contracts/ExchangeFactory.sol52
src/libraries/MathLib.sol469

Documentation

Part of the Uniswap V2 Path

This shadow audit connects to the Uniswap V2 Build module. Students who completed the CFAMM build have an advantage because they understand the core architecture.

View Build Module
Duration2 days
Total Findings3
Scope739 SLOC
PriceFree