You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6238032
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
@dev Interface of the ERC20 standard as defined in the EIP.
/
interface IERC20 {
/*
value
tokens are moved from one account (from
) toto
).value
may be zero.*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
spender
for anowner
is set byvalue
is the new allowance.*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
*/
function totalSupply() external view returns (uint256);
/**
account
.*/
function balanceOf(address account) external view returns (uint256);
/**
amount
tokens from the caller's account toto
.*/
function transfer(address to, uint256 amount) external returns (bool);
/**
spender
will beowner
through {transferFrom}. This is*/
function allowance(address owner, address spender) external view returns (uint256);
/**
amount
as the allowance ofspender
over the caller's tokens.*/
function approve(address spender, uint256 amount) external returns (bool);
/**
amount
tokens fromfrom
toto
using theamount
is then deducted from the caller's*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// File: airdrop.sol
pragma solidity ^0.8.8;
contract DropDistributor {
address public immutable token;
uint256 public dropAmount;
address public admin;
//function setprice() public{
// require(
// token.transferFrom (admin,msg.sender, dropAmount));
// return true;
}