ETH Price: $3,087.32 (+0.04%)

Contract

0xD401dc0351a007E36Ff7509eC23B502e364D041e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040111166542020-10-24 3:37:501486 days ago1603510670IN
 Create: CatnipV2Proxy
0 ETH0.0025160322

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CatnipV2Proxy

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-10-24
*/

pragma solidity ^0.6.6;

contract CatnipV2Proxy {
    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"}]

608060405234801561001057600080fd5b506040516103333803806103338339818101604052604081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825164010000000081118282018810171561008257600080fd5b82525081516020918201929091019080838360005b838110156100af578181015183820152602001610097565b50505050905090810190601f1680156100dc5780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190505050807fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf75560006060826001600160a01b0316846040518082805190602001908083835b602083106101515780518252601f199092019160209182019101610132565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101b1576040519150601f19603f3d011682016040523d82523d6000602084013e6101b6565b606091505b50915091507fff74bf4c47d4a45a317bb18279180e81da1db9eb68ff10086facb43d865dc9fe816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561021a578181015183820152602001610202565b50505050905090810190601f1680156102475780820380516001836020036101000a031916815260200191505b509250505060405180910390a1816102a6576040805162461bcd60e51b815260206004820152601360248201527f436f6e737472756374696f6e206661696c656400000000000000000000000000604482015290519081900360640190fd5b50505050607b806102b86000396000f3fe60806040527fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf75460003681823780813683855af43d82833e8080156041573d83f35b3d83fdfea2646970667358221220cd7f77305ebd961548ba26934b4ebd6b3fd4cbd250bdb6965079f1bde17b8e0964736f6c6343000606003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000004470221da8a9d4cad8808a9a69a25a1b96835ed90000000000000000000000000000000000000000000000000000000000000014bf4a9a37ecfc21825011285222c36ab35de51f14000000000000000000000000

Deployed Bytecode

0x60806040527fc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf75460003681823780813683855af43d82833e8080156041573d83f35b3d83fdfea2646970667358221220cd7f77305ebd961548ba26934b4ebd6b3fd4cbd250bdb6965079f1bde17b8e0964736f6c63430006060033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000004470221da8a9d4cad8808a9a69a25a1b96835ed90000000000000000000000000000000000000000000000000000000000000014bf4a9a37ecfc21825011285222c36ab35de51f14000000000000000000000000

-----Decoded View---------------
Arg [0] : constructData (bytes): 0xbf4a9a37ecfc21825011285222c36ab35de51f14
Arg [1] : contractLogic (address): 0x4470221dA8a9D4cAD8808a9A69a25a1b96835ed9

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000004470221da8a9d4cad8808a9a69a25a1b96835ed9
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : bf4a9a37ecfc21825011285222c36ab35de51f14000000000000000000000000


Deployed Bytecode Sourcemap

27:1257:0:-:0;;;795:66;789:73;894:3;899:14;894:3;;876:38;894:3;;899:14;894:3;963:13;956:5;943:61;1053:16;894:3;;1032:38;1091:7;1112:68;;;;1231:16;894:3;1221:27;1112:68;1148:16;894:3;1138:27

Swarm Source

ipfs://cd7f77305ebd961548ba26934b4ebd6b3fd4cbd250bdb6965079f1bde17b8e09

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.