Contract Overview
Balance: 0.5230936 Ether
Ether Value: $62.59 (@ $119.65/ETH)
Transactions: 4 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3aat txn 0xe5aef4a48660083cd621ec4e9f7a6e228a4495b050d63bfd5e0d82aac0d9f11d
 Latest 4 txns

TxHash Age From To Value [TxFee]
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f29 days 11 hrs ago0x711120197eecdc9dda79d6735f330a445b0ce443  IN   0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.48858 Ether0.00034442
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be629 days 12 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a  IN   0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.08 Ether0.00054442
0xe39cf72aa95a334b156579afc4eb8cac52c86619c37d059b18f40592a265d58a29 days 12 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a  IN   0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80.09 Ether0.0014108
0xe5aef4a48660083cd621ec4e9f7a6e228a4495b050d63bfd5e0d82aac0d9f11d29 days 12 hrs ago0xe97d1f28e0e43196d91d0285bfd81cbe9c682f3a  IN    Contract Creation0 Ether0.004631193
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 7 Internal Transactions

ParentTxHash Block Age From To Value
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537129 days 11 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0097716 Ether
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537129 days 11 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.024429 Ether
0xf6065630a77c811c9a263c32fb2fb888b826a5c2b89153fcad2bfabf03aea63f694537129 days 11 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0048858 Ether
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518429 days 12 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.0016 Ether
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518429 days 12 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa27e53533d2041010028191ac5d6215cf7960da90.004 Ether
0x4936a36dc0c32ed3d7f7a1a0a5517bff28d6cf7a7c899ce408434a9f2c6e2be6694518429 days 12 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0008 Ether
0xe39cf72aa95a334b156579afc4eb8cac52c86619c37d059b18f40592a265d58a694513929 days 12 hrs ago0x843ac7d4289dea2931d2a763f6c1b59c2f1229b80xa0f3682ed3969e0e39825330a31c4ad43e283cdf0.0009 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: TrueSmart
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

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 Switch To Opcodes View
608060405260028054600160a060020a031990811673a0f3682ed3969e0e39825330a31c4ad43e283cdf178255600160035560048054821673a27e53533d2041010028191ac5d6215cf7960da99081179091556005805560068054909216179055600781905560085534801561007457600080fd5b506104a0806100846000396000f30060806040526004361061004b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166366b3f6bf81146101775780638aac1362146101aa575b3360009081526020819052604081205481908190156100e65733600090815260016020526040902054303193506117d49043036103e861008a866101cb565b33600090815260208190526040902054028115156100a457fe5b04028115156100af57fe5b6040519190049250339150819083156108fc029084906000818181858888f193505050501580156100e4573d6000803e3d6000fd5b505b6000341115610102576100f834610236565b61010234336102c3565b600254600160a060020a031633141561015157600254604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561014f573d6000803e3d6000fd5b505b505033600090815260016020908152604080832043905590829052902080543401905550005b34801561018357600080fd5b50610198600160a060020a0360043516610449565b60408051918252519081900360200190f35b3480156101b657600080fd5b50610198600160a060020a036004351661045b565b60006815af1d78b58c40000082106101e557506032610231565b681043561a882930000082106101fd5750602d610231565b680ad78ebc5ac6200000821061021557506028610231565b68056bc75e2d63100000821061022d57506023610231565b50601e5b919050565b600254600354604051600160a060020a039092169160649184029190910480156108fc02916000818181858888f1935050505015801561027a573d6000803e3d6000fd5b50600454600554604051600160a060020a039092169160649184029190910480156108fc02916000818181858888f193505050501580156102bf573d6000803e3d6000fd5b5050565b600036156103fe576103056000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061046d945050505050565b9050600160a060020a03808216908316146103b35781600160a060020a03166108fc6064600854860281151561033757fe5b049081150290604051600060405180830381858888f19350505050158015610363573d6000803e3d6000fd5b5080600160a060020a03166108fc6064600754860281151561038157fe5b049081150290604051600060405180830381858888f193505050501580156103ad573d6000803e3d6000fd5b506103f9565b600654600754604051600160a060020a039092169160649186029190910480156108fc02916000818181858888f193505050501580156103f7573d6000803e3d6000fd5b505b610444565b600654600754604051600160a060020a039092169160649186029190910480156108fc02916000818181858888f19350505050158015610442573d6000803e3d6000fd5b505b505050565b60006020819052908152604090205481565b60016020526000908152604090205481565b60140151905600a165627a7a7230582091815a2127bc22b15c5614b9ffda94b33f74dab2fbb89c8c69b43fcb7b3397070029

   Swarm Source:
bzzr://91815a2127bc22b15c5614b9ffda94b33f74dab2fbb89c8c69b43fcb7b339707

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.