Contract 0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c

 

TxHash Block Age From To Value [TxFee]
0x74cf2eba527d2b5483dd49ad650e9608cb213901b961733863def832bfbcbe71700591549 days 13 hrs ago0x0b066d0cf2d576089fff3342df642a24421f7a88 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c333 Ether0.000381525
0xca7ab496bcc1494aa5796ce60a8f6fe0e0af32803494c828deb8a5e4fd2441bc700586349 days 13 hrs ago0x0b066d0cf2d576089fff3342df642a24421f7a88 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c333 Ether0.000375
0xc8a74fa18f7ba357b523f3a45356dd655ba364c21f26c2be3a4a381168638e5a700584849 days 13 hrs ago0x0b066d0cf2d576089fff3342df642a24421f7a88 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c333 Ether0.000105
0xbd8d2be09514627771d36a5d863b20ef37b66a2638c88e38ff05f521cf154b63700581449 days 14 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000685975
0xb91805311f0065ea48fc86fcd823f40bd0272ecf969939fecf88af139f48155e694121260 days 13 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000685975
0xdb50d24913b2329a9a6c170761ca87cb4199f49b6ba7d783912b4fd64a2e497e694119860 days 13 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.0007221
0x9e067af4dd4b6bb490908f80546ce7c46e2e263b6c620338cca826a18fa472ab692638263 days 1 hr ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000684375
0xa9b95074376a47f74b4cc88e580f1edf301b67331c594f3faad66de630eaed3e6520109129 days 22 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.00071435
0x1b660ab08da66288317277a883daf77f7aef06dd69fa560939b0816e6d9789656520058129 days 23 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000687575
0x92ef16426c5ee7d488a58810baf0da043bfe1e766d248ac8243987d1a184f0446199034183 days 1 hr ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000685975
0x08bf2d5264f45fcfbf57facd31c593dc6c0899f8fde18768be0d04cf655db42b6127924195 days 2 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000684375
0x6fef6cc41cdfdf97468b519b7a189575ba9d8b72030da4c78a550931164759ef6104545199 days 37 mins ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.0010987
0x56fd51d9c1854fe72d0d0ed4da88fbe5109740a838081bdf1ff75260c2ddd9bf6104528199 days 42 mins ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.000687575
0x3f89fe0007243187f370edef5b16e5394ded67c10b7c4d554472034f0b635b195952369224 days 18 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0.00001 Ether0.00079329
0x76c413f889ad138486a92f7ae4b35ecdfb28f45aabd623ed7d16322dc832acf35952359224 days 18 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0.0000001 Ether0.00063
0x2bd17396700ac283c191377f50b901d0f170d7ca756dca97bfb54d2d976993c55952320224 days 18 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0 Ether0.0010955
0xf71fa3711e72f8e3570db27696572cdd419d9d024f528925654e63f921b964f95952150224 days 19 hrs ago0xfaa1447b9ae34c3893b486b61906b5415106ef57 IN  Contract Creation0 Ether0.022228875
[ Download CSV Export 

Latest 2 Internal Transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x74cf2eba527d2b5483dd49ad650e9608cb213901b961733863def832bfbcbe71700591549 days 13 hrs ago0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0xa8b8d4f116bf4afa2af95c8ae239b416026aface333 Ether
0x3f89fe0007243187f370edef5b16e5394ded67c10b7c4d554472034f0b635b195952369224 days 18 hrs ago0x1b6df88f60b6b7c2b7f9b6beec4a6b3841a10d6c0x269d55ef8acfdf0b83ccd08278ab440f87f9e9d80.00001 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Primacorp
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.24;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipRenounced(address indexed previousOwner);
  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function transferOwnership(address _newOwner) public onlyOwner {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}


contract ERC20 {
    function totalSupply() public view returns (uint256);
    function balanceOf(address who) public view returns (uint256);
    function transfer(address to, uint256 value) public returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
}


contract Primacorp is Ownable {

    mapping (address => uint256) public allowance;
    uint256 public contributionInWei;
    address _tokenAddress = 0x2A22e5cCA00a3D63308fa39f29202eB1b39eEf52;
    address _wallet = 0x269D55Ef8AcFdf0B83cCd08278ab440f87f9E9D8;

    constructor(uint256 _contributionInWei) public {
        contributionInWei = _contributionInWei;
    }

    function() public payable {
        require(allowance[msg.sender] > 0);
        require(msg.value >= contributionInWei);
        ERC20(_tokenAddress).transfer(msg.sender, allowance[msg.sender]);
        allowance[msg.sender] = 0;
        _wallet.transfer(msg.value);
    }

    function withdraw(uint256 amount) external onlyOwner {
        ERC20(_tokenAddress).transfer(msg.sender, amount);
    }

    function changeAllowance(address _address, uint256 value) external onlyOwner {
        allowance[_address] = value;
    }

    function setWalletAddress(address newWalletAddress) external onlyOwner {
        _wallet = newWalletAddress;
    }

    function setContributionInWei(uint256 _valueInWei) external onlyOwner {
        contributionInWei = _valueInWei;
    }

}

Contract ABI
[{"constant":true,"inputs":[],"name":"contributionInWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"value","type":"uint256"}],"name":"changeAllowance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_valueInWei","type":"uint256"}],"name":"setContributionInWei","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newWalletAddress","type":"address"}],"name":"setWalletAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_contributionInWei","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

Contract Creation Code
6080604052732a22e5cca00a3d63308fa39f29202eb1b39eef52600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073269d55ef8acfdf0b83ccd08278ab440f87f9e9d8600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156100ba57600080fd5b50604051602080610c1183398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060028190555050610add806101346000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630237ef12146102e8578063079a193b146103135780632e1a7d4d146103605780633e5beab91461038d578063715018a6146103e4578063892e3f98146103fb5780638da5cb5b14610428578063ac1a386a1461047f578063f2fde38b146104c2575b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115156100e757600080fd5b60025434101515156100f857600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b505050506040513d602081101561022657600080fd5b8101908080519060200190929190505050506000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156102e5573d6000803e3d6000fd5b50005b3480156102f457600080fd5b506102fd610505565b6040518082815260200191505060405180910390f35b34801561031f57600080fd5b5061035e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061050b565b005b34801561036c57600080fd5b5061038b600480360381019080803590602001909291905050506105ae565b005b34801561039957600080fd5b506103ce600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061070d565b6040518082815260200191505060405180910390f35b3480156103f057600080fd5b506103f9610725565b005b34801561040757600080fd5b5061042660048036038101908080359060200190929190505050610827565b005b34801561043457600080fd5b5061043d61088c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561048b57600080fd5b506104c0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108b1565b005b3480156104ce57600080fd5b50610503600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610950565b005b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561056657600080fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060957600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156106ce57600080fd5b505af11580156106e2573d6000803e3d6000fd5b505050506040513d60208110156106f857600080fd5b81019080805190602001909291905050505050565b60016020528060005260406000206000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561078057600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a260008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561088257600080fd5b8060028190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561090c57600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109ab57600080fd5b6109b4816109b7565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156109f357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820888ea5ef8c31a535c1c6323abc1f8657ec106c9fd7bc8c118bb9e3a98e4a9a8100290000000000000000000000000000000000000000000000000000000000000001


    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000001

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001


   Swarm Source:
bzzr://888ea5ef8c31a535c1c6323abc1f8657ec106c9fd7bc8c118bb9e3a98e4a9a81
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.