Hey mate, am trying to run AIRDROP but I don't want airddropers to dump on the main investor's, please how can I lock AIRDROP coin in the wallet but people can trade only the portions they bought?

Dec 14, 2021, 4:11 PM
Can I get response on this please?
Dec 14, 2021, 4:19 PM
You'll need to override the ERC20 contracts, and add an array that will check the airdroppers , simple logic will need to get the amount they receive to airdrop , next create a modifier to see if they have participated to the airdrop , if yes , on the transfer function you'll have to etablish this logic , if TotalAmount - amountToTransfer < AirdropAmount so reverts , you'll also set the time condition to know when they could spend it.
Dec 14, 2021, 10:59 PM
You can add address mapping with airdrop amounts for quick checking
Any good tool for testing smart contract for attacks?
Dec 14, 2021, 11:39 PM
@joshualy123 @herikdave if this airdrop is for a large list of recipients on the eth network, then it's going to cost a lot of gas just to fill in the mapping of recipients/amounts.

Instead save yourself the huge gas bill and do a Merkle tree (store a single uint256 summarizing the whole airdrop). DM me if you want help with that, I've implemented several.
If you're talking about an NFT that's in your wallet
Yep so you would use that wallet to first call approve on the NFT contract (approving the other contract to be able to transfer it)
Dec 15, 2021, 3:46 PM
Can I DM please?
Dec 16, 2021, 7:28 PM

© 2024 Draquery.com All rights reserved.