Contract 0x8592f48B71C10199D18E14a77AB6fEf6BbdFd984

Contract Overview

Balance:
0 HT

HT Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcd23701490d744788b47a47ea20100caabda160188f250af04ae0895e00e4576Set Gate104253712021-11-29 7:15:452 days 18 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000654795 2.25
0xf8a3ed86a143265a0df63e934679a9bdb352dac8bbd2c3ba66d924e7a03e521eSet Gate104253052021-11-29 7:12:272 days 18 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000654795 2.25
0x8868096afd1004230d9e44b1893f30563fafedce7480e890a0814e796d5e7e7dSet Gate104252562021-11-29 7:10:002 days 18 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000591795 2.25
0x9840a25e50429db9de9e31d5445866347376585c74852cabc43040705e1ab118Set Gate104252152021-11-29 7:07:572 days 18 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000654795 2.25
0x52bcbe50de20ace3716d1c84e0a0ee8fb07bb8ef06502f4f4e9b1b4d711c98b8Set Gate103410882021-11-26 9:01:365 days 16 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000654795 2.25
0x9c2ae40496ff052c7047afbb6388a7a6a8261b9977bee4450cac8146a22bf106Set Gate103319012021-11-26 1:22:156 days 8 mins ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0000591795 2.25
0x29653d8702f2c028a892bc5010b1e4d90ef051bc7d9e54662213001e61be4980Set Gate103107952021-11-25 7:46:576 days 17 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN 0x8592f48b71c10199d18e14a77ab6fef6bbdfd9840 HT0.0001039545 2.25
0xd240438f5f0da7fecd89f2dc1a051f90b2110d79238400ad32e7e605ee469ee70x60806040103102722021-11-25 7:20:486 days 18 hrs ago0xd29205598630823f3f8d71664da7dad0c1305f45 IN  Contract Creation0 HT0.00120831 2.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BalanceTools

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at hecoinfo.com on 2021-11-25
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.8.0 <0.9.0;
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);
}

contract BalanceTools {

    mapping(address => bool) _dictinctTools;

    mapping(uint256 => address) _user;

    uint256 autoIncrement;

    address private _gate;
    
    address private _owner;
    
    modifier onlyOwner() {
        require(_owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    modifier onlyGate() {
        require(_gate == msg.sender, "Ownable: caller is not the gate");
        _;
    }
    
    constructor () {  
        _owner = msg.sender;
    }
    
    function setGate(address __gate) external onlyOwner
    {
        _gate = __gate;
    }

    function write(address _sender) external onlyGate
    {
        if (_dictinctTools[_sender] == false)
        {
            _dictinctTools[_sender] = true;
            autoIncrement++;
            _user[autoIncrement] = _sender;
        }
    }

    function balanceOfTotal(address _tokenContract) external view returns (uint256)
    {
        uint256 _balanceOfTotal = 0;
        for (uint256 i=1; i<=autoIncrement; i++)
        {
            _balanceOfTotal += IERC20(_tokenContract).balanceOf(_user[i]);
        }
        return _balanceOfTotal;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"balanceOfTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"__gate","type":"address"}],"name":"setGate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"}],"name":"write","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610762806100616000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806388315a401461004657806393730f7014610062578063d29dad831461007e575b600080fd5b610060600480360381019061005b9190610491565b6100ae565b005b61007c60048036038101906100779190610491565b610182565b005b61009860048036038101906100939190610491565b610331565b6040516100a591906104d7565b60405180910390f35b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461013e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359061054f565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610212576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610209906105bb565b60405180910390fd5b600015156000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561032e5760016000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600260008154809291906102d49061060a565b91905055508060016000600254815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b600080600090506000600190505b6002548111610424578373ffffffffffffffffffffffffffffffffffffffff166370a082316001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016103b49190610662565b60206040518083038186803b1580156103cc57600080fd5b505afa1580156103e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040491906106a9565b8261040f91906106d6565b9150808061041c9061060a565b91505061033f565b5080915050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061045e82610433565b9050919050565b61046e81610453565b811461047957600080fd5b50565b60008135905061048b81610465565b92915050565b6000602082840312156104a7576104a661042e565b5b60006104b58482850161047c565b91505092915050565b6000819050919050565b6104d1816104be565b82525050565b60006020820190506104ec60008301846104c8565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006105396020836104f2565b915061054482610503565b602082019050919050565b600060208201905081810360008301526105688161052c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206761746500600082015250565b60006105a5601f836104f2565b91506105b08261056f565b602082019050919050565b600060208201905081810360008301526105d481610598565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610615826104be565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610648576106476105db565b5b600182019050919050565b61065c81610453565b82525050565b60006020820190506106776000830184610653565b92915050565b610686816104be565b811461069157600080fd5b50565b6000815190506106a38161067d565b92915050565b6000602082840312156106bf576106be61042e565b5b60006106cd84828501610694565b91505092915050565b60006106e1826104be565b91506106ec836104be565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610721576107206105db565b5b82820190509291505056fea2646970667358221220e0b2f0ffa8b743b37d7bb53d4b61373eaebd865fcc12a9d9cd0357c261da17c664736f6c63430008090033

Deployed ByteCode Sourcemap

325:1211:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;863:90;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;961:252;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1221:312;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;863:90;595:10;585:20;;:6;;;;;;;;;;;:20;;;577:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;939:6:::1;931:5;;:14;;;;;;;;;;;;;;;;;;863:90:::0;:::o;961:252::-;718:10;709:19;;:5;;;;;;;;;;;:19;;;701:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;1058:5:::1;1031:32;;:14;:23:::0;1046:7:::1;1031:23;;;;;;;;;;;;;;;;;;;;;;;;;:32;;;1027:179;;;1115:4;1089:14;:23:::0;1104:7:::1;1089:23;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1134:13;;:15;;;;;;;;;:::i;:::-;;;;;;1187:7;1164:5;:20;1170:13;;1164:20;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1027:179;961:252:::0;:::o;1221:312::-;1292:7;1317:23;1343:1;1317:27;;1360:9;1370:1;1360:11;;1355:138;1376:13;;1373:1;:16;1355:138;;1446:14;1439:32;;;1472:5;:8;1478:1;1472:8;;;;;;;;;;;;;;;;;;;;;1439:42;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1420:61;;;;;:::i;:::-;;;1391:3;;;;;:::i;:::-;;;;1355:138;;;;1510:15;1503:22;;;1221:312;;;:::o;88:117:1:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:169::-;1695:11;1729:6;1724:3;1717:19;1769:4;1764:3;1760:14;1745:29;;1611:169;;;;:::o;1786:182::-;1926:34;1922:1;1914:6;1910:14;1903:58;1786:182;:::o;1974:366::-;2116:3;2137:67;2201:2;2196:3;2137:67;:::i;:::-;2130:74;;2213:93;2302:3;2213:93;:::i;:::-;2331:2;2326:3;2322:12;2315:19;;1974:366;;;:::o;2346:419::-;2512:4;2550:2;2539:9;2535:18;2527:26;;2599:9;2593:4;2589:20;2585:1;2574:9;2570:17;2563:47;2627:131;2753:4;2627:131;:::i;:::-;2619:139;;2346:419;;;:::o;2771:181::-;2911:33;2907:1;2899:6;2895:14;2888:57;2771:181;:::o;2958:366::-;3100:3;3121:67;3185:2;3180:3;3121:67;:::i;:::-;3114:74;;3197:93;3286:3;3197:93;:::i;:::-;3315:2;3310:3;3306:12;3299:19;;2958:366;;;:::o;3330:419::-;3496:4;3534:2;3523:9;3519:18;3511:26;;3583:9;3577:4;3573:20;3569:1;3558:9;3554:17;3547:47;3611:131;3737:4;3611:131;:::i;:::-;3603:139;;3330:419;;;:::o;3755:180::-;3803:77;3800:1;3793:88;3900:4;3897:1;3890:15;3924:4;3921:1;3914:15;3941:233;3980:3;4003:24;4021:5;4003:24;:::i;:::-;3994:33;;4049:66;4042:5;4039:77;4036:103;;;4119:18;;:::i;:::-;4036:103;4166:1;4159:5;4155:13;4148:20;;3941:233;;;:::o;4180:118::-;4267:24;4285:5;4267:24;:::i;:::-;4262:3;4255:37;4180:118;;:::o;4304:222::-;4397:4;4435:2;4424:9;4420:18;4412:26;;4448:71;4516:1;4505:9;4501:17;4492:6;4448:71;:::i;:::-;4304:222;;;;:::o;4532:122::-;4605:24;4623:5;4605:24;:::i;:::-;4598:5;4595:35;4585:63;;4644:1;4641;4634:12;4585:63;4532:122;:::o;4660:143::-;4717:5;4748:6;4742:13;4733:22;;4764:33;4791:5;4764:33;:::i;:::-;4660:143;;;;:::o;4809:351::-;4879:6;4928:2;4916:9;4907:7;4903:23;4899:32;4896:119;;;4934:79;;:::i;:::-;4896:119;5054:1;5079:64;5135:7;5126:6;5115:9;5111:22;5079:64;:::i;:::-;5069:74;;5025:128;4809:351;;;;:::o;5166:305::-;5206:3;5225:20;5243:1;5225:20;:::i;:::-;5220:25;;5259:20;5277:1;5259:20;:::i;:::-;5254:25;;5413:1;5345:66;5341:74;5338:1;5335:81;5332:107;;;5419:18;;:::i;:::-;5332:107;5463:1;5460;5456:9;5449:16;;5166:305;;;;:::o

Swarm Source

ipfs://e0b2f0ffa8b743b37d7bb53d4b61373eaebd865fcc12a9d9cd0357c261da17c6
Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading