Contract 0x24775f7dd3b659709bb7cb646591582c2c3c1573

TxHash Block Age From To Value [TxFee]
0xa49848046b541864f6e5961b60edef0f4887b088a1a01dc4e9e448dbabf29a8d524964448 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00027048
0xb447a6d129193e61765de84a5d6436c7bd563164348dd79f55632144a793581052495671 hr 11 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0xa02daef9ef07a8ada5c0db721cfbd98cf260937b3ed1fa7b745e6dd80d0b683252495421 hr 18 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0x340a053befacb656ffb993ec1589d8898db9685385b099b9dde871861672211152495151 hr 26 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.0002692
0x6264929c9d20d1e7bf8ac634fd3f7ca02022c117eaedd212a943f07aa9eb226c52494751 hr 38 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0x9abc569ada2d35298e46febd40d11f7884954d7f6b2b2e1da6f96d91d15bcd0d52494251 hr 51 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.0002692
0x41ff099e6a6f57ec1aded61a48c8da8833ae5bfbac77860ace0779feec95fd0b52493922 hrs ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00027048
0xef74d9f6de37a1f4d95c8c7fdfa7d2cb217c3aa426bb2e281553c8d0cfff5f4652493212 hrs 15 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.0002692
0x414c429b3d9e3a0996b491e00a435c85913e5a7ce71f82c3e65f02572557d06552492272 hrs 40 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0x75527915679e2f9ad2e40657ea58218133f6a8b110f86e65d50d852915c6098c52491932 hrs 48 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0xe0981c82d2c8febfe39cbc17059e939d9bed8215594cb72a669fb44f87ed3f0b52491922 hrs 48 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.0002692
0xc8dafd1e2005b3ba0f2ef78aacf3c7c5b326479dd1edcfd41963bb92ace79c4852491722 hrs 52 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0xd8467de3477d3d01840ae0c8923d8f2df0a6a0378b3227fa81f3c4bac5e12c6b52489923 hrs 31 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0xa9bd2def455df1629d236c51b5aa1e923cc35c11b82ce194a6f22f3ae935080152488583 hrs 56 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00027048
0x9f38654a12a47d65b5aafdf6c9e80475ff7475f30032113c91f3d8361c696c4152487754 hrs 13 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0xcd084a5d3f41f0673db2b23ec4957c6715ff1e01d3f59a26f147af94bbb36ab352487614 hrs 16 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0x2cab71ceeb2324d8611f67470d14ce91c8021132506ad39b0894dc7c0d46a63352487114 hrs 26 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0xe38231903b1826ea3aa285c07c9a72748709f13352a0dd0f5ef6ab824c7615b552486704 hrs 33 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0xfbdd5894bc9b92f0b862685c30be2f299b4520935e2953379ce611ebe60242ec52486194 hrs 41 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0x324291509e10385af91cd36c2c11a9cd1aee4c8a0cac470540f6949c4b9418e852485704 hrs 51 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0x27e081f624496d2831b389c8e35f2584b09a92dc5cb4583448ca3050d5ef4a8b52484555 hrs 14 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
0x49c0609113099f772fd88f15db4cb34d5b736b2c88caa3be2d3c2353851c954152483055 hrs 50 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00027048
0xbfebfd92fe638ad68fc77ec73ac3827b324476476a6265b52b1f09d937d7f1a252483015 hrs 50 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0x04e70c0f4e137b6534e9ac6f7791cad2b3fb5a546fc34f74d785d53ca8b6fdd052482795 hrs 56 mins ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064851
0xd0da8c00013a15168f0d7de1bd9388297bbc6de2a5cb6260bd015c01aceb8f0552482616 hrs ago0x4355c0697ba2f836f59e53050d89448dcdc4ed83 IN  0x24775f7dd3b659709bb7cb646591582c2c3c15730 Ether0.00064915
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xb447a6d129193e61765de84a5d6436c7bd563164348dd79f55632144a793581052495671 hr 11 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xb447a6d129193e61765de84a5d6436c7bd563164348dd79f55632144a793581052495671 hr 11 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xb447a6d129193e61765de84a5d6436c7bd563164348dd79f55632144a793581052495671 hr 11 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xa02daef9ef07a8ada5c0db721cfbd98cf260937b3ed1fa7b745e6dd80d0b683252495421 hr 18 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xa02daef9ef07a8ada5c0db721cfbd98cf260937b3ed1fa7b745e6dd80d0b683252495421 hr 18 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xa02daef9ef07a8ada5c0db721cfbd98cf260937b3ed1fa7b745e6dd80d0b683252495421 hr 18 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x6264929c9d20d1e7bf8ac634fd3f7ca02022c117eaedd212a943f07aa9eb226c52494751 hr 38 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x6264929c9d20d1e7bf8ac634fd3f7ca02022c117eaedd212a943f07aa9eb226c52494751 hr 38 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x6264929c9d20d1e7bf8ac634fd3f7ca02022c117eaedd212a943f07aa9eb226c52494751 hr 38 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x414c429b3d9e3a0996b491e00a435c85913e5a7ce71f82c3e65f02572557d06552492272 hrs 40 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x414c429b3d9e3a0996b491e00a435c85913e5a7ce71f82c3e65f02572557d06552492272 hrs 40 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x414c429b3d9e3a0996b491e00a435c85913e5a7ce71f82c3e65f02572557d06552492272 hrs 40 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x75527915679e2f9ad2e40657ea58218133f6a8b110f86e65d50d852915c6098c52491932 hrs 48 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x75527915679e2f9ad2e40657ea58218133f6a8b110f86e65d50d852915c6098c52491932 hrs 48 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x75527915679e2f9ad2e40657ea58218133f6a8b110f86e65d50d852915c6098c52491932 hrs 48 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xc8dafd1e2005b3ba0f2ef78aacf3c7c5b326479dd1edcfd41963bb92ace79c4852491722 hrs 52 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xc8dafd1e2005b3ba0f2ef78aacf3c7c5b326479dd1edcfd41963bb92ace79c4852491722 hrs 52 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xc8dafd1e2005b3ba0f2ef78aacf3c7c5b326479dd1edcfd41963bb92ace79c4852491722 hrs 52 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xd8467de3477d3d01840ae0c8923d8f2df0a6a0378b3227fa81f3c4bac5e12c6b52489923 hrs 31 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xd8467de3477d3d01840ae0c8923d8f2df0a6a0378b3227fa81f3c4bac5e12c6b52489923 hrs 31 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xd8467de3477d3d01840ae0c8923d8f2df0a6a0378b3227fa81f3c4bac5e12c6b52489923 hrs 31 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x9f38654a12a47d65b5aafdf6c9e80475ff7475f30032113c91f3d8361c696c4152487754 hrs 13 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x9f38654a12a47d65b5aafdf6c9e80475ff7475f30032113c91f3d8361c696c4152487754 hrs 13 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0x9f38654a12a47d65b5aafdf6c9e80475ff7475f30032113c91f3d8361c696c4152487754 hrs 13 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 Ether
0xcd084a5d3f41f0673db2b23ec4957c6715ff1e01d3f59a26f147af94bbb36ab352487614 hrs 16 mins ago0x24775f7dd3b659709bb7cb646591582c2c3c15730xe1623dfc79fe86fb966f5784e4196406e02469fc0 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 (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0xf91db2f257b4df352cf4479a1d59511d34a3c08c

Contract Name:
Offer

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.24;
/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    if (a == 0) {
      return 0;
    }
    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  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 a / b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}


/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
 */
contract ERC20 {

    function balanceOf(address _owner) external returns (uint256 balance);

    function transfer(address _to, uint256 _value) external returns (bool success);

    function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);

    function approve(address _spender, uint256 _value) external returns (bool success);

    function allowance(address _owner, address _spender) external returns (uint256 remaining);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);

    event Approval(address indexed _owner, address indexed _spender, uint256  _value);
}


contract Offer {

	using SafeMath for uint256;  // Use safe math library

    ERC20 tokenContract;  // Object of token contract
    address owner; // address of contract creator
    string public offer_id;

    struct conversion{
        string id;
        uint256 timestamp;
        address affiliate;
        uint256 amount;
        uint256 toAffiliate;
    }

    event Conversion(
        conversion _conversion
    );
    
    event Replenishment(
        uint256 value
    );

    constructor(address tokenContractAddress, string _offer_id) public {
        tokenContract = ERC20(tokenContractAddress);
        offer_id = _offer_id;
        owner = msg.sender;
    }

    function getBalance(address _wallet) public view returns(uint256 _balance) {
        return tokenContract.balanceOf(_wallet);
    }

    function contractBalance() public view returns(uint256 _balance) {
        return tokenContract.balanceOf(address(this));
    }

    function writeConversion(string _conversion_id, address _affiliate, uint256 _amount, uint256 _toAffiliate)
        public returns (bool success) {
        require(msg.sender == owner);
        require(_toAffiliate <= _amount);
        require(_amount > 0);
        require(_toAffiliate > 0);
        if (getBalance(address(this)) >= _amount) {
            tokenContract.transfer(_affiliate, _toAffiliate);
            tokenContract.transfer(owner, _amount.sub(_toAffiliate));
            emit Conversion(conversion(_conversion_id, now, _affiliate, _amount, _toAffiliate));
        } else {
            return false;
        }
        return true;
    }
    
    function() payable {
        emit Replenishment(msg.value);
    }
}

Contract ABI

[{"constant":true,"inputs":[],"name":"offer_id","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_conversion_id","type":"string"},{"name":"_affiliate","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_toAffiliate","type":"uint256"}],"name":"writeConversion","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractBalance","outputs":[{"name":"_balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_wallet","type":"address"}],"name":"getBalance","outputs":[{"name":"_balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"tokenContractAddress","type":"address"},{"name":"_offer_id","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"components":[{"name":"id","type":"string"},{"name":"timestamp","type":"uint256"},{"name":"affiliate","type":"address"},{"name":"amount","type":"uint256"},{"name":"toAffiliate","type":"uint256"}],"indexed":false,"name":"_conversion","type":"tuple"}],"name":"Conversion","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"uint256"}],"name":"Replenishment","type":"event"}]

Contract Creation Code

608060405234801561001057600080fd5b5060405161073438038061073483398101604052805160208083015160008054600160a060020a031916600160a060020a038516179055909201805191929091610060916002919084019061007a565b505060018054600160a060020a0319163317905550610115565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100bb57805160ff19168380011785556100e8565b828001600101855582156100e8579182015b828111156100e85782518255916020019190600101906100cd565b506100f49291506100f8565b5090565b61011291905b808211156100f457600081556001016100fe565b90565b610610806101246000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634ddfd20f811461009657806377dcba6d146101205780638b7afe2e146101a2578063f8b2cb4f146101c9575b6040805134815290517f4e8153babd95b2236aff84690357abdfe3311f756785dded4d5a6f6cf66ab0fc9181900360200190a1005b3480156100a257600080fd5b506100ab6101ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012c57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261018e94369492936024939284019190819084018382808284375094975050508335600160a060020a031694505050602082013591604001359050610275565b604080519115158252519081900360200190f35b3480156101ae57600080fd5b506101b76104a1565b60408051918252519081900360200190f35b3480156101d557600080fd5b506101b7600160a060020a0360043516610538565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561026d5780601f106102425761010080835404028352916020019161026d565b820191906000526020600020905b81548152906001019060200180831161025057829003601f168201915b505050505081565b600154600090600160a060020a0316331461028f57600080fd5b8282111561029c57600080fd5b600083116102a957600080fd5b600082116102b657600080fd5b826102c030610538565b1061048d5760008054604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152602482018790529151919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561033757600080fd5b505af115801561034b573d6000803e3d6000fd5b505050506040513d602081101561036157600080fd5b5050600054600154600160a060020a039182169163a9059cbb911661038c868663ffffffff6105d216565b6040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b505050506040513d602081101561042157600080fd5b50506040805160a08101825286815242602082810191909152600160a060020a038716828401526060820186905260808201859052825191825291517f7c0f1c3ad1f8a9c3378d1cc1f83a001486322b12a0d01f2b079fc9464b907137929181900390910190a1610495565b506000610499565b5060015b949350505050565b60008054604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a082319160248082019260209290919082900301818787803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d602081101561053157600080fd5b5051905090565b60008054604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152915191909216916370a0823191602480830192602092919082900301818787803b1580156105a057600080fd5b505af11580156105b4573d6000803e3d6000fd5b505050506040513d60208110156105ca57600080fd5b505192915050565b6000828211156105de57fe5b509003905600a165627a7a723058205e3d57a846dfb759f2f030937f3821669b9d0c77d56a62d44c4d3dbe37f1c57d0029000000000000000000000000e1623dfc79fe86fb966f5784e4196406e02469fc0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000646494243796d0000000000000000000000000000000000000000000000000000

Swarm Source

bzzr://5e3d57a846dfb759f2f030937f3821669b9d0c77d56a62d44c4d3dbe37f1c57d
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward