IERC20Votes
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
| Name | Type | Description |
|---|---|---|
| increasedSupply | uint256 | The supply that would result from the mint. |
| cap | uint256 | The maximum allowed supply (type(uint208).max). |