Contract 0xb390b07fcf76678089cb12d8e615d5fe494b01fb

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x18d50d9d393133b91e1d8eefe72897b2f6731e167823cf67f70ba2abf4eaaa1574585772021-05-16 11:48:5851 secs ago0x1dff8db6f02a1f1f36d3790fb57333aa48b772f1 IN  Bearn.fi: bVaults Bank0 BNB0.000156335
0xfef424f1b85b73d8be3f4dc0c11db6feceaeb23238adaa49a4fe83e8d3b0baf074585752021-05-16 11:48:5257 secs ago0x770917145861d605cdd23e31b8093fa51e33dfe7 IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0xe24004b257b6d9d6293042cd1c9b34fcbf36cd08c5824d61703e06d12f258aa574585752021-05-16 11:48:5257 secs ago0x1dff8db6f02a1f1f36d3790fb57333aa48b772f1 IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0xf98fb7243af300c2fefa5f08d4f99916073532943e81e5f805647e46562ccba274585312021-05-16 11:46:403 mins ago0xce251d7f192486804943a030c3fa7ce3820a1466 IN  Bearn.fi: bVaults Bank0 BNB0.00294224
0xab36aad3932b5519572988ef63fd659a627c86dbb06039bd215fae951069eec974584992021-05-16 11:45:044 mins ago0xced884a5eec548303da8257443eb01f56bf201b0 IN  Bearn.fi: bVaults Bank0 BNB0.00106007
0x9a1460f09294f861a6aa7c3648ebeae4a70d2a04e24daba9eef379850ecd0a4574584622021-05-16 11:43:136 mins ago0xced884a5eec548303da8257443eb01f56bf201b0 IN  Bearn.fi: bVaults Bank0 BNB0.00089877
0x5a6a5b98af9ad04eea3811113f4101e45c3a139d3883fd48dfbadc0886fd7d4074584622021-05-16 11:43:136 mins ago0xeee0c60c6aa849be37061f6739918dd87774532f IN  Bearn.fi: bVaults Bank0 BNB0.00018753
0x77fc7a551e31b6e8f83cc1b1e827611f1ac97b8a7cbbe76214d52638dc7a74f274584522021-05-16 11:42:437 mins ago0x9bf90d93642b603f72d87ae1cec5272023e915a1 IN  Bearn.fi: bVaults Bank0 BNB0.001580155
0x38a1600ccc04aab69c5c8b9fec1fdaac99c9fe6c29e34f4c0b9d1f029df016b374584522021-05-16 11:42:437 mins ago0x794af8b373c2378ecfc2a3582a4a0ca2aae3c6de IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0x624d41cdb076d16bc7da529135f78e5542e14162762880b9bc33b5c131f5190274584512021-05-16 11:42:407 mins ago0x632ea3f6f3200a91c872157f5c86071b2472c31e IN  Bearn.fi: bVaults Bank0 BNB0.00031011
0xdf7389b1515deefdde203622f7c823c0255f1cd352e41fe8ac9fa8493e747adc74584492021-05-16 11:42:347 mins ago0xbfb4ea2befd31d705de296d93dd966d376ca5966 IN  Bearn.fi: bVaults Bank0 BNB0.00294224
0x0812756a307c109e7e1f1a961de588cf9b311f934e5651ae89ac224dae4f3c2774584232021-05-16 11:41:168 mins ago0x794af8b373c2378ecfc2a3582a4a0ca2aae3c6de IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0xc40859123f39c0d9a85ea681f653fe272032a127a84246da9406e0ca70d25e9274584222021-05-16 11:41:138 mins ago0xcf63f6b0724cc8d18e019475c3861a39bffde0a0 IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0x651ed94f8731684934abf85f69426bea2e9f5eb8ee6e3b96ecb10f780dfdf94874583742021-05-16 11:38:4911 mins ago0x6284820a3ecdecb9e5c736ace166f2b375a4a19e IN  Bearn.fi: bVaults Bank0 BNB0.002923425
0xc9b1f3a69b754b4b63ddf29fd1468d3a98bd041ba0fedf108c8674751328874474583722021-05-16 11:38:4311 mins ago0xf3b44a7ec1c715f60653c571fafa3c47b666ed1c IN  Bearn.fi: bVaults Bank0 BNB0.00031286
0xc1828d491afe444b878f58b742c29676d772f1c70ee8511904288bca01a6ee5974583602021-05-16 11:38:0711 mins ago0xd33065ed8a1bd20f3b151a8c2da006806821187d IN  Bearn.fi: bVaults Bank0 BNB0.000218246
0xb91fd2a210427a26c26afa72136ee6db16c236e2a6382d679525aedcfc33607874583472021-05-16 11:37:2812 mins ago0x1cbd4704f528cc2293b9822c6ed2eb52fdaaa845 IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0x8195d19114b145d44e2aa9e61a32c5deb66f64f94a55a441ff4db4cdac89591474583202021-05-16 11:36:0713 mins ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  Bearn.fi: bVaults Bank0 BNB0.00088733
0xced1252116044924b98d490787b72d72f769433df2cc4ab8b66dc838c202159374583142021-05-16 11:35:4914 mins ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  Bearn.fi: bVaults Bank0 BNB0.000887445
0xf480b72ddefdad8047f45deaadb360967a1b2b1c2e477afe7295410049a79dff74583092021-05-16 11:35:3414 mins ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  Bearn.fi: bVaults Bank0 BNB0.00088733
0x7f69122009550b748e55c554dadcd154bed7a12b8ccf14ae935b30e59ce72a5474583042021-05-16 11:35:1914 mins ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  Bearn.fi: bVaults Bank0 BNB0.00088733
0x37a6018f4a07ed4e1c15e9f2148f79c3ddc3d730a96623804bbfd3aaddf8317374582942021-05-16 11:34:4915 mins ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  Bearn.fi: bVaults Bank0 BNB0.000887445
0x8ac80fe889b45c050856834114cbc79b67c4aa47aa02920e921ff40a9f556dec74582682021-05-16 11:33:2916 mins ago0x0f8f4d67ea688c2c91b8fb5cd4689843151f1a14 IN  Bearn.fi: bVaults Bank0 BNB0.002998485
0xa44bc1d15869250028b0d98c0ef311b7d76fa4006de66b63e7107eb49657c1e174582602021-05-16 11:33:0516 mins ago0x361e2c0dbc740e7fe5a15aaceacd0a8a7573e075 IN  Bearn.fi: bVaults Bank0 BNB0.000155055
0x98f64665295ce2eb69a9ceccaed16aa2a5f4057d81485d13cf41eb550d10596174582542021-05-16 11:32:4717 mins ago0xa8c6ec00c030078cca35d369df82666b554c95c6 IN  Bearn.fi: bVaults Bank0 BNB0.0029423
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank 0xd75c1a91272f20aafe9627a288a6210db57d93ea0 BNB
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank PancakeSwap: MDO-BUSD-T0 BNB
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank PancakeSwap: MDO-BUSD-T0 BNB
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank PancakeSwap: MDO-BUSD-T0 BNB
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank 0xd75c1a91272f20aafe9627a288a6210db57d93ea0 BNB
0x6bcc46230fda56f13025154add9f3b9ba2a2cf8defe33054a533b18ef0b0b76a54713282021-03-07 11:59:2169 days 23 hrs ago Bearn.fi: bVaults Bank 0x807d8c6dd3e5a47c69b5497e5b6878fe528028260 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank bDollar: BDO Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank bDollar: BDO Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Bearn.fi: BFI Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank Bearn.fi: BFI Token0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank 0x48b6527937b5baa7e1be4880b2ba8d4f3d91b02f0 BNB
0x0dd646a7781ff7a2d4a77bcb30daaa29eaca14c7e4022740740c68cc6a95cc7754713222021-03-07 11:59:0369 days 23 hrs ago Bearn.fi: bVaults Bank 0x807d8c6dd3e5a47c69b5497e5b6878fe528028260 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank 0x7a46e06d214bff1248449095a727faa08d0426540 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank 0xf98313f818c53e40bd758c5276ef4b434463bec40 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank 0xf98313f818c53e40bd758c5276ef4b434463bec40 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank 0xf98313f818c53e40bd758c5276ef4b434463bec40 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank Midas Gold: MDG Token0 BNB
0xe94796db2f38365ba1d366d19838b98529774f0072941d94419235d153bfd83854713202021-03-07 11:58:5769 days 23 hrs ago Bearn.fi: bVaults Bank bDollar: BDO Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdminUpgradeabilityProxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-02-13
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @title Proxy
 * @dev Implements delegation of calls to other contracts, with proper
 * forwarding of return values and bubbling of failures.
 * It defines a fallback function that delegates all calls to the address
 * returned by the abstract _implementation() internal function.
 */
abstract contract Proxy {
    /**
     * @dev Fallback function.
     * Implemented entirely in `_fallback`.
     */
    fallback() external payable {
        _fallback();
    }

    /**
     * @dev Receive function.
     * Implemented entirely in `_fallback`.
     */
    receive() external payable {
        _fallback();
    }

    /**
     * @return The Address of the implementation.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates execution to an implementation contract.
     * This is a low level function that doesn't return to its internal call site.
     * It will return to the external caller whatever the implementation returns.
     * @param implementation Address to delegate.
     */
    function _delegate(address implementation) internal {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
                // delegatecall returns 0 on error.
                case 0 {
                    revert(0, returndatasize())
                }
                default {
                    return(0, returndatasize())
                }
        }
    }

    /**
     * @dev Function that is run as the first thing in the fallback function.
     * Can be redefined in derived contracts to add functionality.
     * Redefinitions must call super._willFallback().
     */
    function _willFallback() internal virtual {}

    /**
     * @dev fallback implementation.
     * Extracted to enable manual triggering.
     */
    function _fallback() internal {
        _willFallback();
        _delegate(_implementation());
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @title UpgradeabilityProxy
 * @dev This contract implements a proxy that allows to change the
 * implementation address to which it will delegate.
 * Such a change is called an implementation upgrade.
 */
contract UpgradeabilityProxy is Proxy {
    /**
     * @dev Contract constructor.
     * @param _logic Address of the initial implementation.
     * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
     * It should include the signature and the parameters of the function to be called, as described in
     * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
     * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
     */
    constructor(address _logic, bytes memory _data) public payable {
        assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _setImplementation(_logic);
        if (_data.length > 0) {
            (bool success, ) = _logic.delegatecall(_data);
            require(success);
        }
    }

    /**
     * @dev Emitted when the implementation is upgraded.
     * @param implementation Address of the new implementation.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation.
     * @return impl Address of the current implementation
     */
    function _implementation() internal view override returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Upgrades the proxy to a new implementation.
     * @param newImplementation Address of the new implementation.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Sets the implementation address of the proxy.
     * @param newImplementation Address of the new implementation.
     */
    function _setImplementation(address newImplementation) internal {
        require(Address.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address");

        bytes32 slot = IMPLEMENTATION_SLOT;

        assembly {
            sstore(slot, newImplementation)
        }
    }
}

/**
 * @title AdminUpgradeabilityProxy
 * @dev This contract combines an upgradeability proxy with an authorization
 * mechanism for administrative tasks.
 * All external functions in this contract must be guarded by the
 * `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
 * feature proposal that would enable this to be done automatically.
 */
contract AdminUpgradeabilityProxy is UpgradeabilityProxy {
    /**
     * Contract constructor.
     * @param _logic address of the initial implementation.
     * @param _admin Address of the proxy administrator.
     * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
     * It should include the signature and the parameters of the function to be called, as described in
     * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
     * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
     */
    constructor(
        address _logic,
        address _admin,
        bytes memory _data
    ) public payable UpgradeabilityProxy(_logic, _data) {
        assert(ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _setAdmin(_admin);
    }

    /**
     * @dev Emitted when the administration has been transferred.
     * @param previousAdmin Address of the previous admin.
     * @param newAdmin Address of the new admin.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */

    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Modifier to check whether the `msg.sender` is the admin.
     * If it is, it will run the function. Otherwise, it will delegate the call
     * to the implementation.
     */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @return The address of the proxy admin.
     */
    function admin() external ifAdmin returns (address) {
        return _admin();
    }

    /**
     * @return The address of the implementation.
     */
    function implementation() external ifAdmin returns (address) {
        return _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     * Only the current admin can call this function.
     * @param newAdmin Address to transfer proxy administration to.
     */
    function changeAdmin(address newAdmin) external ifAdmin {
        require(newAdmin != address(0), "Cannot change the admin of a proxy to the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the backing implementation of the proxy.
     * Only the admin can call this function.
     * @param newImplementation Address of the new implementation.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the backing implementation of the proxy and call a function
     * on the new implementation.
     * This is useful to initialize the proxied contract.
     * @param newImplementation Address of the new implementation.
     * @param data Data to send as msg.data in the low level call.
     * It should include the signature and the parameters of the function to be called, as described in
     * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeTo(newImplementation);
        (bool success, ) = newImplementation.delegatecall(data);
        require(success);
    }

    /**
     * @return adm The admin slot.
     */
    function _admin() internal view returns (address adm) {
        bytes32 slot = ADMIN_SLOT;
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Sets the address of the proxy admin.
     * @param newAdmin Address of the new proxy admin.
     */
    function _setAdmin(address newAdmin) internal {
        bytes32 slot = ADMIN_SLOT;

        assembly {
            sstore(slot, newAdmin)
        }
    }

    /**
     * @dev Only fall back when the sender is not the admin.
     */
    function _willFallback() internal virtual override {
        require(msg.sender != _admin(), "Cannot call fallback function from the proxy admin");
        super._willFallback();
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052604051610a34380380610a348339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b50604052508491508290506100ee826101bf565b8051156101a6576000826001600160a01b0316826040518082805190602001908083835b602083106101315780518252601f199092019160209182019101610112565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610191576040519150601f19603f3d011682016040523d82523d6000602084013e610196565b606091505b50509050806101a457600080fd5b505b506101ae9050565b6101b782610231565b50505061025b565b6101d28161025560201b6104bb1760201c565b61020d5760405162461bcd60e51b815260040180806020018281038252603b8152602001806109f9603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61078f8061026a6000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146101425780638f28397014610180578063f851a440146101c05761006d565b80633659cfe6146100755780634f1ef286146100b55761006d565b3661006d5761006b6101d5565b005b61006b6101d5565b34801561008157600080fd5b5061006b6004803603602081101561009857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101ef565b61006b600480360360408110156100cb57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516919081019060408101602082013564010000000081111561010357600080fd5b82018360208201111561011557600080fd5b8035906020019184600183028401116401000000008311171561013757600080fd5b509092509050610243565b34801561014e57600080fd5b50610157610317565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561018c57600080fd5b5061006b600480360360208110156101a357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661036e565b3480156101cc57600080fd5b50610157610476565b6101dd6104c1565b6101ed6101e8610555565b61057a565b565b6101f761059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023857610233816105c3565b610240565b6102406101d5565b50565b61024b61059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561030a57610287836105c3565b60008373ffffffffffffffffffffffffffffffffffffffff1683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146102f1576040519150601f19603f3d011682016040523d82523d6000602084013e6102f6565b606091505b505090508061030457600080fd5b50610312565b6103126101d5565b505050565b600061032161059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103635761035c610555565b905061036b565b61036b6101d5565b90565b61037661059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102385773ffffffffffffffffffffffffffffffffffffffff8116610415576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806106e96036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61043e61059e565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301528051918290030190a161023381610610565b600061048061059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103635761035c61059e565b3b151590565b6104c961059e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561054d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806106b76032913960400191505060405180910390fd5b6101ed6101ed565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610599573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6105cc81610634565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b61063d816104bb565b610692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b81526020018061071f603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220955b258bc533d5860c4896ce633c0ede7e5a606b4aa4f4a4292d9fcc3eaa873364736f6c634300060c003343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000000000000000000c60c6854d10c034718aca198fe92d73eb83b744c00000000000000000000000007f6521bbcb71d166d6e2e116d21b6d21f2dd5fa00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000c60c6854d10c034718aca198fe92d73eb83b744c00000000000000000000000007f6521bbcb71d166d6e2e116d21b6d21f2dd5fa00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c60c6854d10c034718aca198fe92d73eb83b744c
Arg [1] : 00000000000000000000000007f6521bbcb71d166d6e2e116d21b6d21f2dd5fa
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

11896:4529:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;684:11;:9;:11::i;:::-;11896:4529;;525:11;:9;:11::i;14734:111::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14734:111:0;;;;:::i;15393:240::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15393:240:0;;-1:-1:-1;15393:240:0;-1:-1:-1;15393:240:0;:::i;13990:104::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14289:242;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14289:242:0;;;;:::i;13827:86::-;;;;;;;;;;;;;:::i;2476:103::-;2517:15;:13;:15::i;:::-;2543:28;2553:17;:15;:17::i;:::-;2543:9;:28::i;:::-;2476:103::o;14734:111::-;13664:8;:6;:8::i;:::-;13650:22;;:10;:22;;;13646:100;;;14808:29:::1;14819:17;14808:10;:29::i;:::-;13646:100:::0;;;13723:11;:9;:11::i;:::-;14734:111;:::o;15393:240::-;13664:8;:6;:8::i;:::-;13650:22;;:10;:22;;;13646:100;;;15503:29:::1;15514:17;15503:10;:29::i;:::-;15544:12;15562:17;:30;;15593:4;;15562:36;;;;;;;;;;::::0;;::::1;::::0;-1:-1:-1;15562:36:0::1;::::0;-1:-1:-1;15562:36:0;;-1:-1:-1;;15562:36:0;;::::1;::::0;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15543:55;;;15617:7;15609:16;;;::::0;::::1;;13689:1;13646:100:::0;;;13723:11;:9;:11::i;:::-;15393:240;;;:::o;13990:104::-;14042:7;13664:8;:6;:8::i;:::-;13650:22;;:10;:22;;;13646:100;;;14069:17:::1;:15;:17::i;:::-;14062:24;;13646:100:::0;;;13723:11;:9;:11::i;:::-;13990:104;:::o;14289:242::-;13664:8;:6;:8::i;:::-;13650:22;;:10;:22;;;13646:100;;;14364:22:::1;::::0;::::1;14356:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14461:32;14474:8;:6;:8::i;:::-;14461:32;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;14504:19;14514:8;14504:9;:19::i;13827:86::-:0;13870:7;13664:8;:6;:8::i;:::-;13650:22;;:10;:22;;;13646:100;;;13897:8:::1;:6;:8::i;3267:444::-:0;3647:20;3695:8;;;3267:444::o;16235:187::-;16319:8;:6;:8::i;:::-;16305:22;;:10;:22;;;;16297:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16393:21;:19;:21::i;10556:190::-;10355:66;10717:11;;10694:45::o;1155:938::-;1490:14;1487:1;1484;1471:34;1708:1;1705;1689:14;1686:1;1670:14;1663:5;1650:60;1787:16;1784:1;1781;1766:38;1827:6;1904:76;;;;2039:16;2036:1;2029:27;1904:76;1944:16;1941:1;1934:27;15695:161;13341:66;15827:11;;15805:44::o;10897:155::-;10964:37;10983:17;10964:18;:37::i;:::-;11017:27;;;;;;;;;;;10897:155;:::o;15988:159::-;13341:66;16107:22;16092:48::o;11205:317::-;11288:37;11307:17;11288:18;:37::i;:::-;11280:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10355:66;11473:31;11458:57::o

Swarm Source

ipfs://955b258bc533d5860c4896ce633c0ede7e5a606b4aa4f4a4292d9fcc3eaa8733
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.