Skip to content
Verified contractPartial

AssetToken

Address0x6248211b830ce0191c7643b19f5ddb059e018672
Balance

0 ETH

 

Transactions

4,055

 

Compiler

solc 0.4.11

 

Same code

1 more contract

 

Details

Compiler
solc 0.4.11+commit.68ef5810
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
4,361,686
Creation transaction
0x95a875df36…31b9b7f3fe

AssetToken.sol

pragma solidity ^0.4.11;
 
contract admined {
	address public admin;

	function admined(){
		admin = msg.sender;
	}

	modifier onlyAdmin(){
		require(msg.sender == admin);
		_;
	}

	function transferAdminship(address newAdmin) onlyAdmin {
		admin = newAdmin;
	}

}

contract BitRS {

	mapping (address => uint256) public balanceOf;
	string public name;
	string public symbol;
	uint8 public decimal; 
	uint256 public intialSupply=500000000;
	uint256 public totalSupply;
	
	
	event Transfer(address indexed from, address indexed to, uint256 value);


	function BitRS(){
		balanceOf[msg.sender] = intialSupply;
		totalSupply = intialSupply;
		decimal = 0;
		symbol = "BitRS";
		name = "BitRS";
	}

	function transfer(address _to, uint256 _value){
		require(balanceOf[msg.sender] > _value);
		require(balanceOf[_to] + _value > balanceOf[_to]) ;
		

		balanceOf[msg.sender] -= _value;
		balanceOf[_to] += _value;
		Transfer(msg.sender, _to, _value);
	}

}

contract AssetToken is admined, BitRS{
	mapping (address => bool) public frozenAccount;

	event FrozenFund(address target, bool frozen);

	function AssetToken() BitRS (){
		totalSupply = 500000000;
		admin = msg.sender;
		balanceOf[admin] = 500000000;
		totalSupply = 500000000;	
	}

	function mintToken(address target, uint256 mintedAmount) onlyAdmin{
		balanceOf[target] += mintedAmount;
		totalSupply += mintedAmount;
		Transfer(0, this, mintedAmount);
		Transfer(this, target, mintedAmount);
	}

	function transfer(address _to, uint256 _value){
	    require(!frozenAccount[_to]);
		require(balanceOf[msg.sender] > 0);
		require(balanceOf[msg.sender] > _value) ;
		require(balanceOf[_to] + _value > balanceOf[_to]);
		
		balanceOf[msg.sender] -= _value;
		balanceOf[_to] += _value;
		Transfer(msg.sender, _to, _value);
	}
	
	function transferFrom(address _from, address _to, uint256 _value) onlyAdmin{
		
		require(!frozenAccount[_from]);
		
		require(balanceOf[_from] >= _value);
		
		require(balanceOf[_to] + _value >= balanceOf[_to]);
		balanceOf[_from] -= _value;
		balanceOf[_to] += _value;
		Transfer(_from, _to, _value);

	}

	
	
	function destroyCoins(address _from, address _to, uint256 _value) onlyAdmin{
		require(balanceOf[_from] >= _value);
		balanceOf[_from] -= _value;
		balanceOf[_to] += _value;
	}
	
		function freezeAccount(address target, bool freeze) onlyAdmin{
		frozenAccount[target] = freeze;
		FrozenFund(target, freeze);
    }

}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.