Skip to content
Lattice

ERC20CappedInit

Git Source

Title: ERC20CappedInit

Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)

One-shot initializer for the ERC-20 Capped extension — seeds the supply cap and registers IERC20Capped via ERC-165. Delegatecalled by Diamond.initialize (through MultiInit) inside the initializing window opened by the diamond, alongside the base ERC20Init; it must NOT open its own pre/postInitializer. Reverts with IERC20Capped.ERC20InvalidCap when cap_ is zero.

Functions

init

function init(uint256 cap_) external;

Parameters

NameTypeDescription
cap_uint256