Contract 0x1c9491865a1de77c5b6e19d2e6a5f1d7a6f2b25f 6

 

Contract Overview

Antimatter: MATTER Token
Balance:
169.725 BNB

BNB Value:
$56,399.62 (@ $332.30/BNB)

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x5a70b907096ca20816b6921cb7573e564b72bb414b3071b7699c45d1b9a80a5897512582021-08-04 21:14:584 hrs 13 mins ago0xf25f92b1c8513ed48db292ec0437069d3663791f IN  Antimatter: MATTER Token0 BNB0.000288972
0x59ee4971c3c1749982a50686cb3547c17a6cc6be51f15fb30a5a3991e264c9d697503392021-08-04 20:27:395 hrs ago0xd094a8ff6d9a04fbc3b653db3b22e77f63b9463a IN  Antimatter: MATTER Token0 BNB0.00024081
0x6e59631d5f6491081be52d19a53bf324d417130ce9a0ec976f83595c05ce8a8397502572021-08-04 20:23:335 hrs 4 mins ago0x163666a844b1d4f0eb6b2bc4265c6b9b7e70911b IN  Antimatter: MATTER Token0 BNB0.000166385
0x86ddc3e661f039c607225a60c8133c2b23f947e97d25f2b7ae4e3126af8a2d6497502382021-08-04 20:22:365 hrs 5 mins ago0x163666a844b1d4f0eb6b2bc4265c6b9b7e70911b IN  Antimatter: MATTER Token0 BNB0.000166385
0x6b8c5fd197c58c23ba900622ba8fe4f49e01e491905313c87909eb5b78a694e897487542021-08-04 19:07:036 hrs 20 mins ago0x163666a844b1d4f0eb6b2bc4265c6b9b7e70911b IN  Antimatter: MATTER Token0 BNB0.00024081
0x7df86e62da833ebfcbcdde48709d706659a2accba60f9f2498d9ea33c18f269297481612021-08-04 18:37:246 hrs 50 mins ago0x0157b054510c2a7ea54e152ea56b31893d80743a IN  Antimatter: MATTER Token0 BNB0.00024081
0x3e91ca680fb1e6d46dd52ec8142316ec9dd9766821c99666d5df58f2e6ea3b6b97413722021-08-04 12:46:0412 hrs 41 mins ago0x6892fc91e7d8b96ecda2d463b6feb14979f4923d IN  Antimatter: MATTER Token0 BNB0.00024081
0xe59122272eacfeff39c0e79f7c6c9ffa5aa83a810f8ec0c824cd80d0986d393f97331062021-08-04 5:31:0919 hrs 56 mins ago0x61181b6aff6efa8578f0ccfa48a3ebf24b7beb6c IN  Antimatter: MATTER Token0 BNB0.000288972
0xb447902e169e8d0f5ab5b7aea12465519fec24dbce3c4e7359ff88681429670b97258392021-08-03 23:19:421 day 2 hrs ago0x3b368fc0c2bc29bdcf7a299e6568a17f5e2e56fc IN  Antimatter: MATTER Token0 BNB0.00024081
0xa43c7c6bff48bd540ab1310ba727e9d681db33bd96d2b4816457df46db6606e496967602021-08-02 21:39:502 days 3 hrs ago0x27bca62731f31a4d947bc6edcb187bd1f7b98436 IN  Antimatter: MATTER Token0 BNB0.00024081
0xe230cae07322ee011896cf33585e8158005638d52429185b536cbbdb04a31cfb96935062021-08-02 18:54:102 days 6 hrs ago0xf83d8c07b3f214c6d9b64568f9b87eaaba615c72 IN  Antimatter: MATTER Token0 BNB0.00024081
0x8b8f97c17bfc27794af9edd93d7a04a57837d82d2b4daa278e55fcec74c7dee196678942021-08-01 20:48:463 days 4 hrs ago0x79409ef611f54f54472db5014c797273bb50894b IN  Antimatter: MATTER Token0 BNB0.00024081
0xd46514dc10a343c9137a81ed2de6993230050031e055a3edc60b338e59f31cc796621462021-08-01 15:50:413 days 9 hrs ago0x0eeeff44e8f65db5cc841e3a3d591499b74f85e6 IN  Antimatter: MATTER Token0 BNB0.00008889
0x11e92c53fd8c0e573662ba17f5eae282e74f4a92c55e992b7a4701fa5e3987c396621222021-08-01 15:49:103 days 9 hrs ago0x0eeeff44e8f65db5cc841e3a3d591499b74f85e6 IN  Antimatter: MATTER Token0 BNB0.00014289
0x73163f6b4e24ca3c0ad4bf86aef9935839302d32f064a370e6a67c9bb8ff431696621172021-08-01 15:48:533 days 9 hrs ago0x0eeeff44e8f65db5cc841e3a3d591499b74f85e6 IN  Antimatter: MATTER Token0 BNB0.00008889
0x5e4c9296b03a33f5889db8d36d158f55701a8ac715bebf7e4ba3fc39e38e7d7596618832021-08-01 15:35:533 days 9 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166385
0xe8ba8ff6633545f389efaf034436c23cd2581be0fd1a486abcea118e61a9d50496616662021-08-01 15:24:203 days 10 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166265
0xc5aa0bef63cc7c047d0542957210f819bb33262e4be783b2e7f6a314921c5b3c96593872021-08-01 13:21:383 days 12 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166265
0xf8949d2c8bec2f1f8c9511db0b82be76aebb7b34f316993c36351435aa86c4bc96589382021-08-01 12:58:113 days 12 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.00024081
0xe026cb7948cc0de5226d0df7fd31bf532e51f8d38eef6261d8a2ef0b68d6338596588462021-08-01 12:52:543 days 12 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166265
0x6cc496ce9c57f956e47b1f1bb25ff531e2cd72651efd1ea709519e80273b3ec796588092021-08-01 12:50:483 days 12 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166265
0x7732084cf96119b9f07bc29ae79dfbec67c4c54d04d04f79aba1a0ac707c09c596569222021-08-01 11:12:443 days 14 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166385
0xfb29c9cf63fa695082487b2c55496cbf8df15ff61c2ef2e3ef078c09ff3054e396568932021-08-01 11:11:173 days 14 hrs ago0xa1d839699fec526c5cf1d117bb48ab5194ed624a IN  Antimatter: MATTER Token0 BNB0.000166385
0xedafbce5d55e9f8a82333522ace177d14312583b8ca67112c12e593eb277f85296561702021-08-01 10:34:133 days 14 hrs ago0x7f26531e7e3f47fba605b76a9fa5d94b0e3c4211 IN  Antimatter: MATTER Token0 BNB0.000288972
0xf645bbb96a426bb36778d0dde4a184ba0307a10b8562e3ca49e2137263c1615c96531932021-08-01 7:58:433 days 17 hrs ago0xcbe45554fea1e7ba09ede33cd38a5219d6072bae IN  Antimatter: MATTER Token0 BNB0.000166385
[ Download CSV Export 

OVERVIEW

Antimatter is a simple lightweight onchain DeFi derivative protocol with a polarized token mechanism.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x630cddd2bc5940f2ac6e6cc955fd8ae03ea7ca4cab0131eb74203cbadf83346e54713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x630cddd2bc5940f2ac6e6cc955fd8ae03ea7ca4cab0131eb74203cbadf83346e54713292021-03-07 11:59:24150 days 13 hrs ago 0xd2399256e97d6815070866c23aa9038ee6aaf385 Antimatter: MATTER Token0 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago PancakeSwap: MATTER-BUSD Antimatter: MATTER Token0 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x2cbe3fa8b74b1f97e89b88ff1f96ee7c2c1316005fd5391a0ba37637a176252254713292021-03-07 11:59:24150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x1a1a5e1310ccb631d2334ce458cf583d58511e33e6fee5c088f21d428bd8bcb954713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x1a1a5e1310ccb631d2334ce458cf583d58511e33e6fee5c088f21d428bd8bcb954713292021-03-07 11:59:24150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x1a1a5e1310ccb631d2334ce458cf583d58511e33e6fee5c088f21d428bd8bcb954713292021-03-07 11:59:24150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x1a1a5e1310ccb631d2334ce458cf583d58511e33e6fee5c088f21d428bd8bcb954713292021-03-07 11:59:24150 days 13 hrs ago PancakeSwap: Router Antimatter: MATTER Token0 BNB
0xbf07197c076b9d311c0517b19302f3596042b0a22938a39f9c412bf63b45eac954712662021-03-07 11:56:15150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0xbf07197c076b9d311c0517b19302f3596042b0a22938a39f9c412bf63b45eac954712662021-03-07 11:56:15150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0xbf07197c076b9d311c0517b19302f3596042b0a22938a39f9c412bf63b45eac954712662021-03-07 11:56:15150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0xbf07197c076b9d311c0517b19302f3596042b0a22938a39f9c412bf63b45eac954712662021-03-07 11:56:15150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago PancakeSwap: MATTER-BUSD Antimatter: MATTER Token0 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x8d9e0b1e9e7c1021cbb0776e2c97f8b16c08fa6d1801832869f138dfe2af534354712422021-03-07 11:55:03150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x7b71d2a07209574d092c84051c6907cf0fff086d5473498181776505570ea47854712422021-03-07 11:55:03150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
0x7b71d2a07209574d092c84051c6907cf0fff086d5473498181776505570ea47854712422021-03-07 11:55:03150 days 13 hrs ago PancakeSwap: MATTER 4 Antimatter: MATTER Token0 BNB
0x7b71d2a07209574d092c84051c6907cf0fff086d5473498181776505570ea47854712422021-03-07 11:55:03150 days 13 hrs ago Antimatter: MATTER Token 0xe25b1bbae57ddf533573859be7f15d56abe653850 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdminUpgradeabilityProxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-24
*/

// 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

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_logic","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"}]

60806040526040516108fd3803806108fd8339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b50604052508391508290506100ee826101bf565b8051156101a6576000826001600160a01b0316826040518082805190602001908083835b602083106101315780518252601f199092019160209182019101610112565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610191576040519150601f19603f3d011682016040523d82523d6000602084013e610196565b606091505b50509050806101a457600080fd5b505b506101ae9050565b6101b783610231565b50505061025b565b6101d28161025560201b6103df1760201c565b61020d5760405162461bcd60e51b815260040180806020018281038252603b8152602001806108c2603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b6106588061026a6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101d6565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b509092509050610210565b34801561012457600080fd5b5061012d6102bd565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102fa565b34801561018857600080fd5b5061012d6103b4565b61019a336103df565b80156101a4575036155b80156101b257506108fc5a11155b156101bc576101d4565b6101c46103e5565b6101d46101cf6103ed565b610412565b565b6101de610436565b6001600160a01b0316336001600160a01b03161415610205576102008161045b565b61020d565b61020d610191565b50565b610218610436565b6001600160a01b0316336001600160a01b031614156102b05761023a8361045b565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d8060008114610297576040519150601f19603f3d011682016040523d82523d6000602084013e61029c565b606091505b50509050806102aa57600080fd5b506102b8565b6102b8610191565b505050565b60006102c7610436565b6001600160a01b0316336001600160a01b031614156102ef576102e86103ed565b90506102f7565b6102f7610191565b90565b610302610436565b6001600160a01b0316336001600160a01b03161415610205576001600160a01b0381166103605760405162461bcd60e51b81526004018080602001828103825260368152602001806105b26036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610389610436565b604080516001600160a01b03928316815291841660208301528051918290030190a16102008161049b565b60006103be610436565b6001600160a01b0316336001600160a01b031614156102ef576102e8610436565b3b151590565b6101d46104bf565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610431573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61046481610517565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104c7610436565b6001600160a01b0316336001600160a01b031614156101d45760405162461bcd60e51b81526004018080602001828103825260328152602001806105806032913960400191505060405180910390fd5b610520816103df565b61055b5760405162461bcd60e51b815260040180806020018281038252603b8152602001806105e8603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220b7b619448d026ae3b1bac52efe493353c319abfa4d62ed87541f163ed1da1bed64736f6c634300060c003343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000000000000000000046e121f847adbff154a6f9d8abd37ade6db472da00000000000000000000000045fb48114fc1b374088c394c795702c60069ed2600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000046e121f847adbff154a6f9d8abd37ade6db472da00000000000000000000000045fb48114fc1b374088c394c795702c60069ed2600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000046e121f847adbff154a6f9d8abd37ade6db472da
Arg [1] : 00000000000000000000000045fb48114fc1b374088c394c795702c60069ed26
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

9584:1025:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;574:11;:9;:11::i;:::-;9584:1025;;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;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;5632:80::-:0;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;10492:114::-;10579: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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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

Swarm Source

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