Contract 0xa89bd606d5dadda60242e8dedeebc95c41ad8986

 
Ad
Crypto.com
Txn Hash
Block
From
To
Value
0xc907fa6a3f5be6cd285069e7fe700f03c566fb812856158933ab0e8ff4728ca7119314982021-02-26 7:34:1023 hrs 18 mins ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.071807775162.5
0x2df653bcdc0c69f48d265ea151180e3a204b8b0cf8f54c4b597b6cebe44690e0119242002021-02-25 4:37:082 days 2 hrs ago0x7a5509e03b1a9d75a4106900f5a014888833dc91 IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.054405788118
0x440aa9dd06c038f3e1493d72f24dbd586342d6fa0c15be57bca98da566e6493f119160342021-02-23 22:18:083 days 8 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.08529055185
0xe641426b4ff088abe0684512b5013cc464ebb140dc98b41f6099e72a553e7714119157152021-02-23 21:08:053 days 9 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.10373985225
0xa2fc496b28c647fea3e306d65d3d6a7fe8231a2c1650158a91a851d59f033fcd119156872021-02-23 21:03:123 days 9 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.1152665250
0xfd4724005ebd2d787e46977652b3a74cba2b331d372fbcd8b7fee770f4071a4c119083212021-02-22 17:57:264 days 12 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.1539244350
0x467a92c5b5fecd3ed3fe7b2a8696ea7353d28da4f80652d643dbfaf5c11c34e3119061942021-02-22 10:09:234 days 20 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.0769643175
0xeba5f31b7307183d142107954d9cd057c0706f771e1c39eb97ff74656af0daf3118969502021-02-20 23:51:136 days 7 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.065309706148.5
0xd312ff72bf8658bbb4e4ca41b15353c0a0dbfda55d1a2cb3095b1fd6c5f9bbcf118833152021-02-18 21:49:458 days 9 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.080429076182
0xe45346bda4f646c9f4d9f956063a675c1ffcc3748b5f6c9cde72cfb85b4a2ba0118787132021-02-18 4:41:099 days 2 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.06353455122
0xb9343e958bf720299cc9eca0703df9879d63cbfa38641955e2cab9e15baefb15118758712021-02-17 18:03:259 days 12 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.05523975125
0x521d8a0b52ee162167da576c86414115cc6dbaf6f4b6bf66677c387e5dd788cf118746062021-02-17 13:23:549 days 17 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.049795128108
0x3dc307900a34ac7d3a9e01b3d7d8b92ba460cd2cd3e0f53aad6e92a9511839ff118732422021-02-17 8:32:359 days 22 hrs ago0x6595732468a241312bc307f327ba0d64f02b3c20 IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.056595227699128.685180627
0xf19ec3ff4b20c8865945abb489b47164b86da57d54d67d91af1087fa116a582d118707232021-02-16 23:10:1110 days 7 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.068939208156
0x6c7650a010b3c00d51d587049dc40687bee8c02cb7724300a293ab5425f8dd82118589092021-02-15 3:36:2612 days 3 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.07733145175
0x22f82d3addf2608f11fa1ef3a242f8b12db90906c47a3de888a3effa1f043d63118586352021-02-15 2:33:4212 days 4 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.21870486495
0x8393e1d5f6ae12902f8324eded702c4deb161a7a79a72eef6b01e5a0d6480c4d118479952021-02-13 11:19:1713 days 19 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.1039833054235.3
0xf6fe7415f15653c445e8ccba4767def57f0562c3eea533710df9a52ea9effacd118098312021-02-07 14:27:3619 days 16 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.051704406117
0xcfef126c778550fd6a405b4286cfedbe6211bca5a4edb521880c91949f5e3106117883422021-02-04 7:16:0622 days 23 hrs ago0x6595732468a241312bc307f327ba0d64f02b3c20 IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.067868766162
0x7fa83f49a1e2666be68c3d52004f8edae69151034509566d8537d2bc971f76aa117712912021-02-01 16:01:5425 days 14 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.07007253165
0x1244bacbc7ebb0a0441018117d868af5bbbd43cc386e4ecfd8ac9e0a5b08d4e8117550762021-01-30 4:15:0328 days 2 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.0263745660
0x60191e6fa5577ddde463b68f3ba476a76afdbce54d2d18e82c4fea55400a5a68117498682021-01-29 9:01:3928 days 21 hrs ago0xffbd842b9a2f7c901e3a006aab028c932dd9fe2b IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.1227357692266.2
0x35eed1de8a66e9d6e18cb67622606ea5cd82ef834d56a1814b2600cef96364c0117441052021-01-28 11:46:4229 days 19 hrs ago0x843701dede05188bcf78162656284ca49ef67d0d IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.03760731879
0x2b68e76a59fbbf9c013ca0657ca8f58f01d8d2b809c37ea886a4924f47135fe2117407952021-01-27 23:24:0330 days 7 hrs ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.0309325870
0xa52e5240e5aa52728fd137a677e0793eb12def74d289301dbcd8292fdafd3d36117359882021-01-27 5:40:4431 days 1 hr ago0x3b15cec2d922ab0ef74688bcc1056461049f89cb IN  0xa89bd606d5dadda60242e8dedeebc95c41ad89860 Ether0.0265070460
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YVaultPeakProxy

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2020-09-22
*/

pragma solidity 0.5.17;


interface IERCProxy {
    function proxyType() external pure returns (uint proxyTypeId);
    function implementation() external view returns (address codeAddr);
}

contract Proxy is IERCProxy {
    function delegatedFwd(address _dst, bytes memory _calldata) internal {
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            let result := delegatecall(
                sub(gas(), 10000),
                _dst,
                add(_calldata, 0x20),
                mload(_calldata),
                0,
                0
            )
            let size := returndatasize()

            let ptr := mload(0x40)
            returndatacopy(ptr, 0, size)

            // revert instead of invalid() bc if the underlying call failed with invalid() it already wasted gas.
            // if the call returned error data, forward it
            switch result
                case 0 {
                    revert(ptr, size)
                }
                default {
                    return(ptr, size)
                }
        }
    }

    function proxyType() external pure returns (uint proxyTypeId) {
        // Upgradeable proxy
        proxyTypeId = 2;
    }

    function implementation() public view returns (address);
}

contract OwnableProxy {
    bytes32 constant OWNER_SLOT = keccak256("proxy.owner");

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() internal {
        _transferOwnership(msg.sender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns(address _owner) {
        bytes32 position = OWNER_SLOT;
        assembly {
            _owner := sload(position)
        }
    }

    modifier onlyOwner() {
        require(isOwner(), "NOT_OWNER");
        _;
    }

    function isOwner() public view returns (bool) {
        return owner() == msg.sender;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "OwnableProxy: new owner is the zero address");
        emit OwnershipTransferred(owner(), newOwner);
        bytes32 position = OWNER_SLOT;
        assembly {
            sstore(position, newOwner)
        }
    }
}

contract UpgradableProxy is OwnableProxy, Proxy {
    bytes32 constant IMPLEMENTATION_SLOT = keccak256("proxy.implementation");

    event ProxyUpdated(address indexed previousImpl, address indexed newImpl);

    function() external payable {
        delegatedFwd(implementation(), msg.data);
    }

    function implementation() public view returns(address _impl) {
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            _impl := sload(position)
        }
    }

    // ACLed on onlyOwner via the call to updateImplementation()
    function updateAndCall(address _newProxyTo, bytes memory data) public {
        updateImplementation(_newProxyTo);
        // sometimes required to initialize the contract
        (bool success, bytes memory returnData) = address(this).call(data);
        require(success, string(returnData));
    }

    function updateImplementation(address _newProxyTo) public onlyOwner {
        require(_newProxyTo != address(0x0), "INVALID_PROXY_ADDRESS");
        require(isContract(_newProxyTo), "DESTINATION_ADDRESS_IS_NOT_A_CONTRACT");
        emit ProxyUpdated(implementation(), _newProxyTo);
        setImplementation(_newProxyTo);
    }

    function setImplementation(address _newProxyTo) private {
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            sstore(position, _newProxyTo)
        }
    }

    function isContract(address _target) internal view returns (bool) {
        if (_target == address(0)) {
            return false;
        }
        uint size;
        assembly {
            size := extcodesize(_target)
        }
        return size > 0;
    }
}

contract YVaultPeakProxy is UpgradableProxy {
    constructor() public UpgradableProxy() {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousImpl","type":"address"},{"indexed":true,"internalType":"address","name":"newImpl","type":"address"}],"name":"ProxyUpdated","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"_impl","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"_owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"internalType":"uint256","name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"updateAndCall","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"}],"name":"updateImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506100203361002560201b60201c565b610196565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610c16602b913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166100d061015360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600060405180807f70726f78792e6f776e6572000000000000000000000000000000000000000000815250600b019050604051809103902090508181555050565b60008060405180807f70726f78792e6f776e6572000000000000000000000000000000000000000000815250600b01905060405180910390209050805491505090565b610a71806101a56000396000f3fe6080604052600436106100705760003560e01c80638da5cb5b1161004e5780638da5cb5b1461019b5780638f32d59b146101f2578063d88ca2c814610221578063f2fde38b1461030957610070565b8063025b22bc146100c85780634555d5c9146101195780635c60da1b14610144575b6100c661007b61035a565b6000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061039d565b005b3480156100d457600080fd5b50610117600480360360208110156100eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103c7565b005b34801561012557600080fd5b5061012e6105af565b6040518082815260200191505060405180910390f35b34801561015057600080fd5b5061015961035a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101a757600080fd5b506101b06105b8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101fe57600080fd5b506102076105fb565b604051808215151515815260200191505060405180910390f35b34801561022d57600080fd5b506103076004803603604081101561024457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561028157600080fd5b82018360208201111561029357600080fd5b803590602001918460018302840111640100000000831117156102b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610638565b005b34801561031557600080fd5b506103586004803603602081101561032c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ab565b005b60008060405180807f70726f78792e696d706c656d656e746174696f6e000000000000000000000000815250601401905060405180910390209050805491505090565b600080825160208401856127105a03f43d604051816000823e82600081146103c3578282f35b8282fd5b6103cf6105fb565b610441576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f494e56414c49445f50524f58595f41444452455353000000000000000000000081525060200191505060405180910390fd5b6104ed81610831565b610542576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806109ed6025913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661056161035a565b73ffffffffffffffffffffffffffffffffffffffff167fd32d24edea94f55e932d9a008afc425a8561462d1b1f57bc6e508e9a6b9509e160405160405180910390a36105ac81610883565b50565b60006002905090565b60008060405180807f70726f78792e6f776e6572000000000000000000000000000000000000000000815250600b01905060405180910390209050805491505090565b60003373ffffffffffffffffffffffffffffffffffffffff1661061c6105b8565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b610641826103c7565b600060603073ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310610690578051825260208201915060208101905060208303925061066d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146106f2576040519150601f19603f3d011682016040523d82523d6000602084013e6106f7565b606091505b50915091508181906107a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561076957808201518184015260208101905061074e565b50505050905090810190601f1680156107965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505050565b6107b36105fb565b610825576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61082e816108c4565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610870576000905061087e565b6000823b9050600081119150505b919050565b600060405180807f70726f78792e696d706c656d656e746174696f6e0000000000000000000000008152506014019050604051809103902090508181555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561094a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610a12602b913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109696105b8565b73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600060405180807f70726f78792e6f776e6572000000000000000000000000000000000000000000815250600b01905060405180910390209050818155505056fe44455354494e4154494f4e5f414444524553535f49535f4e4f545f415f434f4e54524143544f776e61626c6550726f78793a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820342bfef917b40b96a2fb7df3036eb825d0c7a8ee904bb57af7fab88c8135914d64736f6c634300051100324f776e61626c6550726f78793a206e6577206f776e657220697320746865207a65726f2061646472657373

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.