Contract 0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb2 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x65221e426ebb7591c4c79f0aed9d1ce0caa0362d8a8541c3aaaef0e533745e56Approve111402002021-09-22 15:45:471 day 20 hrs ago0x3721c97e0282a1fba7dab91fd570813fb4e9df2a IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00008424
0x444a6f13671a14f549a09bb092fd29468685ca3ee14e4bcabf283c0bc000e43eApprove111371752021-09-22 13:14:171 day 23 hrs ago0xd9f696e8231f08ada61d00a59da3c060bec98f1c IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.000283392
0xac8d9e6e39d9b5636ede9ff51287bfc58016d1fe2f8f9265cb14ce0fd011eae2Transfer111332202021-09-22 9:56:172 days 2 hrs ago0xc8bd9d35a3fea4868797a5b5d7f89fb58ade841e IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00020149
0x4651019d60261a412c3dbb553bcfa46b7be31045e0c2adb505bb225a2870c45eApprove110267962021-09-18 16:42:225 days 19 hrs ago0xfa516e1f750403ad31eab0dab3370becd0703fcd IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00015972
0x706cfc4794694584ca42c338abc3bdaeafc9d67dac9c12f4790a5b66ff9993a0Approve110243232021-09-18 14:38:165 days 21 hrs ago0xfa516e1f750403ad31eab0dab3370becd0703fcd IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023466
0x89378b11f54e87a70f42f3814ce4b1a65825169049be76e38b54c2490d72a01aApprove110243042021-09-18 14:37:195 days 21 hrs ago0x7e2a933d46437b03dd1b0a3b7cf7d0325feb7af4 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023472
0xd1ce26e9babff8768c65edaf3dbf1107e3bd8ec048d98f8a3fcc5f62272df160Approve110241402021-09-18 14:29:075 days 22 hrs ago0xc1ddc2d5cab3db0f7241e6950651696ed072ad01 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023472
0x1dcf491644cf1e90da42f24598c3c2e804ee7e248f5f320954ded1e588687a72Transfer110240212021-09-18 14:23:105 days 22 hrs ago0x7e2a933d46437b03dd1b0a3b7cf7d0325feb7af4 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00020149
0x18e617994fe773e2ae4ae706b5a7c5f839ac07d37b6f8668d111867fb2bbfcffTransfer110235152021-09-18 13:56:425 days 22 hrs ago0xe74a3a4a59bb63044e2f61e159be6a0f1197da81 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00020161
0xf4cd6c7e51ad6eda3245273bdd27f30a5991c218e893b3e8ede49a5f7e4e97c6Approve110234212021-09-18 13:52:005 days 22 hrs ago0xdf7b69c22b96f2c7e07687971551021058260451 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023472
0x716e630c3cbd518f58086da56f2be4b8370d4d2f481140078fcac178655bbb44Approve110164182021-09-18 8:01:196 days 4 hrs ago0x85394b1376ed5622d0ce353bee21683a8f1d15df IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023472
0xe4b8956fa1aabf090e5f86053a10c8ac26983882fda3ceaeb5f233cc7e6ed23aTransfer110164042021-09-18 8:00:376 days 4 hrs ago0x49d157bb03eb8cef3ca6f68c20af2deae10c11c0 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00027661
0x19194b8d43af3a8a40cb9cdcd23a9f0739a0d0553a2c0701a1ed370b3021fbebTransfer110163892021-09-18 7:59:526 days 4 hrs ago0x202113f07fd852606c5d79615f5a7d91a2bd67f4 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00020167
0xe4e494f9052facc4698d9cd9e8c80965c1c046444db1a1b4f7317ac4fa419f05Approve110127262021-09-18 4:55:436 days 7 hrs ago0x52745f5226bfad52dcfe1e03abd8863708976c7d IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x44f7ebbfebc284875ac6991ed63eb0832817dd87867a64decf31440faa607704Approve110126552021-09-18 4:52:106 days 7 hrs ago0x379cc714c19e9c8c1f151684fc41dbb75589b8f2 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x708c9bf666b957de054973ea9b33752187972f0e658edbd06b3965e8f780d858Transfer109985802021-09-17 17:08:076 days 19 hrs ago0xfa516e1f750403ad31eab0dab3370becd0703fcd IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00020161
0x7133704a0e80ae20a380d91578a55362cb54ee336cb5c0de1601115d6cd91fa5Approve109822862021-09-17 3:32:097 days 9 hrs ago0xb60038990420874df797787ae20fe282b57c0015 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0xe4c15f305789e6763a9a267284d2d91b1ca4a31f9a160d35b37ee9a80d4243ddApprove109677282021-09-16 15:23:247 days 21 hrs ago0x648b435bae58e101f5146c5f36d37dd9219c76da IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0xd041162d569d1816b1d71aca4693f70d5ac91d39d3078d62ce85dda873045a80Approve109673582021-09-16 15:04:397 days 21 hrs ago0x2da7ecefd6a0e9e83d5674de4b3c6bb8e3a23f68 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x1ae8eaa0642e9a6c61e74d2a1ce08a7f2e742103affc62d9b5c2615e43c5a24aApprove109576822021-09-16 6:58:508 days 5 hrs ago0xe0ae3039813cb00348f9059364502cfb39e74f33 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x2428aeb502d40f0a9dafad6d6d0a24eed58c35a121428734b08c5620d97368b5Approve109439892021-09-15 19:34:028 days 17 hrs ago0x7dae2cc489473ae2901e9b39be9f0d1c826a4c16 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x19120259155155fae986770b268772ac8d5e6892d3fdf097b92359a779963d9fApprove109071862021-09-14 12:45:149 days 23 hrs ago0x3bc54e664565e2130eb7a6f9e7a2566db79fe73f IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x67bf8e8acf518dd3bf6911644d08d15d30b6cf9782a82259f1d860c688d8e809Approve109045512021-09-14 10:33:0410 days 2 hrs ago0x72de410b860f66ddacacacd852058bfce53f626e IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x4f4e73fba6e78fd76f550cfbfd9d69844ca00f3e83bf8bd74f2cfe3a83b32510Approve109045202021-09-14 10:31:3110 days 2 hrs ago0x72de410b860f66ddacacacd852058bfce53f626e IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.00023616
0x81aaff5ead39d7eb08b46c40f1a1d3c9d7d786bdd0be4b7ca23b91612eeb0e45Approve108838622021-09-13 17:17:4410 days 19 hrs ago0xb6bfbfe14c2237fd7eef04de6b7167869da72772 IN  0x07aaa29e63ffeb2ebf59b33ee61437e1a91a3bb20 BNB0.0001410048
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

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

Contract Name:
AdminUpgradeabilityProxy

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 8: 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 8: 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);
    }

    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 3 of 8: 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;
    }
}

File 4 of 8: Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 * 
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 * 
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        // extcodesize checks the size of the code stored in an address, and
        // address returns the current address. Since the code is still not
        // deployed when running a constructor, any checks on its code size will
        // yield zero, making it an effective way to detect if a contract is
        // under construction or not.
        address self = address(this);
        uint256 cs;
        // solhint-disable-next-line no-inline-assembly
        assembly { cs := extcodesize(self) }
        return cs == 0;
    }
}

File 5 of 8: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./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 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 6 of 8: 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 7 of 8: ProxyAdmin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./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 8 of 8: UpgradeabilityProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './Proxy.sol';
import './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)
    }
  }
}

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

6080604052604051610cb7380380610cb78339818101604052606081101561002657600080fd5b8101908080519060200190929190805190602001909291908051604051939291908464010000000082111561005a57600080fd5b8382019150602082018581111561007057600080fd5b825186600182028301116401000000008211171561008d57600080fd5b8083526020830192505050908051906020019080838360005b838110156100c15780820151818401526020810190506100a6565b50505050905090810190601f1680156100ee5780820380516001836020036101000a031916815260200191505b506040525050508281600160405180807f656970313936372e70726f78792e696d706c656d656e746174696f6e00000000815250601c019050604051809103902060001c0360001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b1461016157fe5b610170826102bf60201b60201c565b60008151111561023c5760008273ffffffffffffffffffffffffffffffffffffffff16826040518082805190602001908083835b602083106101c757805182526020820191506020810190506020830392506101a4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610227576040519150601f19603f3d011682016040523d82523d6000602084013e61022c565b606091505b505090508061023a57600080fd5b505b5050600160405180807f656970313936372e70726f78792e61646d696e000000000000000000000000008152506013019050604051809103902060001c0360001b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b146102a857fe5b6102b78261035660201b60201c565b505050610398565b6102d28161038560201b6105be1760201c565b610327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180610c7c603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b90508181555050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b90508181555050565b600080823b905060008111915050919050565b6108d5806103a76000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100675780634f1ef286146100b85780635c60da1b146101515780638f283970146101a8578063f851a440146101f95761005d565b3661005d5761005b610250565b005b610065610250565b005b34801561007357600080fd5b506100b66004803603602081101561008a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061026a565b005b61014f600480360360408110156100ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561010b57600080fd5b82018360208201111561011d57600080fd5b8035906020019184600183028401116401000000008311171561013f57600080fd5b90919293919293905050506102bf565b005b34801561015d57600080fd5b50610166610395565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101b457600080fd5b506101f7600480360360208110156101cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ed565b005b34801561020557600080fd5b5061020e610566565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102586105d1565b610268610263610667565b610698565b565b6102726106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102b3576102ae816106ef565b6102bc565b6102bb610250565b5b50565b6102c76106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561038757610303836106ef565b60008373ffffffffffffffffffffffffffffffffffffffff168383604051808383808284378083019250505092505050600060405180830381855af49150503d806000811461036e576040519150601f19603f3d011682016040523d82523d6000602084013e610373565b606091505b505090508061038157600080fd5b50610390565b61038f610250565b5b505050565b600061039f6106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103e1576103da610667565b90506103ea565b6103e9610250565b5b90565b6103f56106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561055a57600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061082f6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104d76106be565b82604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16105558161073e565b610563565b610562610250565b5b50565b60006105706106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105b2576105ab6106be565b90506105bb565b6105ba610250565b5b90565b600080823b905060008111915050919050565b6105d96106be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561065d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806107fd6032913960400191505060405180910390fd5b61066561076d565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e80600081146106b9573d6000f35b3d6000fd5b6000807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b9050805491505090565b6106f88161076f565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b90508181555050565b565b610778816105be565b6107cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180610865603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050818155505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220b0503c23d64d00872f309af6ebc439401f4a3a5289bbb698fa4e5aabd747642664736f6c6343000608003343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000000000000000000064f1fee66ea37f4eff5d7e3de3dc270a0af9c92b0000000000000000000000009cee40fe28fc9de2195dc611291ae810c6b265a800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000024fe4b84df000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

454:4099:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;631:11:5;:9;:11::i;:::-;454:4099:1;;495:11:5;:9;:11::i;:::-;454:4099:1;3027:103;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3027:103:1;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;3027:103:1;;;;;;;;;;;;;;;;;;;:::i;:::-;;3647:221;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;3647:221:1;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;3647:221:1;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;3647:221:1;;;;;;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;3647:221:1;;;;;;;;;;;;:::i;:::-;;2347:96;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2347:96:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2619:224;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2619:224:1;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;2619:224:1;;;;;;;;;;;;;;;;;;;:::i;:::-;;2205:78;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2205:78:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2158:90:5;2194:15;:13;:15::i;:::-;2215:28;2225:17;:15;:17::i;:::-;2215:9;:28::i;:::-;2158:90::o;3027:103:1:-;2082:8;:6;:8::i;:::-;2068:22;;:10;:22;;;2064:76;;;3096:29:::1;3107:17;3096:10;:29::i;:::-;2064:76:::0;;;2122:11;:9;:11::i;:::-;2064:76;3027:103;:::o;3647:221::-;2082:8;:6;:8::i;:::-;2068:22;;:10;:22;;;2064:76;;;3752:29:::1;3763:17;3752:10;:29::i;:::-;3788:12;3805:17;:30;;3836:4;;3805:36;;;;;30:3:-1;22:6;14;1:33;57:3;49:6;45:16;35:26;;3805:36:1;;;;;;;;;;;;;;;;;;;;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;;3787:54:1;;;3855:7;3847:16;;12:1:-1;9::::0;2:12:::1;3847:16:1;2100:1;2064:76:::0;;;2122:11;:9;:11::i;:::-;2064:76;3647:221;;;:::o;2347:96::-;2399:7;2082:8;:6;:8::i;:::-;2068:22;;:10;:22;;;2064:76;;;2421:17:::1;:15;:17::i;:::-;2414:24;;2064:76:::0;;;2122:11;:9;:11::i;:::-;2064:76;2347:96;:::o;2619:224::-;2082:8;:6;:8::i;:::-;2068:22;;:10;:22;;;2064:76;;;2709:1:::1;2689:22;;:8;:22;;;;2681:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2781:32;2794:8;:6;:8::i;:::-;2804;2781:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2819:19;2829:8;2819:9;:19::i;:::-;2064:76:::0;;;2122:11;:9;:11::i;:::-;2064:76;2619:224;:::o;2205:78::-;2248:7;2082:8;:6;:8::i;:::-;2068:22;;:10;:22;;;2064:76;;;2270:8:::1;:6;:8::i;:::-;2263:15;;2064:76:::0;;;2122:11;:9;:11::i;:::-;2064:76;2205:78;:::o;726:413:0:-;786:4;989:12;1098:7;1086:20;1078:28;;1131:1;1124:4;:8;1117:15;;;726:413;;;:::o;4377:174:1:-;4456:8;:6;:8::i;:::-;4442:22;;:10;:22;;;;4434:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4525:21;:19;:21::i;:::-;4377:174::o;1818:165:7:-;1877:12;1897;1633:66;1912:19;;1897:34;;1968:4;1962:11;1954:19;;1946:33;;:::o;1064:743:5:-;1366:14;1363:1;1360;1347:34;1562:1;1559;1543:14;1540:1;1524:14;1517:5;1504:60;1626:16;1623:1;1620;1605:38;1658:6;1718:1;1713:38;;;;1778:16;1775:1;1768:27;1713:38;1732:16;1729:1;1722:27;3917:136:1;3958:11;3977:12;1783:66;3992:10;;3977:25;;4038:4;4032:11;4025:18;;4017:32;;:::o;2118:142:7:-;2180:37;2199:17;2180:18;:37::i;:::-;2237:17;2228:27;;;;;;;;;;;;2118:142;:::o;4169:133:1:-;4221:12;1783:66;4236:10;;4221:25;;4283:8;4277:4;4270:22;4262:36;;:::o;2016:47:5:-;:::o;2397:285:7:-;2475:37;2494:17;2475:18;:37::i;:::-;2467:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2583:12;1633:66;2598:19;;2583:34;;2654:17;2648:4;2641:31;2633:45;;:::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
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.