ERC20 Vote
The ERC20Vote
smart contract implements the ERC20 standard.
It also supports EIP-2612; allowing approvals to be made via signatures, and
ERC20Votes;
which provides voting and delegation functionality, along with delegation by signature.
Unlocked Features
Once deployed, you can use the features made available by these contracts on the SDK and dashboard:
Click on each feature to learn more about what functions are available.
Implementing the Contract Extension
Import the contract extension and make your contract inherit it.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/base/ERC20Vote.sol";
contract MyToken is ERC20Vote {
constructor(
string memory _name,
string memory _symbol
)
ERC20Vote(
_name,
_symbol
)
{}
}