-
Notifications
You must be signed in to change notification settings - Fork 2
/
AirDropERC20-Contract.sol
41 lines (32 loc) · 1.88 KB
/
AirDropERC20-Contract.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: MIT LICENSE
/*
N2D ERC20 AirDrop Smart Contract.
Follow/Subscribe Youtube, Github, IM, Tiktok
for more amazing content!!
@Net2Dev
███╗░░██╗███████╗████████╗██████╗░██████╗░███████╗██╗░░░██╗
████╗░██║██╔════╝╚══██╔══╝╚════██╗██╔══██╗██╔════╝██║░░░██║
██╔██╗██║█████╗░░░░░██║░░░░░███╔═╝██║░░██║█████╗░░╚██╗░██╔╝
██║╚████║██╔══╝░░░░░██║░░░██╔══╝░░██║░░██║██╔══╝░░░╚████╔╝░
██║░╚███║███████╗░░░██║░░░███████╗██████╔╝███████╗░░╚██╔╝░░
╚═╝░░╚══╝╚══════╝░░░╚═╝░░░╚══════╝╚═════╝░╚══════╝░░░╚═╝░░░
THIS CONTRACT IS AVAILABLE FOR EDUCATIONAL
PURPOSES ONLY. YOU ARE SOLELY REPONSIBLE
FOR ITS USE. I AM NOT RESPONSIBLE FOR ANY
OTHER USE. THIS IS TRAINING/EDUCATIONAL
MATERIAL. ONLY USE IT IF YOU AGREE TO THE
TERMS SPECIFIED ABOVE.
*/
import "https://github.com/net2devcrypto/Simple-ERC20-AirdropServer/N2DPlus.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
pragma solidity ^0.8.4;
contract AirDropNFT is Ownable {
uint256 public airDrop = 10 ether;
N2DPlus rewards;
constructor(N2DPlus _rewards) {
rewards = _rewards;
}
function issueAirDropERC20(address[] calldata holder) public onlyOwner {
rewards.mintAirdrop(holder, airDrop);
}
}