Sponsored Link:   SHIFT.cash - 1st ever car title loan platform on blockchain. Join NOW.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 13 txns
  Latest 13 txns

TxHash Age From To Value [TxFee]
0xc2454ec8bb005fc34e13a8436ccfd3d5bca4dc322c628e6f1b1ed62a281185528 days 3 hrs ago0x00507b352aa072a21a9ccf1e8e8e414377fd2016  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00 Ether0.001971695
0xe2a27dcf90e629914c06aa5929aee3c66b2239782947733d0b4fb64884978f688 days 17 hrs ago0x64d40e8a1cd03457fb25eab0afba0b6860acb01f  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.9 Ether0.001243854
0xe9e9fb080d9a2c278fe5425f21c89744278d6ed831924f25d9c8f3f4672175078 days 18 hrs ago0xdf4c24f65af4be56ca070a80cd9008170b502c53  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b01 Ether0.00105
0x026f326c6ec2162589bc9a89875d055b9253ac84d50a72c2066ddffc8f068fd98 days 23 hrs ago0x97867a0014d4a9290775f885a7281f8823d88e8c  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.33326766 Ether0.0024603
0x5cf51b328d9727826990f80c82a76788d0f1dc84ad5cb9ce8d876528f9d9ad3810 days 43 mins ago0x8f9a924f617909f1bc9c7c5b7b171926603b0c00  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.97971266 Ether0.00319839
0xdef5da3ccde216796018b3045567a31de135a8f9fa46b67011caba11d465811510 days 52 mins ago0x8f9a924f617909f1bc9c7c5b7b171926603b0c00  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.99596266 Ether0.001365
0x333e942fe167ab645bf26865ca6a2fc25cbe4f3a8a74f260191958b5b9ecceaf10 days 56 mins ago0x8fbc84070dd1e8a6af063b9a49b54440bd89bdbd  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.15 Ether0.00319839
0x8830138e0453cb668e46bf1c44df2e66a100f88e7c913f7bbfa99336b32f134210 days 9 hrs ago0x72afbd7ccad97e239623ace7fde23ed68073f0ed  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.1666 Ether0.00049206
0x0bec3c298073e2b1d9fa05d7f647222ea941d94c6c1ac770f998ebda345f2a3613 days 23 hrs ago0xe1fb6903ed8c3382e52b9f50a01d111095b73b65  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.05 Ether0.000459144
0x63ca6f41fcf549be0f8bb9531ea6676f27ffb4e8236085051ac7df21a7d86f8620 days 19 hrs ago0xf1e2f44880f09ea2b64fc241324f9f2b0974baaa  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00.4 Ether0.00295236
0x8e331f1ceadd9bc0b6837faa25776cfcab8d53c4ecec6aff6e64c5f5ee39d60422 days 19 hrs ago0x2b510d69b554e1048401505b7d6dc74630c7e3dc  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b02.6 Ether0.001033326
0x209e891891ad6b17ea202f006f0c53c119a1ad462c178fd087aaf3e97968f6e522 days 19 hrs ago0x2b510d69b554e1048401505b7d6dc74630c7e3dc  IN   0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b02.69 Ether0.000441
0x10ed5b6e5970fc3af8c0a209cfc7ecceed24758ac6bacfa3c95fc168d7c4c22623 days 17 hrs ago0x000bc96ef4cc9cab79c34339d2609d376846d8fe  IN    Contract Creation0 Ether0.01897364
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xc2454ec8bb005fc34e13a8436ccfd3d5bca4dc322c628e6f1b1ed62a2811855247019918 days 3 hrs ago0xb61802c06fc7d5bea7d8b4853e6a7fcb53c6a8b00x00507b352aa072a21a9ccf1e8e8e414377fd20164.62958032 Ether
[ Download CSV Export  ] 
Contract Source Code Verified
Contract Name: HolyCoin
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.18;

contract SafeMath {


    function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
      uint256 z = x + y;
      assert((z >= x) && (z >= y));
      return z;
    }

    function safeSubtract(uint256 x, uint256 y) internal returns(uint256) {
      assert(x >= y);
      uint256 z = x - y;
      return z;
    }

    function safeMult(uint256 x, uint256 y) internal returns(uint256) {
      uint256 z = x * y;
      assert((x == 0)||(z/x == y));
      return z;
    }

}

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


/*  ERC 20 token */
contract StandardToken is Token {

    function transfer(address _to, uint256 _value) returns (bool success) {
      if (balances[msg.sender] >= _value && _value > 0) {
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        Transfer(msg.sender, _to, _value);
        return true;
      } else {
        return false;
      }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
      if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
        balances[_to] += _value;
        balances[_from] -= _value;
        allowed[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
      } else {
        return false;
      }
    }

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

    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 (uint256 remaining) {
      return allowed[_owner][_spender];
    }

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

contract HolyCoin is StandardToken, SafeMath {

    string public constant name = "HolyCoin";
    string public constant symbol = "HOLY";
    uint256 public constant decimals = 18;
    string public version = "1.0";

    address public ethFundDeposit;
    address public holyFoundersFundDeposit;
    address public holyBountyFundDeposit;

    bool public isFinalized;
    uint256 public fundingStartUnixTimestamp;
    uint256 public fundingEndUnixTimestamp;
    uint256 public constant foundersFund = 2400 * (10**3) * 10**decimals; // 2.4M HolyCoins
    uint256 public constant bountyFund = 600 * (10**3) * 10**decimals; // 0.6M HolyCoins
    uint256 public constant conversionRate = 900; // 900 HolyCoins = 1 ETH

    function tokenRate() constant returns(uint) {
        return conversionRate;
    }

    uint256 public constant tokenCreationCap =  12 * (10**6) * 10**decimals; // 12M HolyCoins maximum


    // events
    event CreateHOLY(address indexed _to, uint256 _value);

    // constructor
    function HolyCoin(
        address _ethFundDeposit,
        address _holyFoundersFundDeposit,
        address _holyBountyFundDeposit,
        uint256 _fundingStartUnixTimestamp,
        uint256 _fundingEndUnixTimestamp)
    {
      isFinalized = false;
      ethFundDeposit = _ethFundDeposit;
      holyFoundersFundDeposit = _holyFoundersFundDeposit;
      holyBountyFundDeposit = _holyBountyFundDeposit;
      fundingStartUnixTimestamp = _fundingStartUnixTimestamp;
      fundingEndUnixTimestamp = _fundingEndUnixTimestamp;
      totalSupply = foundersFund + bountyFund;
      balances[holyFoundersFundDeposit] = foundersFund;
      balances[holyBountyFundDeposit] = bountyFund;
      CreateHOLY(holyFoundersFundDeposit, foundersFund);
      CreateHOLY(holyBountyFundDeposit, bountyFund);
    }


    function makeTokens() payable  {
      if (isFinalized) throw;
      if (block.timestamp < fundingStartUnixTimestamp) throw;
      if (block.timestamp > fundingEndUnixTimestamp) throw;
      if (msg.value < 100 finney || msg.value > 100 ether) throw; // 100 finney = 0.1 ether

      uint256 tokens = safeMult(msg.value, tokenRate());

      uint256 checkedSupply = safeAdd(totalSupply, tokens);

      if (tokenCreationCap < checkedSupply) throw;

      totalSupply = checkedSupply;
      balances[msg.sender] += tokens;
      CreateHOLY(msg.sender, tokens);
    }

    function() payable {
        makeTokens();
    }

    function finalize() external {
      if (isFinalized) throw;
      if (msg.sender != ethFundDeposit) throw;

      if(block.timestamp <= fundingEndUnixTimestamp && totalSupply != tokenCreationCap) throw;

      isFinalized = true;
      if(!ethFundDeposit.send(this.balance)) throw;
    }



}

    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":"","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":true,"inputs":[],"name":"tokenRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenCreationCap","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":"holyFoundersFundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"conversionRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"fundingEndUnixTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ethFundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"makeTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"bountyFund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundersFund","outputs":[{"name":"","type":"uint256"}],"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"},{"constant":true,"inputs":[],"name":"fundingStartUnixTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"holyBountyFundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_ethFundDeposit","type":"address"},{"name":"_holyFoundersFundDeposit","type":"address"},{"name":"_holyBountyFundDeposit","type":"address"},{"name":"_fundingStartUnixTimestamp","type":"uint256"},{"name":"_fundingEndUnixTimestamp","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"CreateHOLY","type":"event"},{"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"}]

  Contract Creation Code Switch To Opcodes View
60606040526040805190810160405260038082527f312e300000000000000000000000000000000000000000000000000000000000602083015290805161004a929160200190610186565b50341561005657600080fd5b60405160a080610c3983398101604052808051919060200180519190602001805191906020018051919060200180516006805460048054600160a060020a0319908116600160a060020a038c811691909117909255600580549091168a831617808255600160a860020a0319909316898316178455600788905560088590556a027b46536c66c8e300000060009081559282168352600160205260408084206a01fc3842bd1f071c0000009081905594548316845292839020697f0e10af47c1c7000000905554939550929092169250600080516020610c19833981519152915190815260200160405180910390a2600654600160a060020a0316600080516020610c19833981519152697f0e10af47c1c700000060405190815260200160405180910390a25050505050610221565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101c757805160ff19168380011785556101f4565b828001600101855582156101f4579182015b828111156101f45782518255916020019190600101906101d9565b50610200929150610204565b5090565b61021e91905b80821115610200576000815560010161020a565b90565b6109e9806102306000396000f3006060604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461013c578063095ea7b3146101c657806318160ddd146101fc57806323b872dd14610221578063313ce56714610249578063317118841461025c5780634bb278f31461026f57806354fd4d50146102825780636f7920fd1461029557806370a08231146102a85780637a30ebed146102c75780637ffdf53e146102f6578063802644a4146103095780638d4e40831461031c57806395d89b411461032f578063a81c3bdf14610342578063a9059cbb14610355578063be28f5db14610132578063c06c66ca14610377578063c440008e1461038a578063dd62ed3e1461039d578063f8d29219146103c2578063fbf1a44b146103d5575b61013a6103e8565b005b341561014757600080fd5b61014f6104df565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018b578082015183820152602001610173565b50505050905090810190601f1680156101b85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101d157600080fd5b6101e8600160a060020a0360043516602435610516565b604051901515815260200160405180910390f35b341561020757600080fd5b61020f610583565b60405190815260200160405180910390f35b341561022c57600080fd5b6101e8600160a060020a0360043581169060243516604435610589565b341561025457600080fd5b61020f610681565b341561026757600080fd5b61020f610686565b341561027a57600080fd5b61013a61068c565b341561028d57600080fd5b61014f610746565b34156102a057600080fd5b61020f6107e4565b34156102b357600080fd5b61020f600160a060020a03600435166107f3565b34156102d257600080fd5b6102da61080e565b604051600160a060020a03909116815260200160405180910390f35b341561030157600080fd5b61020f61081d565b341561031457600080fd5b61020f610823565b341561032757600080fd5b6101e8610829565b341561033a57600080fd5b61014f610839565b341561034d57600080fd5b6102da610870565b341561036057600080fd5b6101e8600160a060020a036004351660243561087f565b341561038257600080fd5b61020f610922565b341561039557600080fd5b61020f610930565b34156103a857600080fd5b61020f600160a060020a036004358116906024351661093f565b34156103cd57600080fd5b61020f61096a565b34156103e057600080fd5b6102da610970565b600654600090819060a060020a900460ff161561040457600080fd5b60075442101561041357600080fd5b60085442111561042257600080fd5b67016345785d8a0000341080610440575068056bc75e2d6310000034115b1561044a57600080fd5b61045b34610456610686565b61097f565b9150610469600054836109a3565b90506a09ed194db19b238c0000008190101561048457600080fd5b6000818155600160a060020a0333168082526001602052604091829020805485019055907f517ee30dcde9158917bfb1a257c662ff6526382ddd1dd070ff0e5e3d5a4a830c9084905190815260200160405180910390a25050565b60408051908101604052600881527f486f6c79436f696e000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60005481565b600160a060020a0383166000908152600160205260408120548290108015906105d95750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b80156105e55750600082115b1561067657600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600161067a565b5060005b9392505050565b601281565b61038490565b60065460a060020a900460ff16156106a357600080fd5b60045433600160a060020a039081169116146106be57600080fd5b60085442111580156106dd57506000546a09ed194db19b238c00000014155b156106e757600080fd5b6006805474ff0000000000000000000000000000000000000000191660a060020a179055600454600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561074457600080fd5b565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107dc5780601f106107b1576101008083540402835291602001916107dc565b820191906000526020600020905b8154815290600101906020018083116107bf57829003601f168201915b505050505081565b6a09ed194db19b238c00000081565b600160a060020a031660009081526001602052604090205490565b600554600160a060020a031681565b61038481565b60085481565b60065460a060020a900460ff1681565b60408051908101604052600481527f484f4c5900000000000000000000000000000000000000000000000000000000602082015281565b600454600160a060020a031681565b600160a060020a0333166000908152600160205260408120548290108015906108a85750600082115b1561091a57600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600161057d565b50600061057d565b697f0e10af47c1c700000081565b6a01fc3842bd1f071c00000081565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60075481565b600654600160a060020a031681565b600082820283158061099b575082848281151561099857fe5b04145b151561067a57fe5b600082820183811080159061099b57508281101561067a57fe00a165627a7a723058200fb2894aa4c9bc67d53e468400f86fa4703bc6b3ae0947d087464cc48d12ee4f0029517ee30dcde9158917bfb1a257c662ff6526382ddd1dd070ff0e5e3d5a4a830c00000000000000000000000000507b352aa072a21a9ccf1e8e8e414377fd2016000000000000000000000000000c6d5d75419539e938cf317b05d0d9b320e074000000000000000000000000002b26838b22d45a7054fc6fd6194ccbe959ca61000000000000000000000000000000000000000000000000000000005a185e20000000000000000000000000000000000000000000000000000000005a2ad320

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000507b352aa072a21a9ccf1e8e8e414377fd2016000000000000000000000000000c6d5d75419539e938cf317b05d0d9b320e074000000000000000000000000002b26838b22d45a7054fc6fd6194ccbe959ca61000000000000000000000000000000000000000000000000000000005a185e20000000000000000000000000000000000000000000000000000000005a2ad320

-----Decoded View---------------
Found 5 constructor arguments :
Arg [0] : 00000000000000000000000000507b352aa072a21a9ccf1e8e8e414377fd2016
Arg [1] : 000000000000000000000000000c6d5d75419539e938cf317b05d0d9b320e074
Arg [2] : 000000000000000000000000002b26838b22d45a7054fc6fd6194ccbe959ca61
Arg [3] : 000000000000000000000000000000000000000000000000000000005a185e20
Arg [4] : 000000000000000000000000000000000000000000000000000000005a2ad320


   Swarm Source:
bzzr://0fb2894aa4c9bc67d53e468400f86fa4703bc6b3ae0947d087464cc48d12ee4f

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.