Contract 0xbfb083840b0507670b92456264164e5fecd0430b

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8fea115a0ae1aa9bfc749b22c16266253aa19ee396c82aa836900e14d662e3b00x893d242d166067712022-06-28 0:44:4035 secs ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01232707525
0x6d45a2ce0f3bc237c3e508df78e6d4fe27ca804d88257dd3aeea7f67b2796fe00x893d242d166067602022-06-28 0:44:1857 secs ago0x64fcede7cb51630f0c43197d43218fe26429c817 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01151802525
0x07262c4a148024fa0d69ea0b8c495ec9ae844e2bf83adc46d1ae05a21515e9100x893d242d166067592022-06-28 0:44:1659 secs ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01661232525
0x8f9ab4d08c3af0ef68ee1760b649b85fda4bf7ea970de238444cc8884f6611410x893d242d166067582022-06-28 0:44:131 min ago0x64fcede7cb51630f0c43197d43218fe26429c817 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01161227525
0x9119ceff4cadbbcd03b985aa97039889731e80e4862e709e69f3b6db0685ab1d0xa8c1b0bc166067562022-06-28 0:44:101 min ago0x64fcede7cb51630f0c43197d43218fe26429c817 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.009436125
0x1ab0819f50ebe0d4d192454b4f1f7f42dba3c74cf8b34b86f43d051a6e7e24940xa8c1b0bc166067522022-06-28 0:44:031 min ago0x64fcede7cb51630f0c43197d43218fe26429c817 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.00943542525
0x197a35871dc2df86136eb3da689504933625bbb9fa953e9f49d27e85213a6bb50x893d242d166067512022-06-28 0:44:011 min ago0xc9cf124230d87afe896bddf1cde4489a616a92b5 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01161257525
0xa235983b8a6cf8671b9c468f4e385e42ffe272bc0fcaa643bf5db0c7cfed52080x893d242d166067492022-06-28 0:43:561 min ago0xc9cf124230d87afe896bddf1cde4489a616a92b5 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01151772525
0x94291bdd37abd809d611a097d58e221562b8f47169fedc0ca751f6feeb35af680xa8c1b0bc166067472022-06-28 0:43:521 min ago0xc9cf124230d87afe896bddf1cde4489a616a92b5 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.00935942525
0x8f0ab73d92beaecf3a5f5898e60fbb9abb3e470090ab2dfd91bc042a174bb3770xa8c1b0bc166067442022-06-28 0:43:461 min ago0xc9cf124230d87afe896bddf1cde4489a616a92b5 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.00943542525
0x5cbb09baa413db2e2305cd1352a565147ea8d90da7ddb6e71dd5c2ace6a2677a0x893d242d166066942022-06-28 0:42:073 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01399072525
0x571ca81bd90960abfb42cfa451dc912523b2b9aa60cd144cb4347b946b44af0b0x893d242d166066752022-06-28 0:41:293 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01566707525
0x7c43e0a2dded82801fc583a9b77f7e41f99a66bb7ffd4bea6ae2d7c8c949c73e0x893d242d166066632022-06-28 0:41:064 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01536162525
0xe974c3aaa6710f8d45cb0b3eedd03225e9de1a539bb2adbdef3b4b7c6e428c290x893d242d166066592022-06-28 0:40:584 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.0148340525
0x2cb2145fe193d8192fb4f8791e43ecf4775fb37181082231dd65784694ae8b730x893d242d166066582022-06-28 0:40:564 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.0141132525
0x9f8cdc29599d64154de410443e5f7ed82ce97e6df144181f2f725970855f752f0x893d242d166066562022-06-28 0:40:534 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.0149456525
0x795ca20ab6feebc0499f033f173050f4dff0ded4fcd48bf274e93cb44df742a00x893d242d166066562022-06-28 0:40:534 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01315887525
0xd467e52630a74f8bf3a36be894ebe3c276f70fbb06efd7e0e28005e97d40ab0a0x893d242d166066122022-06-28 0:39:255 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01525032525
0x85af2d652f58c0aed77c8588b206ff51825516a915ae1b3a58f0508f1144c1d80x893d242d166066112022-06-28 0:39:225 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01336022525
0xcfd5708f7c3a86c6c86254f8db4caf97255cd70d4adc0aeaaf2228bc6c2c58180x893d242d166066102022-06-28 0:39:205 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01232837525
0xf093a9c84a955faf2e026c24bacd53af3ae5f1d180ae417044bbe8b945dc711c0x893d242d166066092022-06-28 0:39:175 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.0149456525
0x840b50d8e1ad527c1397c478e16d5df22ca957d1f1920bd11a1f27eb77170cba0x893d242d166065962022-06-28 0:38:496 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.0127058525
0x76b3f0dfea4d087eb10aec07def70c7bed6f0c879ef4747207565b457391ad860x893d242d166065962022-06-28 0:38:496 mins ago0x8710f271f9fcbac8a0a9e3f8a5be465dd453f5aa IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01452987525
0x388c1d21b6c9c4336842cccbfaa337964cb7171d265465ad5f60fad42ccf33110x893d242d166065942022-06-28 0:38:456 mins ago0x24626f0c30dc943375647b954d1679dcc4474259 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01198902525
0x3caa42acdcc4346eb1c3cc5a0bfa8d96f76543a6c9b17d81b31d28c4e7aab68a0x893d242d166065732022-06-28 0:38:087 mins ago0x64fcede7cb51630f0c43197d43218fe26429c817 IN  0xbfb083840b0507670b92456264164e5fecd0430b0 AVAX0.01151802525
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdminUpgradeabilityProxy

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 7 : AdminUpgradeabilityProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './UpgradeabilityProxy.sol';

/**
 * @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) UpgradeabilityProxy(_logic, _data) public payable {
    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) payable external 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 override virtual {
    require(msg.sender != _admin(), "Cannot call fallback function from the proxy admin");
    super._willFallback();
  }
}

File 2 of 7 : UpgradeabilityProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './Proxy.sol';
import '@openzeppelin/contracts/utils/Address.sol';

/**
 * @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 override view 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)
    }
  }
}

File 3 of 7 : Proxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @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 () payable external {
    _fallback();
  }

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

  /**
   * @return The Address of the implementation.
   */
  function _implementation() internal virtual view 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());
  }
}

File 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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.4._
     */
    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.4._
     */
    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);
            }
        }
    }
}

File 5 of 7 : ProxyAdmin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./AdminUpgradeabilityProxy.sol";

/**
 * @title ProxyAdmin
 * @dev This contract is the admin of a proxy, and is in charge
 * of upgrading it as well as transferring it to another admin.
 */
contract ProxyAdmin is Ownable {
  
  /**
   * @dev Returns the current implementation of a proxy.
   * This is needed because only the proxy admin can query it.
   * @return The address of the current implementation of the proxy.
   */
  function getProxyImplementation(AdminUpgradeabilityProxy proxy) public view returns (address) {
    // We need to manually run the static call since the getter cannot be flagged as view
    // bytes4(keccak256("implementation()")) == 0x5c60da1b
    (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b");
    require(success);
    return abi.decode(returndata, (address));
  }

  /**
   * @dev Returns the admin of a proxy. Only the admin can query it.
   * @return The address of the current admin of the proxy.
   */
  function getProxyAdmin(AdminUpgradeabilityProxy proxy) public view returns (address) {
    // We need to manually run the static call since the getter cannot be flagged as view
    // bytes4(keccak256("admin()")) == 0xf851a440
    (bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440");
    require(success);
    return abi.decode(returndata, (address));
  }

  /**
   * @dev Changes the admin of a proxy.
   * @param proxy Proxy to change admin.
   * @param newAdmin Address to transfer proxy administration to.
   */
  function changeProxyAdmin(AdminUpgradeabilityProxy proxy, address newAdmin) public onlyOwner {
    proxy.changeAdmin(newAdmin);
  }

  /**
   * @dev Upgrades a proxy to the newest implementation of a contract.
   * @param proxy Proxy to be upgraded.
   * @param implementation the address of the Implementation.
   */
  function upgrade(AdminUpgradeabilityProxy proxy, address implementation) public onlyOwner {
    proxy.upgradeTo(implementation);
  }

  /**
   * @dev Upgrades a proxy to the newest implementation of a contract and forwards a function call to it.
   * This is useful to initialize the proxied contract.
   * @param proxy Proxy to be upgraded.
   * @param implementation Address of the 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 upgradeAndCall(AdminUpgradeabilityProxy proxy, address implementation, bytes memory data) payable public onlyOwner {
    proxy.upgradeToAndCall{value: msg.value}(implementation, data);
  }
}

File 6 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 7 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

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"}]

6080604052604051610cb7380380610cb78339818101604052606081101561002657600080fd5b8101908080519060200190929190805190602001909291908051604051939291908464010000000082111561005a57600080fd5b8382019150602082018581111561007057600080fd5b825186600182028301116401000000008211171561008d57600080fd5b8083526020830192505050908051906020019080838360005b838110156100c15780820151818401526020810190506100a6565b50505050905090810190601f1680156100ee5780820380516001836020036101000a031916815260200191505b506040525050508281600160405180807f656970313936372e70726f78792e696d706c656d656e746174696f6e00000000815250601c019050604051809103902060001c0360001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b1461016157fe5b610170826102bf60201b60201c565b60008151111561023c5760008273ffffffffffffffffffffffffffffffffffffffff16826040518082805190602001908083835b602083106101c757805182526020820191506020810190506020830392506101a4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610227576040519150601f19603f3d011682016040523d82523d6000602084013e61022c565b606091505b505090508061023a57600080fd5b505b5050600160405180807f656970313936372e70726f78792e61646d696e000000000000000000000000008152506013019050604051809103902060001c0360001b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b146102a857fe5b6102b78261035660201b60201c565b505050610398565b6102d28161038560201b6105be1760201c565b610327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180610c7c603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b90508181555050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b90508181555050565b600080823b905060008111915050919050565b6108d5806103a76000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100675780634f1ef286146100b85780635c60da1b146101515780638f283970146101a8578063f851a440146101f95761005d565b3661005d5761005b610250565b005b610065610250565b005b34801561007357600080fd5b506100b66004803603602081101561008a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061026a565b005b61014f600480360360408110156100ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561010b57600080fd5b82018360208201111561011d57600080fd5b8035906020019184600183028401116401000000008311171561013f57600080fd5b90919293919293905050506102bf565b005b34801561015d57600080fd5b50610166610395565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101b457600080fd5b506101f7600480360360208110156101cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ed565b005b34801561020557600080fd5b5061020e610566565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102586105d1565b610268610263610667565b610698565b565b6102726106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102b3576102ae816106ef565b6102bc565b6102bb610250565b5b50565b6102c76106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561038757610303836106ef565b60008373ffffffffffffffffffffffffffffffffffffffff168383604051808383808284378083019250505092505050600060405180830381855af49150503d806000811461036e576040519150601f19603f3d011682016040523d82523d6000602084013e610373565b606091505b505090508061038157600080fd5b50610390565b61038f610250565b5b505050565b600061039f6106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103e1576103da610667565b90506103ea565b6103e9610250565b5b90565b6103f56106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561055a57600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061082f6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104d76106be565b82604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16105558161073e565b610563565b610562610250565b5b50565b60006105706106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105b2576105ab6106be565b90506105bb565b6105ba610250565b5b90565b600080823b905060008111915050919050565b6105d96106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561065d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806107fd6032913960400191505060405180910390fd5b61066561076d565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e80600081146106b9573d6000f35b3d6000fd5b6000807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b9050805491505090565b6106f88161076f565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b90508181555050565b565b610778816105be565b6107cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180610865603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050818155505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220b0503c23d64d00872f309af6ebc439401f4a3a5289bbb698fa4e5aabd747642664736f6c6343000608003343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000000000000000000a59160e249095bbbb50bdd5afd94a05aa4bea5990000000000000000000000009c7286e3cc6058bc4116ec3d52e1c9d67f0727ba000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000841f8d519d000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000080ce46804010c03387a13e27729c5fbb6a30910500000000000000000000000000000000000000000000000000000000

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

000000000000000000000000a59160e249095bbbb50bdd5afd94a05aa4bea5990000000000000000000000009c7286e3cc6058bc4116ec3d52e1c9d67f0727ba000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000841f8d519d000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000080ce46804010c03387a13e27729c5fbb6a30910500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _logic (address): 0xa59160e249095bbbb50bdd5afd94a05aa4bea599
Arg [1] : _admin (address): 0x9c7286e3cc6058bc4116ec3d52e1c9d67f0727ba
Arg [2] : _data (bytes): 0x1f8d519d000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000080ce46804010c03387a13e27729c5fbb6a309105

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000a59160e249095bbbb50bdd5afd94a05aa4bea599
Arg [1] : 0000000000000000000000009c7286e3cc6058bc4116ec3d52e1c9d67f0727ba
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000084
Arg [4] : 1f8d519d00000000000000000000000000000000000000000000000001634578
Arg [5] : 5d8a000000000000000000000000000000000000000000000000000000de0b6b
Arg [6] : 3a764000000000000000000000000000000000000000000000000000002c68af
Arg [7] : 0bb1400000000000000000000000000080ce46804010c03387a13e27729c5fbb
Arg [8] : 6a30910500000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

468:4220:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;656:11:4;:9;:11::i;:::-;468:4220:3;;512:11:4;:9;:11::i;:::-;468:4220:3;3114:105;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3114:105:3;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;3114:105:3;;;;;;;;;;;;;;;;;;;:::i;:::-;;3747:225;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;3747:225:3;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;3747:225:3;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;3747:225:3;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3747:225:3;;;;;;;;;;;;:::i;:::-;;2414:98;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2414:98:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2695:228;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2695:228:3;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;2695:228:3;;;;;;;;;;;;;;;;;;;:::i;:::-;;2265:80;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2265:80:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2230:93:4;2267:15;:13;:15::i;:::-;2289:28;2299:17;:15;:17::i;:::-;2289:9;:28::i;:::-;2230:93::o;3114:105:3:-;2132:8;:6;:8::i;:::-;2118:22;;:10;:22;;;2114:80;;;3184:29:::1;3195:17;3184:10;:29::i;:::-;2114:80:::0;;;2175:11;:9;:11::i;:::-;2114:80;3114:105;:::o;3747:225::-;2132:8;:6;:8::i;:::-;2118:22;;:10;:22;;;2114:80;;;3853:29:::1;3864:17;3853:10;:29::i;:::-;3890:12;3907:17;:30;;3938:4;;3907:36;;;;;30:3:-1;22:6;14;1:33;57:3;49:6;45:16;35:26;;3907:36:3;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;3889:54:3;;;3958:7;3950:16;;12:1:-1;9::::0;2:12:::1;3950:16:3;2151:1;2114:80:::0;;;2175:11;:9;:11::i;:::-;2114:80;3747:225;;;:::o;2414:98::-;2466:7;2132:8;:6;:8::i;:::-;2118:22;;:10;:22;;;2114:80;;;2489:17:::1;:15;:17::i;:::-;2482:24;;2114:80:::0;;;2175:11;:9;:11::i;:::-;2114:80;2414:98;:::o;2695:228::-;2132:8;:6;:8::i;:::-;2118:22;;:10;:22;;;2114:80;;;2786:1:::1;2766:22;;:8;:22;;;;2758:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2859:32;2872:8;:6;:8::i;:::-;2882;2859:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2898:19;2908:8;2898:9;:19::i;:::-;2114:80:::0;;;2175:11;:9;:11::i;:::-;2114:80;2695:228;:::o;2265:80::-;2308:7;2132:8;:6;:8::i;:::-;2118:22;;:10;:22;;;2114:80;;;2331:8:::1;:6;:8::i;:::-;2324:15;;2114:80:::0;;;2175:11;:9;:11::i;:::-;2114:80;2265;:::o;726:413:1:-;786:4;989:12;1098:7;1086:20;1078:28;;1131:1;1124:4;:8;1117:15;;;726:413;;;:::o;4508:177:3:-;4588:8;:6;:8::i;:::-;4574:22;;:10;:22;;;;4566:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4658:21;:19;:21::i;:::-;4508:177::o;1894:170:6:-;1953:12;1974;1703:66;1989:19;;1974:34;;2047:4;2041:11;2033:19;;2024:35;;:::o;1103:762:4:-;1410:14;1407:1;1404;1391:34;1610:1;1607;1591:14;1588:1;1572:14;1565:5;1552:60;1677:16;1674:1;1671;1656:38;1711:6;1773:1;1768:38;;;;1834:16;1831:1;1824:27;1768:38;1787:16;1784:1;1777:27;4026:141:3;4067:11;4087:12;1825:66;4102:10;;4087:25;;4150:4;4144:11;4137:18;;4128:34;;:::o;2205:145:6:-;2268:37;2287:17;2268:18;:37::i;:::-;2326:17;2317:27;;;;;;;;;;;;2205:145;:::o;4289:139:3:-;4342:12;1825:66;4357:10;;4342:25;;4407:8;4401:4;4394:22;4385:38;;:::o;2081:48:4:-;:::o;2493:293:6:-;2572:37;2591:17;2572:18;:37::i;:::-;2564:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2682:12;1703:66;2697:19;;2682:34;;2756:17;2750:4;2743:31;2734:47;;:::o

Swarm Source

ipfs://b0503c23d64d00872f309af6ebc439401f4a3a5289bbb698fa4e5aabd7476426
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.