COMP
Ethereum ERC-20 Token0xc00e94cb662c3520282e6f5717214004a7f26888
Solidity v0.5.16+commit.9c3226ce
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
No admin risk controls detected from the verified ABI.
Overview
Read Functions
Block #25,169,800 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Get the number of tokens `spender` is approved to spend on behalf of `account`
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address of the account holding the funds |
| spender | address | The address of the account spending the funds |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The number of tokens approved |
Get the number of tokens held by the `account`
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address of the account to get the balance of |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The number of tokens held |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | uint32 |
Returns
| Name | Type | Description |
|---|---|---|
| fromBlock | uint32 | |
| votes | uint96 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Gets the current votes balance for `account`
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address to get votes balance |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint96 | The number of current votes for `account` |
Determine the prior number of votes for an account as of a block number
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address of the account to check |
| blockNumber | uint256 | The block number to get the vote balance at |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint96 | The number of votes the account had as of the given block |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Write Functions
Approve `spender` to transfer up to `amount` from `src`
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address of the account which may transfer tokens |
| rawAmount | uint256 | The number of tokens that are approved (2^256-1 means infinite) |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the approval succeeded |
Delegate votes from `msg.sender` to `delegatee`
Parameters
| Name | Type | Description |
|---|---|---|
| delegatee | address | The address to delegate votes to |
Delegates votes from signatory to `delegatee`
Parameters
| Name | Type | Description |
|---|---|---|
| delegatee | address | The address to delegate votes to |
| nonce | uint256 | The contract state required to match the signature |
| expiry | uint256 | The time at which to expire the signature |
| v | uint8 | The recovery byte of the signature |
| r | bytes32 | Half of the ECDSA signature pair |
| s | bytes32 | Half of the ECDSA signature pair |
Transfer `amount` tokens from `msg.sender` to `dst`
Parameters
| Name | Type | Description |
|---|---|---|
| dst | address | The address of the destination account |
| rawAmount | uint256 | The number of tokens to transfer |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the transfer succeeded |
Transfer `amount` tokens from `src` to `dst`
Parameters
| Name | Type | Description |
|---|---|---|
| src | address | The address of the source account |
| dst | address | The address of the destination account |
| rawAmount | uint256 | The number of tokens to transfer |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the transfer succeeded |
Events
The standard EIP-20 approval event
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| amount | uint256 |
An event thats emitted when an account changes its delegate
| Name | Type | Indexed | Description |
|---|---|---|---|
| delegator | address | ✓ | |
| fromDelegate | address | ✓ | |
| toDelegate | address | ✓ |
An event thats emitted when a delegate account's vote balance changes
| Name | Type | Indexed | Description |
|---|---|---|---|
| delegate | address | ✓ | |
| previousBalance | uint256 | ||
| newBalance | uint256 |
The standard EIP-20 transfer event
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |