TokenSplitter
It splits LOOKS to team/treasury/trading volume reward accounts based on shares.
Methods
TOTAL_SHARES
function TOTAL_SHARES() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| TOTAL_SHARES | uint256 | total number of shares |
accountInfo
function accountInfo(address) external view returns (uint256 shares, uint256 tokensDistributedToAccount)
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | account address |
Returns
| Name | Type | Description |
|---|---|---|
| shares | uint256 | number of shares |
| tokensDistributedToAccount | uint256 | total number of tokens distributed to account |
calculatePendingRewards
function calculatePendingRewards(address account) external view returns (uint256)
Retrieve amount of LOOKS tokens that can be transferred
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | address of the account |
Returns
| Name | Type | Description |
|---|---|---|
| pendingRewards | uint256 | amount of LOOKS tokens that can be transferred |
looksRareToken
function looksRareToken() external view returns (contract IERC20)
Returns
| Name | Type | Description |
|---|---|---|
| looksRareToken | contract IERC20 | address of the LooksRareToken |
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|---|---|
| owner | address | address of the current owner |
releaseTokens
function releaseTokens(address account) external nonpayable
Release LOOKS tokens to the account
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | address of the account |
renounceOwnership
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
totalTokensDistributed
function totalTokensDistributed() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| totalTokensDistributed | uint256 | total amount of LOOKS tokens distributed |
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | address of the new owner |
updateSharesOwner
function updateSharesOwner(address _newRecipient, address _currentRecipient) external nonpayable
Update share recipient
Parameters
| Name | Type | Description |
|---|---|---|
| _newRecipient | address | address of the new recipient |
| _currentRecipient | address | address of the current recipient |
Events
NewSharesOwner
event NewSharesOwner(address indexed oldRecipient, address indexed newRecipient)
Parameters
| Name | Type | Description |
|---|---|---|
oldRecipient indexed | address | old recipient address |
newRecipient indexed | address | new recipient address |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |
TokensTransferred
event TokensTransferred(address indexed account, uint256 amount)
Parameters
| Name | Type | Description |
|---|---|---|
account indexed | address | account address |
| amount | uint256 | amount of LOOKS tokens transferred |