LDO
Ethereum ERC-20 Token0x5a98fcbea516cf06857215779fd812ca3bef1b32
Solidity v0.4.24+commit.e67f0147
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,811 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The total number of tokens |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The address from which the balance will be retrieved |
| _blockNumber | uint256 | The block number when the balance is queried |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The balance at `_blockNumber` |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The address that's balance is being requested |
Returns
| Name | Type | Description |
|---|---|---|
| balance | uint256 | The balance of `_owner` at the current block |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Total amount of tokens at a specific `_blockNumber`.
Parameters
| Name | Type | Description |
|---|---|---|
| _blockNumber | uint256 | The block number when the totalSupply is queried |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The total amount of tokens at `_blockNumber` |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The address of the account that owns the token |
| _spender | address | The address of the account able to transfer the tokens |
Returns
| Name | Type | Description |
|---|---|---|
| remaining | uint256 | Amount of remaining tokens of _owner that _spender is allowed to spend |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
`msg.sender` approves `_spender` to spend `_amount` tokens on its behalf. This is a modified version of the ERC20 approve function to be a little bit safer
Parameters
| Name | Type | Description |
|---|---|---|
| _spender | address | The address of the account able to transfer the tokens |
| _amount | uint256 | The amount of tokens to be approved for transfer |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | True if the approval was successful |
Send `_amount` tokens to `_to` from `_from` on the condition it is approved by `_from`
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | The address holding the tokens being transferred |
| _to | address | The address of the recipient |
| _amount | uint256 | The amount of tokens to be transferred |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | True if the transfer was successful |
Changes the controller of the contract
Parameters
| Name | Type | Description |
|---|---|---|
| _newController | address | The new controller of the contract |
Creates a new clone token with the initial distribution being this token at `_snapshotBlock`
Parameters
| Name | Type | Description |
|---|---|---|
| _cloneTokenName | string | Name of the clone token |
| _cloneDecimalUnits | uint8 | Number of decimals of the smallest unit |
| _cloneTokenSymbol | string | Symbol of the clone token |
| _snapshotBlock | uint256 | Block when the distribution of the parent token is copied to set the initial distribution of the new clone token; if the block is zero than the actual block, the current block is used |
| _transfersEnabled | bool | True if transfers are allowed in the clone |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the new MiniMeToken Contract |
Generates `_amount` tokens that are assigned to `_owner`
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The address that will be assigned the new tokens |
| _amount | uint256 | The quantity of tokens generated |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the tokens are generated correctly |
Send `_amount` tokens to `_to` from `msg.sender`
Parameters
| Name | Type | Description |
|---|---|---|
| _to | address | The address of the recipient |
| _amount | uint256 | The amount of tokens to be transferred |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | Whether the transfer was successful or not |
`msg.sender` approves `_spender` to send `_amount` tokens on its behalf, and then a function is triggered in the contract that is being approved, `_spender`. This allows users to use their tokens to interact with contracts in one function call instead of two
Parameters
| Name | Type | Description |
|---|---|---|
| _spender | address | The address of the contract able to transfer the tokens |
| _amount | uint256 | The amount of tokens to be approved for transfer |
| _extraData | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | True if the function call was successful |
Burns `_amount` tokens from `_owner`
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The address that will lose the tokens |
| _amount | uint256 | The quantity of tokens to burn |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the tokens are burned correctly |
This method can be used by the controller to extract mistakenly sent tokens to this contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | The address of the token contract that you want to recover set to 0 in case you want to extract ether. |
Enables token holders to transfer their tokens freely if true
Parameters
| Name | Type | Description |
|---|---|---|
| _transfersEnabled | bool | True if transfers are allowed in the clone |
Events
/////////////
| Name | Type | Indexed | Description |
|---|---|---|---|
| _token | address | ✓ | |
| _controller | address | ✓ | |
| _amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _from | address | ✓ | |
| _to | address | ✓ | |
| _amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _cloneToken | address | ✓ | |
| _snapshotBlock | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _owner | address | ✓ | |
| _spender | address | ✓ | |
| _amount | uint256 |