Address Contract Partially Verified
Address
0xA5959E9412d27041194c3c3bcBE855faCE2864F7
Balance
0 ETH
Nonce
1
Code Size
7897 bytes
Creator
0x77A9e404...6509 at tx 0x9326b9c4...537ba6
Indexed Transactions
0
Contract Bytecode
7897 bytes
0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063682662f3116100b857806395d89b411161007c57806395d89b41146105d85780639ecf8d4b1461065b578063a457c2d71461069f578063a9059cbb14610705578063dd62ed3e1461076b578063f2fde38b146107e357610142565b8063682662f3146104dc57806370a082311461050a578063715018a6146105625780638da5cb5b1461056c5780638f32d59b146105b657610142565b8063313ce5671161010a578063313ce56714610330578063377581a11461034e57806339509351146103aa5780634419ed20146104105780635af1c8f7146104545780635ba334261461049857610142565b806306fdde0314610147578063095ea7b3146101ca57806318160ddd146102305780631b038bc11461024e57806323b872dd146102aa575b600080fd5b61014f610827565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561018f578082015181840152602081019050610174565b50505050905090810190601f1680156101bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610216600480360360408110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610860565b604051808215151515815260200191505060405180910390f35b610238610877565b6040518082815260200191505060405180910390f35b6102906004803603602081101561026457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610881565b604051808215151515815260200191505060405180910390f35b610316600480360360608110156102c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108ac565b604051808215151515815260200191505060405180910390f35b610338610978565b6040518082815260200191505060405180910390f35b6103906004803603602081101561036457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061097d565b604051808215151515815260200191505060405180910390f35b6103f6600480360360408110156103c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506109a8565b604051808215151515815260200191505060405180910390f35b6104526004803603602081101561042657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a4d565b005b6104966004803603602081101561046a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b0b565b005b6104da600480360360208110156104ae57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c70565b005b610508600480360360208110156104f257600080fd5b8101908080359060200190929190505050610d61565b005b61054c6004803603602081101561052057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610de5565b6040518082815260200191505060405180910390f35b61056a610e2e565b005b610574610f67565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105be610f90565b604051808215151515815260200191505060405180910390f35b6105e0610fe7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610620578082015181840152602081019050610605565b50505050905090810190601f16801561064d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61069d6004803603602081101561067157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611020565b005b6106eb600480360360408110156106b557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611111565b604051808215151515815260200191505060405180910390f35b6107516004803603604081101561071b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111d0565b604051808215151515815260200191505060405180910390f35b6107cd6004803603604081101561078157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111e8565b6040518082815260200191505060405180910390f35b610825600480360360208110156107f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061126f565b005b6040518060400160405280600d81526020017f556e694465784761732e636f6d0000000000000000000000000000000000000081525081565b600061086d3384846112f5565b6001905092915050565b6000600754905090565b60036020528060005260406000206000915090508060000160009054906101000a900460ff16905081565b60006108b98484846114ec565b5061096d843361096885604051806060016040528060288152602001611e0f60289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116369092919063ffffffff16565b6112f5565b600190509392505050565b601281565b60046020528060005260406000206000915090508060000160009054906101000a900460ff16905081565b6000610a433384610a3e85600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116f690919063ffffffff16565b6112f5565b6001905092915050565b610a55610f90565b610ac7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610b13610f90565b610b85576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b604051806020016040528060001515815250600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550905050604051806020016040528060001515815250600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555090505050565b610c78610f90565b610cea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b604051806020016040528060011515815250600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555090505050565b610d69610f90565b610ddb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060068190555050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e36610f90565b610ea8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6040518060400160405280600481526020017f554e44470000000000000000000000000000000000000000000000000000000081525081565b611028610f90565b61109a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b604051806020016040528060011515815250600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555090505050565b60006111c633846111c185604051806060016040528060258152602001611e8060259139600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116369092919063ffffffff16565b6112f5565b6001905092915050565b60006111dd3384846114ec565b506001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611277610f90565b6112e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6112f28161177e565b50565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561137b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611e5c6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611401576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611da66022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff161580156115985750600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16155b1561161f5760006115c760646115b9600654866118c290919063ffffffff16565b61194890919063ffffffff16565b905060006115de828561199290919063ffffffff16565b905061160d86600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846119dc565b6116188686836119dc565b505061162b565b61162a8484846119dc565b5b600190509392505050565b60008383111582906116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116a857808201518184015260208101905061168d565b50505050905090810190601f1680156116d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015611774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611804576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611d806026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808314156118d55760009050611942565b60008284029050828482816118e657fe5b041461193d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611dee6021913960400191505060405180910390fd5b809150505b92915050565b600061198a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c96565b905092915050565b60006119d483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611636565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611e376025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ae8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611d5d6023913960400191505060405180910390fd5b611b5481604051806060016040528060268152602001611dc860269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116369092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611be981600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116f690919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008083118290611d42576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d07578082015181840152602081019050611cec565b50505050905090810190601f168015611d345780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611d4e57fe5b04905080915050939250505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582012dd1b727f3c7028ad7596e0813c20d93972f09483bd7ae9456f9adfa771543364736f6c63430005110032
Verified Source Code Partial Match
Compiler: v0.5.17+commit.d19bba13
EVM: istanbul
Optimization: No
ERC20.sol 312 lines
pragma solidity ^0.5.1;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract Ownable{
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), msg.sender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract ERC20 is Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
// Addresses that will not be taxed
struct ExcludeAddress {bool isExist;}
mapping (address => ExcludeAddress) public excludeSendersAddresses;
mapping (address => ExcludeAddress) public excludeRecipientsAddresses;
address serviceWallet;
uint taxPercent = 4;
// Token params
string public constant name = "UniDexGas.com";
string public constant symbol = "UNDG";
uint public constant decimals = 18;
uint constant total = 10000;
uint256 private _totalSupply;
// -- Token params
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
constructor() public {
_mint(msg.sender, total * 10**decimals);
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public returns (bool) {
_taxTransfer(msg.sender, recipient, amount);
return true;
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
_taxTransfer(sender, recipient, amount);
_approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
function _approve(address owner, address spender, uint256 amount) internal {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _taxTransfer(address _sender, address _recipient, uint256 _amount) internal returns (bool) {
if(!excludeSendersAddresses[_sender].isExist && !excludeRecipientsAddresses[_recipient].isExist){
uint _taxedAmount = _amount.mul(taxPercent).div(100);
uint _transferedAmount = _amount.sub(_taxedAmount);
_transfer(_sender, serviceWallet, _taxedAmount); // tax to serviceWallet
_transfer(_sender, _recipient, _transferedAmount); // amount - tax to recipient
} else {
_transfer(_sender, _recipient, _amount);
}
return true;
}
// OWNER utils
function setAddressToExcludeRecipients (address addr) public onlyOwner {
excludeRecipientsAddresses[addr] = ExcludeAddress({isExist:true});
}
function setAddressToExcludeSenders (address addr) public onlyOwner {
excludeSendersAddresses[addr] = ExcludeAddress({isExist:true});
}
function removeAddressFromExcludes (address addr) public onlyOwner {
excludeSendersAddresses[addr] = ExcludeAddress({isExist:false});
excludeRecipientsAddresses[addr] = ExcludeAddress({isExist:false});
}
function changePercentOfTax(uint percent) public onlyOwner {
taxPercent = percent;
}
function changeServiceWallet(address addr) public onlyOwner {
serviceWallet = addr;
}
}
contract Crowdsale {
address payable owner;
address me = address(this);
uint sat = 1e18;
// *** Config ***
uint startIco = 1610632800;
uint stopIco = startIco + 72 hours;
uint percentSell = 35;
uint manualSaleAmount = 0 * sat;
uint countIfUNDB = 700000; // 1ETH -> 7 UNDG
uint countIfOther = 650000; // 1 ETH -> 6.5 UNDG
uint maxTokensToOnceHand = 130 * sat; // ~20 ETH for 14.01.2021
address undbAddress = 0xd03B6ae96CaE26b743A6207DceE7Cbe60a425c70;
uint undbMinBalance = 1e17; //0.1 UNDB
// --- Config ---
uint priceDecimals = 1e5; // realPrice = Price / priceDecimals
ERC20 UNDB = ERC20(undbAddress);
ERC20 token = new ERC20();
constructor() public {
owner = msg.sender;
token.setAddressToExcludeRecipients(owner);
token.setAddressToExcludeSenders(owner);
token.changeServiceWallet(owner);
token.setAddressToExcludeSenders(address(this));
token.transferOwnership(owner);
token.transfer(owner, token.totalSupply() / 100 * (100 - percentSell) + manualSaleAmount);
}
function() external payable {
require(startIco < now && now < stopIco, "Period error");
uint amount = msg.value * getPrice() / priceDecimals;
require(token.balanceOf(msg.sender) + amount <= maxTokensToOnceHand, "The purchase limit of 130 tokens has been exceeded");
require(amount <= token.balanceOf(address(this)), "Infucient token balance in ICO");
token.transfer(msg.sender, amount);
}
// OWNER ONLY
function manualGetETH() public payable {
require(msg.sender == owner, "You is not owner");
owner.transfer(address(this).balance);
}
function getLeftTokens() public {
require(msg.sender == owner, "You is not owner");
token.transfer(owner, token.balanceOf(address(this)));
}
//--- OWNER ONLY
function getPrice() public view returns (uint) {
return (UNDB.balanceOf(msg.sender) >= undbMinBalance ? countIfUNDB : countIfOther);
}
// Utils
function getStartICO() public view returns (uint) {
return (startIco - now) / 60;
}
function getOwner() public view returns (address) {
return owner;
}
function getStopIco() public view returns(uint){
return (stopIco - now) / 60;
}
function tokenAddress() public view returns (address){
return address(token);
}
function IcoDeposit() public view returns(uint){
return token.balanceOf(address(this)) / sat;
}
function myBalancex10() public view returns(uint){
return token.balanceOf(msg.sender) / 1e17;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
excludeRecipientsAddresses 0x377581a1 → bool
excludeSendersAddresses 0x1b038bc1 → bool
isOwner 0x8f32d59b → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 12 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changePercentOfTax 0x682662f3
uint256 percent
changeServiceWallet 0x4419ed20
address addr
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeAddressFromExcludes 0x5af1c8f7
address addr
renounceOwnership 0x715018a6
No parameters
setAddressToExcludeRecipients 0x5ba33426
address addr
setAddressToExcludeSenders 0x9ecf8d4b
address addr
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address