ETH Price: $2,172.41 (+0.53%)

Contract

0xbcA8D1a7CC590f5DE2E5E93ea0E7a9C9A0b7e9bb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Make Payment157734292022-10-18 7:13:591249 days ago1666077239IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0018776114.25933899
Make Payment155188822022-09-12 4:27:241285 days ago1662956844IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0017332712.29816671
Make Payment153567522022-08-17 5:04:331311 days ago1660712673IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.002815419.97760993
Make Payment151643422022-07-18 4:00:321341 days ago1658116832IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0023469616.62523138
Make Payment149970032022-06-20 14:15:391368 days ago1655734539IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0088065562.38745574
Make Payment148092432022-05-20 5:15:271400 days ago1653023727IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0024574717.38817074
Drawdown Funds146516652022-04-25 4:21:511425 days ago1650860511IN
0xbcA8D1a7...9A0b7e9bb
0 ETH0.0030859237.61536036

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-146347072022-04-22 12:38:541427 days ago1650631134  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x62384502...438E1346F
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Proxy

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity Standard Json-Input format)

// hevm: flattened sources of contracts/Proxy.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.7 <0.9.0;

////// contracts/SlotManipulatable.sol
/* pragma solidity ^0.8.7; */

abstract contract SlotManipulatable {

    function _getReferenceTypeSlot(bytes32 slot_, bytes32 key_) internal pure returns (bytes32 value_) {
        return keccak256(abi.encodePacked(key_, slot_));
    }

    function _getSlotValue(bytes32 slot_) internal view returns (bytes32 value_) {
        assembly {
            value_ := sload(slot_)
        }
    }

    function _setSlotValue(bytes32 slot_, bytes32 value_) internal {
        assembly {
            sstore(slot_, value_)
        }
    }

}

////// contracts/interfaces/IDefaultImplementationBeacon.sol
/* pragma solidity ^0.8.7; */

/// @title An beacon that provides a default implementation for proxies, must implement IDefaultImplementationBeacon.
interface IDefaultImplementationBeacon {

    /// @dev The address of an implementation for proxies.
    function defaultImplementation() external view returns (address defaultImplementation_);

}

////// contracts/Proxy.sol
/* pragma solidity ^0.8.7; */

/* import { IDefaultImplementationBeacon } from "./interfaces/IDefaultImplementationBeacon.sol"; */

/* import { SlotManipulatable } from "./SlotManipulatable.sol"; */

/// @title A completely transparent, and thus interface-less, proxy contract.
contract Proxy is SlotManipulatable {

    /// @dev Storage slot with the address of the current factory. `keccak256('eip1967.proxy.factory') - 1`.
    bytes32 private constant FACTORY_SLOT = bytes32(0x7a45a402e4cb6e08ebc196f20f66d5d30e67285a2a8aa80503fa409e727a4af1);

    /// @dev Storage slot with the address of the current factory. `keccak256('eip1967.proxy.implementation') - 1`.
    bytes32 private constant IMPLEMENTATION_SLOT = bytes32(0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc);

    /**
     *  @dev   The constructor requires at least one of `factory_` or `implementation_`.
     *         If an implementation is not provided, the factory is treated as an IDefaultImplementationBeacon to fetch the default implementation.
     *  @param factory_        The address of a proxy factory, if any.
     *  @param implementation_ The address of the implementation contract being proxied, if any.
     */
    constructor(address factory_, address implementation_) {
        _setSlotValue(FACTORY_SLOT, bytes32(uint256(uint160(factory_))));

        // If the implementation is empty, fetch it from the factory, which can act as a beacon.
        address implementation = implementation_ == address(0) ? IDefaultImplementationBeacon(factory_).defaultImplementation() : implementation_;

        require(implementation != address(0));

        _setSlotValue(IMPLEMENTATION_SLOT, bytes32(uint256(uint160(implementation))));
    }

    fallback() payable external virtual {
        bytes32 implementation = _getSlotValue(IMPLEMENTATION_SLOT);

        require(address(uint160(uint256(implementation))).code.length != uint256(0));

        assembly {
            calldatacopy(0, 0, calldatasize())

            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            returndatacopy(0, 0, returndatasize())

            switch result
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "bytecodeHash": "none"
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"factory_","type":"address"},{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"}]

0x608060405234801561001057600080fd5b5060405161021c38038061021c83398101604081905261002f91610169565b6001600160a01b0382167f7a45a402e4cb6e08ebc196f20f66d5d30e67285a2a8aa80503fa409e727a4af15560006001600160a01b0382161561007257816100e3565b826001600160a01b031663b39c45936040518163ffffffff1660e01b815260040160206040518083038186803b1580156100ab57600080fd5b505afa1580156100bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e39190610147565b90506001600160a01b0381166100f857600080fd5b6001600160a01b03167f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc555061019c9050565b80516001600160a01b038116811461014257600080fd5b919050565b60006020828403121561015957600080fd5b6101628261012b565b9392505050565b6000806040838503121561017c57600080fd5b6101858361012b565b91506101936020840161012b565b90509250929050565b6072806101aa6000396000f3fe60806040526000602d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b90506001600160a01b0381163b604257600080fd5b3660008037600080366000845af43d6000803e8080156060573d6000f35b3d6000fdfea164736f6c6343000807000a00000000000000000000000036a7350309b2eb30f3b908ab0154851b5ed81db00000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526000602d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b90506001600160a01b0381163b604257600080fd5b3660008037600080366000845af43d6000803e8080156060573d6000f35b3d6000fdfea164736f6c6343000807000a

Deployed Bytecode Sourcemap

1412:2068:0:-:0;;;2921:22;2946:34;1857:66;527:12;;407:148;2946:34;2921:59;-1:-1:-1;;;;;;2999:53:0;;;2991:76;;;;;;3120:14;3117:1;3114;3101:34;3221:1;3218;3202:14;3199:1;3183:14;3176:5;3163:60;3258:16;3255:1;3252;3237:38;3296:6;3315:66;;;;3430:16;3427:1;3420:27;3315:66;3350:16;3347:1;3340:27

Swarm Source

none://none

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.