Contract 0x6e9730ecffbed43fd876a264c982e254ef05a0de

 

Contract Overview

Nord Finance: NORD Token
Balance:
0.005215 BNB

BNB Value:
$1.79 (@ $343.19/BNB)

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x88065eecb934014c033fc163629c4b55304c33a3398cebeaeb7e61e9248b62ba82327682021-06-12 12:24:531 hr 52 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000328945
0x464f84085c6c83a7ced6e520689e4d1be3ab2f8c87598d90762ae5e22319a03a82320262021-06-12 11:47:282 hrs 29 mins ago0xbe21a17b2ef28c4c303cca7cd108630e3ca5bc14 IN  Nord Finance: NORD Token0 BNB0.000294975
0x50120a4fd63170b2358b1d3b1cf11a793cd1e332c9609221ac4ece2ae3cb0a0682312802021-06-12 11:10:103 hrs 7 mins ago0xb84f1252228df4b315c7e02f1c155010f5883ee6 IN  Nord Finance: NORD Token0 BNB0.000254125
0xb1ee859fdc5ba7528b62ec24a0145e50e47992a2df60330b4ef4bd1b9d5b03cd82289702021-06-12 9:13:515 hrs 3 mins ago0x1bf77d2a26931f91e85a07adbbd2c1c9f8572a27 IN  Nord Finance: NORD Token0 BNB0.000294975
0x095c85c94093fdac875e92f8c2441861f78cdca35491bd8e44982518a931fcee82281892021-06-12 8:34:485 hrs 42 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0xf57f82be4889fc70fd61a47e417e86ffaf9ac4764ef60aff9f83ea87d43fad3482277502021-06-12 8:12:516 hrs 4 mins ago0xdc89b04492cd9bb7d5ff691b91d1a463dc59e46c IN  Nord Finance: NORD Token0 BNB0.000294975
0xf9186e9788f2546a6704c0aae9a310eb880d0d0b0f01edc202a646e78c4d5d5082276432021-06-12 8:07:306 hrs 9 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0xaf455a5e2300a6d763dbee2197f70baa8a9e07e9d38e03e0c4e1baf46ef7bdc282229632021-06-12 4:13:1710 hrs 3 mins ago0xaf689e1b270d2c1e3a109a19cf19973bb3d4b66d IN  Nord Finance: NORD Token0.005 BNB0.000524445
0x2cbad0f84231be8d233059dfd77e72e74ac96b2f4be502cbc0162fc7af9a753982229352021-06-12 4:11:5310 hrs 5 mins ago0x47294092daeafc531860a357346502fc3bc70f58 IN  Nord Finance: NORD Token0.005 BNB0.000524325
0xac5ca2f667ba5bb88019758a2215f9e2b283a9cb4fe316e50b4139912759bcb982220682021-06-12 3:28:3210 hrs 48 mins ago0x911edbe1f92cc67f7baba6d38381ba16e76ff7df IN  Nord Finance: NORD Token0.005 BNB0.000524385
0x07264b702b48824524e85a43e2a3a4e2cf0bfe9d6f1adc806cf1a5c5a94800cf82218082021-06-12 3:15:3211 hrs 1 min ago0x911edbe1f92cc67f7baba6d38381ba16e76ff7df IN  Nord Finance: NORD Token0.005 BNB0.00130759
0x7336efa15d80155afec98ff6278e5db22612cbfb2bd36a5e23c764960d9439f582217632021-06-12 3:13:1711 hrs 3 mins ago0xaf689e1b270d2c1e3a109a19cf19973bb3d4b66d IN  Nord Finance: NORD Token0.005 BNB0.001232395
0xeb04c59cf99d80265731093b9bf592fd86a11b4c1cfff4313e6415a5deb601f482217612021-06-12 3:13:1111 hrs 4 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0xc0eed857c8a4683db56272af7e9da484308d23fef3a8d658290f5ee22c71a2af82217092021-06-12 3:10:3511 hrs 6 mins ago0xa312c9ee5da3cc343155df5c7a14e8c2fcf61806 IN  Nord Finance: NORD Token0 BNB0.000294975
0x47898d45efa423e10a53fed444bce30be2d55093c9226fc9bd51ff48a1173cfe82216912021-06-12 3:09:4111 hrs 7 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0x651b348c0a6c5241bad50fe0ff4a8199770f615669cf70bd6b7ba931a941d34a82214962021-06-12 2:59:5611 hrs 17 mins ago0xdd7aaf336cc630d6b2c30b41ab83d3a771e67aeb IN  Nord Finance: NORD Token0 BNB0.000294975
0xf85789cc0fd789a506843fbdf748d5e647755e2332727bc6fde44e55e0194b7e82211572021-06-12 2:42:5011 hrs 34 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0x9c217f01887680f5d237ce30ec025536bf829da5a110ad3c7969e37cf727776f82154782021-06-11 21:58:0216 hrs 19 mins ago0x486219bd412b4b5ee62766d2658bb5bfc5b40432 IN  Nord Finance: NORD Token0 BNB0.000294975
0xea7a4033dfb7386321a0becb3573cec08eb96bcd7e7aeaa2fb7bbaea6434cd0e82135852021-06-11 20:23:1417 hrs 53 mins ago0xa03b1669d46f4500af689942626c3ef49ccec17d IN  Nord Finance: NORD Token0 BNB0.000294975
0x64a5985fab80d00f7256e435ece0f4193a209abcaf7b854e1babd048b5efa27a82135562021-06-11 20:21:4717 hrs 55 mins ago0x7575d69b2069893d1d6bbc5101b74ba6f9fdff9f IN  Nord Finance: NORD Token0 BNB0.000294975
0x6c708be381c53b32214ba767a96585ae6fb41eb7bf2683f21fe8be053a5b7b3882092982021-06-11 16:46:3721 hrs 30 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
0x51bf5c20e441997ad075557fc20f680c9d365b903b17f0861ff8feb7bd5e20ea82091062021-06-11 16:37:0121 hrs 40 mins ago0x66845471984685448b6bdd4210ac113cbf0274eb IN  Nord Finance: NORD Token0 BNB0.000294975
0xe35c0e136b91436629015cc209efc80523ed69755661ed572c0a08f65a35690482080752021-06-11 15:45:0522 hrs 32 mins ago0x8e5c516f7851db75de05ae14374d1ca2cc460c95 IN  Nord Finance: NORD Token0 BNB0.000294975
0x511082e43bea7ba8e1464d8ef8b75036c4200a8134201a691028516f8103fa4982078602021-06-11 15:34:2022 hrs 42 mins ago0x87619c8f25f215124eb36ae02bc75f25ef8d6494 IN  Nord Finance: NORD Token0 BNB0.000294975
0x26c80b44fd0bf031bd87fab70135789178219cd5b4a6695cce1d1caa6248a15e82053092021-06-11 13:26:181 day 50 mins ago0x986a2fca9eda0e06fbf7839b89bfc006ee2a23dd IN  Nord Finance: NORD Token0 BNB0.000329005
[ Download CSV Export 

OVERVIEW

Nord Finance is a blockchain agnostic platform focusing on simplifying decentralized finance products for users by highlighting traditional finance’s key attributes.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xaf455a5e2300a6d763dbee2197f70baa8a9e07e9d38e03e0c4e1baf46ef7bdc282229632021-06-12 4:13:1710 hrs 3 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x2cbad0f84231be8d233059dfd77e72e74ac96b2f4be502cbc0162fc7af9a753982229352021-06-12 4:11:5310 hrs 5 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xac5ca2f667ba5bb88019758a2215f9e2b283a9cb4fe316e50b4139912759bcb982220682021-06-12 3:28:3210 hrs 48 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x07264b702b48824524e85a43e2a3a4e2cf0bfe9d6f1adc806cf1a5c5a94800cf82218082021-06-12 3:15:3211 hrs 1 min ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x7336efa15d80155afec98ff6278e5db22612cbfb2bd36a5e23c764960d9439f582217632021-06-12 3:13:1711 hrs 3 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x8605f56c6d929a180203bf7087273c7601fa3a12983e2d80b99849760e7591eb81910302021-06-11 1:31:101 day 12 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xe5bdfe51233b325534379b4b01d06eeb91831de1c96701568bc2164a6575056681900562021-06-11 0:42:281 day 13 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xc994ce1ffa41ad81085150e4a97a2348cbe34851bcaca318ecaa059961b6e5dc81771652021-06-10 13:53:262 days 23 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x3682d03ecd7dac862fb11bfdaec1b966298fe25db30fc10360843d70ec59acea81439092021-06-09 10:05:303 days 4 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xa28652ac4d7f172f8402dd4b90308a83ef1edf1c69cb3e6dfc7e9486dd65b01481438942021-06-09 10:04:453 days 4 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xef0d7049a77aedbd3f0aaaaa4bf183f7bd59b560c2d120a4622435ff589cfcdc81437722021-06-09 9:58:393 days 4 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x0b0baa8697bcadc599a7db40a066e5b8dfc864e05be7f9f6567acaad5578b52f81399602021-06-09 6:47:213 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x60568476a026233c3d003b92311475eb8cf6188eff1f92aa75a9bb61bbb1520d81335422021-06-09 1:24:563 days 12 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x214d0b4a8cb35c91d795cd6a86047779fbc98aea75b924fa07bf8e98ef259dd681280432021-06-08 20:48:543 days 17 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x355aa1755c5cd81483e793562d9582f079cd4b7f0708ea03ac5c72f179d80a6981208022021-06-08 14:46:253 days 23 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xb04fdf308f2babfff8c2b98c23b677ec2ef86f5f766d5ecdacfbd6cf65beca5681201762021-06-08 14:15:074 days 2 mins ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xdb9aac0a84d2617dd7eb85f367efa5b4d1ffe108540b3ba9105e40a6be2f08cd81164742021-06-08 11:10:014 days 3 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xf7061185d82e4eb9f82f9e2bc2970920a75238e5c4e5c7bdc1ad31951eab8f9081163162021-06-08 11:02:074 days 3 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xae169fc4c462db996cca379c8afb6771e8036ba535f5ca7f1796aa856536de9c81129792021-06-08 8:14:594 days 6 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xe6ead00d86103e41f00b27ac36d0ca5c5ea45f03c2512760dfe513a6d8cb6ab981109712021-06-08 6:34:354 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x2ee860ee07e9b2b09e527387ce45766f34b27fc82da427bf316de24fe8009a4981109492021-06-08 6:33:294 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x9a531b343074c653d0762e72f3fe0bfb31e3c546df1166d299d14ffd32d5817281109362021-06-08 6:32:504 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xcb054c8060401d8f76a2cb46ef1189bbf4431c6567eb9e1dda6f54b7208ddc6081109322021-06-08 6:32:384 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0x0f1ab89f71374c986d3aa0e25ee72942823752647a897cb872b7063da6ba4d8081108662021-06-08 6:29:204 days 7 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
0xb6619fd561fce1bb6317810ac8a38ce152b1e09bcb5cb7b2f6e9ba22561d876481068302021-06-08 3:07:084 days 11 hrs ago Nord Finance: NORD Token DEXTools: Deployer0.005 BNB
[ Download CSV Export 
Loading

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

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

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.