Request form
ERC4626
  • ERC4626
  • Audited
Docs
Source
ChefGPT

ERC4626

This smart contract is an extension of the ERC20 standard. It allows users to deposit and withdraw assets, mint and redeem shares, and perform accounting calculations. It also includes hooks for additional logic before withdrawals and after deposits.

ERC4626 :
ERC20 :
Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
SafeTransferLib :
Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
FixedPointMathLib :
ERC4626.sol
ERC20.sol
SafeTransferLib.sol
FixedPointMathLib.sol

4 downloads

Solidity Version

0.8.15

Creator

Solmate
Solmate / ERC4626
  • ERC4626
  • Audited
Docs
Source
ChefGPT
Expand
Share

Get Cookin'
star icon4

4 downloads

Solidity Version

0.8.15

Creator

Solmate

ERC4626

This smart contract is an extension of the ERC20 standard. It allows users to deposit and withdraw assets, mint and redeem shares, and perform accounting calculations. It also includes hooks for additional logic before withdrawals and after deposits.

ERC4626 :
ERC20 :
Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
SafeTransferLib :
Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
FixedPointMathLib :
ERC4626.sol
ERC20.sol
SafeTransferLib.sol
FixedPointMathLib.sol