ETH Price: $2,156.80 (+4.95%)

Transaction Decoder

Block:
6487962 at Oct-10-2018 08:44:58 AM +UTC
Transaction Fee:
0.000238572 ETH $0.51
Gas Used:
39,762 Gas / 6 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x7B307C1F...D26da5E8f
(EasyInvest)
3,562.557742018157331412 Eth3,562.237746763920043277 Eth0.319995254237288135
(F2Pool Old)
2,362.104789073623159058 Eth2,362.105027645623159058 Eth0.000238572
0x9ad9C7c2...ACE70Ec86
0.46486529307457627 Eth
Nonce: 11
0.784621975311864405 Eth
Nonce: 12
0.319756682237288135

Execution Trace

EasyInvest.CALL( )
  • ETH 0.319995254237288135 0x9ad9c7c221e24c0e3d54652f0116aa1ace70ec86.CALL( )
    pragma solidity ^0.4.24;
    
    /**
     *
     * Easy Investment Contract
     *  - GAIN 4% PER 24 HOURS (every 5900 blocks)
     *  - NO COMMISSION on your investment (every ether stays on contract's balance)
     *  - NO FEES are collected by the owner, in fact, there is no owner at all (just look at the code)
     *
     * How to use:
     *  1. Send any amount of ether to make an investment
     *  2a. Claim your profit by sending 0 ether transaction (every day, every week, i don't care unless you're spending too much on GAS)
     *  OR
     *  2b. Send more ether to reinvest AND get your profit at the same time
     *
     * RECOMMENDED GAS LIMIT: 70000
     * RECOMMENDED GAS PRICE: https://ethgasstation.info/
     *
     * Contract reviewed and approved by pros!
     *
     */
    contract EasyInvest {
        // records amounts invested
        mapping (address => uint256) invested;
        // records blocks at which investments were made
        mapping (address => uint256) atBlock;
    
        // this function called every time anyone sends a transaction to this contract
        function () external payable {
            // if sender (aka YOU) is invested more than 0 ether
            if (invested[msg.sender] != 0) {
                // calculate profit amount as such:
                // amount = (amount invested) * 4% * (blocks since last transaction) / 5900
                // 5900 is an average block count per day produced by Ethereum blockchain
                uint256 amount = invested[msg.sender] * 4 / 100 * (block.number - atBlock[msg.sender]) / 5900;
    
                // send calculated amount of ether directly to sender (aka YOU)
                address sender = msg.sender;
                sender.send(amount);
            }
    
            // record block number and invested amount (msg.value) of this transaction
            atBlock[msg.sender] = block.number;
            invested[msg.sender] += msg.value;
        }
    }