Malda

$20.00

Everything you need to learn for the Malda contest: 44 comprehensive code tours totaling over 700 steps, formulas presented in LaTeX, and a detailed glossary.

Click here to try out our interactive demo!

Sherlock, 24 Jul → 14 Aug 2025

Everything you need to learn for the Malda contest: 44 comprehensive code tours totaling over 700 steps, formulas presented in LaTeX, and a detailed glossary.

Click here to try out our interactive demo!

Sherlock, 24 Jul → 14 Aug 2025

Code Tours

  • 1.1 Malda: A High-Level Architectural Tour

  • 2.1 AccessControl: Overview

  • 2.2 AccessControl: Roles

  • 2.3 AccessControl: Blacklister

  • 2.4 AccessControl: Pauser

  • 3.1 Oracles: Overview

  • 3.2 ChainlinkOracle.sol: Direct Price Feeds

  • 3.3 MixedPriceOracle: Resilient Price Feeds

  • 3.4 Gas Helpers: Managing Oracle Gas Costs

  • 4.1 InterestRateModel: Overview

  • 4.2 InterestRateModel: JumpRateModelV4 Deep Dive

  • 5.1 RewardDistributor: Overview

  • 5.2 RewardDistributor: Core Logic

  • 6.1 Operator: Overview

  • 6.2 Operator: State and Storage

  • 6.3 Operator: Interfaces (API)

  • 6.4 Operator Logic: Market Administration

  • 6.5 Operator Logic: Calculating Account Liquidity

  • 6.6 Operator Logic: Liquidation Checks

  • 6.7 Operator: The Empty Implementation

  • 7.1 mToken: Component Overview

  • 7.2 mToken: The Interfaces

  • 7.3 mToken: Storage Layout

  • 7.4 mToken: Configuration and Administration

  • 7.5 mToken: Base ERC20 Functionality

  • 7.6 mToken Core: Interest Accrual

  • 7.7 mToken Core: Supplying Assets (Minting)

  • 7.8 mToken Core: Withdrawing Assets (Redeeming)

  • 7.9 mToken Core: Borrowing and Repaying

  • 7.10 mToken Core: Liquidations

  • 7.11 mToken: Host Chain Functionality

  • 7.12 mToken: The Batch Submitter Utility

  • 8.1 mTokenGateway: Overview

  • 8.2 The mTokenGateway Contract

  • 8.3 Zero-Knowledge Proof Verification

  • 8.4 Decoding Proof Data

  • 9.1 malda-zk-coprocessor: Overview

  • 9.2 malda-zk-coprocessor: Shared Utilities (malda_utils)

  • 9.3 malda-zk-coprocessor: Host Logic (malda_rs)

  • 10.1 Rebalancer: Overview

  • 10.2 The Rebalancer Contract

  • 10.3 Rebalancing Bridges

  • 11.1 Migration: Overview

  • 11.2 Migration: Migrator Implementation