ETH Price: $3,250.14 (+3.00%)
 

Overview

Max Total Supply

3,100,000,000 SCUDO

Holders

468

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
352.360817477096546863 SCUDO

Value
$0.00
0x14840e94c13d5b13c111242f2b424d01b63dc6cc
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ScudoCash

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-06-16
*/

pragma solidity ^0.4.18;

interface IERC20 {
	function totalSupply() constant returns (uint totalSupply);
	function balanceOf(address _owner) constant returns (uint balance);
	function transfer(address _to, uint _value) returns (bool success);
	function transferFrom(address _from, address _to, uint _value) returns (bool success);
	function approve(address _spender, uint _value) returns (bool success);
	function allowance(address _owner, address _spender) constant returns (uint remaining);
	event Transfer(address indexed _from, address indexed _to, uint _value);
	event Approval(address indexed _owner, address indexed _spender, uint _value);
}

/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
	function mul(uint256 a, uint256 b) internal constant returns (uint256) {
		uint256 c = a * b;
		assert(a == 0 || c / a == b);
		return c;
	}

	function div(uint256 a, uint256 b) internal constant returns (uint256) {
		// assert(b > 0); // Solidity automatically throws when dividing by 0
		uint256 c = a / b;
		// assert(a == b * c + a % b); // There is no case in which this doesn't hold
		return c;
	}

	function sub(uint256 a, uint256 b) internal constant returns (uint256) {
		assert(b <= a);
		return a - b;
	}

	function add(uint256 a, uint256 b) internal constant returns (uint256) {
		uint256 c = a + b;
		assert(c >= a);
		return c;
	}
}



contract ScudoCash is IERC20{
	using SafeMath for uint256;

	uint256 private _totalSupply = 0;

	bool public purchasingAllowed = true;

	string public constant symbol = "SCUDO";
	string public constant name = "ScudoCash";
	uint256 public constant decimals = 18;

	uint256 private CREATOR_TOKEN = 3100000000 * 10**decimals;
	uint256 private CREATOR_TOKEN_END = 465000000 * 10**decimals;
	uint256 private constant RATE = 100000;

	address private owner;

	mapping(address => uint256) balances;
	mapping(address => mapping(address => uint256)) allowed;

	struct Buyer{
	    address to;
	    uint256 value;
	}

	Buyer[] buyers;

	modifier onlyOwner {
	    require(msg.sender == owner);
	    _;
	}

	function() payable{
		require(purchasingAllowed);
		createTokens();
	}

	function ScudoCash(){
		owner = msg.sender;
		balances[msg.sender] = CREATOR_TOKEN;
		_totalSupply = CREATOR_TOKEN;
	}

	function createTokens() payable{
		require(msg.value >= 0);
		uint256 tokens = msg.value.mul(10 ** decimals);
		tokens = tokens.mul(RATE);
		tokens = tokens.div(10 ** 18);

		uint256 sum2 = balances[owner].sub(tokens);
		require(sum2 >= CREATOR_TOKEN_END);
		//uint256 sum = _totalSupply.add(tokens);
		_totalSupply = sum2;
		owner.transfer(msg.value);
		balances[msg.sender] = balances[msg.sender].add(tokens);
		balances[owner] = balances[owner].sub(tokens);
		Transfer(msg.sender, owner, msg.value);
	}

	function totalSupply() constant returns (uint totalSupply){
		return _totalSupply;
	}

	function balanceOf(address _owner) constant returns (uint balance){
		return balances[_owner];
	}

	function enablePurchasing() onlyOwner {
		purchasingAllowed = true;
	}

	function disablePurchasing() onlyOwner {
		purchasingAllowed = false;
	}

	function transfer(address _to, uint256 _value) returns (bool success){
		require(balances[msg.sender] >= _value	&& balances[_to] + _value > balances[_to]);
		balances[msg.sender] = balances[msg.sender].sub(_value);
		balances[_to] = balances[_to].add(_value);
		Transfer(msg.sender, _to, _value);
		return true;
	}

	function transferFrom(address _from, address _to, uint256 _value) returns (bool success){
		require(allowed[_from][msg.sender] >= _value && balances[_from] >= _value	&& balances[_to] + _value > balances[_to]);
		balances[_from] = balances[_from].sub(_value);
		balances[_to] = balances[_to].add(_value);
		allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
		Transfer(_from, _to, _value);
		return true;
	}

	function approve(address _spender, uint256 _value) returns (bool success){
		allowed[msg.sender][_spender] = _value;
		Approval(msg.sender, _spender, _value);
		return true;
	}

	function allowance(address _owner, address _spender) constant returns (uint remaining){
		return allowed[_owner][_spender];
	}

	function burnAll() onlyOwner public {
		address burner = msg.sender;
		uint256 total = balances[burner];
		if (total > CREATOR_TOKEN_END) {
			total = total.sub(CREATOR_TOKEN_END);
			balances[burner] = balances[burner].sub(total);
			if (_totalSupply >= total){
				_totalSupply = _totalSupply.sub(total);
			}
			Burn(burner, total);
		}
	}

	function burn(uint256 _value) onlyOwner public {
        require(_value > 0);
        require(_value <= balances[msg.sender]);
		_value = _value.mul(10 ** decimals);
        address burner = msg.sender;
		uint t = balances[burner].sub(_value);
		require(t >= CREATOR_TOKEN_END);
        balances[burner] = balances[burner].sub(_value);
        if (_totalSupply >= _value){
			_totalSupply = _totalSupply.sub(_value);
		}
        Burn(burner, _value);
	}

	event Transfer(address indexed _from, address indexed _to, uint _value);
	event Approval(address indexed _owner, address indexed _spender, uint _value);
	event Burn(address indexed burner, uint256 value);
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disablePurchasing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"enablePurchasing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"burnAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"createTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"purchasingAllowed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]

6060604052600080556001805460ff1916811790556b0a044288bc398d899c0000006002556b0180a39482a23ba171000000600355341561003f57600080fd5b60048054600160a060020a033316600160a060020a0319909116811790915560025460009182526005602052604082208190559055610b88806100836000396000f3006060604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b557806323b872dd146101da578063313ce5671461020257806342966c681461021557806364acdb771461022b57806370a082311461023e5780638f5809961461025d57806395d89b41146102705780639975038c14610283578063a9059cbb14610296578063b4427263146100eb578063da040c0f146102b8578063dd62ed3e146102cb575b60015460ff1615156100eb57600080fd5b6100f36102f0565b005b341561010057600080fd5b610108610486565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014457808201518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018a57600080fd5b6101a1600160a060020a03600435166024356104bd565b604051901515815260200160405180910390f35b34156101c057600080fd5b6101c8610529565b60405190815260200160405180910390f35b34156101e557600080fd5b6101a1600160a060020a036004358116906024351660443561052f565b341561020d57600080fd5b6101c86106c4565b341561022057600080fd5b6100f36004356106c9565b341561023657600080fd5b6100f3610814565b341561024957600080fd5b6101c8600160a060020a036004351661083b565b341561026857600080fd5b6100f3610856565b341561027b57600080fd5b61010861087f565b341561028e57600080fd5b6100f36108b6565b34156102a157600080fd5b6101a1600160a060020a03600435166024356109b9565b34156102c357600080fd5b6101a1610ac5565b34156102d657600080fd5b6101c8600160a060020a0360043581169060243516610ace565b600080348190101561030157600080fd5b61031934670de0b6b3a764000063ffffffff610af916565b915061032e82620186a063ffffffff610af916565b915061034882670de0b6b3a764000063ffffffff610b2416565b600454600160a060020a0316600090815260056020526040902054909250610376908363ffffffff610b3b16565b60035490915081101561038857600080fd5b6000819055600454600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156103c157600080fd5b600160a060020a0333166000908152600560205260409020546103ea908363ffffffff610b4d16565b600160a060020a033381166000908152600560205260408082209390935560045490911681522054610422908363ffffffff610b3b16565b60048054600160a060020a039081166000908152600560205260409081902093909355905481169133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9034905190815260200160405180910390a35050565b60408051908101604052600981527f536375646f436173680000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260066020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005490565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548290108015906105815750600160a060020a038416600090815260056020526040902054829010155b80156105a65750600160a060020a038316600090815260056020526040902054828101115b15156105b157600080fd5b600160a060020a0384166000908152600560205260409020546105da908363ffffffff610b3b16565b600160a060020a03808616600090815260056020526040808220939093559085168152205461060f908363ffffffff610b4d16565b600160a060020a03808516600090815260056020908152604080832094909455878316825260068152838220339093168252919091522054610657908363ffffffff610b3b16565b600160a060020a03808616600081815260066020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b601281565b600454600090819033600160a060020a039081169116146106e957600080fd5b600083116106f657600080fd5b600160a060020a03331660009081526005602052604090205483111561071b57600080fd5b61073383670de0b6b3a764000063ffffffff610af916565b33600160a060020a038116600090815260056020526040902054919450925061075c9084610b3b565b60035490915081101561076e57600080fd5b600160a060020a038216600090815260056020526040902054610797908463ffffffff610b3b16565b600160a060020a038316600090815260056020526040812091909155548390106107d2576000546107ce908463ffffffff610b3b16565b6000555b81600160a060020a03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58460405190815260200160405180910390a2505050565b60045433600160a060020a0390811691161461082f57600080fd5b6001805460ff19169055565b600160a060020a031660009081526005602052604090205490565b60045433600160a060020a0390811691161461087157600080fd5b6001805460ff191681179055565b60408051908101604052600581527f534355444f000000000000000000000000000000000000000000000000000000602082015281565b600454600090819033600160a060020a039081169116146108d657600080fd5b505033600160a060020a0381166000908152600560205260409020546003548111156109b55760035461091090829063ffffffff610b3b16565b600160a060020a03831660009081526005602052604090205490915061093c908263ffffffff610b3b16565b600160a060020a0383166000908152600560205260408120919091555481901061097757600054610973908263ffffffff610b3b16565b6000555b81600160a060020a03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a25b5050565b600160a060020a0333166000908152600560205260408120548290108015906109fb5750600160a060020a038316600090815260056020526040902054828101115b1515610a0657600080fd5b600160a060020a033316600090815260056020526040902054610a2f908363ffffffff610b3b16565b600160a060020a033381166000908152600560205260408082209390935590851681522054610a64908363ffffffff610b4d16565b600160a060020a0380851660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60015460ff1681565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b6000828202831580610b155750828482811515610b1257fe5b04145b1515610b1d57fe5b9392505050565b6000808284811515610b3257fe5b04949350505050565b600082821115610b4757fe5b50900390565b600082820183811015610b1d57fe00a165627a7a7230582024d1c03b357d4165256e471e7a6f2f821ba39b506fdbe203095ebde0426e20500029

Deployed Bytecode

0x6060604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b557806323b872dd146101da578063313ce5671461020257806342966c681461021557806364acdb771461022b57806370a082311461023e5780638f5809961461025d57806395d89b41146102705780639975038c14610283578063a9059cbb14610296578063b4427263146100eb578063da040c0f146102b8578063dd62ed3e146102cb575b60015460ff1615156100eb57600080fd5b6100f36102f0565b005b341561010057600080fd5b610108610486565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014457808201518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018a57600080fd5b6101a1600160a060020a03600435166024356104bd565b604051901515815260200160405180910390f35b34156101c057600080fd5b6101c8610529565b60405190815260200160405180910390f35b34156101e557600080fd5b6101a1600160a060020a036004358116906024351660443561052f565b341561020d57600080fd5b6101c86106c4565b341561022057600080fd5b6100f36004356106c9565b341561023657600080fd5b6100f3610814565b341561024957600080fd5b6101c8600160a060020a036004351661083b565b341561026857600080fd5b6100f3610856565b341561027b57600080fd5b61010861087f565b341561028e57600080fd5b6100f36108b6565b34156102a157600080fd5b6101a1600160a060020a03600435166024356109b9565b34156102c357600080fd5b6101a1610ac5565b34156102d657600080fd5b6101c8600160a060020a0360043581169060243516610ace565b600080348190101561030157600080fd5b61031934670de0b6b3a764000063ffffffff610af916565b915061032e82620186a063ffffffff610af916565b915061034882670de0b6b3a764000063ffffffff610b2416565b600454600160a060020a0316600090815260056020526040902054909250610376908363ffffffff610b3b16565b60035490915081101561038857600080fd5b6000819055600454600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156103c157600080fd5b600160a060020a0333166000908152600560205260409020546103ea908363ffffffff610b4d16565b600160a060020a033381166000908152600560205260408082209390935560045490911681522054610422908363ffffffff610b3b16565b60048054600160a060020a039081166000908152600560205260409081902093909355905481169133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9034905190815260200160405180910390a35050565b60408051908101604052600981527f536375646f436173680000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260066020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005490565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548290108015906105815750600160a060020a038416600090815260056020526040902054829010155b80156105a65750600160a060020a038316600090815260056020526040902054828101115b15156105b157600080fd5b600160a060020a0384166000908152600560205260409020546105da908363ffffffff610b3b16565b600160a060020a03808616600090815260056020526040808220939093559085168152205461060f908363ffffffff610b4d16565b600160a060020a03808516600090815260056020908152604080832094909455878316825260068152838220339093168252919091522054610657908363ffffffff610b3b16565b600160a060020a03808616600081815260066020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b601281565b600454600090819033600160a060020a039081169116146106e957600080fd5b600083116106f657600080fd5b600160a060020a03331660009081526005602052604090205483111561071b57600080fd5b61073383670de0b6b3a764000063ffffffff610af916565b33600160a060020a038116600090815260056020526040902054919450925061075c9084610b3b565b60035490915081101561076e57600080fd5b600160a060020a038216600090815260056020526040902054610797908463ffffffff610b3b16565b600160a060020a038316600090815260056020526040812091909155548390106107d2576000546107ce908463ffffffff610b3b16565b6000555b81600160a060020a03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58460405190815260200160405180910390a2505050565b60045433600160a060020a0390811691161461082f57600080fd5b6001805460ff19169055565b600160a060020a031660009081526005602052604090205490565b60045433600160a060020a0390811691161461087157600080fd5b6001805460ff191681179055565b60408051908101604052600581527f534355444f000000000000000000000000000000000000000000000000000000602082015281565b600454600090819033600160a060020a039081169116146108d657600080fd5b505033600160a060020a0381166000908152600560205260409020546003548111156109b55760035461091090829063ffffffff610b3b16565b600160a060020a03831660009081526005602052604090205490915061093c908263ffffffff610b3b16565b600160a060020a0383166000908152600560205260408120919091555481901061097757600054610973908263ffffffff610b3b16565b6000555b81600160a060020a03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a25b5050565b600160a060020a0333166000908152600560205260408120548290108015906109fb5750600160a060020a038316600090815260056020526040902054828101115b1515610a0657600080fd5b600160a060020a033316600090815260056020526040902054610a2f908363ffffffff610b3b16565b600160a060020a033381166000908152600560205260408082209390935590851681522054610a64908363ffffffff610b4d16565b600160a060020a0380851660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60015460ff1681565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b6000828202831580610b155750828482811515610b1257fe5b04145b1515610b1d57fe5b9392505050565b6000808284811515610b3257fe5b04949350505050565b600082821115610b4757fe5b50900390565b600082820183811015610b1d57fe00a165627a7a7230582024d1c03b357d4165256e471e7a6f2f821ba39b506fdbe203095ebde0426e20500029

Swarm Source

bzzr://24d1c03b357d4165256e471e7a6f2f821ba39b506fdbe203095ebde0426e2050
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.