Skip to content

ERC4626 mock with functions to register yield and losses

License

Notifications You must be signed in to change notification settings

Recon-Fuzz/ERC4626Tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC4626 Testing Utilities

Introduction

This repository contains testing utilities for ERC4626 vaults, including mocks that can simulate various failure modes and yield scenarios.

Overview

The main components are:

  • MockERC4626Tester: A mock ERC4626 vault that can:

    • Simulate different types of reverts (normal revert, out-of-gas, return bomb, etc.)
    • Manipulate yield by increasing/decreasing the asset/share ratio
    • Mint unbacked shares
    • Configure decimals offset
  • MockERC20Tester: A mock ERC20 token for testing the vault with.

Usage

To use these utilities in your project, you use Foundry to install them as dependencies:

forge install

About

ERC4626 mock with functions to register yield and losses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published