This contract allows users to burn tokens from another ERC721 contract to claim a new ERC721 token from this contract.
This contract is a specialized ERC721 contract that allows users to claim new tokens by burning tokens from another ERC721 contract.
To use this contract, you need to deploy it and set the address of the ERC721 contract whose tokens will be burned. Users can then interact with the contract by calling the `claim` function, providing the token ID of the token they want to burn.
The contract uses the `IERC721` interface to interact with the source ERC721 contract. It keeps track of the claimed tokens and the corresponding burned tokens using a mapping. The `claim` function verifies that the user owns the token to be burned and then burns the token before minting a new token and assigning it to the user.
claim(uint256)setBurnedTokenId(uint256,uint256)setBurnTokenContract(address)Press Enter to send your query
Powered by Neuron AI • Press Enter to send