Skip to content

Repository for the specifications for the Certora workshop on ERC4626 at TrustX @ Istanbul 2023 modified for fuzzy.io blog

Notifications You must be signed in to change notification settings

nican0r/ERC4626_Workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC4626 Workshop Inflation Attack

Repository adapted from the Certora workshop on ERC4626 at TrustX @ Istanbul 2023.

The certora folder contains Certora CVL specification for the inflation attack on ERC4626 where the attack implemented in the specification aims to cover a more generalized version of the attack to make it more broadly applicable.

The verification is checked against OpenZeppelin's implementation of ERC4626.

Getting started

  1. Sign-up for Certora Free Tier
  • Note: It's important to also set the CERTORAKEY environment variable.
  1. Install the Certora prover
  2. Run the Vault specification by executing certoraRun certora/conf/Vault.conf from within the ERC4626_Workshop folder to view the initial rules verified for the vault. Follow the link returned and wait for the verification to be completed. Alternatively, open the pre-computed results.
  3. Run the InflationAttack specification by executing certoraRun certora/conf/InflationAttack.conf from within the ERC4626_Workshop folder. Follow the link returned and wait for the verification to be completed. Alternatively, open the pre-computed results.

Additional Material

About

Repository for the specifications for the Certora workshop on ERC4626 at TrustX @ Istanbul 2023 modified for fuzzy.io blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 96.3%
  • Ruby 3.7%