Lewati ke konten utama

LooksRareAirdrop

It distributes LOOKS tokens with a Merkle-tree airdrop.

Methods

DOMAIN_SEPARATOR_EXCHANGE

function DOMAIN_SEPARATOR_EXCHANGE() external view returns (bytes32)

Returns

NameTypeDescription
DOMAIN_SEPARATOR_EXCHANGEbytes32-

MAIN_STRATEGY

function MAIN_STRATEGY() external view returns (address)

Returns

NameTypeDescription
MAIN_STRATEGYaddressaddress of the StrategyStandardSaleForFixedPrice

MAXIMUM_AMOUNT_TO_CLAIM

function MAXIMUM_AMOUNT_TO_CLAIM() external view returns (uint256)

Returns

NameTypeDescription
MAXIMUM_AMOUNT_TO_CLAIMuint256maximum of LOOKS that can be claimed by any user

TRANSFER_MANAGER_ERC1155

function TRANSFER_MANAGER_ERC1155() external view returns (address)

Returns

NameTypeDescription
TRANSFER_MANAGER_ERC1155addressaddress of the TransferManagerERC1155

TRANSFER_MANAGER_ERC721

function TRANSFER_MANAGER_ERC721() external view returns (address)

Returns

NameTypeDescription
TRANSFER_MANAGER_ERC721addressaddress of the TransferManagerERC721

WETH

function WETH() external view returns (address)

Returns

NameTypeDescription
WETHaddressaddress of the WETH ("Wrapped Ether")

canClaim

function canClaim(address user, uint256 amount, bytes32[] merkleProof) external view returns (bool)

Check whether it is possible to claim (it does not check the validity of orders)

Parameters

NameTypeDescription
useraddressaddress of the user
amountuint256amount to claim
merkleProofbytes32[]array containing the merkle proof

Returns

NameTypeDescription
-boolwhether the address can claim

claim

function claim(uint256 amount, bytes32[] merkleProof, OrderTypes.MakerOrder makerAsk, bool isERC721) external nonpayable

Claim tokens for airdrop

Parameters

NameTypeDescription
amountuint256amount to claim for the airdrop
merkleProofbytes32[]array containing the merkle proof
makerAskOrderTypes.MakerOrdermakerAsk order
isERC721boolwhether the order is for ERC721 (true --> ERC721/ false --> ERC1155)

endTimestamp

function endTimestamp() external view returns (uint256)

Returns

NameTypeDescription
-uint256endTimestamp (in epoch) for claiming

hasClaimed

function hasClaimed(address) external view returns (bool)

Parameters

NameTypeDescription
-addressuser address

Returns

NameTypeDescription
-boolwhether the user has claimed the airdrop

isMerkleRootSet

function isMerkleRootSet() external view returns (bool)

Returns

NameTypeDescription
-boolwhether the merkle root was set

looksRareToken

function looksRareToken() external view returns (contract IERC20)

Returns

NameTypeDescription
looksRareTokencontract IERC20address of the LOOKS Token

merkleRoot

function merkleRoot() external view returns (bytes32)

Returns

NameTypeDescription
merkleRootbytes32merkle root for the merkle tree containing addresses and amounts to claim

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
owneraddressaddress of the current owner

pauseAirdrop

function pauseAirdrop() external nonpayable

Pause airdrop

paused

function paused() external view returns (bool)

Returns true if the contract is paused, and false otherwise.

Returns

NameTypeDescription
-boolwhether the contract is paused (true if paused, false if unpaused)

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.

setMerkleRoot

function setMerkleRoot(bytes32 _merkleRoot) external nonpayable

Set merkle root for airdrop

Parameters

NameTypeDescription
_merkleRootbytes32merkle root

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

unpauseAirdrop

function unpauseAirdrop() external nonpayable

Unpause airdrop

updateEndTimestamp

function updateEndTimestamp(uint256 newEndTimestamp) external nonpayable

Update end timestamp

Must be within 30 days

Parameters

NameTypeDescription
newEndTimestampuint256new end timestamp

withdrawTokenRewards

function withdrawTokenRewards() external nonpayable

Transfer tokens back to owner

Events

AirdropRewardsClaim

event AirdropRewardsClaim(address indexed user, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressaddress of the user
amountuint256amount claimed

MerkleRootSet

event MerkleRootSet(bytes32 merkleRoot)

Parameters

NameTypeDescription
merkleRootbytes32merkle root of the computed Merkle tree

NewEndTimestamp

event NewEndTimestamp(uint256 endTimestamp)

Parameters

NameTypeDescription
endTimestampuint256new end timestamp for the airdrop

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

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

Paused

event Paused(address account)

Parameters

NameTypeDescription
accountaddress-

TokensWithdrawn

event TokensWithdrawn(uint256 amount)

Parameters

NameTypeDescription
amountuint256amount of tokens withdrawn by the owner

Unpaused

event Unpaused(address account)

Parameters

NameTypeDescription
accountaddress-