_ __ _
| |/ _| | |
___ _ __ _____ ____| | |_ _ _ _ __ __| | ___ ___ _ __
/ __| '__/ _ \ \ /\ / / _` | _| | | | '_ \ / _` |/ _ \ / _ \| '__|
| (__| | | (_) \ V V / (_| | | | |_| | | | | (_| | (_) | (_) | |
\___|_| \___/ \_/\_/ \__,_|_| \__,_|_| |_|\__,_|\___/ \___/|_|
by netdragonx.eth
Crowdfundoor is a smart contract that allows users to crowdfund the purchase of an ERC721 token.
The intended use is to help recover stolen assets.
How to connect to Etherscan:
You'll need to use Etherscan to interact with this contract.
- Browse to the contract on Etherscan
- Click
Contract
tab - Click
Write Contract
inner tab - Click
Connect to Web3
and connect your wallet.
Start a new campaign:
startCampaign(tokenAddress, tokenId, recipient)
- Set
tokenAddress
to the contract address of the NFT collection - Set
tokenId
to the token of the NFT you hope to recover - Set
recipient
to the 0x address of who will ultimately receive it - Click
Write
- Confirm with your wallet
Donate ether to campaign:
donate(campaignId)
- Set payable field to how much ether you want to donate
- Set
campaignId
to the ID of the campaign you're donating to - Click
Write
- Confirm with your wallet
Accept a campaign offer:
Here are the steps to accept an outstanding offer from donors.
Important: Before calling accept
, you must first approve the contract
- Go to the contract for the NFT collection you're going to transfer
- Call
approve
with your NFT (tokenId
) and Crowdfundoor address (to
)
accept(campaignId, minimumAmount)
- Set
campaignId
to the ID of the campaign you're accepting - Set
minimumAmount
to current campaign amount inwei
to avoid frontrunning.- Example: For a 1 ETH offer, you would use 1000000000000000000 here.
- For other amounts, you can use eth-converter.com
- Click
Write
- Confirm with your wallet
Withdraw your donation:
If the campaign hasn't been accepted, you can withdraw your donation at any time.
withdraw(campaignId)
- Set
campaignId
to the ID of the campaign you're withdrawing from - Click
Write
- Confirm with your wallet