Skip to content
Lattice

IERC20Votes

Git Source

Title: IERC20Votes

Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC20Votes.sol)

Extension interface for ERC-20 tokens with capped-supply voting power.

Voting-related events and functions are in IVotes; ERC-20 events in IERC20. This interface adds only the supply-cap error specific to the votes extension.

Errors

ERC20ExceededSafeSupply

Thrown when a mint would push the total supply above type(uint208).max.

error ERC20ExceededSafeSupply(uint256 increasedSupply, uint256 cap);

Parameters

NameTypeDescription
increasedSupplyuint256The supply that would result from the mint.
capuint256The maximum allowed supply (type(uint208).max).