LooksRareAirdrop
It distributes LOOKS tokens with a Merkle-tree airdrop.
Methods
DOMAIN_SEPARATOR_EXCHANGE
function DOMAIN_SEPARATOR_EXCHANGE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
DOMAIN_SEPARATOR_EXCHANGE | bytes32 | - |
MAIN_STRATEGY
function MAIN_STRATEGY() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
MAIN_STRATEGY | address | address of the StrategyStandardSaleForFixedPrice |
MAXIMUM_AMOUNT_TO_CLAIM
function MAXIMUM_AMOUNT_TO_CLAIM() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
MAXIMUM_AMOUNT_TO_CLAIM | uint256 | maximum of LOOKS that can be claimed by any user |
TRANSFER_MANAGER_ERC1155
function TRANSFER_MANAGER_ERC1155() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC1155 | address | address of the TransferManagerERC1155 |
TRANSFER_MANAGER_ERC721
function TRANSFER_MANAGER_ERC721() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC721 | address | address of the TransferManagerERC721 |
WETH
function WETH() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
WETH | address | address 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
Name | Type | Description |
---|---|---|
user | address | address of the user |
amount | uint256 | amount to claim |
merkleProof | bytes32[] | array containing the merkle proof |
Returns
Name | Type | Description |
---|---|---|
- | bool | whether the address can claim |
claim
function claim(uint256 amount, bytes32[] merkleProof, OrderTypes.MakerOrder makerAsk, bool isERC721) external nonpayable
Claim tokens for airdrop
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | amount to claim for the airdrop |
merkleProof | bytes32[] | array containing the merkle proof |
makerAsk | OrderTypes.MakerOrder | makerAsk order |
isERC721 | bool | whether the order is for ERC721 (true --> ERC721/ false --> ERC1155) |
endTimestamp
function endTimestamp() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
- | uint256 | endTimestamp (in epoch) for claiming |
hasClaimed
function hasClaimed(address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
- | address | user address |
Returns
Name | Type | Description |
---|---|---|
- | bool | whether the user has claimed the airdrop |
isMerkleRootSet
function isMerkleRootSet() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
- | bool | whether the merkle root was set |
looksRareToken
function looksRareToken() external view returns (contract IERC20)
Returns
Name | Type | Description |
---|---|---|
looksRareToken | contract IERC20 | address of the LOOKS Token |
merkleRoot
function merkleRoot() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
merkleRoot | bytes32 | merkle 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
Name | Type | Description |
---|---|---|
owner | address | address 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
Name | Type | Description |
---|---|---|
- | bool | whether 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
Name | Type | Description |
---|---|---|
_merkleRoot | bytes32 | merkle 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
Name | Type | Description |
---|---|---|
newOwner | address | address 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
Name | Type | Description |
---|---|---|
newEndTimestamp | uint256 | new end timestamp |
withdrawTokenRewards
function withdrawTokenRewards() external nonpayable
Transfer tokens back to owner
Events
AirdropRewardsClaim
event AirdropRewardsClaim(address indexed user, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | address of the user |
amount | uint256 | amount claimed |
MerkleRootSet
event MerkleRootSet(bytes32 merkleRoot)
Parameters
Name | Type | Description |
---|---|---|
merkleRoot | bytes32 | merkle root of the computed Merkle tree |
NewEndTimestamp
event NewEndTimestamp(uint256 endTimestamp)
Parameters
Name | Type | Description |
---|---|---|
endTimestamp | uint256 | new end timestamp for the airdrop |
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 |
Paused
event Paused(address account)
Parameters
Name | Type | Description |
---|---|---|
account | address | - |
TokensWithdrawn
event TokensWithdrawn(uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | amount of tokens withdrawn by the owner |
Unpaused
event Unpaused(address account)
Parameters
Name | Type | Description |
---|---|---|
account | address | - |