Contract 0x17d8CBB6Bce8cEE970a4027d1198F6700A7a6c24

 
Txn Hash
Block
From
To
Value
0xadb0042345f20e556c080debf127dc41339332379cc2ffbd27ffd56f9730482c119989632021-03-08 16:41:072 hrs 11 mins ago0x75d7a5ad10c6d1b1fed10ad805ec3bba8a503e5c IN  mStable: mBTC Savings Contract0 Ether0.0102534120
0x00ca9447b57b44bc592a4beea1be24abffc8d9ef9e51441ba51146fdd34543ed119976112021-03-08 11:35:307 hrs 17 mins ago0x0fc7f763c6ad236944441af98f55badc0c0e5e96 IN  mStable: mBTC Savings Contract0 Ether0.007987386479.52
0x8031cf4d0a6e71fcfcab84b3c4553701dbf6a0b006b8130ea55d08a6fe69fe8d119975642021-03-08 11:24:507 hrs 27 mins ago0x563ed87d8818f446c29649de2f18eca87f6763a7 IN  mStable: mBTC Savings Contract0 Ether0.01227319873
0xcbc2175688ea89d691a3293eeb20b60c64dcf51008b0c9e42eaf337fe7e24e00119963042021-03-08 6:44:2712 hrs 8 mins ago0x446a0136cd70c76e3effd9877efccc124e98641c IN  mStable: mBTC Savings Contract0 Ether0.0171177465101.1
0xad2d91df1830eab89b3f51efc51e7bbf330713cb16d86077757d9d385455b4be119947012021-03-08 0:52:0018 hrs ago0x6b6657a973644faaff1c5162d53c790c7e6a986d IN  mStable: mBTC Savings Contract0 Ether0.01990794130
0x6568311ce93b80dcc76f7e1d1dfcc8bfd271d5e31eff806f06e814aa99ba26ad119941872021-03-07 22:55:2219 hrs 57 mins ago0x7a0300662d155b5d9d04e57d747a17dd7f1b72a3 IN  mStable: mBTC Savings Contract0 Ether0.020485663121
0x4e7e5257dafd86a21b081a7653d860e60e294be4f0c21be71e50d5d68a81e07a119920062021-03-07 14:51:001 day 4 hrs ago0x7a0300662d155b5d9d04e57d747a17dd7f1b72a3 IN  mStable: mBTC Savings Contract0 Ether0.019642644138
0x826b09458d914df717417b2b2e545c586c9f9e18e95c3e540efa31bc571eae4e119915272021-03-07 13:05:261 day 5 hrs ago0x5ae053134b7866f329f1a0a474936d3d5b9d23cc IN  mStable: mBTC Savings Contract0 Ether0.01759286496
0x6cb32222f5461a7ceb22b3e52d5073e4f2e5b79337a3d6537f41d52fb53d753c119914232021-03-07 12:44:211 day 6 hrs ago0xfd3ca26e839bf75870d50613cc20d34a59975c3e IN  mStable: mBTC Savings Contract0 Ether0.018121891506118.337
0x86b69d0a31b21b155182bd28190b5cbd7a85543afe3835cb53effc8327b8060e119911882021-03-07 11:54:411 day 6 hrs ago0x6133922e1283fa2c1c8a1bcbcde5c9f0ebd00c3c IN  mStable: mBTC Savings Contract0 Ether0.010884834103
0xf58f9923ea0b7b47d6b0c5753b049a4a116a354b1b4918cd61482168719ce5df119903652021-03-07 8:49:511 day 10 hrs ago0xd2c2127bcb6c31e3c958e07087473724fd7bade9 IN  mStable: mBTC Savings Contract0 Ether0.00944070294
0x6bbf6ca6fd27f19d82cabb08c5fb34761e8ca69abd4b975fc29bd8dcfea67e9b119903362021-03-07 8:42:481 day 10 hrs ago0x15a295e9bcfcf93a8721dcb9a19330fc59771271 IN  mStable: mBTC Savings Contract0 Ether0.0096430677102.9
0xc7f235195a2777f4452f9913e46c5d906747f316efdf294a5cac410d43875eb6119898282021-03-07 6:50:411 day 12 hrs ago0x965b95f467142d416fb0635f8382d4d9309044b7 IN  mStable: mBTC Savings Contract0 Ether0.014991876989.1
0xe2f4fab4da7af1f7a0e7572c7a057ec7ef3fd86c5f8e18f5d8747bff2da61ae5119897972021-03-07 6:45:181 day 12 hrs ago0x19ad92147b2bcbe0b99bb1c74f0e9e3720020fb3 IN  mStable: mBTC Savings Contract0 Ether0.00974200197
0x61927cd18c69d53a587ba6c28cd7fa5429a46eada7464e5f1b25c21f9f2655d0119897882021-03-07 6:43:521 day 12 hrs ago0xaaf617bb881b23e5c7fa33f37855d08c14343018 IN  mStable: mBTC Savings Contract0 Ether0.015771978103
0x4138ec1300f2be3329100a058cf2a41a9a668a64b4ae6dfd771f77204ef93b81119893462021-03-07 4:58:451 day 13 hrs ago0x807b3e6d2a403d1308be5a035460dbef26005463 IN  mStable: mBTC Savings Contract0 Ether0.00823519692
0x5d45385959a47a99851cf2aaeb27317c1e379fd0a0a3e23af418f24b32f64fa1119891562021-03-07 4:16:101 day 14 hrs ago0x513d9f94272c36121adf4bece7ee8685e74305fa IN  mStable: mBTC Savings Contract0 Ether0.0080561790
0xf1b3f7b1eefa1b20f9babe71aa31167533a11665eef5a1c7eb3ee743cfa1eb65119890102021-03-07 3:42:061 day 15 hrs ago0x7ec0899b0ae20e437f8787303f093c54b7d7539f IN  mStable: mBTC Savings Contract0 Ether0.0094050990
0x389c147595adfc38ba8725d7138aceb755ba28db7007ea207cb8e06901a53c91119878092021-03-06 23:17:571 day 19 hrs ago0x25d5f9205bcf2d47c0dcf4cf181dbe34accb1bed IN  mStable: mBTC Savings Contract0 Ether0.0152372790
0x4a9397eb747d07db55b811d975f635998eb5e790fb99130a44815267893938bd119877422021-03-06 23:03:031 day 19 hrs ago0x7a0300662d155b5d9d04e57d747a17dd7f1b72a3 IN  mStable: mBTC Savings Contract0 Ether0.0109627985
0xaeb6f02f3e4199f8cfb9f817750abaec4528c0b69dc0dcf4b786389f417549a8119873042021-03-06 21:24:401 day 21 hrs ago0x72be416940a48d6ec7ee6f8437406a765d6cefc3 IN  mStable: mBTC Savings Contract0 Ether0.01424183493
0x5ed9229cc59ae08ebf609a3b26c567b810c613d9009439fa38574a22fb6e2ebe119867402021-03-06 19:22:431 day 23 hrs ago0xabc1875d2884e340a005e7420b3bf332319f8187 IN  mStable: mBTC Savings Contract0 Ether0.015157206851145.027
0x255f33ff041f3d8daf98ab01762d939abe0f3ae9d4810110d4c8d70db7fe40f7119862502021-03-06 17:28:222 days 1 hr ago0x800c016b1923653a13b6094f9c8953fdb1cf1efb IN  mStable: mBTC Savings Contract0 Ether0.023438592128
0x75ef68ffb126247e031b73d758617957e0829ee22a4b30e1b27c5894aca2f44e119857192021-03-06 15:31:032 days 3 hrs ago0xe3cf89e85cfbd4b6c3c9071baf832ddfbbad2f37 IN  mStable: mBTC Savings Contract0 Ether0.0043100265
0x0da6747a6b3e533b6fc2dce476e2c8dcc4ef04563429a8a94d7cca7a3472a004119855842021-03-06 15:01:412 days 3 hrs ago0xe3cf89e85cfbd4b6c3c9071baf832ddfbbad2f37 IN  mStable: mBTC Savings Contract0 Ether0.00555314565
[ Download CSV Export 

OVERVIEW

Proxy contract for mStable Interest Bearing BTC (imBTC). System revenue generated within mBTC is distributed here to Savers.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x945Facb997494CC2570096c74b5F66A3507330a1

Contract Name:
AssetProxy

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2021-02-12
*/

pragma solidity 0.8.0;


// SPDX-License-Identifier: MIT
/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 * 
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 * 
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     * 
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal {
        // solhint-disable-next-line no-inline-assembly
        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 This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal virtual view returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     * 
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () external payable {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () external payable {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     * 
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

/**
 * @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 on 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        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);
            }
        }
    }
}

/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 * 
 * Upgradeability is only provided internally through {_upgradeTo}. For an externally upgradeable proxy see
 * {TransparentUpgradeableProxy}.
 */
contract UpgradeableProxy is Proxy {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     * 
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _setImplementation(_logic);
        if(_data.length > 0) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success,) = _logic.delegatecall(_data);
            require(success);
        }
    }

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    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 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal override view returns (address impl) {
        bytes32 slot = _IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

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

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");

        bytes32 slot = _IMPLEMENTATION_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }
}

contract TransparentUpgradeableProxy is UpgradeableProxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
     */
    constructor(address _logic, address admin_, bytes memory _data) payable UpgradeableProxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _setAdmin(admin_);
    }

    /**
     * @dev Emitted when the admin account has changed.
     */
    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 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     * 
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _admin();
    }

    /**
     * @dev Returns the current implementation.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     * 
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     * 
     * Emits an {AdminChanged} event.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external ifAdmin {
        require(newAdmin != address(0), "TransparentUpgradeableProxy: new admin is the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeTo(newImplementation);
        // solhint-disable-next-line avoid-low-level-calls
        (bool success,) = newImplementation.delegatecall(data);
        require(success);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view returns (address adm) {
        bytes32 slot = _ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        bytes32 slot = _ADMIN_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newAdmin)
        }
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal override virtual {
        require(msg.sender != _admin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

// import { InitializableAdminUpgradeabilityProxy } from "../shared/@openzeppelin-2.5/upgrades/InitializableAdminUpgradeabilityProxy.sol";
/**
 * @notice AssetProxy delegates calls to a Masset implementation
 * @dev    Extending on OpenZeppelin's InitializableAdminUpgradabilityProxy
 * means that the proxy is upgradable through a ProxyAdmin. AssetProxy upgrades
 * are implemented by a DelayedProxyAdmin, which enforces a 1 week opt-out period.
 * All upgrades are governed through the current mStable governance.
 */
contract AssetProxy is TransparentUpgradeableProxy {
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable TransparentUpgradeableProxy(_logic, admin_, _data) {}
}

Contract Security Audit

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":"admin_","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":"implementation_","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"}]

608060405260405162000aac38038062000aac8339810160408190526200002691620001ff565b82828282816200005860017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd62000350565b60008051602062000a8c833981519152146200008457634e487b7160e01b600052600160045260246000fd5b6200008f8262000179565b80511562000106576000826001600160a01b031682604051620000b39190620002d5565b600060405180830381855af49150503d8060008114620000f0576040519150601f19603f3d011682016040523d82523d6000602084013e620000f5565b606091505b50509050806200010457600080fd5b505b5062000136905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610462000350565b60008051602062000a6c833981519152146200016257634e487b7160e01b600052600160045260246000fd5b6200016d82620001ca565b505050505050620003bd565b6200018f81620001dd60201b620002f41760201c565b620001b75760405162461bcd60e51b8152600401620001ae90620002f3565b60405180910390fd5b60008051602062000a8c83398151915255565b60008051602062000a6c83398151915255565b803b15155b919050565b80516001600160a01b0381168114620001e257600080fd5b60008060006060848603121562000214578283fd5b6200021f84620001e7565b92506200022f60208501620001e7565b60408501519092506001600160401b03808211156200024c578283fd5b818601915086601f83011262000260578283fd5b815181811115620002755762000275620003a7565b604051601f8201601f1916810160200183811182821017156200029c576200029c620003a7565b604052818152838201602001891015620002b4578485fd5b620002c782602083016020870162000374565b809450505050509250925092565b60008251620002e981846020870162000374565b9190910192915050565b60208082526036908201527f5570677261646561626c6550726f78793a206e657720696d706c656d656e746160408201527f74696f6e206973206e6f74206120636f6e747261637400000000000000000000606082015260800190565b6000828210156200036f57634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156200039157818101518382015260200162000377565b83811115620003a1576000848401525b50505050565b634e487b7160e01b600052604160045260246000fd5b61069f80620003cd6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c3578063f851a440146100e35761005d565b3661005d5761005b6100f8565b005b61005b6100f8565b34801561007157600080fd5b5061005b610080366004610471565b610112565b61005b610093366004610492565b61014c565b3480156100a457600080fd5b506100ad6101f3565b6040516100ba9190610520565b60405180910390f35b3480156100cf57600080fd5b5061005b6100de366004610471565b610230565b3480156100ef57600080fd5b506100ad6102c9565b6101006102fe565b61011061010b61033f565b610364565b565b61011a610388565b6001600160a01b0316336001600160a01b031614156101415761013c816103ad565b610149565b6101496100f8565b50565b610154610388565b6001600160a01b0316336001600160a01b031614156101e657610176836103ad565b6000836001600160a01b03168383604051610192929190610510565b600060405180830381855af49150503d80600081146101cd576040519150601f19603f3d011682016040523d82523d6000602084013e6101d2565b606091505b50509050806101e057600080fd5b506101ee565b6101ee6100f8565b505050565b60006101fd610388565b6001600160a01b0316336001600160a01b031614156102255761021e61033f565b905061022d565b61022d6100f8565b90565b610238610388565b6001600160a01b0316336001600160a01b03161415610141576001600160a01b0381166102805760405162461bcd60e51b81526004016102779061054e565b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6102a9610388565b826040516102b8929190610534565b60405180910390a161013c816103ed565b60006102d3610388565b6001600160a01b0316336001600160a01b031614156102255761021e610388565b803b15155b919050565b610306610388565b6001600160a01b0316336001600160a01b031614156103375760405162461bcd60e51b815260040161027790610601565b610110610110565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610383573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6103b681610411565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b61041a816102f4565b6104365760405162461bcd60e51b8152600401610277906105ab565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b80356001600160a01b03811681146102f957600080fd5b600060208284031215610482578081fd5b61048b8261045a565b9392505050565b6000806000604084860312156104a6578182fd5b6104af8461045a565b9250602084013567ffffffffffffffff808211156104cb578384fd5b818601915086601f8301126104de578384fd5b8135818111156104ec578485fd5b8760208285010111156104fd578485fd5b6020830194508093505050509250925092565b6000828483379101908152919050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6020808252603a908201527f5472616e73706172656e745570677261646561626c6550726f78793a206e657760408201527f2061646d696e20697320746865207a65726f2061646472657373000000000000606082015260800190565b60208082526036908201527f5570677261646561626c6550726f78793a206e657720696d706c656d656e74616040820152751d1a5bdb881a5cc81b9bdd08184818dbdb9d1c9858dd60521b606082015260800190565b60208082526042908201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60408201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606082015261195d60f21b608082015260a0019056fea2646970667358221220e4500d5aa93149b35eae3e61547d0eaada4754490a27f7f2b3eec3ef68093d3b64736f6c63430008000033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc00000000000000000000000069ad1387da6b2ab2ea4bf2bee68246bc042b587f0000000000000000000000005c8eb57b44c1c6391fc7a8a0cf44d26896f92386000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000003046bef4a8c00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000d36050b5f28126b5292b59128ed25e489a0f2f3f0000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000007800000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000a688906bd8b0000000000000000000000000000000000000000000000000000000000000000000b6d537461626c652042544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046d425443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000eb4c2781e4eba804ce9a9803c67d0893436bb27d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fe18be6b3bd88a2d2a7f928d00292e7a9963cfc60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

19359:220:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2877:11;:9;:11::i;:::-;19359:220;;2653:11;:9;:11::i;17107:111::-;;;;;;;;;;-1:-1:-1;17107:111:0;;;;;:::i;:::-;;:::i;17604:299::-;;;;;;:::i;:::-;;:::i;16346:131::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;16693:246;;;;;;;;;;-1:-1:-1;16693:246:0;;;;;:::i;:::-;;:::i;15778:95::-;;;;;;;;;;;;;:::i;2305:105::-;2346:17;:15;:17::i;:::-;2374:28;2384:17;:15;:17::i;:::-;2374:9;:28::i;:::-;2305:105::o;17107:111::-;15234:8;:6;:8::i;:::-;-1:-1:-1;;;;;15220:22:0;:10;-1:-1:-1;;;;;15220:22:0;;15216:100;;;17181:29:::1;17192:17;17181:10;:29::i;:::-;15216:100:::0;;;15293:11;:9;:11::i;:::-;17107:111;:::o;17604:299::-;15234:8;:6;:8::i;:::-;-1:-1:-1;;;;;15220:22:0;:10;-1:-1:-1;;;;;15220:22:0;;15216:100;;;17714:29:::1;17725:17;17714:10;:29::i;:::-;17815:12;17832:17;-1:-1:-1::0;;;;;17832:30:0::1;17863:4;;17832:36;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17814:54;;;17887:7;17879:16;;;::::0;::::1;;15259:1;15216:100:::0;;;15293:11;:9;:11::i;:::-;17604:299;;;:::o;16346:131::-;16398:23;15234:8;:6;:8::i;:::-;-1:-1:-1;;;;;15220:22:0;:10;-1:-1:-1;;;;;15220:22:0;;15216:100;;;16452:17:::1;:15;:17::i;:::-;16434:35;;15216:100:::0;;;15293:11;:9;:11::i;:::-;16346:131;:::o;16693:246::-;15234:8;:6;:8::i;:::-;-1:-1:-1;;;;;15220:22:0;:10;-1:-1:-1;;;;;15220:22:0;;15216:100;;;-1:-1:-1;;;;;16768:22:0;::::1;16760:93;;;;-1:-1:-1::0;;;16760:93:0::1;;;;;;;:::i;:::-;;;;;;;;;16869:32;16882:8;:6;:8::i;:::-;16892;16869:32;;;;;;;:::i;:::-;;;;;;;;16912:19;16922:8;16912:9;:19::i;15778:95::-:0;15821:14;15234:8;:6;:8::i;:::-;-1:-1:-1;;;;;15220:22:0;:10;-1:-1:-1;;;;;15220:22:0;;15216:100;;;15857:8:::1;:6;:8::i;3926:422::-:0;4293:20;;4332:8;;3926:422;;;;:::o;18617:207::-;18703:8;:6;:8::i;:::-;-1:-1:-1;;;;;18689:22:0;:10;-1:-1:-1;;;;;18689:22:0;;;18681:101;;;;-1:-1:-1;;;18681:101:0;;;;;;;:::i;:::-;18793:23;:21;:23::i;13067:248::-;12917:66;13286:11;;13263:45::o;905:907::-;1297:14;1294:1;1291;1278:34;1515:1;1512;1496:14;1493:1;1477:14;1470:5;1457:60;1594:16;1591:1;1588;1573:38;1634:6;1703:38;;;;1775:16;1772:1;1765:27;1703:38;1722:16;1719:1;1712:27;17969:219;14973:66;18159:11;;18137:44::o;13442:155::-;13509:37;13528:17;13509:18;:37::i;:::-;13562:27;;-1:-1:-1;;;;;13562:27:0;;;;;;;;13442:155;:::o;18275:216::-;14973:66;18451:22;18436:48::o;13693:369::-;13775:37;13794:17;13775:18;:37::i;:::-;13767:104;;;;-1:-1:-1;;;13767:104:0;;;;;;;:::i;:::-;12917:66;14013:31;13998:57::o;14:175:1:-;84:20;;-1:-1:-1;;;;;133:31:1;;123:42;;113:2;;179:1;176;169:12;194:198;;306:2;294:9;285:7;281:23;277:32;274:2;;;327:6;319;312:22;274:2;355:31;376:9;355:31;:::i;:::-;345:41;264:128;-1:-1:-1;;;264:128:1:o;397:717::-;;;;545:2;533:9;524:7;520:23;516:32;513:2;;;566:6;558;551:22;513:2;594:31;615:9;594:31;:::i;:::-;584:41;;676:2;665:9;661:18;648:32;699:18;740:2;732:6;729:14;726:2;;;761:6;753;746:22;726:2;804:6;793:9;789:22;779:32;;849:7;842:4;838:2;834:13;830:27;820:2;;876:6;868;861:22;820:2;921;908:16;947:2;939:6;936:14;933:2;;;968:6;960;953:22;933:2;1018:7;1013:2;1004:6;1000:2;996:15;992:24;989:37;986:2;;;1044:6;1036;1029:22;986:2;1080;1076;1072:11;1062:21;;1102:6;1092:16;;;;;503:611;;;;;:::o;1119:273::-;;1302:6;1294;1289:3;1276:33;1328:16;;1353:15;;;1328:16;1266:126;-1:-1:-1;1266:126:1:o;1397:203::-;-1:-1:-1;;;;;1561:32:1;;;;1543:51;;1531:2;1516:18;;1498:102::o;1605:304::-;-1:-1:-1;;;;;1835:15:1;;;1817:34;;1887:15;;1882:2;1867:18;;1860:43;1767:2;1752:18;;1734:175::o;1914:422::-;2116:2;2098:21;;;2155:2;2135:18;;;2128:30;2194:34;2189:2;2174:18;;2167:62;2265:28;2260:2;2245:18;;2238:56;2326:3;2311:19;;2088:248::o;2341:418::-;2543:2;2525:21;;;2582:2;2562:18;;;2555:30;2621:34;2616:2;2601:18;;2594:62;-1:-1:-1;;;2687:2:1;2672:18;;2665:52;2749:3;2734:19;;2515:244::o;2764:470::-;2966:2;2948:21;;;3005:2;2985:18;;;2978:30;3044:34;3039:2;3024:18;;3017:62;3115:34;3110:2;3095:18;;3088:62;-1:-1:-1;;;3181:3:1;3166:19;;3159:33;3224:3;3209:19;;2938:296::o

Swarm Source

ipfs://e4500d5aa93149b35eae3e61547d0eaada4754490a27f7f2b3eec3ef68093d3b
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.