Contract 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago0x9250fe28376afdaf2c18ee97ee3b71cac2a8f522 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00551176
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago0xf2cf1d5e13bf7da809758985974b27dc4c58693f IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.03006904
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago0x765c91997511d6baa28862a5dc5d5ad651b106ea IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00551176
0xd7869d8370badfe7e0018abb6c6dec99c6f58919deae27fad5b58c75e136708d43223352021-01-26 7:39:1913 hrs 52 mins ago0x0603cd787f45d1b830ced5acaeecdab661b267ca IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00098528
0xa9f6a4fb71f4320e7cbc377631c9522883b9f0c5f64492bb372f530d725ad3c843223072021-01-26 7:37:5513 hrs 53 mins ago0x0603cd787f45d1b830ced5acaeecdab661b267ca IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00098528
0x516a30700a02285918c9e494b4f5450ddbc08391521df43fd71acfb9731f33b643213992021-01-26 6:52:3114 hrs 39 mins ago0x251b251e43dfb28d677ff2c8e08514a7c401bc23 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00239538
0x1efdc768f31236237108152c16e52c5a87ba641259d1f2c4a732afaf5a1df79643213942021-01-26 6:52:1614 hrs 39 mins ago0x251b251e43dfb28d677ff2c8e08514a7c401bc23 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0063837
0xbd609be76a80bd24dcbc840fa51857c4d5d487bb649433a4d00054e70fee220743211652021-01-26 6:40:4914 hrs 51 mins ago0xef7336f8cc4fd68e5dc67d2b233750d35c2be0d4 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00492912
0x19b84e7f018a175978c36671f74a11293f46db703f23c31fd8004b55b0edf6c643210372021-01-26 6:34:2514 hrs 57 mins ago0x0603cd787f45d1b830ced5acaeecdab661b267ca IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0.001 BNB0.03045778
0xca9e4d6d35db9744accca260be1d5e046505ef155b0254abedaea198d8bc32dd43207322021-01-26 6:19:1015 hrs 12 mins ago0x0603cd787f45d1b830ced5acaeecdab661b267ca IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00701124
0xfce6b9fe05a160b8510f9b80543e8645de64b033e8f3296ae2af7beadfd79bf143175372021-01-26 3:39:2417 hrs 52 mins ago0xa67f50e9b91069a996c9d33dfc38ec1a725a3599 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00105124
0x2944ad026f7e4b59718b849595e3a355a30c6368201938831ba54db0a6a71df243093552021-01-25 20:50:181 day 41 mins ago0xd87d16affe1f58c901b51785f4c66d511a71a595 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0023657
0x8de1500a2742010652a3de8cf2347898f6feda94df92d423511e6338dca8f12743051962021-01-25 17:22:201 day 4 hrs ago0xd7287c5e60453bdbe9c9da42113f6c3d498578c6 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0023657
0xda068de2baa717d8bb4c8c440b6c68a8830e1ebb02171d63dea8a8dc3f8c530d43019712021-01-25 14:41:051 day 6 hrs ago0xb1682a8bde9ad01a85a63cf2223bb1025523ba45 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0300688
0x6a7e2c23844dfd3257f3a4cbe9fab8b0d2e6c6807fa779b3ddbf52e31b6eef4142953302021-01-25 9:09:021 day 12 hrs ago0x11c641a959e703f3130a7b70a33a0fec814ff486 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0049296
0x2f002eab68b78680edd7a87a2e533f9c16b4808b0d3b14fafd6d72b718061b3d42952882021-01-25 9:06:561 day 12 hrs ago0x0fe8c779270ad17f31b189fde8eeb66fd5c8be8c IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0023657
0x9d13df96182cbaa57f9379be2f634a2887f2897912f600768ee7323412a57dfb42950512021-01-25 8:55:051 day 12 hrs ago0x0fe8c779270ad17f31b189fde8eeb66fd5c8be8c IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0023657
0x84ec278a806ad6eaef54b4a72c503b7a9677af7bb49afadb4700b19e7d5b293f42893882021-01-25 4:11:561 day 17 hrs ago0xfa1ce3611d09f0faf02b8da671f851e30c62093a IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00054526
0xbf38d8d2ca3dbecb01ce8fb25fc34219dbcf32c9c834d4105a4b42f4b0f0b3da42893402021-01-25 4:09:321 day 17 hrs ago0x0603cd787f45d1b830ced5acaeecdab661b267ca IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00701148
0x206af2937824f5a86d368027803f2e09ed01630e88542379f8d69546d28e30f742836872021-01-24 23:26:531 day 22 hrs ago0x259e82b1fdac9d7057fc09d6c3aaf5f6f0689d73 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00522936
0xa74a92051aa1cd47ff8ef598757e549c05db5c3ff38949de78581cb820a18f3742798452021-01-24 20:14:472 days 1 hr ago0x8474a0b51a8e9e77ab9446228554853a8e290635 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0008836
0x295f7817d1b1f685192baf02316a520c2b2ff647e28b16f83b3448178ebadc3042777652021-01-24 18:30:472 days 3 hrs ago0x8b7a6fec5c6638c1d667ef8126b457fec09376eb IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00522936
0x934cf6655bab51f7dc98d67fe67b225c918a079c4aeb71041d342637d84374b142769422021-01-24 17:49:382 days 3 hrs ago0xd87d16affe1f58c901b51785f4c66d511a71a595 IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.0023657
0x4035ce892295233876f6a92a7823321157c431ac4d5a29f2f4fb2ae865a09e7142742912021-01-24 15:37:042 days 5 hrs ago0xfa1ce3611d09f0faf02b8da671f851e30c62093a IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0 BNB0.00542752
0x8e4d4e1465e1ffdde302a64bb99d3d5d9ff1c46cdf7d5dad105885267281f7ae42742652021-01-24 15:35:462 days 5 hrs ago0xfa1ce3611d09f0faf02b8da671f851e30c62093a IN  0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d0.0001 BNB0.00647082
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x4bb7bd71c51ff9bfc9e934ab95ffc9ac9af004410 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d PancakeSwap: Router0 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0x1fd7e928cd5e87c7c3618e18de8c287232b19e99982c951842351ad392bfaf1643369692021-01-26 19:51:051 hr 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x87bad69b55f6354f27bef72c0a1c9c4807c1c1580 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x63c22013c9666b4b7fc1629dfe268e839df4206f0 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d PancakeSwap: Router0 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0xcb585d533e67b76e9be530bb5ce9aabfce2d0593ec7e11f238d677a622bb66d343331572021-01-26 16:40:284 hrs 51 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x87bad69b55f6354f27bef72c0a1c9c4807c1c1580 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0xfd4fca089d5d7fd6e9d1616c1de4be80ca039e1a0 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d Helmet Insure: HELMET Token0 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d PancakeSwap: Router0 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x021297e233550edba8e6487eb7c6696cfbb63b880 BNB
0x6217e6c4b95de88d3018c18f38ae62805b1335d7a92c5012fbef8a3db3c5b33f43285752021-01-26 12:51:208 hrs 40 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x87bad69b55f6354f27bef72c0a1c9c4807c1c1580 BNB
0xd7869d8370badfe7e0018abb6c6dec99c6f58919deae27fad5b58c75e136708d43223352021-01-26 7:39:1913 hrs 52 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x8c2736a82553ce40b11df2af43e44420f47bc60e0 BNB
0xd7869d8370badfe7e0018abb6c6dec99c6f58919deae27fad5b58c75e136708d43223352021-01-26 7:39:1913 hrs 52 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0x87bad69b55f6354f27bef72c0a1c9c4807c1c1580 BNB
0xa9f6a4fb71f4320e7cbc377631c9522883b9f0c5f64492bb372f530d725ad3c843223072021-01-26 7:37:5513 hrs 53 mins ago 0x4c899b7c39ded9a06a5db387f0b0722a18b8d70d 0xa1b5d61cf4466018ed1dfcddd3ca976aa25171ea0 BNB
[ Download CSV Export 
Loading

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

Contract Name:
InitializableAdminUpgradeabilityProxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2020-12-08
*/

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

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

  /**
   * @dev fallback implementation.
   * Extracted to enable manual triggering.
   */
  function _fallback() internal {
    if(OpenZeppelinUpgradesAddress.isContract(msg.sender) && msg.data.length == 0 && gasleft() <= 2300)         // for receive ETH only from other contract
        return;
    _willFallback();
    _delegate(_implementation());
  }
}


/**
 * @title BaseUpgradeabilityProxy
 * @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.
 */
abstract contract BaseUpgradeabilityProxy is Proxy {
  /**
   * @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() override internal 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(OpenZeppelinUpgradesAddress.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address");

    bytes32 slot = IMPLEMENTATION_SLOT;

    assembly {
      sstore(slot, newImplementation)
    }
  }
}


/**
 * @title BaseAdminUpgradeabilityProxy
 * @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 BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @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() virtual override internal {
    require(msg.sender != _admin(), "Cannot call fallback function from the proxy admin");
    //super._willFallback();
  }
}

interface IAdminUpgradeabilityProxyView {
  function admin() external view returns (address);
  function implementation() external view returns (address);
}


/**
 * @title UpgradeabilityProxy
 * @dev Extends BaseUpgradeabilityProxy with a constructor for initializing
 * implementation and init data.
 */
abstract contract UpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @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);
    }
  }  
  
  //function _willFallback() virtual override internal {
    //super._willFallback();
  //}
}


/**
 * @title AdminUpgradeabilityProxy
 * @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for 
 * initializing the implementation, admin, and init data.
 */
contract AdminUpgradeabilityProxy is BaseAdminUpgradeabilityProxy, 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 _admin, address _logic, bytes memory _data) UpgradeabilityProxy(_logic, _data) public payable {
    assert(ADMIN_SLOT == bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1));
    _setAdmin(_admin);
  }
  
  function _willFallback() override(Proxy, BaseAdminUpgradeabilityProxy) internal {
    super._willFallback();
  }
}


/**
 * @title InitializableUpgradeabilityProxy
 * @dev Extends BaseUpgradeabilityProxy with an initializer for initializing
 * implementation and init data.
 */
abstract contract InitializableUpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @dev Contract initializer.
   * @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.
   */
  function initialize(address _logic, bytes memory _data) public payable {
    require(_implementation() == address(0));
    assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1));
    _setImplementation(_logic);
    if(_data.length > 0) {
      (bool success,) = _logic.delegatecall(_data);
      require(success);
    }
  }  
}


/**
 * @title InitializableAdminUpgradeabilityProxy
 * @dev Extends from BaseAdminUpgradeabilityProxy with an initializer for 
 * initializing the implementation, admin, and init data.
 */
contract InitializableAdminUpgradeabilityProxy is BaseAdminUpgradeabilityProxy, InitializableUpgradeabilityProxy {
  /**
   * Contract initializer.
   * @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.
   */
  function initialize(address _admin, address _logic, bytes memory _data) public payable {
    require(_implementation() == address(0));
    InitializableUpgradeabilityProxy.initialize(_logic, _data);
    assert(ADMIN_SLOT == bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1));
    _setAdmin(_admin);
  }
  
  function _willFallback() override(Proxy, BaseAdminUpgradeabilityProxy) internal {
    super._willFallback();
  }

}


interface IProxyFactory {
    function productImplementation() external view returns (address);
    function productImplementations(bytes32 name) external view returns (address);
}


/**
 * @title ProductProxy
 * @dev This contract implements a proxy that 
 * it is deploied by ProxyFactory, 
 * and it's implementation is stored in factory.
 */
contract ProductProxy is Proxy {
    
  /**
   * @dev Storage slot with the address of the ProxyFactory.
   * This is the keccak-256 hash of "eip1967.proxy.factory" subtracted by 1, and is
   * validated in the constructor.
   */
  bytes32 internal constant FACTORY_SLOT = 0x7a45a402e4cb6e08ebc196f20f66d5d30e67285a2a8aa80503fa409e727a4af1;

  function productName() virtual public pure returns (bytes32) {
    return 0x0;
  }

  /**
   * @dev Sets the factory address of the ProductProxy.
   * @param newFactory Address of the new factory.
   */
  function _setFactory(address newFactory) internal {
    require(OpenZeppelinUpgradesAddress.isContract(newFactory), "Cannot set a factory to a non-contract address");

    bytes32 slot = FACTORY_SLOT;

    assembly {
      sstore(slot, newFactory)
    }
  }

  /**
   * @dev Returns the factory.
   * @return factory Address of the factory.
   */
  function _factory() internal view returns (address factory) {
    bytes32 slot = FACTORY_SLOT;
    assembly {
      factory := sload(slot)
    }
  }
  
  /**
   * @dev Returns the current implementation.
   * @return Address of the current implementation
   */
  function _implementation() virtual override internal view returns (address) {
    address factory = _factory();
    if(OpenZeppelinUpgradesAddress.isContract(factory))
        return IProxyFactory(factory).productImplementations(productName());
    else
        return address(0);
  }

}


/**
 * @title InitializableProductProxy
 * @dev Extends ProductProxy with an initializer for initializing
 * factory and init data.
 */
contract InitializableProductProxy is ProductProxy {
  /**
   * @dev Contract initializer.
   * @param factory Address of the initial factory.
   * @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.
   */
  function initialize(address factory, bytes memory data) public payable {
    require(_factory() == address(0));
    assert(FACTORY_SLOT == bytes32(uint256(keccak256('eip1967.proxy.factory')) - 1));
    _setFactory(factory);
    if(data.length > 0) {
      (bool success,) = _implementation().delegatecall(data);
      require(success);
    }
  }  
}


/**
 * Utility library of inline functions on addresses
 *
 * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/utils/Address.sol
 * This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts
 * when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the
 * build/artifacts folder) as well as the vanilla Address implementation from an openzeppelin version.
 */
library OpenZeppelinUpgradesAddress {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

Contract ABI

[{"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":"_admin","type":"address"},{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","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"}]

608060405234801561001057600080fd5b50610903806100206000396000f3fe6080604052600436106100745760003560e01c80638f2839701161004e5780638f2839701461016f578063cf7a1d77146101a2578063d1f5789414610261578063f851a4401461031757610083565b80633659cfe61461008b5780634f1ef286146100be5780635c60da1b1461013e57610083565b366100835761008161032c565b005b61008161032c565b34801561009757600080fd5b50610081600480360360208110156100ae57600080fd5b50356001600160a01b0316610371565b610081600480360360408110156100d457600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ff57600080fd5b82018360208201111561011157600080fd5b8035906020019184600183028401116401000000008311171561013357600080fd5b5090925090506103ab565b34801561014a57600080fd5b50610153610458565b604080516001600160a01b039092168252519081900360200190f35b34801561017b57600080fd5b506100816004803603602081101561019257600080fd5b50356001600160a01b0316610495565b610081600480360360608110156101b857600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101ec57600080fd5b8201836020820111156101fe57600080fd5b8035906020019184600183028401116401000000008311171561022057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061054f945050505050565b6100816004803603604081101561027757600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102a257600080fd5b8201836020820111156102b457600080fd5b803590602001918460018302840111640100000000831117156102d657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061057f945050505050565b34801561032357600080fd5b5061015361065f565b6103353361068a565b801561033f575036155b801561034d57506108fc5a11155b156103575761036f565b61035f610690565b61036f61036a610698565b6106bd565b565b6103796106e1565b6001600160a01b0316336001600160a01b031614156103a05761039b81610706565b6103a8565b6103a861032c565b50565b6103b36106e1565b6001600160a01b0316336001600160a01b0316141561044b576103d583610706565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d8060008114610432576040519150601f19603f3d011682016040523d82523d6000602084013e610437565b606091505b505090508061044557600080fd5b50610453565b61045361032c565b505050565b60006104626106e1565b6001600160a01b0316336001600160a01b0316141561048a57610483610698565b9050610492565b61049261032c565b90565b61049d6106e1565b6001600160a01b0316336001600160a01b031614156103a0576001600160a01b0381166104fb5760405162461bcd60e51b815260040180806020018281038252603681526020018061085d6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6105246106e1565b604080516001600160a01b03928316815291841660208301528051918290030190a161039b81610746565b6000610559610698565b6001600160a01b03161461056c57600080fd5b610576828261057f565b61045383610746565b6000610589610698565b6001600160a01b03161461059c57600080fd5b6105a58261076a565b80511561065b576000826001600160a01b0316826040518082805190602001908083835b602083106105e85780518252601f1990920191602091820191016105c9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610648576040519150601f19603f3d011682016040523d82523d6000602084013e61064d565b606091505b505090508061045357600080fd5b5050565b60006106696106e1565b6001600160a01b0316336001600160a01b0316141561048a576104836106e1565b3b151590565b61036f6107d2565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156106dc573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61070f8161076a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107738161068a565b6107ae5760405162461bcd60e51b815260040180806020018281038252603b815260200180610893603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6107da6106e1565b6001600160a01b0316336001600160a01b0316141561036f5760405162461bcd60e51b815260040180806020018281038252603281526020018061082b6032913960400191505060405180910390fdfe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212209324dcc0358300a47b9187a92e2e1b6a7379d3cffda103aee167f68442c4f77064736f6c634300060c0033

Deployed ByteCode Sourcemap

11970:1138:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;574:11;:9;:11::i;:::-;11970:1138;;514:11;:9;:11::i;6481:105::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6481:105:0;-1:-1:-1;;;;;6481:105:0;;:::i;7114:225::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7114:225:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7114:225:0;;-1:-1:-1;7114:225:0;-1:-1:-1;7114:225:0;:::i;5781:98::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;5781:98:0;;;;;;;;;;;;;;6062:228;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6062:228:0;-1:-1:-1;;;;;6062:228:0;;:::i;12669:312::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12669:312:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12669:312:0;;-1:-1:-1;12669:312:0;;-1:-1:-1;;;;;12669:312:0:i;11394:371::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11394:371:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11394:371:0;;-1:-1:-1;11394:371:0;;-1:-1:-1;;;;;11394:371:0:i;5632:80::-;;;;;;;;;;;;;:::i;2156:267::-;2196:50;2235:10;2196:38;:50::i;:::-;:74;;;;-1:-1:-1;2250:8:0;:20;2196:74;:95;;;;;2287:4;2274:9;:17;;2196:95;2193:168;;;2354:7;;2193:168;2367:15;:13;:15::i;:::-;2389:28;2399:17;:15;:17::i;:::-;2389:9;:28::i;:::-;2156:267::o;6481:105::-;5499:8;:6;:8::i;:::-;-1:-1:-1;;;;;5485:22:0;:10;-1:-1:-1;;;;;5485:22:0;;5481:80;;;6551:29:::1;6562:17;6551:10;:29::i;:::-;5481:80:::0;;;5542:11;:9;:11::i;:::-;6481:105;:::o;7114:225::-;5499:8;:6;:8::i;:::-;-1:-1:-1;;;;;5485:22:0;:10;-1:-1:-1;;;;;5485:22:0;;5481:80;;;7220:29:::1;7231:17;7220:10;:29::i;:::-;7257:12;7274:17;-1:-1:-1::0;;;;;7274:30:0::1;7305:4;;7274:36;;;;;;;;;;::::0;;::::1;::::0;-1:-1:-1;7274:36:0::1;::::0;-1:-1:-1;7274:36:0;;-1:-1:-1;;7274:36:0;;::::1;::::0;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7256:54;;;7325:7;7317:16;;;::::0;::::1;;5518:1;5481:80:::0;;;5542:11;:9;:11::i;:::-;7114:225;;;:::o;5781:98::-;5833:7;5499:8;:6;:8::i;:::-;-1:-1:-1;;;;;5485:22:0;:10;-1:-1:-1;;;;;5485:22:0;;5481:80;;;5856:17:::1;:15;:17::i;:::-;5849:24;;5481:80:::0;;;5542:11;:9;:11::i;:::-;5781:98;:::o;6062:228::-;5499:8;:6;:8::i;:::-;-1:-1:-1;;;;;5485:22:0;:10;-1:-1:-1;;;;;5485:22:0;;5481:80;;;-1:-1:-1;;;;;6133:22:0;::::1;6125:89;;;;-1:-1:-1::0;;;6125:89:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6226:32;6239:8;:6;:8::i;:::-;6226:32;::::0;;-1:-1:-1;;;;;6226:32:0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;6265:19;6275:8;6265:9;:19::i;12669:312::-:0;12800:1;12771:17;:15;:17::i;:::-;-1:-1:-1;;;;;12771:31:0;;12763:40;;;;;;12810:58;12854:6;12862:5;12810:43;:58::i;:::-;12958:17;12968:6;12958:9;:17::i;11394:371::-;11509:1;11480:17;:15;:17::i;:::-;-1:-1:-1;;;;;11480:31:0;;11472:40;;;;;;11620:26;11639:6;11620:18;:26::i;:::-;11656:12;;:16;11653:107;;11684:12;11701:6;-1:-1:-1;;;;;11701:19:0;11721:5;11701:26;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;11701:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11683:44;;;11744:7;11736:16;;;;;11653:107;11394:371;;:::o;5632:80::-;5675:7;5499:8;:6;:8::i;:::-;-1:-1:-1;;;;;5485:22:0;:10;-1:-1:-1;;;;;5485:22:0;;5481:80;;;5698:8:::1;:6;:8::i;16975:627::-:0;17547:20;17586:8;;;16975:627::o;12989:114::-;13076:21;:19;:21::i;3349:170::-;3158:66;3496:11;;3479:35::o;1021:762::-;1328:14;1325:1;1322;1309:34;1528:1;1525;1509:14;1506:1;1490:14;1483:5;1470:60;1595:16;1592:1;1589;1574:38;1629:6;1686:38;;;;1752:16;1749:1;1742:27;1686:38;1705:16;1702:1;1695:27;7393:141;5192:66;7511:11;;7495:34::o;3660:145::-;3723:37;3742:17;3723:18;:37::i;:::-;3772:27;;-1:-1:-1;;;;;3772:27:0;;;;;;;;3660:145;:::o;7656:139::-;5192:66;7761:22;7752:38::o;3948:313::-;4027:57;4066:17;4027:38;:57::i;:::-;4019:129;;;;-1:-1:-1;;;4019:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3158:66;4218:31;4209:47::o;7875:179::-;7955:8;:6;:8::i;:::-;-1:-1:-1;;;;;7941:22:0;:10;-1:-1:-1;;;;;7941:22:0;;;7933:85;;;;-1:-1:-1;;;7933:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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