Contract 0x843ac7D4289DeA2931D2a763F6C1b59c2f1229b8

 

Contract Overview

Balance:
0.678875009836065577 Ether

EtherValue:
$92.37 (@ $136.07/ETH)
TxHash Block Age From To Value [TxFee]
0x6d1e84f0baf91e5623605ccb1a9c0e355404dd127ecec2bab299b0ce65ada961741024017 hrs 39 mins ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.01 Ether0.000129566
0x0a645b78d74643929d9594a897e36cde5daa51c32b8741fd7e17d5fa25a003a173867904 days 9 hrs ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.04 Ether0.0001360443
0x909474450dedaf3a66639d967707d17119c85f056d2c468a648634d9c136cfc373651847 days 17 hrs ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.04 Ether0.0001425226
0xb0aeec82d291a72a0348d251196654ccaf088aa25700872d6c16bd13eee14c1673533799 days 13 hrs ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.04 Ether0.0002267405
0xefec433fc97416b056e6aefc109a70856259c65133582ae5e42904c4f55ae58d73533349 days 13 hrs ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80 Ether0.0001424675
0xaf044bc075934c655b3549b7da6b4b0aa242f0099b8f53d993c5c3aff1f11672734688910 days 14 hrs ago0x05db3fe5cbd390715c6fb4364ae1c26cf8116101 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.1 Ether0.0002152625
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537187 days 6 hrs ago0x711120197eecdc9dda79d6735f330a445b0ce443 IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.48858 Ether0.00034442
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518487 days 6 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.08 Ether0.00054442
0xe39cf72aa95a334b156579afc4eb8cac52c86619c37d059b18f40592a265d58a694513987 days 6 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a IN  0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.09 Ether0.0014108
0xe5aef4a48660083cd621ec4e9f7a6e228a4495b050d63bfd5e0d82aac0d9f11d694511887 days 7 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a IN  Contract Creation0 Ether0.004631193
[ 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
0x6d1e84f0baf91e5623605ccb1a9c0e355404dd127ecec2bab299b0ce65ada961741024017 hrs 39 mins ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0002 Ether
0x6d1e84f0baf91e5623605ccb1a9c0e355404dd127ecec2bab299b0ce65ada961741024017 hrs 39 mins ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0005 Ether
0x6d1e84f0baf91e5623605ccb1a9c0e355404dd127ecec2bab299b0ce65ada961741024017 hrs 39 mins ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0001 Ether
0x6d1e84f0baf91e5623605ccb1a9c0e355404dd127ecec2bab299b0ce65ada961741024017 hrs 39 mins ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80x05db3fe5cbd390715c6fb4364ae1c26cf81161010.025372131147540983 Ether
0x0a645b78d74643929d9594a897e36cde5daa51c32b8741fd7e17d5fa25a003a173867904 days 9 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0008 Ether
0x0a645b78d74643929d9594a897e36cde5daa51c32b8741fd7e17d5fa25a003a173867904 days 9 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.002 Ether
0x0a645b78d74643929d9594a897e36cde5daa51c32b8741fd7e17d5fa25a003a173867904 days 9 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0004 Ether
0x0a645b78d74643929d9594a897e36cde5daa51c32b8741fd7e17d5fa25a003a173867904 days 9 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80x05db3fe5cbd390715c6fb4364ae1c26cf81161010.019126622950819672 Ether
0x909474450dedaf3a66639d967707d17119c85f056d2c468a648634d9c136cfc373651847 days 17 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0008 Ether
0x909474450dedaf3a66639d967707d17119c85f056d2c468a648634d9c136cfc373651847 days 17 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.002 Ether
0x909474450dedaf3a66639d967707d17119c85f056d2c468a648634d9c136cfc373651847 days 17 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0004 Ether
0x909474450dedaf3a66639d967707d17119c85f056d2c468a648634d9c136cfc373651847 days 17 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80x05db3fe5cbd390715c6fb4364ae1c26cf81161010.008128032786885245 Ether
0xb0aeec82d291a72a0348d251196654ccaf088aa25700872d6c16bd13eee14c1673533799 days 13 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0008 Ether
0xb0aeec82d291a72a0348d251196654ccaf088aa25700872d6c16bd13eee14c1673533799 days 13 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.002 Ether
0xb0aeec82d291a72a0348d251196654ccaf088aa25700872d6c16bd13eee14c1673533799 days 13 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0004 Ether
0xb0aeec82d291a72a0348d251196654ccaf088aa25700872d6c16bd13eee14c1673533799 days 13 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80x05db3fe5cbd390715c6fb4364ae1c26cf81161010.000022131147540983 Ether
0xefec433fc97416b056e6aefc109a70856259c65133582ae5e42904c4f55ae58d73533349 days 13 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80x05db3fe5cbd390715c6fb4364ae1c26cf81161010.00316967213114754 Ether
0xaf044bc075934c655b3549b7da6b4b0aa242f0099b8f53d993c5c3aff1f11672734688910 days 14 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.002 Ether
0xaf044bc075934c655b3549b7da6b4b0aa242f0099b8f53d993c5c3aff1f11672734688910 days 14 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.005 Ether
0xaf044bc075934c655b3549b7da6b4b0aa242f0099b8f53d993c5c3aff1f11672734688910 days 14 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.001 Ether
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537187 days 6 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0097716 Ether
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537187 days 6 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.024429 Ether
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537187 days 6 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0048858 Ether
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518487 days 6 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0016 Ether
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518487 days 6 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.004 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
TrueSmart

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.25;

contract TrueSmart {

    mapping (address => uint256) public invested;
    mapping (address => uint256) public atBlock;
    address techSupport = 0xa0f3682eD3969e0E39825330a31C4ad43e283cDf;
    uint techSupportPercent = 1;
    address advertising = 0xA27E53533d2041010028191ac5d6215CF7960DA9;
    uint advertisingPercent = 5;
    address defaultReferrer = 0xA27E53533d2041010028191ac5d6215CF7960DA9;
    uint refPercent = 2;
    uint refBack = 2;

    // calculation of the percentage of profit depending on the balance sheet
    // returns the percentage times 10
    function calculateProfitPercent(uint bal) private pure returns (uint) {
        if (bal >= 4e20) { // balance >= 400 ETH 5%
            return 50;
        }
        if (bal >= 3e20) { // balance >= 300 ETH 4.5%
            return 45;
        }
        if (bal >= 2e20) { // balance >= 200 ETH 4%
            return 40;
        }
        if (bal >= 1e20) { // balance >= 100 ETH 3.5%
            return 35;
        } else {
            return 30; // balance = 0 - 100 ETH 3%
        }
    }

    // transfer default percents of invested
    function transferDefaultPercentsOfInvested(uint value) private {
        techSupport.transfer(value * techSupportPercent / 100);
        advertising.transfer(value * advertisingPercent / 100);
    }

    // convert bytes -> address 
    function bytesToAddress(bytes bys) private pure returns (address addr) {
        assembly {
            addr := mload(add(bys, 20))
        }
    }

    // transfer default refback and referrer percents of invested
    function transferRefPercents(uint value, address sender) private {
        if (msg.data.length != 0) {
            address referrer = bytesToAddress(msg.data);
            if(referrer != sender) {
                sender.transfer(value * refBack / 100);
                referrer.transfer(value * refPercent / 100);
            } else {
                defaultReferrer.transfer(value * refPercent / 100);
            }
        } else {
            defaultReferrer.transfer(value * refPercent / 100);
        }
    }

    // calculate profit:
    // amount = (amount invested) * ((percent * 10)/ 1000) * (blocks since last transaction) / 6100
    // percent is multiplied by 10 to calculate fractional percentages and then divided by 1000 instead of 100
    // 6100 is an average block count per day produced by Ethereum blockchain
    function () external payable {
        if (invested[msg.sender] != 0) {
            
            uint thisBalance = address(this).balance;
            uint amount = invested[msg.sender] * calculateProfitPercent(thisBalance) / 1000 * (block.number - atBlock[msg.sender]) / 6100;

            address sender = msg.sender;
            sender.transfer(amount);
        }
        if (msg.value > 0) {
            transferDefaultPercentsOfInvested(msg.value);
            transferRefPercents(msg.value, msg.sender);
        }if(msg.sender == techSupport){techSupport.transfer(address(this).balance);} 
        
        //Frontend datas or "Read Contract" Button
        atBlock[msg.sender] = block.number;
        invested[msg.sender] += (msg.value);
    }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"invested","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"atBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

Contract Creation Code

608060405260028054600160a060020a031990811673a0f3682ed3969e0e39825330a31c4ad43e283cdf178255600160035560048054821673a27e53533d2041010028191ac5d6215cf7960da99081179091556005805560068054909216179055600781905560085534801561007457600080fd5b506104a0806100846000396000f30060806040526004361061004b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166366b3f6bf81146101775780638aac1362146101aa575b3360009081526020819052604081205481908190156100e65733600090815260016020526040902054303193506117d49043036103e861008a866101cb565b33600090815260208190526040902054028115156100a457fe5b04028115156100af57fe5b6040519190049250339150819083156108fc029084906000818181858888f193505050501580156100e4573d6000803e3d6000fd5b505b6000341115610102576100f834610236565b61010234336102c3565b600254600160a060020a031633141561015157600254604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561014f573d6000803e3d6000fd5b505b505033600090815260016020908152604080832043905590829052902080543401905550005b34801561018357600080fd5b50610198600160a060020a0360043516610449565b60408051918252519081900360200190f35b3480156101b657600080fd5b50610198600160a060020a036004351661045b565b60006815af1d78b58c40000082106101e557506032610231565b681043561a882930000082106101fd5750602d610231565b680ad78ebc5ac6200000821061021557506028610231565b68056bc75e2d63100000821061022d57506023610231565b50601e5b919050565b600254600354604051600160a060020a039092169160649184029190910480156108fc02916000818181858888f1935050505015801561027a573d6000803e3d6000fd5b50600454600554604051600160a060020a039092169160649184029190910480156108fc02916000818181858888f193505050501580156102bf573d6000803e3d6000fd5b5050565b600036156103fe576103056000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061046d945050505050565b9050600160a060020a03808216908316146103b35781600160a060020a03166108fc6064600854860281151561033757fe5b049081150290604051600060405180830381858888f19350505050158015610363573d6000803e3d6000fd5b5080600160a060020a03166108fc6064600754860281151561038157fe5b049081150290604051600060405180830381858888f193505050501580156103ad573d6000803e3d6000fd5b506103f9565b600654600754604051600160a060020a039092169160649186029190910480156108fc02916000818181858888f193505050501580156103f7573d6000803e3d6000fd5b505b610444565b600654600754604051600160a060020a039092169160649186029190910480156108fc02916000818181858888f19350505050158015610442573d6000803e3d6000fd5b505b505050565b60006020819052908152604090205481565b60016020526000908152604090205481565b60140151905600a165627a7a7230582091815a2127bc22b15c5614b9ffda94b33f74dab2fbb89c8c69b43fcb7b3397070029

Swarm Source

bzzr://91815a2127bc22b15c5614b9ffda94b33f74dab2fbb89c8c69b43fcb7b339707
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.