ETH Price: $3,419.95 (+3.26%)

Token

MARAChain Cash (MARA)
 

Overview

Max Total Supply

100,000,000 MARA

Holders

1,684

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Balance
250 MARA

Value
$0.00
0x1bab7d4e4cf8ae5f4ca0d080389f323da94e1f9a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Secure platform for the management and transfer of private documents, over a distributed network and in compliance with the strictest security and data privacy regulations.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MARA

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-04-24
*/

pragma solidity ^0.4.25;

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);
		uint256 c = a / b;
		assert(a == b * c + a % b);
		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 MARA {	
	string  public constant name 		= "MARAChain Cash";
	string  public constant symbol 		= "MARA";
	uint8   public constant decimals	= 0;
	uint    public _totalSupply 		= 100000000;
	uint256 public RATE 				= 1;
	bool    public isMinting 			= false;
	string  public constant generatedBy	= "MARAChain, Sociedad Limitada - www.marachain.eu";
	
	using SafeMath for uint256;
	address public owner;
		
	modifier onlyOwner() {
		if (msg.sender != owner) {
			throw;
		}
		_;
	}
	
	mapping(address => uint256) balances;
	mapping(address => mapping(address=>uint256)) allowed;

	function () payable{
		createTokens();
	}

	constructor() public {
		owner = 0xc69c8e0AAeB7949A9c304EE1CEd09bd49C2d7435;
		balances[owner] = _totalSupply;
	}

	function burnTokens(uint256 _value) onlyOwner {
		require(balances[msg.sender] >= _value && _value > 0 );
		_totalSupply = _totalSupply.sub(_value);
		balances[msg.sender] = balances[msg.sender].sub(_value); 
	}

	function createTokens() payable {
		if(isMinting == true){
			require(msg.value > 0);
			uint256 tokens = msg.value.div(100000000000000).mul(RATE);
			balances[msg.sender] = balances[msg.sender].add(tokens);
			_totalSupply = _totalSupply.add(tokens);
			owner.transfer(msg.value);
		}
		else{
			throw;
		}
	}

	function endCrowdsale() onlyOwner {
		isMinting = false;
	}

	function changeCrowdsaleRate(uint256 _value) onlyOwner {
		RATE = _value;
	}
		
	function totalSupply() constant returns(uint256){
		return _totalSupply;
	}
		
	function balanceOf(address _owner) constant returns(uint256){
		return balances[_owner];
	}
   
	function transfer(address _to, uint256 _value)  returns(bool) {
		require(balances[msg.sender] >= _value && _value > 0 );
		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) {
		require(allowed[_from][msg.sender] >= _value && balances[_from] >= _value && _value > 0);
		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){
		allowed[msg.sender][_spender] = _value; 
		Approval(msg.sender, _spender, _value);
		return true;
	}
	
	function allowance(address _owner, address _spender) constant returns(uint256){
		return allowed[_owner][_spender];
	}
	
	event Transfer(address indexed _from, address indexed _to, uint256 _value);
	event Approval(address indexed _owner, address indexed _spender, 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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"generatedBy","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"endCrowdsale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isMinting","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"changeCrowdsaleRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"createTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","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"}]

60806040526305f5e100600055600180556002805460ff1916905534801561002657600080fd5b506002805474c69c8e0aaeb7949a9c304ee1ced09bd49c2d74350061010060a860020a0319909116179081905560008054610100909204600160a060020a03168152600360205260409020556109eb806100816000396000f3006080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610105578063095ea7b31461018f5780630ced8c69146101c757806318160ddd146101dc5780632095f2d41461020357806323b872dd146102185780632a8092df14610242578063313ce567146102575780633eaaf86b146102825780635c07ac9414610297578063664e9704146102af5780636d1b229d146102c457806370a08231146102dc5780638da5cb5b146102fd57806395d89b411461032e578063a9059cbb14610343578063b4427263146100fb578063dd62ed3e14610367575b61010361038e565b005b34801561011157600080fd5b5061011a610471565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019b57600080fd5b506101b3600160a060020a03600435166024356104a8565b604080519115158252519081900360200190f35b3480156101d357600080fd5b5061011a61050e565b3480156101e857600080fd5b506101f161056e565b60408051918252519081900360200190f35b34801561020f57600080fd5b50610103610574565b34801561022457600080fd5b506101b3600160a060020a036004358116906024351660443561059c565b34801561024e57600080fd5b506101b361070b565b34801561026357600080fd5b5061026c610714565b6040805160ff9092168252519081900360200190f35b34801561028e57600080fd5b506101f1610719565b3480156102a357600080fd5b5061010360043561071f565b3480156102bb57600080fd5b506101f1610740565b3480156102d057600080fd5b50610103600435610746565b3480156102e857600080fd5b506101f1600160a060020a03600435166107d4565b34801561030957600080fd5b506103126107ef565b60408051600160a060020a039092168252519081900360200190f35b34801561033a57600080fd5b5061011a610803565b34801561034f57600080fd5b506101b3600160a060020a036004351660243561083a565b34801561037357600080fd5b506101f1600160a060020a0360043581169060243516610914565b60025460009060ff1615156001141561046957600034116103ae57600080fd5b6001546103d7906103cb34655af3107a400063ffffffff61093f16565b9063ffffffff61097a16565b336000908152600360205260409020549091506103fa908263ffffffff61099e16565b336000908152600360205260408120919091555461041e908263ffffffff61099e16565b6000908155600254604051600160a060020a0361010090920491909116913480156108fc02929091818181858888f19350505050158015610463573d6000803e3d6000fd5b5061046e565b600080fd5b50565b60408051808201909152600e81527f4d415241436861696e2043617368000000000000000000000000000000000000602082015281565b336000818152600460209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b606060405190810160405280602f81526020017f4d415241436861696e2c20536f636965646164204c696d6974616461202d207781526020017f77772e6d617261636861696e2e6575000000000000000000000000000000000081525081565b60005490565b6002546101009004600160a060020a0316331461059057600080fd5b6002805460ff19169055565b600160a060020a038316600090815260046020908152604080832033845290915281205482118015906105e75750600160a060020a0384166000908152600360205260409020548211155b80156105f35750600082115b15156105fe57600080fd5b600160a060020a038416600090815260036020526040902054610627908363ffffffff6109ad16565b600160a060020a03808616600090815260036020526040808220939093559085168152205461065c908363ffffffff61099e16565b600160a060020a0380851660009081526003602090815260408083209490945591871681526004825282812033825290915220546106a0908363ffffffff6109ad16565b600160a060020a03808616600081815260046020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60025460ff1681565b600081565b60005481565b6002546101009004600160a060020a0316331461073b57600080fd5b600155565b60015481565b6002546101009004600160a060020a0316331461076257600080fd5b3360009081526003602052604090205481118015906107815750600081115b151561078c57600080fd5b60005461079f908263ffffffff6109ad16565b6000908155338152600360205260409020546107c1908263ffffffff6109ad16565b3360009081526003602052604090205550565b600160a060020a031660009081526003602052604090205490565b6002546101009004600160a060020a031681565b60408051808201909152600481527f4d41524100000000000000000000000000000000000000000000000000000000602082015281565b3360009081526003602052604081205482118015906108595750600082115b151561086457600080fd5b33600090815260036020526040902054610884908363ffffffff6109ad16565b3360009081526003602052604080822092909255600160a060020a038516815220546108b6908363ffffffff61099e16565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205490565b60008080831161094b57fe5b828481151561095657fe5b049050828481151561096457fe5b06818402018414151561097357fe5b9392505050565b6000828202831580610996575082848281151561099357fe5b04145b151561097357fe5b60008282018381101561097357fe5b6000828211156109b957fe5b509003905600a165627a7a723058208209d1cff5d85180744a702c19807862de1682e77a5330fa0461cb787d75d0750029

Deployed Bytecode

0x6080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610105578063095ea7b31461018f5780630ced8c69146101c757806318160ddd146101dc5780632095f2d41461020357806323b872dd146102185780632a8092df14610242578063313ce567146102575780633eaaf86b146102825780635c07ac9414610297578063664e9704146102af5780636d1b229d146102c457806370a08231146102dc5780638da5cb5b146102fd57806395d89b411461032e578063a9059cbb14610343578063b4427263146100fb578063dd62ed3e14610367575b61010361038e565b005b34801561011157600080fd5b5061011a610471565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019b57600080fd5b506101b3600160a060020a03600435166024356104a8565b604080519115158252519081900360200190f35b3480156101d357600080fd5b5061011a61050e565b3480156101e857600080fd5b506101f161056e565b60408051918252519081900360200190f35b34801561020f57600080fd5b50610103610574565b34801561022457600080fd5b506101b3600160a060020a036004358116906024351660443561059c565b34801561024e57600080fd5b506101b361070b565b34801561026357600080fd5b5061026c610714565b6040805160ff9092168252519081900360200190f35b34801561028e57600080fd5b506101f1610719565b3480156102a357600080fd5b5061010360043561071f565b3480156102bb57600080fd5b506101f1610740565b3480156102d057600080fd5b50610103600435610746565b3480156102e857600080fd5b506101f1600160a060020a03600435166107d4565b34801561030957600080fd5b506103126107ef565b60408051600160a060020a039092168252519081900360200190f35b34801561033a57600080fd5b5061011a610803565b34801561034f57600080fd5b506101b3600160a060020a036004351660243561083a565b34801561037357600080fd5b506101f1600160a060020a0360043581169060243516610914565b60025460009060ff1615156001141561046957600034116103ae57600080fd5b6001546103d7906103cb34655af3107a400063ffffffff61093f16565b9063ffffffff61097a16565b336000908152600360205260409020549091506103fa908263ffffffff61099e16565b336000908152600360205260408120919091555461041e908263ffffffff61099e16565b6000908155600254604051600160a060020a0361010090920491909116913480156108fc02929091818181858888f19350505050158015610463573d6000803e3d6000fd5b5061046e565b600080fd5b50565b60408051808201909152600e81527f4d415241436861696e2043617368000000000000000000000000000000000000602082015281565b336000818152600460209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b606060405190810160405280602f81526020017f4d415241436861696e2c20536f636965646164204c696d6974616461202d207781526020017f77772e6d617261636861696e2e6575000000000000000000000000000000000081525081565b60005490565b6002546101009004600160a060020a0316331461059057600080fd5b6002805460ff19169055565b600160a060020a038316600090815260046020908152604080832033845290915281205482118015906105e75750600160a060020a0384166000908152600360205260409020548211155b80156105f35750600082115b15156105fe57600080fd5b600160a060020a038416600090815260036020526040902054610627908363ffffffff6109ad16565b600160a060020a03808616600090815260036020526040808220939093559085168152205461065c908363ffffffff61099e16565b600160a060020a0380851660009081526003602090815260408083209490945591871681526004825282812033825290915220546106a0908363ffffffff6109ad16565b600160a060020a03808616600081815260046020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60025460ff1681565b600081565b60005481565b6002546101009004600160a060020a0316331461073b57600080fd5b600155565b60015481565b6002546101009004600160a060020a0316331461076257600080fd5b3360009081526003602052604090205481118015906107815750600081115b151561078c57600080fd5b60005461079f908263ffffffff6109ad16565b6000908155338152600360205260409020546107c1908263ffffffff6109ad16565b3360009081526003602052604090205550565b600160a060020a031660009081526003602052604090205490565b6002546101009004600160a060020a031681565b60408051808201909152600481527f4d41524100000000000000000000000000000000000000000000000000000000602082015281565b3360009081526003602052604081205482118015906108595750600082115b151561086457600080fd5b33600090815260036020526040902054610884908363ffffffff6109ad16565b3360009081526003602052604080822092909255600160a060020a038516815220546108b6908363ffffffff61099e16565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205490565b60008080831161094b57fe5b828481151561095657fe5b049050828481151561096457fe5b06818402018414151561097357fe5b9392505050565b6000828202831580610996575082848281151561099357fe5b04145b151561097357fe5b60008282018381101561097357fe5b6000828211156109b957fe5b509003905600a165627a7a723058208209d1cff5d85180744a702c19807862de1682e77a5330fa0461cb787d75d0750029

Swarm Source

bzzr://8209d1cff5d85180744a702c19807862de1682e77a5330fa0461cb787d75d075
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.