TCAP
ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. Uses Open Zeppelin ERC20 Library.
Code
Address
Mainnet
Contract | Address |
---|---|
TCAP | 0x16c52ceece2ed57dad87319d91b5e3637d50afa4 |
Rinkeby
Contract | Address |
---|---|
TCAP | 0x525471845A1b6E486930F4C8C50D21E7A4670fb2 |
ERC165 Introspection
The computed interface ID according to ERC-165. The interface ID is a XOR of all interface method selectors.
Public Variables
if enabled TCAP can't be minted if the total supply is above or equal the cap value.
Maximum value the total supply of TCAP.
Address to Vault Handler. Only vault handlers can mint and burn TCAP.
Private Variables
The computed interface ID according to ERC-165. Indicates if this contract supports the tcap erc20 functions.
The computed interface ID according to ERC-165. Indicates if this contract supports the ERC165 interface.
Events
Events are called each time the state changes on the contract.
An event emitted when a vault handler is added.
An event emitted when a vault handler is removed.
An event emitted when the cap value is updated.
An event emitted when the cap is enabled or disabled.
Modifiers
onlyVault
Reverts if called by any account that is not a vault Vault.
Read-Only Functions
_beforeTokenTransfer
This function is called before before each token transfer or mint, the mint of tokens to check if the total supply isn't above the cap. Reverts if TCAP tokens are sent to the TCAP contract.
See Open Zeppelin ERC20-_beforeTokenTransfer.
supportsInterface
ERC165 Standard for support of interfaces.
State-Changing Functions
constructor
Called once the contract it's deployed, sets the orchestrator as owner.
addVaultHandler
Adds a new address as a vault vault handler contract. Only owner can call it.
removeVaultHandler
Removes an address as a vault vault handler contract. Only owner can call it.
mint
Mints TCAP Tokens. Only vault handler can call it.
burn
Burns TCAP Tokens. Only vault handler can call it.
setCap
Sets the maximum capacity of the token. When capEnabled is true, mint is not allowed to issue tokens that would increase the total supply above the specified capacity. Only owner can call it.
enableCap
Enables or Disables the Token Cap. When capEnabled is true, minting will not be allowed above the max capacity. Only owner can call it