Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 102 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 10665722 | 1592 days ago | IN | 0 ETH | 0.00374448 | ||||
Withdraw | 9780785 | 1729 days ago | IN | 0 ETH | 0.00011065 | ||||
Withdraw | 9780785 | 1729 days ago | IN | 0 ETH | 0.0001018 | ||||
Withdraw | 9780668 | 1729 days ago | IN | 0 ETH | 0.00011065 | ||||
Update | 7561698 | 2082 days ago | IN | 0.002 ETH | 0.00011042 | ||||
Update | 7518719 | 2088 days ago | IN | 0.002 ETH | 0.00008055 | ||||
Update | 7518715 | 2088 days ago | IN | 0.002 ETH | 0.00008055 | ||||
Update | 7518712 | 2088 days ago | IN | 0.002 ETH | 0.00008055 | ||||
Update | 7518709 | 2088 days ago | IN | 0.002 ETH | 0.00011055 | ||||
Update | 7465794 | 2097 days ago | IN | 0.002 ETH | 0.0002211 | ||||
Update | 7465788 | 2097 days ago | IN | 0.002 ETH | 0.00016084 | ||||
Update | 7204030 | 2144 days ago | IN | 0.002 ETH | 0.00036994 | ||||
Update | 7173883 | 2150 days ago | IN | 0.002 ETH | 0.00011042 | ||||
Update | 7131486 | 2159 days ago | IN | 0.002 ETH | 0.00005521 | ||||
Update | 7131486 | 2159 days ago | IN | 0.002 ETH | 0.00004021 | ||||
Update | 6987293 | 2185 days ago | IN | 0.002 ETH | 0.00036189 | ||||
Update | 6958029 | 2190 days ago | IN | 0.002 ETH | 0.00012082 | ||||
Update | 6953730 | 2190 days ago | IN | 0.002 ETH | 0.00016582 | ||||
Update | 6874499 | 2204 days ago | IN | 0.002 ETH | 0.00014592 | ||||
Update | 6847035 | 2208 days ago | IN | 0.002 ETH | 0.0001611 | ||||
Update | 6800258 | 2216 days ago | IN | 0.002 ETH | 0.00121464 | ||||
Update | 6795784 | 2217 days ago | IN | 0.002 ETH | 0.00036247 | ||||
Update | 6772602 | 2221 days ago | IN | 0.01 ETH | 0.00008055 | ||||
Update | 6771294 | 2221 days ago | IN | 0.01 ETH | 0.00012082 | ||||
Update | 6771285 | 2221 days ago | IN | 0.01 ETH | 0.00020137 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
10665722 | 1592 days ago | 0.2755 ETH | ||||
7561698 | 2082 days ago | 0.001 ETH | ||||
7518719 | 2088 days ago | 0.001 ETH | ||||
7518715 | 2088 days ago | 0.001 ETH | ||||
7518712 | 2088 days ago | 0.001 ETH | ||||
7518709 | 2088 days ago | 0.001 ETH | ||||
7465794 | 2097 days ago | 0.001 ETH | ||||
7465788 | 2097 days ago | 0.001 ETH | ||||
7204030 | 2144 days ago | 0.001 ETH | ||||
7173883 | 2150 days ago | 0.001 ETH | ||||
7131486 | 2159 days ago | 0.001 ETH | ||||
7131486 | 2159 days ago | 0.001 ETH | ||||
6987293 | 2185 days ago | 0.001 ETH | ||||
6958029 | 2190 days ago | 0.001 ETH | ||||
6953730 | 2190 days ago | 0.001 ETH | ||||
6874499 | 2204 days ago | 0.001 ETH | ||||
6847035 | 2208 days ago | 0.001 ETH | ||||
6800258 | 2216 days ago | 0.001 ETH | ||||
6795784 | 2217 days ago | 0.001 ETH | ||||
6772602 | 2221 days ago | 0.005 ETH | ||||
6771294 | 2221 days ago | 0.005 ETH | ||||
6771285 | 2221 days ago | 0.005 ETH | ||||
6771276 | 2221 days ago | 0.005 ETH | ||||
6771270 | 2221 days ago | 0.0045 ETH | ||||
6770290 | 2221 days ago | 0.001 ETH |
Loading...
Loading
Contract Name:
DappVolumeHearts
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-27 */ pragma solidity ^0.4.24; // THE LAST SMART CONTRACT HAD SOME SECURITY HOLES // THIS IS THE SECOND SMART CONTRACT FOR THE LIKE FEATURE // OLD CONTRACT CAN BE SEEN AT https://etherscan.io/address/0x6acd16200a2a046bf207d1b263202ec1a75a7d51 // DATA IS IMPORTED FROM THE LAST CONTRACT // BIG SHOUTOUT TO CASTILLO NETWORK FOR FINDING THE SECURITY HOLE AND PERFORMING AN AUDIT ON THE LAST CONTRACT // https://github.com/EthereumCommonwealth/Auditing // Old contract data contract dappVolumeHearts { // map dapp ids with heart totals mapping(uint256 => uint256) public totals; // get total hearts by id function getTotalHeartsByDappId(uint256 dapp_id) public view returns(uint256) { return totals[dapp_id]; } } // Allows users to "heart" (like) a DAPP by dapp id // 1 Like = XXXXX eth will be set on front end of site // 50% of each transaction gets sent to the last liker contract DappVolumeHearts { dappVolumeHearts firstContract; using SafeMath for uint256; // set contract owner address public contractOwner; // set last address transacted address public lastAddress; // set first contracts address address constant public firstContractAddress = 0x6ACD16200a2a046bf207D1B263202ec1A75a7D51; // map dapp ids with heart totals ( does not count first contract ) mapping(uint256 => uint256) public totals; // only contract owner modifier onlyContractOwner { require(msg.sender == contractOwner); _; } // set constructor constructor() public { contractOwner = msg.sender; lastAddress = msg.sender; firstContract = dappVolumeHearts(firstContractAddress); } // withdraw funds to contract creator function withdraw() public onlyContractOwner { contractOwner.transfer(address(this).balance); } // update heart count function update(uint256 dapp_id) public payable { require(msg.value >= 2000000000000000); require(dapp_id > 0); totals[dapp_id] = totals[dapp_id].add(msg.value); // send 50% of the money to the last person lastAddress.send(msg.value.div(2)); lastAddress = msg.sender; } // get total hearts by id with legacy contract totaled in function getTotalHeartsByDappId(uint256 dapp_id) public view returns(uint256) { return totals[dapp_id].add(firstContract.getTotalHeartsByDappId(dapp_id)); } // get contract balance function getBalance() public view returns(uint256){ return address(this).balance; } } /** * @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; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"getBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"totals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"dapp_id","type":"uint256"}],"name":"getTotalHeartsByDappId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"firstContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dapp_id","type":"uint256"}],"name":"update","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"lastAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contractOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]
Contract Creation Code
608060405234801561001057600080fd5b5060018054600160a060020a03199081163390811790925560028054821690921790915560008054909116736acd16200a2a046bf207d1b263202ec1a75a7d511790556103b5806100626000396000f30060806040526004361061008d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100925780631b338710146100b95780633ccfd60b146100d157806372d475db146100e857806378afda071461010057806382ab890a14610131578063cd68100c1461013c578063ce606ee014610151575b600080fd5b34801561009e57600080fd5b506100a7610166565b60408051918252519081900360200190f35b3480156100c557600080fd5b506100a760043561016b565b3480156100dd57600080fd5b506100e661017d565b005b3480156100f457600080fd5b506100a76004356101d1565b34801561010c57600080fd5b50610115610286565b60408051600160a060020a039092168252519081900360200190f35b6100e660043561029e565b34801561014857600080fd5b50610115610349565b34801561015d57600080fd5b50610115610358565b303190565b60036020526000908152604090205481565b600154600160a060020a0316331461019457600080fd5b600154604051600160a060020a0390911690303180156108fc02916000818181858888f193505050501580156101ce573d6000803e3d6000fd5b50565b60008054604080517f72d475db00000000000000000000000000000000000000000000000000000000815260048101859052905161028092600160a060020a0316916372d475db91602480830192602092919082900301818887803b15801561023957600080fd5b505af115801561024d573d6000803e3d6000fd5b505050506040513d602081101561026357600080fd5b50516000848152600360205260409020549063ffffffff61036716565b92915050565b736acd16200a2a046bf207d1b263202ec1a75a7d5181565b66071afd498d00003410156102b257600080fd5b600081116102bf57600080fd5b6000818152600360205260409020546102de903463ffffffff61036716565b60008281526003602052604090205560028054600160a060020a0316906108fc9061031090349063ffffffff61037416565b6040518115909202916000818181858888f150506002805473ffffffffffffffffffffffffffffffffffffffff19163317905550505050565b600254600160a060020a031681565b600154600160a060020a031681565b8181018281101561028057fe5b6000818381151561038157fe5b0493925050505600a165627a7a7230582055382dfd6b9ea5d9b163271e1a05d72cde6d1971ef81acb2fdbcf7fef939d76e0029
Deployed Bytecode
0x60806040526004361061008d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100925780631b338710146100b95780633ccfd60b146100d157806372d475db146100e857806378afda071461010057806382ab890a14610131578063cd68100c1461013c578063ce606ee014610151575b600080fd5b34801561009e57600080fd5b506100a7610166565b60408051918252519081900360200190f35b3480156100c557600080fd5b506100a760043561016b565b3480156100dd57600080fd5b506100e661017d565b005b3480156100f457600080fd5b506100a76004356101d1565b34801561010c57600080fd5b50610115610286565b60408051600160a060020a039092168252519081900360200190f35b6100e660043561029e565b34801561014857600080fd5b50610115610349565b34801561015d57600080fd5b50610115610358565b303190565b60036020526000908152604090205481565b600154600160a060020a0316331461019457600080fd5b600154604051600160a060020a0390911690303180156108fc02916000818181858888f193505050501580156101ce573d6000803e3d6000fd5b50565b60008054604080517f72d475db00000000000000000000000000000000000000000000000000000000815260048101859052905161028092600160a060020a0316916372d475db91602480830192602092919082900301818887803b15801561023957600080fd5b505af115801561024d573d6000803e3d6000fd5b505050506040513d602081101561026357600080fd5b50516000848152600360205260409020549063ffffffff61036716565b92915050565b736acd16200a2a046bf207d1b263202ec1a75a7d5181565b66071afd498d00003410156102b257600080fd5b600081116102bf57600080fd5b6000818152600360205260409020546102de903463ffffffff61036716565b60008281526003602052604090205560028054600160a060020a0316906108fc9061031090349063ffffffff61037416565b6040518115909202916000818181858888f150506002805473ffffffffffffffffffffffffffffffffffffffff19163317905550505050565b600254600160a060020a031681565b600154600160a060020a031681565b8181018281101561028057fe5b6000818381151561038157fe5b0493925050505600a165627a7a7230582055382dfd6b9ea5d9b163271e1a05d72cde6d1971ef81acb2fdbcf7fef939d76e0029
Swarm Source
bzzr://55382dfd6b9ea5d9b163271e1a05d72cde6d1971ef81acb2fdbcf7fef939d76e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.