Dear Support,
I want to build a new contract with Airdrop feature, all tokens of airdrop will be locked transfer in 3 months. Which functional should be included?
- After airdropping certain amounts of token to their wallets, I want to lock that particular tokens so it won’t be withdrawn immediately liquidity is added till after 3 months.
- Contract that burns 2% of token in every transaction
- Contract that adds 5% to liquidity automatically in every transaction.
- Contract that charges 3% fee of every transaction
- Contract that redistribute 2% to holders.
Below is my code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC20.sol";
import "./ERC20Burnable.sol";
import "./Pausable.sol";
import "./Ownable.sol";
contract New Token is ERC20, ERC20Burnable, Pausable, Ownable {
constructor() ERC20("New Token", "NEWTOKEN") {
_mint(msg.sender, 100000000 * 10 ** decimals());
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override
{
super._beforeTokenTransfer(from, to, amount);
}
}