ETH Price: $3,327.93 (-3.86%)

Token

Treats (TREATS)
 

Overview

Max Total Supply

100,000,000 TREATS

Holders

192

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
20,758,030.762121221391750309 TREATS

Value
$0.00
0xb4e1bba882e1058dc9088c69f26f832394cabc77
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TreatsProxy

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2022-01-17
*/

/**
 *Submitted for verification at Etherscan.io on 2021-12-27
*/

pragma solidity ^0.8.0;

contract TreatsProxy {
    event myEvent(bytes);
    
    // Code position in storage is keccak256("PROXIABLE") = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7"
    constructor(bytes memory constructData, address contractLogic) public {
        // save the code address
        assembly { // solium-disable-line
            sstore(0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7, contractLogic)
        }
        (bool success, bytes memory __ ) = contractLogic.delegatecall(constructData); // solium-disable-line
        emit myEvent(__);
        require(success, "Construction failed");
    }

    fallback() external payable {
        assembly { // solium-disable-line
            let contractLogic := sload(0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7)
            calldatacopy(0x0, 0x0, calldatasize())
            let success := delegatecall(gas(), contractLogic, 0x0, calldatasize(), 0, 0)
            
            returndatacopy(0, 0, returndatasize())
            switch success
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes","name":"constructData","type":"bytes"},{"internalType":"address","name":"contractLogic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"","type":"bytes"}],"name":"myEvent","type":"event"},{"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b506040516104fa3803806104fa833981810160405281019061003291906101bf565b807fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7556000808273ffffffffffffffffffffffffffffffffffffffff168460405161007d91906102bd565b600060405180830381855af49150503d80600081146100b8576040519150601f19603f3d011682016040523d82523d6000602084013e6100bd565b606091505b50915091507fff74bf4c47d4a45a317bb18279180e81da1db9eb68ff10086facb43d865dc9fe816040516100f191906102d4565b60405180910390a181610139576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610130906102f6565b60405180910390fd5b5050505061046b565b600061015561015084610347565b610316565b90508281526020810184848401111561016d57600080fd5b6101788482856103e1565b509392505050565b60008151905061018f81610454565b92915050565b600082601f8301126101a657600080fd5b81516101b6848260208601610142565b91505092915050565b600080604083850312156101d257600080fd5b600083015167ffffffffffffffff8111156101ec57600080fd5b6101f885828601610195565b925050602061020985828601610180565b9150509250929050565b600061021e82610377565b6102288185610382565b93506102388185602086016103e1565b61024181610443565b840191505092915050565b600061025782610377565b6102618185610393565b93506102718185602086016103e1565b80840191505092915050565b600061028a60138361039e565b91507f436f6e737472756374696f6e206661696c6564000000000000000000000000006000830152602082019050919050565b60006102c9828461024c565b915081905092915050565b600060208201905081810360008301526102ee8184610213565b905092915050565b6000602082019050818103600083015261030f8161027d565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171561033d5761033c610414565b5b8060405250919050565b600067ffffffffffffffff82111561036257610361610414565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006103ba826103c1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156103ff5780820151818401526020810190506103e4565b8381111561040e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61045d816103af565b811461046857600080fd5b50565b6081806104796000396000f3fe60806040527fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7543660008037600080366000845af43d6000803e80600081146046573d6000f35b3d6000fdfea26469706673582212209c91db9044bdfc40ff8dfc8fa3b1524ee8c1f1be767b10a7f8b6bc1b8fd0e4a064736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000008336f590e52a0e56819f7f5582d781cd3708aab300000000000000000000000000000000000000000000000000000000000001441a426d1c00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000d5f2500000000000000000000000000000000000000000000000000000000000e823d0000000000000000000000000000000000000000000000000000000000000000654726561747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006545245415453000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040527fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7543660008037600080366000845af43d6000803e80600081146046573d6000f35b3d6000fdfea26469706673582212209c91db9044bdfc40ff8dfc8fa3b1524ee8c1f1be767b10a7f8b6bc1b8fd0e4a064736f6c63430008000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000008336f590e52a0e56819f7f5582d781cd3708aab300000000000000000000000000000000000000000000000000000000000001441a426d1c00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000d5f2500000000000000000000000000000000000000000000000000000000000e823d0000000000000000000000000000000000000000000000000000000000000000654726561747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006545245415453000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : constructData (bytes): 0x1a426d1c00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000d5f2500000000000000000000000000000000000000000000000000000000000e823d00000000000000000000000000000000000000000000000000000000000000006547265617473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065452454154530000000000000000000000000000000000000000000000000000
Arg [1] : contractLogic (address): 0x8336F590e52A0E56819F7F5582d781cD3708aAb3

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000008336f590e52a0e56819f7f5582d781cd3708aab3
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000144
Arg [3] : 1a426d1c00000000000000000000000000000000000000000000000000000000
Arg [4] : 000000c000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000010000000000000000000000000000000000000000000052b7d2dcc80cd2
Arg [6] : e400000000000000000000000000000000000000000000000008459516140148
Arg [7] : 4a00000000000000000000000000000000000000000000000000000000000000
Arg [8] : 00d5f25000000000000000000000000000000000000000000000000000000000
Arg [9] : 00e823d000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000654726561747300000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000654524541545300000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

98:1257:0:-:0;;;866:66;860:73;970:14;965:3;960;947:38;1073:1;1070;1054:14;1049:3;1034:13;1027:5;1014:61;1124:16;1121:1;1118;1103:38;1162:7;1188:1;1183:68;;;;1302:16;1299:1;1292:27;1183:68;1219:16;1216:1;1209:27

Swarm Source

ipfs://9c91db9044bdfc40ff8dfc8fa3b1524ee8c1f1be767b10a7f8b6bc1b8fd0e4a0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.