ETH Price: $3,288.45 (-2.20%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve87534252019-10-16 17:05:471911 days ago1571245547IN
0xc7c9975C...F1Bff7fAA
0 ETH0.000046091
Transfer Ownersh...63980422018-09-25 17:12:212297 days ago1537895541IN
0xc7c9975C...F1Bff7fAA
0 ETH0.000339288

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HRVATSKANARODNABANKA

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.4.24;

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

  function div(uint256 a, uint256 b) internal pure 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 pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

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

  contract ERC20 {
  function totalSupply()public view returns (uint total_Supply);
  function balanceOf(address _owner)public view returns (uint256 balance);
  function allowance(address _owner, address _spender)public view returns (uint remaining);
  function transferFrom(address _from, address _to, uint _amount)public returns (bool ok);
  function approve(address _spender, uint _amount)public returns (bool ok);
  function transfer(address _to, uint _amount)public returns (bool ok);
  event Transfer(address indexed _from, address indexed _to, uint _amount);
  event Approval(address indexed _owner, address indexed _spender, uint _amount);
}


contract HRVATSKANARODNABANKA is ERC20
{using SafeMath for uint256;
   string public constant symbol = ",000.HRK.CroatianKuna";
     string public constant name = "HRVATSKA NARODNA BANKA";
     uint public constant decimals = 18;
     uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion Total Supply including 18 decimal
     
     // Owner of this contract
     address public owner;
     
  // Balances for each account
     mapping(address => uint256) balances;
  
     // Owner of account approves the transfer of an amount to another account
     mapping(address => mapping (address => uint256)) allowed;
  
     // Functions with this modifier can only be executed by the owner
     modifier onlyOwner() {
         if (msg.sender != owner) {
             revert();
         }
         _;
     }
  
     // Constructor
     constructor () public {
         owner = msg.sender;
         balances[owner] = _totalSupply;
        emit Transfer(0, owner, _totalSupply);
     }
     
     function burntokens(uint256 tokens) public onlyOwner {
         _totalSupply = (_totalSupply).sub(tokens);
     }
  
    // what is the total supply of the ech tokens
     function totalSupply() public view returns (uint256 total_Supply) {
         total_Supply = _totalSupply;
     }
       // What is the balance of a particular account?
     function balanceOf(address _owner)public view returns (uint256 balance) {
         return balances[_owner];
     }
  
     // Transfer the balance from owner's account to another account
     function transfer(address _to, uint256 _amount)public returns (bool ok) {
        require( _to != 0x0);
        require(balances[msg.sender] >= _amount && _amount >= 0);
        balances[msg.sender] = (balances[msg.sender]).sub(_amount);
        balances[_to] = (balances[_to]).add(_amount);
        emit Transfer(msg.sender, _to, _amount);
             return true;
         }
         
    // Send _value amount of tokens from address _from to address _to
     // The transferFrom method is used for a withdraw workflow, allowing contracts to send
     // tokens on your behalf, for example to "deposit" to a contract address and/or to charge
     // fees in sub-currencies; the command should fail unless the _from account has
     // deliberately authorized the sender of the message via some mechanism; we propose
     // these standardized APIs for approval:
     function transferFrom( address _from, address _to, uint256 _amount )public returns (bool ok) {
     require( _to != 0x0);
     require(balances[_from] >= _amount && allowed[_from][msg.sender] >= _amount && _amount >= 0);
     balances[_from] = (balances[_from]).sub(_amount);
     allowed[_from][msg.sender] = (allowed[_from][msg.sender]).sub(_amount);
     balances[_to] = (balances[_to]).add(_amount);
     emit Transfer(_from, _to, _amount);
     return true;
         }
 
     // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
     // If this function is called again it overwrites the current allowance with _value.
     function approve(address _spender, uint256 _amount)public returns (bool ok) {
         require( _spender != 0x0);
         allowed[msg.sender][_spender] = _amount;
         emit Approval(msg.sender, _spender, _amount);
         return true;
     }
  
     function allowance(address _owner, address _spender)public view returns (uint256 remaining) {
         require( _owner != 0x0 && _spender !=0x0);
         return allowed[_owner][_spender];
   }
        
     //In case the ownership needs to be transferred
	function transferOwnership(address newOwner) external onlyOwner
	{
	    uint256 x = balances[owner];
	    require( newOwner != 0x0);
	    balances[newOwner] = (balances[newOwner]).add(balances[owner]);
	    balances[owner] = 0;
	    owner = newOwner;
	    emit Transfer(msg.sender, newOwner, x);
	}
  
	
  

}

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":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"ok","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"total_Supply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"ok","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"burntokens","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":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"ok","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Approval","type":"event"}]

60806040527002ef9066c50d7aa5aeac19b7700000000060005534801561002557600080fd5b5060018054600160a060020a031916331780825560008054600160a060020a039283168252600260209081526040808420839055945485519283529451949093169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3610849806100a16000396000f3006080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461018057806323b872dd146101a7578063313ce567146101d157806370a08231146101e65780638da5cb5b1461020757806394b0780f1461023857806395d89b4114610252578063a9059cbb14610267578063dd62ed3e1461028b578063f2fde38b146102b2575b600080fd5b3480156100ca57600080fd5b506100d36102d3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561010d5781810151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015457600080fd5b5061016c600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561018c57600080fd5b50610195610388565b60408051918252519081900360200190f35b3480156101b357600080fd5b5061016c600160a060020a036004358116906024351660443561038e565b3480156101dd57600080fd5b50610195610513565b3480156101f257600080fd5b50610195600160a060020a0360043516610518565b34801561021357600080fd5b5061021c610533565b60408051600160a060020a039092168252519081900360200190f35b34801561024457600080fd5b50610250600435610542565b005b34801561025e57600080fd5b506100d3610572565b34801561027357600080fd5b5061016c600160a060020a03600435166024356105a9565b34801561029757600080fd5b50610195600160a060020a036004358116906024351661069b565b3480156102be57600080fd5b50610250600160a060020a03600435166106f4565b60408051808201909152601681527f4852564154534b41204e41524f444e412042414e4b4100000000000000000000602082015281565b6000600160a060020a038316151561032157600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005490565b6000600160a060020a03831615156103a557600080fd5b600160a060020a03841660009081526002602052604090205482118015906103f05750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b80156103fd575060008210155b151561040857600080fd5b600160a060020a038416600090815260026020526040902054610431908363ffffffff6107f516565b600160a060020a038516600090815260026020908152604080832093909355600381528282203383529052205461046e908363ffffffff6107f516565b600160a060020a0380861660009081526003602090815260408083203384528252808320949094559186168152600290915220546104b2908363ffffffff61080716565b600160a060020a0380851660008181526002602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b601281565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b600154600160a060020a0316331461055957600080fd5b60005461056c908263ffffffff6107f516565b60005550565b60408051808201909152601581527f2c3030302e48524b2e43726f617469616e4b756e610000000000000000000000602082015281565b6000600160a060020a03831615156105c057600080fd5b3360009081526002602052604090205482118015906105e0575060008210155b15156105eb57600080fd5b3360009081526002602052604090205461060b908363ffffffff6107f516565b3360009081526002602052604080822092909255600160a060020a0385168152205461063d908363ffffffff61080716565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000600160a060020a038316158015906106bd5750600160a060020a03821615155b15156106c857600080fd5b50600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600090600160a060020a0316331461070e57600080fd5b50600154600160a060020a03908116600090815260026020526040902054908216151561073a57600080fd5b600154600160a060020a0390811660009081526002602052604080822054928516825290205461076f9163ffffffff61080716565b600160a060020a0380841660008181526002602090815260408083209590955560018054909416825284822091909155825473ffffffffffffffffffffffffffffffffffffffff1916821790925582518481529251909233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050565b60008282111561080157fe5b50900390565b60008282018381101561081657fe5b93925050505600a165627a7a723058202e902945dd373492cd203969217dbf84b0c49b9c2515184626ffac39f0d077920029

Deployed Bytecode

0x6080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461018057806323b872dd146101a7578063313ce567146101d157806370a08231146101e65780638da5cb5b1461020757806394b0780f1461023857806395d89b4114610252578063a9059cbb14610267578063dd62ed3e1461028b578063f2fde38b146102b2575b600080fd5b3480156100ca57600080fd5b506100d36102d3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561010d5781810151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015457600080fd5b5061016c600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561018c57600080fd5b50610195610388565b60408051918252519081900360200190f35b3480156101b357600080fd5b5061016c600160a060020a036004358116906024351660443561038e565b3480156101dd57600080fd5b50610195610513565b3480156101f257600080fd5b50610195600160a060020a0360043516610518565b34801561021357600080fd5b5061021c610533565b60408051600160a060020a039092168252519081900360200190f35b34801561024457600080fd5b50610250600435610542565b005b34801561025e57600080fd5b506100d3610572565b34801561027357600080fd5b5061016c600160a060020a03600435166024356105a9565b34801561029757600080fd5b50610195600160a060020a036004358116906024351661069b565b3480156102be57600080fd5b50610250600160a060020a03600435166106f4565b60408051808201909152601681527f4852564154534b41204e41524f444e412042414e4b4100000000000000000000602082015281565b6000600160a060020a038316151561032157600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005490565b6000600160a060020a03831615156103a557600080fd5b600160a060020a03841660009081526002602052604090205482118015906103f05750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b80156103fd575060008210155b151561040857600080fd5b600160a060020a038416600090815260026020526040902054610431908363ffffffff6107f516565b600160a060020a038516600090815260026020908152604080832093909355600381528282203383529052205461046e908363ffffffff6107f516565b600160a060020a0380861660009081526003602090815260408083203384528252808320949094559186168152600290915220546104b2908363ffffffff61080716565b600160a060020a0380851660008181526002602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b601281565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b600154600160a060020a0316331461055957600080fd5b60005461056c908263ffffffff6107f516565b60005550565b60408051808201909152601581527f2c3030302e48524b2e43726f617469616e4b756e610000000000000000000000602082015281565b6000600160a060020a03831615156105c057600080fd5b3360009081526002602052604090205482118015906105e0575060008210155b15156105eb57600080fd5b3360009081526002602052604090205461060b908363ffffffff6107f516565b3360009081526002602052604080822092909255600160a060020a0385168152205461063d908363ffffffff61080716565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000600160a060020a038316158015906106bd5750600160a060020a03821615155b15156106c857600080fd5b50600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600090600160a060020a0316331461070e57600080fd5b50600154600160a060020a03908116600090815260026020526040902054908216151561073a57600080fd5b600154600160a060020a0390811660009081526002602052604080822054928516825290205461076f9163ffffffff61080716565b600160a060020a0380841660008181526002602090815260408083209590955560018054909416825284822091909155825473ffffffffffffffffffffffffffffffffffffffff1916821790925582518481529251909233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050565b60008282111561080157fe5b50900390565b60008282018381101561081657fe5b93925050505600a165627a7a723058202e902945dd373492cd203969217dbf84b0c49b9c2515184626ffac39f0d077920029

Swarm Source

bzzr://2e902945dd373492cd203969217dbf84b0c49b9c2515184626ffac39f0d07792

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.