Address Contract Partially Verified
Address
0xf692D29F99155834F93a2c63d21586Ea57b5fbec
Balance
0 ETH
Nonce
2
Code Size
123 bytes
Creator
0x6864cCf0...BbA9 at tx 0x8063ca42...55f674
Indexed Transactions
0
Contract Bytecode
123 bytes
0x6080604052600080546001600160a01b0316632cf35bc960e11b823501602757808252602082f35b3682833781823684845af490503d82833e806040573d82fd5b503d81f3fea26469706673582212203b47fb19c43088d22b9a2ea227e6ef92d3ba52c14f352f06ff3b47a6283ffa9064736f6c634300080d0033
Verified Source Code Partial Match
Compiler: v0.8.13+commit.abaa5c0e
EVM: petersburg
Optimization: Yes (100 runs)
YieldsterVaultProxy.sol 60 lines
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; /// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain /// @author Richard Meissner - <[email protected]> interface IProxy { function masterCopy() external view returns (address); } /// @title YieldsterVaultProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. /// @author Stefan George - <[email protected]> /// @author Richard Meissner - <[email protected]> contract YieldsterVaultProxy { // masterCopy always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated. // To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt` address internal masterCopy; /// @dev Constructor function sets address of master copy contract. /// @param _masterCopy Master copy address. constructor(address _masterCopy) { require( _masterCopy != address(0), "Invalid master copy address provided" ); masterCopy = _masterCopy; } /// @dev Fallback function forwards all transactions and returns all received return data. fallback() external payable { // solium-disable-next-line security/no-inline-assembly assembly { let _masterCopy := and( sload(0), 0xffffffffffffffffffffffffffffffffffffffff ) // 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s if eq( calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000 ) { mstore(0, _masterCopy) return(0, 0x20) } calldatacopy(0, 0, calldatasize()) let success := delegatecall( gas(), _masterCopy, 0, calldatasize(), 0, 0 ) returndatacopy(0, 0, returndatasize()) if eq(success, 0) { revert(0, returndatasize()) } return(0, returndatasize()) } } }
Recent Transactions
No transactions found for this address