Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 141 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Dropys Airdrop N... | 15665316 | 1242 days ago | IN | 0.00574068 ETH | 0.00776929 | ||||
| Dropys Airdrop N... | 15665182 | 1242 days ago | IN | 0.03346401 ETH | 0.05493588 | ||||
| Dropys Airdrop N... | 15663305 | 1243 days ago | IN | 0.02408288 ETH | 0.03377172 | ||||
| Dropys Airdrop N... | 15621652 | 1249 days ago | IN | 0.00378045 ETH | 0.01130661 | ||||
| Dropys Airdrop N... | 15614725 | 1250 days ago | IN | 0.00350042 ETH | 0.00510181 | ||||
| Dropys Airdrop N... | 15608780 | 1250 days ago | IN | 0.00112013 ETH | 0.00168702 | ||||
| Dropys Airdrop N... | 15605940 | 1251 days ago | IN | 0.01680201 ETH | 0.04880305 | ||||
| Dropys Airdrop N... | 15598942 | 1252 days ago | IN | 0.0016802 ETH | 0.00570451 | ||||
| Dropys Airdrop N... | 15594919 | 1252 days ago | IN | 0.00406048 ETH | 0.00796513 | ||||
| Dropys Airdrop N... | 15594508 | 1252 days ago | IN | 0.11551386 ETH | 0.18247528 | ||||
| Dropys Airdrop N... | 15594436 | 1252 days ago | IN | 0.02730327 ETH | 0.0418288 | ||||
| Dropys Airdrop N... | 15594418 | 1252 days ago | IN | 0.01456174 ETH | 0.02281253 | ||||
| Dropys Airdrop N... | 15594387 | 1252 days ago | IN | 0.00490058 ETH | 0.00726639 | ||||
| Dropys Airdrop N... | 15594384 | 1252 days ago | IN | 0.00308036 ETH | 0.00521138 | ||||
| Dropys Airdrop N... | 15594379 | 1252 days ago | IN | 0.00140016 ETH | 0.00241041 | ||||
| Dropys Airdrop N... | 15594375 | 1252 days ago | IN | 0.0008401 ETH | 0.00160372 | ||||
| Dropys Airdrop N... | 15594372 | 1252 days ago | IN | 0.00070008 ETH | 0.00139665 | ||||
| Dropys Airdrop N... | 15594368 | 1252 days ago | IN | 0.00056006 ETH | 0.00118825 | ||||
| Dropys Airdrop N... | 15594339 | 1252 days ago | IN | 0.00056006 ETH | 0.00137881 | ||||
| Dropys Airdrop N... | 15594335 | 1252 days ago | IN | 0.00028003 ETH | 0.00079354 | ||||
| Dropys Airdrop N... | 15594334 | 1252 days ago | IN | 0.01946233 ETH | 0.0295408 | ||||
| Dropys Airdrop N... | 15594234 | 1252 days ago | IN | 0.00028003 ETH | 0.00068628 | ||||
| Dropys Airdrop N... | 15593816 | 1252 days ago | IN | 0.00574068 ETH | 0.01210683 | ||||
| Dropys Airdrop N... | 15593417 | 1252 days ago | IN | 0.00966115 ETH | 0.01711561 | ||||
| Dropys Airdrop N... | 15593403 | 1252 days ago | IN | 0.00126015 ETH | 0.00272116 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 15665316 | 1242 days ago | 0.00191356 ETH | ||||
| Transfer | 15665316 | 1242 days ago | 0.00382712 ETH | ||||
| Transfer | 15665182 | 1242 days ago | 0.01115467 ETH | ||||
| Transfer | 15665182 | 1242 days ago | 0.02230934 ETH | ||||
| Transfer | 15663305 | 1243 days ago | 0.00802762 ETH | ||||
| Transfer | 15663305 | 1243 days ago | 0.01605525 ETH | ||||
| Transfer | 15621652 | 1249 days ago | 0.00126015 ETH | ||||
| Transfer | 15621652 | 1249 days ago | 0.0025203 ETH | ||||
| Transfer | 15614725 | 1250 days ago | 0.0011668 ETH | ||||
| Transfer | 15614725 | 1250 days ago | 0.00233361 ETH | ||||
| Transfer | 15608780 | 1250 days ago | 0.00037337 ETH | ||||
| Transfer | 15608780 | 1250 days ago | 0.00074675 ETH | ||||
| Transfer | 15605940 | 1251 days ago | 0.00560067 ETH | ||||
| Transfer | 15605940 | 1251 days ago | 0.01120134 ETH | ||||
| Transfer | 15598942 | 1252 days ago | 0.00056006 ETH | ||||
| Transfer | 15598942 | 1252 days ago | 0.00112013 ETH | ||||
| Transfer | 15594919 | 1252 days ago | 0.00135349 ETH | ||||
| Transfer | 15594919 | 1252 days ago | 0.00270699 ETH | ||||
| Transfer | 15594508 | 1252 days ago | 0.03850462 ETH | ||||
| Transfer | 15594508 | 1252 days ago | 0.07700924 ETH | ||||
| Transfer | 15594436 | 1252 days ago | 0.00910109 ETH | ||||
| Transfer | 15594436 | 1252 days ago | 0.01820218 ETH | ||||
| Transfer | 15594418 | 1252 days ago | 0.00485391 ETH | ||||
| Transfer | 15594418 | 1252 days ago | 0.00970783 ETH | ||||
| Transfer | 15594387 | 1252 days ago | 0.00163352 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Dropys
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 1337 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
/*
___ ___ _____ ___ _ _ ___
( _`\ | _`\ ( _ )( _`\ ( ) ( )( _`\
| | ) || (_) )| ( ) || |_) )`\`\_/'/'| (_(_)
| | | )| , / | | | || ,__/' `\ /' `\__ \
| |_) || |\ \ | (_) || | | | ( )_) |
(____/'(_) (_)(_____)(_) (_) `\____)
Start your airdrop: https://dropys.com/
*/
pragma solidity ^0.8.0;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { IERC1155 } from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
contract Dropys is Ownable {
using SafeMath for uint256;
uint256 public rate;
uint256 public dropUnitPrice;
uint256 public commission;
mapping (string => uint256) public airdropFeeDiscount;
event RateChanged(uint256 from, uint256 to);
event TokenAirdrop(address indexed by, address indexed tokenAddress, uint256 totalTransfers);
event EthAirdrop(address indexed by, uint256 totalTransfers, uint256 ethValue);
event NFTAirdrop(address indexed by, address indexed tokenAddress, uint256 totalTransfers);
event CommissionChanged(uint256 oldValue, uint256 newValue);
event CommissionPaid(address indexed to, uint256 value);
event ERC20TokensWithdrawn(address token, address sentTo, uint256 value);
constructor() {
rate = 50000000000000000;
dropUnitPrice = 1e14;
commission = 3;
}
/**
* Allows for the distribution of Ether to be transferred to multiple recipients at
* a time. This function only facilitates batch transfers of constant values (i.e., all recipients
* will receive the same amount of tokens).
*
* @param _recipients The list of addresses which will receive tokens.
* @param _value The amount of tokens all addresses will receive.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNativeTokenS(address[] memory _recipients, uint256 _value, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
uint256 totalCost = _value.mul(_recipients.length).add(price);
require(
msg.value >= totalCost,
"Not enough ETH sent with transaction!"
);
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
giveChange(totalCost);
for(uint i=0; i<_recipients.length; i++) {
if (_recipients[i] != address(0)) {
payable(_recipients[i]).transfer(_value);
}
}
emit EthAirdrop(msg.sender, _recipients.length, _value.mul(_recipients.length));
return true;
}
function _getTotalEthValue(uint256[] memory _values) internal pure returns(uint256) {
uint256 totalVal = 0;
for(uint i = 0; i < _values.length; i++) {
totalVal = totalVal.add(_values[i]);
}
return totalVal;
}
/**
* Allows for the distribution of Ether to be transferred to multiple recipients at
* a time.
*
* @param _recipients The list of addresses which will receive tokens.
* @param _values The corresponding amounts that the recipients will receive
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNativeToken(address[] memory _recipients, uint256[] memory _values, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
require(_recipients.length == _values.length, "Total number of recipients and values are not equal");
uint256 totalEthValue = _getTotalEthValue(_values);
uint256 price = _recipients.length.mul(dropUnitPrice);
uint256 totalCost = totalEthValue.add(price);
require(
msg.value >= totalCost,
"Not enough ETH sent with transaction!"
);
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
giveChange(totalCost);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0) && _values[i] > 0) {
payable(_recipients[i]).transfer(_values[i]);
}
}
emit EthAirdrop(msg.sender, _recipients.length, totalEthValue);
return true;
}
/**
* Allows for the distribution of an ERC20 token to be transferred to multiple recipients at
* a time. This function only facilitates batch transfers of constant values (i.e., all recipients
* will receive the same amount of tokens).
*
* @param _addressOfToken The contract address of an ERC20 token.
* @param _recipients The list of addresses which will receive tokens.
* @param _value The amount of tokens all addresses will receive.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropTokenS(address _addressOfToken, address[] memory _recipients, uint256 _value, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
IERC20 token = IERC20(_addressOfToken);
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0)) {
token.transferFrom(msg.sender, _recipients[i], _value);
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit TokenAirdrop(msg.sender, _addressOfToken, _recipients.length);
return true;
}
/**
* Allows for the distribution of an ERC20 token to be transferred to multiple recipients at
* a time. This function facilitates batch transfers of differing values (i.e., all recipients
* can receive different amounts of tokens).
*
* @param _addressOfToken The contract address of an ERC20 token.
* @param _recipients The list of addresses which will receive tokens.
* @param _values The corresponding values of tokens which each address will receive.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropToken(address _addressOfToken, address[] memory _recipients, uint256[] memory _values, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
IERC20 token = IERC20(_addressOfToken);
require(_recipients.length == _values.length, "Total number of recipients and values are not equal");
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0) && _values[i] > 0) {
token.transferFrom(msg.sender, _recipients[i], _values[i]);
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit TokenAirdrop(msg.sender, _addressOfToken, _recipients.length);
return true;
}
/**
* Allows for the distribution of an ERC721 token to be transferred to multiple recipients at
* a time.
*
* @param _recipients The list of addresses which will receive tokens.
* @param _nftContract The NFT collection contract where tokens are sent from.
* @param _startingTokenId The starting token id to begin incrementing from
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNftI(address[] memory _recipients, address _nftContract, uint256 _startingTokenId, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0)) {
IERC721(_nftContract).safeTransferFrom(msg.sender, _recipients[i], _startingTokenId + i);
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit NFTAirdrop(msg.sender, _nftContract, _recipients.length);
return true;
}
/**
* Allows for the distribution of an ERC721 token to be transferred to multiple recipients at
* a time.
*
* @param _recipients The list of addresses which will receive tokens.
* @param _nftContract The NFT collection contract where tokens are sent from.
* @param _tokenIds The list of ids being sent.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNft(address[] memory _recipients, address _nftContract, uint256[] memory _tokenIds, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0)) {
IERC721(_nftContract).safeTransferFrom(msg.sender, _recipients[i], _tokenIds[i]);
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit NFTAirdrop(msg.sender, _nftContract, _recipients.length);
return true;
}
/**
* Allows for the distribution of an ERC721 token to be transferred to multiple recipients at
* a time.
*
* @param _recipients The list of addresses which will receive tokens.
* @param _nftContract The NFT collection contract where tokens are sent from.
* @param _tokenId The id being sent.
* @param _amount The amount being sent.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNftsS(address[] memory _recipients, address _nftContract, uint256 _tokenId, uint256 _amount, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0)) {
IERC1155(_nftContract).safeTransferFrom(msg.sender, _recipients[i], _tokenId, _amount, "");
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit NFTAirdrop(msg.sender, _nftContract, _recipients.length);
return true;
}
/**
* Allows for the distribution of an ERC721 token to be transferred to multiple recipients at
* a time.
*
* @param _recipients The list of addresses which will receive tokens.
* @param _nftContract The NFT collection contract where tokens are sent from.
* @param _tokenIds The list of ids being sent.
* @param _amounts The amounts being sent.
* @param _affiliateAddress The affiliate address that is paid a commission.affiliated with a partner, they will provide this code so that
* the parter is paid commission.
*
* @return true if function executes successfully, false otherwise.
* */
function dropysAirdropNfts(address[] memory _recipients, address _nftContract, uint256[] memory _tokenIds, uint256[] memory _amounts, address _affiliateAddress, string memory _discountCode) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
if (!stringsAreEqual(_discountCode, "") && airdropFeeDiscount[_discountCode] > 0) {
price = price * airdropFeeDiscount[_discountCode] / 100;
}
require(
msg.value >= price,
"Not enough ETH sent with transaction!"
);
giveChange(price);
for(uint i = 0; i < _recipients.length; i++) {
if (_recipients[i] != address(0)) {
IERC1155(_nftContract).safeTransferFrom(msg.sender, _recipients[i], _tokenIds[i], _amounts[i], "");
}
}
distributeCommission(_recipients.length, _affiliateAddress, _discountCode);
emit NFTAirdrop(msg.sender, _nftContract, _recipients.length);
return true;
}
/**
* Allows for the price of drops to be changed by the owner of the contract. Any attempt made by
* any other account to invoke the function will result in a loss of gas and the price will remain
* untampered.
*
* @return true if function executes successfully, false otherwise.
* */
function setRate(uint256 _newRate) public onlyOwner returns(bool) {
require(
_newRate != rate
&& _newRate > 0
);
emit RateChanged(rate, _newRate);
rate = _newRate;
uint256 eth = 1 ether;
dropUnitPrice = eth.div(rate);
return true;
}
/**
* Allows users to query the discount for a code. This is useful to verify that a discount has been set.
*
* @param _discountCode The code associated with the discount.
*
* @return fee The discount for the code.
* */
function getDiscountForCode(string memory _discountCode) public view returns(uint256 fee) {
if (airdropFeeDiscount[_discountCode] > 0) {
return airdropFeeDiscount[_discountCode];
}
return 0;
}
/**
* Allows the owner of the contract to set a discount for a specified address.
*
* @param _discountCode The code that will receive the discount.
* @param _discount The discount that will be applied.
*
* @return success True if function executes successfully, false otherwise.
* */
function setAirdropFeeDiscount(string memory _discountCode, uint256 _discount) public onlyOwner returns(bool success) {
airdropFeeDiscount[_discountCode] = _discount;
return true;
}
/**
* Send the owner and affiliates commissions.
**/
function distributeCommission(uint256 _drops, address _affiliateAddress, string memory _discountCode) internal {
uint256 price = dropUnitPrice;
if (!stringsAreEqual(_discountCode, "") && airdropFeeDiscount[_discountCode] > 0) {
price = price * airdropFeeDiscount[_discountCode] / 100;
}
if (_affiliateAddress != address(0) && _affiliateAddress != msg.sender) {
uint256 profitSplit = _drops.mul(price).div(commission);
uint256 remaining = _drops.mul(price).sub(profitSplit);
payable(owner()).transfer(remaining);
payable(_affiliateAddress).transfer(profitSplit);
emit CommissionPaid(_affiliateAddress, profitSplit);
} else {
payable(owner()).transfer(_drops.mul(price));
}
}
/**
* Allows for any ERC20 tokens which have been mistakenly sent to this contract to be returned
* to the original sender by the owner of the contract. Any attempt made by any other account
* to invoke the function will result in a loss of gas and no tokens will be transferred out.
*
* @param _addressOfToken The contract address of an ERC20 token.
* @param _recipient The address which will receive tokens.
* @param _value The amount of tokens to refund.
*
* @return true if function executes successfully, false otherwise.
* */
function withdrawERC20Tokens(address _addressOfToken, address _recipient, uint256 _value) public onlyOwner returns(bool){
require(
_addressOfToken != address(0)
&& _recipient != address(0)
&& _value > 0
);
IERC20 token = IERC20(_addressOfToken);
token.transfer(_recipient, _value);
emit ERC20TokensWithdrawn(_addressOfToken, _recipient, _value);
return true;
}
/**
* Used to give change to users who accidentally send too much ETH to payable functions.
*
* @param _price The service fee the user has to pay for function execution.
**/
function giveChange(uint256 _price) internal {
if (msg.value > _price) {
uint256 change = msg.value.sub(_price);
payable(msg.sender).transfer(change);
}
}
/**
* Allows for the affiliate commission to be changed by the owner of the contract. Any attempt made by
* any other account to invoke the function will result in a loss of gas and the price will remain
* untampered.
*
* @return true if function executes successfully, false otherwise.
* */
function setCommission(uint256 _newCommission) public onlyOwner returns(bool) {
require(
_newCommission != commission
);
emit CommissionChanged(commission, _newCommission);
commission = _newCommission;
return true;
}
/**
* Allows for the allowance of a token from its owner to this contract to be queried.
*
* As part of the ERC20 standard all tokens which fall under this category have an allowance
* function which enables owners of tokens to allow (or give permission) to another address
* to spend tokens on behalf of the owner. This contract uses this as part of its protocol.
* Users must first give permission to the contract to transfer tokens on their behalf, however,
* this does not mean that the tokens will ever be transferrable without the permission of the
* owner. This is a security feature which was implemented on this contract. It is not possible
* for the owner of this contract or anyone else to transfer the tokens which belong to others.
*
* @param _addr The address of the token's owner.
* @param _addressOfToken The contract address of the ERC20 token.
*
* @return The ERC20 token allowance from token owner to this contract.
* */
function getTokenAllowance(address _addr, address _addressOfToken) public view returns(uint256) {
IERC20 token = IERC20(_addressOfToken);
return token.allowance(_addr, address(this));
}
/**
* Checks if two strings are the same.
*
* @param _a String 1
* @param _b String 2
*
* @return True if both strings are the same. False otherwise.
**/
function stringsAreEqual(string memory _a, string memory _b) internal pure returns(bool) {
bytes32 hashA = keccak256(abi.encodePacked(_a));
bytes32 hashB = keccak256(abi.encodePacked(_b));
return hashA == hashB;
}
fallback() external payable {
revert();
}
receive() external payable {
revert();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// 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 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 1337
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"CommissionChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"CommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"sentTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ERC20TokensWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalTransfers","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethValue","type":"uint256"}],"name":"EthAirdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalTransfers","type":"uint256"}],"name":"NFTAirdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"from","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"to","type":"uint256"}],"name":"RateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalTransfers","type":"uint256"}],"name":"TokenAirdrop","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"airdropFeeDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropUnitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNativeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNativeTokenS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNft","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_startingTokenId","type":"uint256"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNftI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNfts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropNftsS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressOfToken","type":"address"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressOfToken","type":"address"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_affiliateAddress","type":"address"},{"internalType":"string","name":"_discountCode","type":"string"}],"name":"dropysAirdropTokenS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_discountCode","type":"string"}],"name":"getDiscountForCode","outputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"address","name":"_addressOfToken","type":"address"}],"name":"getTokenAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_discountCode","type":"string"},{"internalType":"uint256","name":"_discount","type":"uint256"}],"name":"setAirdropFeeDiscount","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCommission","type":"uint256"}],"name":"setCommission","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRate","type":"uint256"}],"name":"setRate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressOfToken","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"withdrawERC20Tokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b5061002161001c61003f565b610043565b66b1a2bc2ec50000600155655af3107a400060025560038055610093565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61229380620000a36000396000f3fe60806040526004361061016e5760003560e01c806390a5bb98116100cb578063bdd5aebf1161007f578063ea7ee01011610059578063ea7ee0101461035d578063f093be641461037d578063f2fde38b1461039057610178565b8063bdd5aebf14610322578063c9797e5714610335578063e14891911461034857610178565b8063a48f1dc2116100b0578063a48f1dc2146102dc578063a900e161146102ef578063bcdd1e131461030257610178565b806390a5bb98146102b4578063a39a2b76146102c757610178565b8063540d7e0f116101225780638974bd0d116101075780638974bd0d1461025f5780638da5cb5b1461027f578063904e4ed0146102a157610178565b8063540d7e0f14610235578063715018a61461024857610178565b806334fcf4371161015357806334fcf437146101d5578063355e6b43146101f55780633d8e387e1461021557610178565b80632c4e722e1461017d57806331ded0ab146101a857610178565b3661017857600080fd5b600080fd5b34801561018957600080fd5b506101926103b0565b60405161019f919061213c565b60405180910390f35b3480156101b457600080fd5b506101c86101c3366004611e96565b6103b6565b60405161019f9190611fe5565b3480156101e157600080fd5b506101c86101f0366004611ed9565b6103ea565b34801561020157600080fd5b506101c8610210366004611ed9565b610470565b34801561022157600080fd5b50610192610230366004611e63565b6104cd565b6101c8610243366004611aa1565b6104ea565b34801561025457600080fd5b5061025d610729565b005b34801561026b57600080fd5b5061019261027a366004611e63565b61073d565b34801561028b57600080fd5b50610294610793565b60405161019f9190611f42565b6101c86102af366004611cfc565b6107a2565b6101c86102c2366004611cb4565b610922565b3480156102d357600080fd5b50610192610ac0565b6101c86102ea366004611ba4565b610ac6565b6101c86102fd366004611bec565b610c1a565b34801561030e57600080fd5b506101c861031d366004611a66565b610e19565b6101c8610330366004611d61565b610f39565b6101c8610343366004611b47565b611136565b34801561035457600080fd5b50610192611281565b34801561036957600080fd5b50610192610378366004611a34565b611287565b6101c861038b366004611df6565b61132b565b34801561039c57600080fd5b5061025d6103ab366004611a1a565b6114b2565b60015481565b60006103c06114ec565b816004846040516103d19190611f09565b9081526040519081900360200190205550600192915050565b60006103f46114ec565b60015482141580156104065750600082115b61040f57600080fd5b7f4ac9052a820bf4f8c02d7588587cae835573b5b99ea7ad4ca002f17f319f718660015483604051610442929190612145565b60405180910390a16001829055670de0b6b3a7640000610462818461152b565b60025550600190505b919050565b600061047a6114ec565b60035482141561048957600080fd5b7f9b8c4484ba5e4a0dde5339b45a03dd83281d6b1958617ee553dfbcd3532b0e2a600354836040516104bc929190612145565b60405180910390a150600355600190565b805160208183018101805160048252928201919093012091525481565b825184516000918791146105195760405162461bcd60e51b8152600401610510906120df565b60405180910390fd5b6000610531600254885161153e90919063ffffffff16565b9050803410156105535760405162461bcd60e51b81526004016105109061204d565b61055c8161154a565b60005b87518110156106c25760006001600160a01b031688828151811061059357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141580156105d9575060008782815181106105cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151115b156106b057826001600160a01b03166323b872dd338a848151811061060e57634e487b7160e01b600052603260045260246000fd5b60200260200101518a858151811061063657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161065c93929190611f70565b602060405180830381600087803b15801561067657600080fd5b505af115801561068a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ae9190611e43565b505b806106ba81612216565b91505061055f565b506106cf87518686611593565b876001600160a01b0316336001600160a01b03167f39015fe519110ce3ccad418b153817407dc5312684839c8700af7436a80a07af8951604051610713919061213c565b60405180910390a3506001979650505050505050565b6107316114ec565b61073b6000611781565b565b6000806004836040516107509190611f09565b908152602001604051809103902054111561078b576004826040516107759190611f09565b908152602001604051809103902054905061046b565b506000919050565b6000546001600160a01b031690565b6000806107bb600254895161153e90919063ffffffff16565b9050803410156107dd5760405162461bcd60e51b81526004016105109061204d565b6107e68161154a565b60005b88518110156108d15760006001600160a01b031689828151811061081d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316146108bf57876001600160a01b031663f242432a338b848151811061086357634e487b7160e01b600052603260045260246000fd5b60200260200101518a8a6040518563ffffffff1660e01b815260040161088c9493929190611f94565b600060405180830381600087803b1580156108a657600080fd5b505af11580156108ba573d6000803e3d6000fd5b505050505b806108c981612216565b9150506107e9565b506108de88518585611593565b866001600160a01b0316336001600160a01b03167f27e0a1f97429652d3d0c359e240224746851e9b57329d6db644e6d464761d4f78a51604051610713919061213c565b60008061093b600254885161153e90919063ffffffff16565b90508034101561095d5760405162461bcd60e51b81526004016105109061204d565b6109668161154a565b60005b8751811015610a5a5760006001600160a01b031688828151811061099d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610a4857866001600160a01b03166342842e0e338a84815181106109e357634e487b7160e01b600052603260045260246000fd5b6020026020010151848a6109f791906121a8565b6040518463ffffffff1660e01b8152600401610a1593929190611f70565b600060405180830381600087803b158015610a2f57600080fd5b505af1158015610a43573d6000803e3d6000fd5b505050505b80610a5281612216565b915050610969565b50610a6787518585611593565b856001600160a01b0316336001600160a01b03167f27e0a1f97429652d3d0c359e240224746851e9b57329d6db644e6d464761d4f78951604051610aab919061213c565b60405180910390a35060019695505050505050565b60025481565b600080610adf600254885161153e90919063ffffffff16565b905080341015610b015760405162461bcd60e51b81526004016105109061204d565b610b0a8161154a565b60005b8751811015610a5a5760006001600160a01b0316888281518110610b4157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610c0857866001600160a01b03166342842e0e338a8481518110610b8757634e487b7160e01b600052603260045260246000fd5b6020026020010151898581518110610baf57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401610bd593929190611f70565b600060405180830381600087803b158015610bef57600080fd5b505af1158015610c03573d6000803e3d6000fd5b505050505b80610c1281612216565b915050610b0d565b600080610c33600254895161153e90919063ffffffff16565b9050610c4e83604051806020016040528060008152506117e9565b158015610c7957506000600484604051610c689190611f09565b908152602001604051809103902054115b15610cb7576064600484604051610c909190611f09565b90815260200160405180910390205482610caa91906121e0565b610cb491906121c0565b90505b80341015610cd75760405162461bcd60e51b81526004016105109061204d565b610ce08161154a565b60005b88518110156108d15760006001600160a01b0316898281518110610d1757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610e0757876001600160a01b031663f242432a338b8481518110610d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8581518110610d8557634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610dad57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518563ffffffff1660e01b8152600401610dd49493929190611f94565b600060405180830381600087803b158015610dee57600080fd5b505af1158015610e02573d6000803e3d6000fd5b505050505b80610e1181612216565b915050610ce3565b6000610e236114ec565b6001600160a01b03841615801590610e4357506001600160a01b03831615155b8015610e4f5750600082115b610e5857600080fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815284906001600160a01b0382169063a9059cbb90610ea19087908790600401611fcc565b602060405180830381600087803b158015610ebb57600080fd5b505af1158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef39190611e43565b507ee763f7778b8ceef7270c89b7d1df1008b0e482da39c43831417733af96fb0d858585604051610f2693929190611f70565b60405180910390a1506001949350505050565b60008351855114610f5c5760405162461bcd60e51b8152600401610510906120df565b6000610f678561184c565b90506000610f81600254885161153e90919063ffffffff16565b90506000610f8f83836118af565b905080341015610fb15760405162461bcd60e51b81526004016105109061204d565b610fbd88518787611593565b610fc68161154a565b60005b88518110156110e35760006001600160a01b0316898281518110610ffd57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141580156110435750600088828151811061103957634e487b7160e01b600052603260045260246000fd5b6020026020010151115b156110d15788818151811061106857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc89838151811061109c57634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050501580156110cf573d6000803e3d6000fd5b505b806110db81612216565b915050610fc9565b50336001600160a01b03167f96280f1b9a54271a5ff3d2bc027d857d9386da43de7540d42b8b73180a15864a895185604051611120929190612145565b60405180910390a2506001979650505050505050565b60025484516000918791839161114c919061153e565b90508034101561116e5760405162461bcd60e51b81526004016105109061204d565b6111778161154a565b60005b87518110156106c25760006001600160a01b03168882815181106111ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461126f57826001600160a01b03166323b872dd338a84815181106111f457634e487b7160e01b600052603260045260246000fd5b60200260200101518a6040518463ffffffff1660e01b815260040161121b93929190611f70565b602060405180830381600087803b15801561123557600080fd5b505af1158015611249573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126d9190611e43565b505b8061127981612216565b91505061117a565b60035481565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260009082906001600160a01b0382169063dd62ed3e906112d39087903090600401611f56565b60206040518083038186803b1580156112eb57600080fd5b505afa1580156112ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113239190611ef1565b949350505050565b600080611344600254875161153e90919063ffffffff16565b905060006113668261136089518961153e90919063ffffffff16565b906118af565b9050803410156113885760405162461bcd60e51b81526004016105109061204d565b61139487518686611593565b61139d8161154a565b60005b875181101561145e5760006001600160a01b03168882815181106113d457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461144c5787818151811061140a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc889081150290604051600060405180830381858888f1935050505015801561144a573d6000803e3d6000fd5b505b8061145681612216565b9150506113a0565b50865133907f96280f1b9a54271a5ff3d2bc027d857d9386da43de7540d42b8b73180a15864a9061148f898261153e565b60405161149d929190612145565b60405180910390a25060019695505050505050565b6114ba6114ec565b6001600160a01b0381166114e05760405162461bcd60e51b815260040161051090611ff0565b6114e981611781565b50565b6114f46118bb565b6001600160a01b0316611505610793565b6001600160a01b03161461073b5760405162461bcd60e51b8152600401610510906120aa565b600061153782846121c0565b9392505050565b600061153782846121e0565b803411156114e957600061155e34836118bf565b604051909150339082156108fc029083906000818181858888f1935050505015801561158e573d6000803e3d6000fd5b505050565b6002546040805160208101909152600081526115b09083906117e9565b1580156115db575060006004836040516115ca9190611f09565b908152602001604051809103902054115b156116195760646004836040516115f29190611f09565b9081526020016040518091039020548261160c91906121e0565b61161691906121c0565b90505b6001600160a01b0383161580159061163a57506001600160a01b0383163314155b156117335760035460009061165990611653878561153e565b9061152b565b905060006116718261166b888661153e565b906118bf565b905061167b610793565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156116b3573d6000803e3d6000fd5b506040516001600160a01b0386169083156108fc029084906000818181858888f193505050501580156116ea573d6000803e3d6000fd5b50846001600160a01b03167f885e6f6235626292940f78c947a331f4c7c1d7f50a48b38092cf546bc9c7907a83604051611724919061213c565b60405180910390a2505061177b565b61173b610793565b6001600160a01b03166108fc611751868461153e565b6040518115909202916000818181858888f19350505050158015611779573d6000803e3d6000fd5b505b50505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080836040516020016117fd9190611f09565b6040516020818303038152906040528051906020012090506000836040516020016118289190611f09565b60408051601f19818403018152919052805160209091012091909114949350505050565b600080805b83518110156118a85761189484828151811061187d57634e487b7160e01b600052603260045260246000fd5b6020026020010151836118af90919063ffffffff16565b9150806118a081612216565b915050611851565b5092915050565b600061153782846121a8565b3390565b600061153782846121ff565b80356001600160a01b038116811461046b57600080fd5b600082601f8301126118f2578081fd5b8135602061190761190283612184565b612153565b8281528181019085830183850287018401881015611923578586fd5b855b8581101561194857611936826118cb565b84529284019290840190600101611925565b5090979650505050505050565b600082601f830112611965578081fd5b8135602061197561190283612184565b8281528181019085830183850287018401881015611991578586fd5b855b8581101561194857813584529284019290840190600101611993565b600082601f8301126119bf578081fd5b813567ffffffffffffffff8111156119d9576119d9612247565b6119ec601f8201601f1916602001612153565b818152846020838601011115611a00578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611a2b578081fd5b611537826118cb565b60008060408385031215611a46578081fd5b611a4f836118cb565b9150611a5d602084016118cb565b90509250929050565b600080600060608486031215611a7a578081fd5b611a83846118cb565b9250611a91602085016118cb565b9150604084013590509250925092565b600080600080600060a08688031215611ab8578081fd5b611ac1866118cb565b9450602086013567ffffffffffffffff80821115611add578283fd5b611ae989838a016118e2565b95506040880135915080821115611afe578283fd5b611b0a89838a01611955565b9450611b18606089016118cb565b93506080880135915080821115611b2d578283fd5b50611b3a888289016119af565b9150509295509295909350565b600080600080600060a08688031215611b5e578081fd5b611b67866118cb565b9450602086013567ffffffffffffffff80821115611b83578283fd5b611b8f89838a016118e2565b955060408801359450611b18606089016118cb565b600080600080600060a08688031215611bbb578081fd5b853567ffffffffffffffff80821115611bd2578283fd5b611bde89838a016118e2565b9650611ae9602089016118cb565b60008060008060008060c08789031215611c04578081fd5b863567ffffffffffffffff80821115611c1b578283fd5b611c278a838b016118e2565b9750611c3560208a016118cb565b96506040890135915080821115611c4a578283fd5b611c568a838b01611955565b95506060890135915080821115611c6b578283fd5b611c778a838b01611955565b9450611c8560808a016118cb565b935060a0890135915080821115611c9a578283fd5b50611ca789828a016119af565b9150509295509295509295565b600080600080600060a08688031215611ccb578283fd5b853567ffffffffffffffff80821115611ce2578485fd5b611cee89838a016118e2565b9650611b8f602089016118cb565b60008060008060008060c08789031215611d14578384fd5b863567ffffffffffffffff80821115611d2b578586fd5b611d378a838b016118e2565b9750611d4560208a016118cb565b96506040890135955060608901359450611c8560808a016118cb565b60008060008060808587031215611d76578182fd5b843567ffffffffffffffff80821115611d8d578384fd5b611d99888389016118e2565b95506020870135915080821115611dae578384fd5b611dba88838901611955565b9450611dc8604088016118cb565b93506060870135915080821115611ddd578283fd5b50611dea878288016119af565b91505092959194509250565b60008060008060808587031215611e0b578182fd5b843567ffffffffffffffff80821115611e22578384fd5b611e2e888389016118e2565b955060208701359450611dc8604088016118cb565b600060208284031215611e54578081fd5b81518015158114611537578182fd5b600060208284031215611e74578081fd5b813567ffffffffffffffff811115611e8a578182fd5b611323848285016119af565b60008060408385031215611ea8578182fd5b823567ffffffffffffffff811115611ebe578283fd5b611eca858286016119af565b95602094909401359450505050565b600060208284031215611eea578081fd5b5035919050565b600060208284031215611f02578081fd5b5051919050565b60008251815b81811015611f295760208186018101518583015201611f0f565b81811115611f375782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f4e6f7420656e6f756768204554482073656e742077697468207472616e73616360408201527f74696f6e21000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f546f74616c206e756d626572206f6620726563697069656e747320616e64207660408201527f616c75657320617265206e6f7420657175616c00000000000000000000000000606082015260800190565b90815260200190565b918252602082015260400190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561217c5761217c612247565b604052919050565b600067ffffffffffffffff82111561219e5761219e612247565b5060209081020190565b600082198211156121bb576121bb612231565b500190565b6000826121db57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121fa576121fa612231565b500290565b60008282101561221157612211612231565b500390565b600060001982141561222a5761222a612231565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122038dd11f0812144c968ffc6fee78011e63f93f23b72b7d6a98660088854f29d7364736f6c63430008010033
Deployed Bytecode
0x60806040526004361061016e5760003560e01c806390a5bb98116100cb578063bdd5aebf1161007f578063ea7ee01011610059578063ea7ee0101461035d578063f093be641461037d578063f2fde38b1461039057610178565b8063bdd5aebf14610322578063c9797e5714610335578063e14891911461034857610178565b8063a48f1dc2116100b0578063a48f1dc2146102dc578063a900e161146102ef578063bcdd1e131461030257610178565b806390a5bb98146102b4578063a39a2b76146102c757610178565b8063540d7e0f116101225780638974bd0d116101075780638974bd0d1461025f5780638da5cb5b1461027f578063904e4ed0146102a157610178565b8063540d7e0f14610235578063715018a61461024857610178565b806334fcf4371161015357806334fcf437146101d5578063355e6b43146101f55780633d8e387e1461021557610178565b80632c4e722e1461017d57806331ded0ab146101a857610178565b3661017857600080fd5b600080fd5b34801561018957600080fd5b506101926103b0565b60405161019f919061213c565b60405180910390f35b3480156101b457600080fd5b506101c86101c3366004611e96565b6103b6565b60405161019f9190611fe5565b3480156101e157600080fd5b506101c86101f0366004611ed9565b6103ea565b34801561020157600080fd5b506101c8610210366004611ed9565b610470565b34801561022157600080fd5b50610192610230366004611e63565b6104cd565b6101c8610243366004611aa1565b6104ea565b34801561025457600080fd5b5061025d610729565b005b34801561026b57600080fd5b5061019261027a366004611e63565b61073d565b34801561028b57600080fd5b50610294610793565b60405161019f9190611f42565b6101c86102af366004611cfc565b6107a2565b6101c86102c2366004611cb4565b610922565b3480156102d357600080fd5b50610192610ac0565b6101c86102ea366004611ba4565b610ac6565b6101c86102fd366004611bec565b610c1a565b34801561030e57600080fd5b506101c861031d366004611a66565b610e19565b6101c8610330366004611d61565b610f39565b6101c8610343366004611b47565b611136565b34801561035457600080fd5b50610192611281565b34801561036957600080fd5b50610192610378366004611a34565b611287565b6101c861038b366004611df6565b61132b565b34801561039c57600080fd5b5061025d6103ab366004611a1a565b6114b2565b60015481565b60006103c06114ec565b816004846040516103d19190611f09565b9081526040519081900360200190205550600192915050565b60006103f46114ec565b60015482141580156104065750600082115b61040f57600080fd5b7f4ac9052a820bf4f8c02d7588587cae835573b5b99ea7ad4ca002f17f319f718660015483604051610442929190612145565b60405180910390a16001829055670de0b6b3a7640000610462818461152b565b60025550600190505b919050565b600061047a6114ec565b60035482141561048957600080fd5b7f9b8c4484ba5e4a0dde5339b45a03dd83281d6b1958617ee553dfbcd3532b0e2a600354836040516104bc929190612145565b60405180910390a150600355600190565b805160208183018101805160048252928201919093012091525481565b825184516000918791146105195760405162461bcd60e51b8152600401610510906120df565b60405180910390fd5b6000610531600254885161153e90919063ffffffff16565b9050803410156105535760405162461bcd60e51b81526004016105109061204d565b61055c8161154a565b60005b87518110156106c25760006001600160a01b031688828151811061059357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141580156105d9575060008782815181106105cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151115b156106b057826001600160a01b03166323b872dd338a848151811061060e57634e487b7160e01b600052603260045260246000fd5b60200260200101518a858151811061063657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161065c93929190611f70565b602060405180830381600087803b15801561067657600080fd5b505af115801561068a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ae9190611e43565b505b806106ba81612216565b91505061055f565b506106cf87518686611593565b876001600160a01b0316336001600160a01b03167f39015fe519110ce3ccad418b153817407dc5312684839c8700af7436a80a07af8951604051610713919061213c565b60405180910390a3506001979650505050505050565b6107316114ec565b61073b6000611781565b565b6000806004836040516107509190611f09565b908152602001604051809103902054111561078b576004826040516107759190611f09565b908152602001604051809103902054905061046b565b506000919050565b6000546001600160a01b031690565b6000806107bb600254895161153e90919063ffffffff16565b9050803410156107dd5760405162461bcd60e51b81526004016105109061204d565b6107e68161154a565b60005b88518110156108d15760006001600160a01b031689828151811061081d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316146108bf57876001600160a01b031663f242432a338b848151811061086357634e487b7160e01b600052603260045260246000fd5b60200260200101518a8a6040518563ffffffff1660e01b815260040161088c9493929190611f94565b600060405180830381600087803b1580156108a657600080fd5b505af11580156108ba573d6000803e3d6000fd5b505050505b806108c981612216565b9150506107e9565b506108de88518585611593565b866001600160a01b0316336001600160a01b03167f27e0a1f97429652d3d0c359e240224746851e9b57329d6db644e6d464761d4f78a51604051610713919061213c565b60008061093b600254885161153e90919063ffffffff16565b90508034101561095d5760405162461bcd60e51b81526004016105109061204d565b6109668161154a565b60005b8751811015610a5a5760006001600160a01b031688828151811061099d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610a4857866001600160a01b03166342842e0e338a84815181106109e357634e487b7160e01b600052603260045260246000fd5b6020026020010151848a6109f791906121a8565b6040518463ffffffff1660e01b8152600401610a1593929190611f70565b600060405180830381600087803b158015610a2f57600080fd5b505af1158015610a43573d6000803e3d6000fd5b505050505b80610a5281612216565b915050610969565b50610a6787518585611593565b856001600160a01b0316336001600160a01b03167f27e0a1f97429652d3d0c359e240224746851e9b57329d6db644e6d464761d4f78951604051610aab919061213c565b60405180910390a35060019695505050505050565b60025481565b600080610adf600254885161153e90919063ffffffff16565b905080341015610b015760405162461bcd60e51b81526004016105109061204d565b610b0a8161154a565b60005b8751811015610a5a5760006001600160a01b0316888281518110610b4157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610c0857866001600160a01b03166342842e0e338a8481518110610b8757634e487b7160e01b600052603260045260246000fd5b6020026020010151898581518110610baf57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401610bd593929190611f70565b600060405180830381600087803b158015610bef57600080fd5b505af1158015610c03573d6000803e3d6000fd5b505050505b80610c1281612216565b915050610b0d565b600080610c33600254895161153e90919063ffffffff16565b9050610c4e83604051806020016040528060008152506117e9565b158015610c7957506000600484604051610c689190611f09565b908152602001604051809103902054115b15610cb7576064600484604051610c909190611f09565b90815260200160405180910390205482610caa91906121e0565b610cb491906121c0565b90505b80341015610cd75760405162461bcd60e51b81526004016105109061204d565b610ce08161154a565b60005b88518110156108d15760006001600160a01b0316898281518110610d1757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610e0757876001600160a01b031663f242432a338b8481518110610d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8581518110610d8557634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610dad57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518563ffffffff1660e01b8152600401610dd49493929190611f94565b600060405180830381600087803b158015610dee57600080fd5b505af1158015610e02573d6000803e3d6000fd5b505050505b80610e1181612216565b915050610ce3565b6000610e236114ec565b6001600160a01b03841615801590610e4357506001600160a01b03831615155b8015610e4f5750600082115b610e5857600080fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815284906001600160a01b0382169063a9059cbb90610ea19087908790600401611fcc565b602060405180830381600087803b158015610ebb57600080fd5b505af1158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef39190611e43565b507ee763f7778b8ceef7270c89b7d1df1008b0e482da39c43831417733af96fb0d858585604051610f2693929190611f70565b60405180910390a1506001949350505050565b60008351855114610f5c5760405162461bcd60e51b8152600401610510906120df565b6000610f678561184c565b90506000610f81600254885161153e90919063ffffffff16565b90506000610f8f83836118af565b905080341015610fb15760405162461bcd60e51b81526004016105109061204d565b610fbd88518787611593565b610fc68161154a565b60005b88518110156110e35760006001600160a01b0316898281518110610ffd57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141580156110435750600088828151811061103957634e487b7160e01b600052603260045260246000fd5b6020026020010151115b156110d15788818151811061106857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc89838151811061109c57634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050501580156110cf573d6000803e3d6000fd5b505b806110db81612216565b915050610fc9565b50336001600160a01b03167f96280f1b9a54271a5ff3d2bc027d857d9386da43de7540d42b8b73180a15864a895185604051611120929190612145565b60405180910390a2506001979650505050505050565b60025484516000918791839161114c919061153e565b90508034101561116e5760405162461bcd60e51b81526004016105109061204d565b6111778161154a565b60005b87518110156106c25760006001600160a01b03168882815181106111ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461126f57826001600160a01b03166323b872dd338a84815181106111f457634e487b7160e01b600052603260045260246000fd5b60200260200101518a6040518463ffffffff1660e01b815260040161121b93929190611f70565b602060405180830381600087803b15801561123557600080fd5b505af1158015611249573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126d9190611e43565b505b8061127981612216565b91505061117a565b60035481565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260009082906001600160a01b0382169063dd62ed3e906112d39087903090600401611f56565b60206040518083038186803b1580156112eb57600080fd5b505afa1580156112ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113239190611ef1565b949350505050565b600080611344600254875161153e90919063ffffffff16565b905060006113668261136089518961153e90919063ffffffff16565b906118af565b9050803410156113885760405162461bcd60e51b81526004016105109061204d565b61139487518686611593565b61139d8161154a565b60005b875181101561145e5760006001600160a01b03168882815181106113d457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461144c5787818151811061140a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc889081150290604051600060405180830381858888f1935050505015801561144a573d6000803e3d6000fd5b505b8061145681612216565b9150506113a0565b50865133907f96280f1b9a54271a5ff3d2bc027d857d9386da43de7540d42b8b73180a15864a9061148f898261153e565b60405161149d929190612145565b60405180910390a25060019695505050505050565b6114ba6114ec565b6001600160a01b0381166114e05760405162461bcd60e51b815260040161051090611ff0565b6114e981611781565b50565b6114f46118bb565b6001600160a01b0316611505610793565b6001600160a01b03161461073b5760405162461bcd60e51b8152600401610510906120aa565b600061153782846121c0565b9392505050565b600061153782846121e0565b803411156114e957600061155e34836118bf565b604051909150339082156108fc029083906000818181858888f1935050505015801561158e573d6000803e3d6000fd5b505050565b6002546040805160208101909152600081526115b09083906117e9565b1580156115db575060006004836040516115ca9190611f09565b908152602001604051809103902054115b156116195760646004836040516115f29190611f09565b9081526020016040518091039020548261160c91906121e0565b61161691906121c0565b90505b6001600160a01b0383161580159061163a57506001600160a01b0383163314155b156117335760035460009061165990611653878561153e565b9061152b565b905060006116718261166b888661153e565b906118bf565b905061167b610793565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156116b3573d6000803e3d6000fd5b506040516001600160a01b0386169083156108fc029084906000818181858888f193505050501580156116ea573d6000803e3d6000fd5b50846001600160a01b03167f885e6f6235626292940f78c947a331f4c7c1d7f50a48b38092cf546bc9c7907a83604051611724919061213c565b60405180910390a2505061177b565b61173b610793565b6001600160a01b03166108fc611751868461153e565b6040518115909202916000818181858888f19350505050158015611779573d6000803e3d6000fd5b505b50505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080836040516020016117fd9190611f09565b6040516020818303038152906040528051906020012090506000836040516020016118289190611f09565b60408051601f19818403018152919052805160209091012091909114949350505050565b600080805b83518110156118a85761189484828151811061187d57634e487b7160e01b600052603260045260246000fd5b6020026020010151836118af90919063ffffffff16565b9150806118a081612216565b915050611851565b5092915050565b600061153782846121a8565b3390565b600061153782846121ff565b80356001600160a01b038116811461046b57600080fd5b600082601f8301126118f2578081fd5b8135602061190761190283612184565b612153565b8281528181019085830183850287018401881015611923578586fd5b855b8581101561194857611936826118cb565b84529284019290840190600101611925565b5090979650505050505050565b600082601f830112611965578081fd5b8135602061197561190283612184565b8281528181019085830183850287018401881015611991578586fd5b855b8581101561194857813584529284019290840190600101611993565b600082601f8301126119bf578081fd5b813567ffffffffffffffff8111156119d9576119d9612247565b6119ec601f8201601f1916602001612153565b818152846020838601011115611a00578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611a2b578081fd5b611537826118cb565b60008060408385031215611a46578081fd5b611a4f836118cb565b9150611a5d602084016118cb565b90509250929050565b600080600060608486031215611a7a578081fd5b611a83846118cb565b9250611a91602085016118cb565b9150604084013590509250925092565b600080600080600060a08688031215611ab8578081fd5b611ac1866118cb565b9450602086013567ffffffffffffffff80821115611add578283fd5b611ae989838a016118e2565b95506040880135915080821115611afe578283fd5b611b0a89838a01611955565b9450611b18606089016118cb565b93506080880135915080821115611b2d578283fd5b50611b3a888289016119af565b9150509295509295909350565b600080600080600060a08688031215611b5e578081fd5b611b67866118cb565b9450602086013567ffffffffffffffff80821115611b83578283fd5b611b8f89838a016118e2565b955060408801359450611b18606089016118cb565b600080600080600060a08688031215611bbb578081fd5b853567ffffffffffffffff80821115611bd2578283fd5b611bde89838a016118e2565b9650611ae9602089016118cb565b60008060008060008060c08789031215611c04578081fd5b863567ffffffffffffffff80821115611c1b578283fd5b611c278a838b016118e2565b9750611c3560208a016118cb565b96506040890135915080821115611c4a578283fd5b611c568a838b01611955565b95506060890135915080821115611c6b578283fd5b611c778a838b01611955565b9450611c8560808a016118cb565b935060a0890135915080821115611c9a578283fd5b50611ca789828a016119af565b9150509295509295509295565b600080600080600060a08688031215611ccb578283fd5b853567ffffffffffffffff80821115611ce2578485fd5b611cee89838a016118e2565b9650611b8f602089016118cb565b60008060008060008060c08789031215611d14578384fd5b863567ffffffffffffffff80821115611d2b578586fd5b611d378a838b016118e2565b9750611d4560208a016118cb565b96506040890135955060608901359450611c8560808a016118cb565b60008060008060808587031215611d76578182fd5b843567ffffffffffffffff80821115611d8d578384fd5b611d99888389016118e2565b95506020870135915080821115611dae578384fd5b611dba88838901611955565b9450611dc8604088016118cb565b93506060870135915080821115611ddd578283fd5b50611dea878288016119af565b91505092959194509250565b60008060008060808587031215611e0b578182fd5b843567ffffffffffffffff80821115611e22578384fd5b611e2e888389016118e2565b955060208701359450611dc8604088016118cb565b600060208284031215611e54578081fd5b81518015158114611537578182fd5b600060208284031215611e74578081fd5b813567ffffffffffffffff811115611e8a578182fd5b611323848285016119af565b60008060408385031215611ea8578182fd5b823567ffffffffffffffff811115611ebe578283fd5b611eca858286016119af565b95602094909401359450505050565b600060208284031215611eea578081fd5b5035919050565b600060208284031215611f02578081fd5b5051919050565b60008251815b81811015611f295760208186018101518583015201611f0f565b81811115611f375782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f4e6f7420656e6f756768204554482073656e742077697468207472616e73616360408201527f74696f6e21000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f546f74616c206e756d626572206f6620726563697069656e747320616e64207660408201527f616c75657320617265206e6f7420657175616c00000000000000000000000000606082015260800190565b90815260200190565b918252602082015260400190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561217c5761217c612247565b604052919050565b600067ffffffffffffffff82111561219e5761219e612247565b5060209081020190565b600082198211156121bb576121bb612231565b500190565b6000826121db57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121fa576121fa612231565b500290565b60008282101561221157612211612231565b500390565b600060001982141561222a5761222a612231565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122038dd11f0812144c968ffc6fee78011e63f93f23b72b7d6a98660088854f29d7364736f6c63430008010033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$1.64
Net Worth in ETH
0.000811
Token Allocations
POL
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| POL | 100.00% | $0.111917 | 14.64 | $1.64 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.