Перейти к основному содержанию

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

NameTypeDescription
TOTAL_SHARESuint256total number of shares

accountInfo

function accountInfo(address) external view returns (uint256 shares, uint256 tokensDistributedToAccount)

Parameters

NameTypeDescription
accountaddressaccount address

Returns

NameTypeDescription
sharesuint256number of shares
tokensDistributedToAccountuint256total 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

NameTypeDescription
accountaddressaddress of the account

Returns

NameTypeDescription
pendingRewardsuint256amount of LOOKS tokens that can be transferred

looksRareToken

function looksRareToken() external view returns (contract IERC20)

Returns

NameTypeDescription
looksRareTokencontract IERC20address of the LooksRareToken

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
owneraddressaddress of the current owner

releaseTokens

function releaseTokens(address account) external nonpayable

Release LOOKS tokens to the account

Parameters

NameTypeDescription
accountaddressaddress 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

NameTypeDescription
totalTokensDistributeduint256total 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

NameTypeDescription
newOwneraddressaddress of the new owner

updateSharesOwner

function updateSharesOwner(address _newRecipient, address _currentRecipient) external nonpayable

Update share recipient

Parameters

NameTypeDescription
_newRecipientaddressaddress of the new recipient
_currentRecipientaddressaddress of the current recipient

Events

NewSharesOwner

event NewSharesOwner(address indexed oldRecipient, address indexed newRecipient)

Parameters

NameTypeDescription
oldRecipient indexedaddressold recipient address
newRecipient indexedaddressnew recipient address

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressaddress of the previous owner
newOwner indexedaddressaddress of the new owner

TokensTransferred

event TokensTransferred(address indexed account, uint256 amount)

Parameters

NameTypeDescription
account indexedaddressaccount address
amountuint256amount of LOOKS tokens transferred