Integrating ANT
Last updated
Was this helpful?
Last updated
Was this helpful?
The current version of ANT, ANTv2, is a lightweight, close-to-vanilla ERC-20 token. It is modelled after .
Right off the bat, if your application handles vanilla ERC-20s (or the aforementioned Uniswap LP tokens) without requiring any other functionality, you should be safe to assume ANT can be integrated into your application.
Outside of the above note, and unless you want to leverage its extended functionality, you should be safe to assume that ANT is a completely vanilla ERC-20 implementation.
ANTv2 supports gasless transfers and approvals through 's permit()
and 's transferWithAuthorization()
.
permit()
Allows for a third party to submit an approval on behalf of a signer. Commonly used in account delegation schemes with smart contracts pulling tokens from users (with transferFrom()
).
transferWithAuthorization()
Allows for a third party to submit a transfer on behalf of a signer.
getChainId()
Convenience getter for obtaining the current chain ID known by the token contract.
getDomainSeparator()
burn()
Allows any holder to burn their tokens to reduce the token's total supply.
mint()
Allows the designated minter
to mint new tokens to a specific account.
Currently set to the Community Multisig.
changeMinter()
Allows the designated minter
to transfer the minting role to another account.
Convenience getter for obtaining the current used by the token contract to verify signatures. Useful when constructing and verifying signatures for permit()
and transferWithAuthorization()
.