Sponsored Link:   Ambrosus Main-Net Launching: Stake AMB in Masternodes and get regular rewards for maintaining network integrity.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 4 txns
Token Contract: AKM coin (AKM)
 Latest 4 txns

TxHash Age From To Value [TxFee]
0xb856ddabbdd03da4af92987f34559a2a20190d70e4077ea4f161179bfb633a35237 days 6 hrs ago0x26befd9f8f7d7a53f1c4953957752fbabfb5c1a4  IN   0x1dff419e268da24005f32a2d53250b260530e1730 Ether0.000525
0xb46d5f38d3c54d605bb83991c431b5da9197f687026698407fd2380d18c00b28288 days 12 hrs ago0x284c6c273b4ab7ae632843496c3aaf4b0ea11b7c  IN   0x1dff419e268da24005f32a2d53250b260530e1730.49475 Ether0.001400784
0xd4ba4538b84523122d4b4e2112f540b0b90e33ffed3b5e799048cc8277a132f7289 days 8 hrs ago0x26befd9f8f7d7a53f1c4953957752fbabfb5c1a4  IN   0x1dff419e268da24005f32a2d53250b260530e1730 Ether0.000994119
0xe28c1728d1529b089f7966c835b60b855e6e627ff752af8f7b9d1344fb5b4ed1289 days 18 hrs ago0x26befd9f8f7d7a53f1c4953957752fbabfb5c1a4  IN    Contract Creation0 Ether0.004666195
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xb46d5f38d3c54d605bb83991c431b5da9197f687026698407fd2380d18c00b284327890288 days 12 hrs ago0x1dff419e268da24005f32a2d53250b260530e1730x26befd9f8f7d7a53f1c4953957752fbabfb5c1a40.49475 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: AKM
Compiler Version: v0.4.13+commit.fb4cb1a
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.11;


contract ERC20Basic {
  uint256 public totalSupply = 0;
  function balanceOf(address who) constant returns (uint256);
  function transfer(address to, uint256 value) returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

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 BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

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

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


contract Ownable {
  address public owner;

  function Ownable() {
    owner = msg.sender;
  }

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



contract AKM is BasicToken, Ownable {
  using SafeMath for uint256;
  
  string public constant name = "AKM coin";
  string public constant symbol = "AKM";
  uint256 public constant decimals = 8;
  
  uint256 public tokenPerWai = (10 ** (18 - decimals) * 1 wei) / 1250;
  uint256 public token = 10 ** decimals;
  uint256 public constant INITIAL_SUPPLY = 2800000;
  
  uint256 public creationTime;
  bool public is_started_bonuses = false;
  bool public is_started_payouts = true;
  
  function emissionPay(uint256 _ammount) private {
    uint256 ownBonus = _ammount.div(100).mul(25);
    totalSupply = totalSupply.add(_ammount.add(ownBonus));
    
    balances[msg.sender] = balances[msg.sender].add(_ammount);
    balances[owner] = balances[owner].add(ownBonus);
    
    if(msg.value > 10 ether) 
      Transfer(0, msg.sender, _ammount);
    Transfer(this, owner, ownBonus);
    Transfer(this, msg.sender, _ammount);
  }
  
  function extraEmission(uint256 _ammount) public onlyOwner {
    _ammount = _ammount.mul(token);
    totalSupply = totalSupply.add(_ammount);
    balances[owner] = balances[owner].add(_ammount);
    Transfer(this, owner, _ammount);
  }

  
  function AKM() {
    totalSupply = INITIAL_SUPPLY.mul(token);
    balances[owner] = totalSupply;
  }
  
  function startBonuses() public onlyOwner {
    if(!is_started_bonuses) {
      creationTime = now;
      is_started_bonuses = true;
    }
  }
  
  function startPayouts() public onlyOwner {
    is_started_payouts = true;
  }
  
  function stopPayouts() public onlyOwner {
    is_started_payouts = false;
  }
  
  function setTokensPerEther(uint256 _value) public onlyOwner {
     require(_value > 0);
     tokenPerWai = (10 ** 10 * 1 wei) / _value;
  }
  
  function getBonusPercent() private constant returns(uint256) {
    if(!is_started_bonuses) return 100;
    uint256 diff = now.sub(creationTime);
    uint256 diff_weeks = diff.div(1 weeks);
    if(diff_weeks < 1) // 0 ... 1 week
      return 130;
    else if(diff_weeks < 2)// 1 ... 2 week
      return 125;
    else if(diff_weeks < 3)// 2 ... 3 week
      return 120;
    else if(diff_weeks < 4)// 3 ... 4 week
      return 115;
    else if(diff_weeks < 5)// 4 ... 5 week
      return 110;
    else {
      is_started_bonuses = false;
      return 100;
    }
  }
  
  
  function() payable {
    assert(is_started_payouts);
    uint256 amount = msg.value.div(tokenPerWai);
    amount = amount.div(100).mul(getBonusPercent());
    emissionPay(amount);
    owner.transfer(msg.value);
  }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"stopPayouts","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startPayouts","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenPerWai","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"is_started_payouts","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startBonuses","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"is_started_bonuses","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"setTokensPerEther","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_ammount","type":"uint256"}],"name":"extraEmission","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"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"}]

  Contract Creation Code Switch To Opcodes View
6060604052600080556104e26402540be4005b046003556305f5e1006004556006805461ffff1916610100179055341561003857600080fd5b5b5b60028054600160a060020a03191633600160a060020a03161790555b60045461007490622ab980906401000000006105b361009782021704565b6000818155600254600160a060020a03168152600160205260409020555b6100c6565b60008282028315806100b357508284828115156100b057fe5b04145b15156100bb57fe5b8091505b5092915050565b610aef806100d56000396000f300606060405236156100f95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301e56c77811461019657806306fdde03146101ab5780630b74074b1461023657806318160ddd1461024b578063208838c8146102705780632ff2e9dc14610295578063313ce567146102ba57806362eb4c89146102df57806369d298321461030657806370a082311461031b57806380a507c61461034c5780638da5cb5b14610373578063904bd6d0146103a257806395d89b41146103ba578063a9059cbb14610445578063d8270dce1461047b578063f78a706a146104a0578063fc0c546a146104b8575b6101945b600654600090610100900460ff16151561011357fe5b60035461012790349063ffffffff6104dd16565b90506101516101346104f9565b61014583606463ffffffff6104dd16565b9063ffffffff6105b316565b905061015c816105e2565b600254600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561019057600080fd5b5b50565b005b34156101a157600080fd5b610194610752565b005b34156101b657600080fd5b6101be61077c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101fb5780820151818401525b6020016101e2565b50505050905090810190601f1680156102285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561024157600080fd5b6101946107b3565b005b341561025657600080fd5b61025e6107e1565b60405190815260200160405180910390f35b341561027b57600080fd5b61025e6107e7565b60405190815260200160405180910390f35b34156102a057600080fd5b61025e6107ed565b60405190815260200160405180910390f35b34156102c557600080fd5b61025e6107f4565b60405190815260200160405180910390f35b34156102ea57600080fd5b6102f26107f9565b604051901515815260200160405180910390f35b341561031157600080fd5b610194610807565b005b341561032657600080fd5b61025e600160a060020a0360043516610844565b60405190815260200160405180910390f35b341561035757600080fd5b6102f2610863565b604051901515815260200160405180910390f35b341561037e57600080fd5b61038661086c565b604051600160a060020a03909116815260200160405180910390f35b34156103ad57600080fd5b61019460043561087b565b005b34156103c557600080fd5b6101be6108bc565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101fb5780820151818401525b6020016101e2565b50505050905090810190601f1680156102285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561045057600080fd5b6102f2600160a060020a03600435166024356108f3565b604051901515815260200160405180910390f35b341561048657600080fd5b61025e6109a1565b60405190815260200160405180910390f35b34156104ab57600080fd5b6101946004356109a7565b005b34156104c357600080fd5b61025e610a6c565b60405190815260200160405180910390f35b60008082848115156104eb57fe5b0490508091505b5092915050565b6006546000908190819060ff16151561051557606492506105a9565b60055461052990429063ffffffff610a7216565b915061053e8262093a8063ffffffff6104dd16565b9050600181101561055257608292506105a9565b600281101561056457607d92506105a9565b600381101561057657607892506105a9565b600481101561058857607392506105a9565b600581101561059a57606e92506105a9565b6006805460ff19169055606492505b5b5b5b5b5b505090565b60008282028315806105cf57508284828115156105cc57fe5b04145b15156105d757fe5b8091505b5092915050565b6000610606601961014584606463ffffffff6104dd16565b9063ffffffff6105b316565b905061062a61061b838363ffffffff610a8916565b6000549063ffffffff610a8916565b6000908155600160a060020a033316815260016020526040902054610655908363ffffffff610a8916565b600160a060020a03338116600090815260016020526040808220939093556002549091168152205461068d908263ffffffff610a8916565b600254600160a060020a0316600090815260016020526040902055678ac7230489e800003411156106e65733600160a060020a03166000600080516020610aa48339815191528460405190815260200160405180910390a35b600254600160a060020a03908116903016600080516020610aa48339815191528360405190815260200160405180910390a333600160a060020a031630600160a060020a0316600080516020610aa48339815191528460405190815260200160405180910390a35b5050565b60025433600160a060020a0390811691161461076d57600080fd5b6006805461ff00191690555b5b565b60408051908101604052600881527f414b4d20636f696e000000000000000000000000000000000000000000000000602082015281565b60025433600160a060020a039081169116146107ce57600080fd5b6006805461ff0019166101001790555b5b565b60005481565b60035481565b622ab98081565b600881565b600654610100900460ff1681565b60025433600160a060020a0390811691161461082257600080fd5b60065460ff16151561077957426005556006805460ff191660011790555b5b5b565b600160a060020a0381166000908152600160205260409020545b919050565b60065460ff1681565b600254600160a060020a031681565b60025433600160a060020a0390811691161461089657600080fd5b600081116108a357600080fd5b806402540be4008115156108b357fe5b046003555b5b50565b60408051908101604052600381527f414b4d0000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03331660009081526001602052604081205461091c908363ffffffff610a7216565b600160a060020a033381166000908152600160205260408082209390935590851681522054610951908363ffffffff610a8916565b600160a060020a038085166000818152600160205260409081902093909355913390911690600080516020610aa48339815191529085905190815260200160405180910390a35060015b92915050565b60055481565b60025433600160a060020a039081169116146109c257600080fd5b6004546109d690829063ffffffff6105b316565b6000549091506109ec908263ffffffff610a8916565b6000908155600254600160a060020a0316815260016020526040902054610a19908263ffffffff610a8916565b60028054600160a060020a03908116600090815260016020526040908190209390935590548116913090911690600080516020610aa48339815191529084905190815260200160405180910390a35b5b50565b60045481565b600082821115610a7e57fe5b508082035b92915050565b6000828201838110156105d757fe5b8091505b50929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820364b5caa179dc3b5df5a96651770bd70a231ec90d7e36f8ce11088fd1837b46f0029

   Swarm Source:
bzzr://364b5caa179dc3b5df5a96651770bd70a231ec90d7e36f8ce11088fd1837b46f

 

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.