Zum Hauptinhalt überspringen

LooksRareToken

Methods

SUPPLY_CAP

function SUPPLY_CAP() external view returns (uint256)

View supply cap

Returns

NameTypeDescription
SUPPLY_CAPuint256supply cap (set at 1 billion of tokens)

allowance

function allowance(address owner, address spender) external view returns (uint256)

See {IERC20-allowance}.

Parameters

NameTypeDescription
owneraddressaddress of the owner
spenderaddressaddress of the spender (e.g., FeeSharingSystem)

Returns

NameTypeDescription
allowanceuint256amount of tokens that can be transferred by the spender

approve

function approve(address spender, uint256 amount) external nonpayable returns (bool)

See {IERC20-approve}. Requirements: - spender cannot be the zero address.

Parameters

NameTypeDescription
spenderaddressaddress of the spender
amountuint256amount of tokens to approve

Returns

NameTypeDescription
-boolamount of tokens approved to be transferred by the spender

balanceOf

function balanceOf(address account) external view returns (uint256)

See {IERC20-balanceOf}.

Parameters

NameTypeDescription
accountaddressaddress of the account

Returns

NameTypeDescription
balanceuint256balance of the account address

decimals

function decimals() external view returns (uint8)

Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

Returns

NameTypeDescription
decimalsuint8number of decimals ("18")

decreaseAllowance

function decreaseAllowance(address spender, uint256 subtractedValue) external nonpayable returns (bool)

Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

Parameters

NameTypeDescription
spenderaddressaddress of the spender
subtractedValueuint256subtracted value

Returns

NameTypeDescription
-bool-

increaseAllowance

function increaseAllowance(address spender, uint256 addedValue) external nonpayable returns (bool)

Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

Parameters

NameTypeDescription
spenderaddressaddress of the spender
addedValueuint256added value

Returns

NameTypeDescription
-bool-

mint

function mint(address account, uint256 amount) external nonpayable returns (bool status)

Mint LOOKS tokens

Parameters

NameTypeDescription
accountaddressaddress to receive tokens
amountuint256amount to mint

Returns

NameTypeDescription
statusbooltrue if mint is successful, false if not

name

function name() external view returns (string)

Returns the name of the token.

Returns

NameTypeDescription
namestringname of the token ("LooksRare Token")

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
owneraddressaddress of the current owner

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.

symbol

function symbol() external view returns (string)

Returns the symbol of the token, usually a shorter version of the name.

Returns

NameTypeDescription
symbolstringsymbol of the token ("LOOKS")

totalSupply

function totalSupply() external view returns (uint256)

See {IERC20-totalSupply}.

Returns

NameTypeDescription
totalSupplyuint256total supply of the token

transfer

function transfer(address recipient, uint256 amount) external nonpayable returns (bool)

See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

Parameters

NameTypeDescription
recipientaddressrecipient address
amountuint256amount of tokens to transfer

Returns

NameTypeDescription
-boolwhether the transaction succeeds

transferFrom

function transferFrom(address sender, address recipient, uint256 amount) external nonpayable returns (bool)

See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

Parameters

NameTypeDescription
senderaddresssender address
recipientaddressrecipient address
amountuint256amount of tokens transferred

Returns

NameTypeDescription
-boolwhether the transaction succeeds

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

Events

Approval

event Approval(address indexed owner, address indexed spender, uint256 value)

Parameters

NameTypeDescription
owner indexedaddressowner address
spender indexedaddressspender address
valueuint256amount of tokens approved

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

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

Transfer

event Transfer(address indexed from, address indexed to, uint256 value)

Parameters

NameTypeDescription
from indexedaddressaddress from where tokens were transferred
to indexedaddressaddress that received the tokens
valueuint256amount of tokens transferred