Contract 0x40F5a9Bfd79585FFe39E93Efed59b84D27d6d593 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd5918e5887c4951cc466f7be73944d722171dfcc0aa36d84c894eaef2355c036Initialize Owner...164220882022-06-23 18:06:566 days 17 hrs ago0xcbd4e556fc24c83159defd1d1bbad66fd7d2c75c IN  0x40f5a9bfd79585ffe39e93efed59b84d27d6d5930 AVAX0.00335292525
0xd48cf5073cfece9b7f07a683ae894697c5e5e28b74433d1102a93d34ce8ceb7c0x60a06040164220822022-06-23 18:06:446 days 17 hrs ago0xcbd4e556fc24c83159defd1d1bbad66fd7d2c75c IN  Create: LevelManager0 AVAX0.03942162525
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LevelManager

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : LevelManager.sol
//SPDX-License-Identifier: LICENSED

// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.7.0;
import "./MultiSigOwner.sol";
import "./Manager.sol";
import "./interfaces/ICard.sol";
import "./libraries/SafeMath.sol";
contract LevelManager is MultiSigOwner, Manager {
    using SafeMath for uint256;
    // current user level of each user. 1~5 level enabled.
    mapping(address => uint256) public usersLevel;
    // the time okse amount is updated
    mapping(address => uint256) public usersOkseUpdatedTime;
    // this is validation period after user change his okse balance for this contract, normally is 30 days. we set 10 mnutes for testing.
    uint256 public levelValidationPeriod;
    // daily limit contants
    uint256 public constant MAX_LEVEL = 5;
    uint256[] public OkseStakeAmounts;
    event UserLevelChanged(address userAddr, uint256 newLevel);
    event OkseStakeAmountChanged(uint256 index, uint256 _amount);
    event LevelValidationPeriodChanged(uint256 levelValidationPeriod);

    constructor(address _cardContract) Manager(_cardContract) {
        // levelValidationPeriod = 30 days;
        levelValidationPeriod = 10 minutes; //for testing
        OkseStakeAmounts = [
            1000 ether,
            2500 ether,
            10000 ether,
            25000 ether,
            100000 ether
        ];
    }

    ////////////////////////// Read functions /////////////////////////////////////////////////////////////
    function getUserLevel(address userAddr) public view returns (uint256) {
        uint256 newLevel = getLevel(
            ICard(cardContract).getUserOkseBalance(userAddr)
        );
        if (newLevel < usersLevel[userAddr]) {
            return newLevel;
        } else {
            if (
                usersOkseUpdatedTime[userAddr].add(levelValidationPeriod) <
                block.timestamp
            ) {
                return newLevel;
            } else {
                // do something ...
            }
        }
        return usersLevel[userAddr];
    }

    /**
     * @notice Get user level from his okse balance
     * @param _okseAmount okse token amount
     * @return user's level, 0~5 , 0 => no level
     */
    // verified
    function getLevel(uint256 _okseAmount) public view returns (uint256) {
        if (_okseAmount < OkseStakeAmounts[0]) return 0;
        if (_okseAmount < OkseStakeAmounts[1]) return 1;
        if (_okseAmount < OkseStakeAmounts[2]) return 2;
        if (_okseAmount < OkseStakeAmounts[3]) return 3;
        if (_okseAmount < OkseStakeAmounts[4]) return 4;
        return 5;
    }

    ///////////////// CallBack functions from card contract //////////////////////////////////////////////
    function updateUserLevel(address userAddr, uint256 beforeAmount)
        external
        onlyFromCardContract
        returns (bool)
    {
        uint256 newLevel = getLevel(
            ICard(cardContract).getUserOkseBalance(userAddr)
        );
        uint256 beforeLevel = getLevel(beforeAmount);
        if (newLevel != beforeLevel)
            usersOkseUpdatedTime[userAddr] = block.timestamp;
        if (newLevel == usersLevel[userAddr]) return true;
        if (newLevel < usersLevel[userAddr]) {
            usersLevel[userAddr] = newLevel;
            emit UserLevelChanged(userAddr, newLevel);
        } else {
            if (
                usersOkseUpdatedTime[userAddr].add(levelValidationPeriod) <
                block.timestamp
            ) {
                usersLevel[userAddr] = newLevel;
                emit UserLevelChanged(userAddr, newLevel);
            } else {
                // do somrthing ...
            }
        }
        return false;
    }

    //////////////////// Owner functions ////////////////////////////////////////////////////////////////
    // verified
    function setLevelValidationPeriod(
        bytes calldata signData,
        bytes calldata keys
    ) public validSignOfOwner(signData, keys, "setLevelValidationPeriod") {
        (, , , bytes memory params) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        uint256 _newValue = abi.decode(params, (uint256));
        levelValidationPeriod = _newValue;
        emit LevelValidationPeriodChanged(levelValidationPeriod);
    }

    // verified
    function setOkseStakeAmount(bytes calldata signData, bytes calldata keys)
        public
        validSignOfOwner(signData, keys, "setOkseStakeAmount")
    {
        (, , , bytes memory params) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        (uint256 index, uint256 _amount) = abi.decode(
            params,
            (uint256, uint256)
        );
        require(index < MAX_LEVEL, "level<5");
        OkseStakeAmounts[index] = _amount;
        emit OkseStakeAmountChanged(index, _amount);
    }
}

File 2 of 5 : MultiSigOwner.sol
// SPDX-License-Identifier: LICENSED
pragma solidity ^0.7.0;
pragma abicoder v2;

// 2/3 Multi Sig Owner
contract MultiSigOwner {
    address[] public owners;
    mapping(uint256 => bool) public signatureId;
    bool private initialized;
    // events
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    event SignValidTimeChanged(uint256 newValue);
    modifier validSignOfOwner(
        bytes calldata signData,
        bytes calldata keys,
        string memory functionName
    ) {
        require(isOwner(msg.sender), "on");
        address signer = getSigner(signData, keys);
        require(
            signer != msg.sender && isOwner(signer) && signer != address(0),
            "is"
        );
        (bytes4 method, uint256 id, uint256 validTime, ) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        require(
            signatureId[id] == false &&
                method == bytes4(keccak256(bytes(functionName))),
            "sru"
        );
        require(validTime > block.timestamp, "ep");
        signatureId[id] = true;
        _;
    }

    function isOwner(address addr) public view returns (bool) {
        bool _isOwner = false;
        for (uint256 i = 0; i < owners.length; i++) {
            if (owners[i] == addr) {
                _isOwner = true;
            }
        }
        return _isOwner;
    }

    constructor() {}

    function initializeOwners(address[3] memory _owners) public {
        require(
            !initialized &&
                _owners[0] != address(0) &&
                _owners[1] != address(0) &&
                _owners[2] != address(0),
            "ai"
        );
        owners = [_owners[0], _owners[1], _owners[2]];
        initialized = true;
    }

    function getSigner(bytes calldata _data, bytes calldata keys)
        public
        view
        returns (address)
    {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        (uint8 v, bytes32 r, bytes32 s) = abi.decode(
            keys,
            (uint8, bytes32, bytes32)
        );
        return
            ecrecover(
                toEthSignedMessageHash(
                    keccak256(abi.encodePacked(this, chainId, _data))
                ),
                v,
                r,
                s
            );
    }

    function encodePackedData(bytes calldata _data)
        public
        view
        returns (bytes32)
    {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return keccak256(abi.encodePacked(this, chainId, _data));
    }

    function toEthSignedMessageHash(bytes32 hash)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
            );
    }

    // Set functions
    // verified
    function transferOwnership(bytes calldata signData, bytes calldata keys)
        public
        validSignOfOwner(signData, keys, "transferOwnership")
    {
        (, , , bytes memory params) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        address newOwner = abi.decode(params, (address));
        uint256 index;
        for (uint256 i = 0; i < owners.length; i++) {
            if (owners[i] == msg.sender) {
                index = i;
            }
        }
        address oldOwner = owners[index];
        owners[index] = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 5 : Manager.sol
//SPDX-License-Identifier: LICENSED

// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.7.0;

contract Manager {
    address public immutable cardContract;

    constructor(address _cardContract) {
        cardContract = _cardContract;
    }

    /// modifier functions
    modifier onlyFromCardContract() {
        require(msg.sender == cardContract, "oc");
        _;
    }
}

File 4 of 5 : ICard.sol
// SPDX-License-Identifier: LICENSED
pragma solidity ^0.7.0;

interface ICard {
    function getUserOkseBalance(address userAddr)
        external
        view
        returns (uint256);

    function getUserAssetAmount(address userAddr, address market)
        external
        view
        returns (uint256);


    function usersBalances(address userAddr, address market)
        external
        view
        returns (uint256);

    function priceOracle() external view returns (address);

}

File 5 of 5 : SafeMath.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
  /**
   * @dev Returns the addition of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `+` operator.
   *
   * Requirements:
   * - Addition cannot overflow.
   */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    return add(a, b, "SafeMath: addition overflow");
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, errorMessage);

    return c;
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    return sub(a, b, "SafeMath: subtraction overflow");
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    require(b <= a, errorMessage);
    uint256 c = a - b;

    return c;
  }

  /**
   * @dev Returns the multiplication of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `*` operator.
   *
   * Requirements:
   * - Multiplication cannot overflow.
   */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b, "SafeMath: multiplication overflow");

    return c;
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    return div(a, b, "SafeMath: division by zero");
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    return mod(a, b, "SafeMath: modulo by zero");
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts with custom message when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    require(b != 0, errorMessage);
    return a % b;
  }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_cardContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"levelValidationPeriod","type":"uint256"}],"name":"LevelValidationPeriodChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"OkseStakeAmountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SignValidTimeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"newLevel","type":"uint256"}],"name":"UserLevelChanged","type":"event"},{"inputs":[],"name":"MAX_LEVEL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"OkseStakeAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"encodePackedData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_okseAmount","type":"uint256"}],"name":"getLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"}],"name":"getUserLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[3]","name":"_owners","type":"address[3]"}],"name":"initializeOwners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"levelValidationPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signData","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"setLevelValidationPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signData","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"setOkseStakeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signatureId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signData","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"},{"internalType":"uint256","name":"beforeAmount","type":"uint256"}],"name":"updateUserLevel","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersOkseUpdatedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001a1338038062001a13833981810160405260208110156200003757600080fd5b5051606081811b6001600160601b031916608090815261025860059081556040805160a081018252683635c9adc5dea00000815268878678326eac900000602082015269021e19e0c9bab24000009181019190915269054b40b1f852bda000009381019390935269152d02c7e14af680000091830191909152620000be91600691620000c6565b505062000138565b8280548282559060005260206000209081019282156200010f579160200282015b828111156200010f57825182906001600160501b0316905591602001919060010190620000e7565b506200011d92915062000121565b5090565b5b808211156200011d576000815560010162000122565b60805160601c6118ae620001656000398061069a5280610b125280610b705280610d8652506118ae6000f3fe608060405234801561001057600080fd5b50600436106100f65760003560e01c8063693bd2d011610092578063693bd2d01461034b5780636f9e4f0b1461035357806375e16b17146103a55780637a7320341461046357806386481d4014610521578063a49062d41461053e578063b2b9f0ed14610546578063b55427d614610563578063d1f21f4f14610589576100f6565b8063025e7c27146100fb5780631add56031461013457806321923bde146101635780632f54bf6e146101895780633c1ce665146101c35780634a069220146101e95780634ad47996146102a9578063584d2165146102d557806368af81e6146102dd575b600080fd5b6101186004803603602081101561011157600080fd5b5035610647565b604080516001600160a01b039092168252519081900360200190f35b6101516004803603602081101561014a57600080fd5b5035610671565b60408051918252519081900360200190f35b6101516004803603602081101561017957600080fd5b50356001600160a01b0316610692565b6101af6004803603602081101561019f57600080fd5b50356001600160a01b03166107b6565b604080519115158252519081900360200190f35b610151600480360360208110156101d957600080fd5b50356001600160a01b031661080b565b6102a7600480360360408110156101ff57600080fd5b810190602081018135600160201b81111561021957600080fd5b82018360208201111561022b57600080fd5b803590602001918460018302840111600160201b8311171561024c57600080fd5b919390929091602081019035600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b50909250905061081d565b005b6101af600480360360408110156102bf57600080fd5b506001600160a01b038135169060200135610b05565b610151610d43565b610151600480360360208110156102f357600080fd5b810190602081018135600160201b81111561030d57600080fd5b82018360208201111561031f57600080fd5b803590602001918460018302840111600160201b8311171561034057600080fd5b509092509050610d49565b610118610d84565b6102a76004803603606081101561036957600080fd5b8101908080606001906003806020026040519081016040528092919082600360200280828437600092019190915250919450610da89350505050565b610118600480360360408110156103bb57600080fd5b810190602081018135600160201b8111156103d557600080fd5b8201836020820111156103e757600080fd5b803590602001918460018302840111600160201b8311171561040857600080fd5b919390929091602081019035600160201b81111561042557600080fd5b82018360208201111561043757600080fd5b803590602001918460018302840111600160201b8311171561045857600080fd5b509092509050610e60565b6102a76004803603604081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b919390929091602081019035600160201b8111156104e357600080fd5b8201836020820111156104f557600080fd5b803590602001918460018302840111600160201b8311171561051657600080fd5b509092509050610f09565b6101516004803603602081101561053757600080fd5b5035611180565b610151611252565b6101af6004803603602081101561055c57600080fd5b5035611257565b6101516004803603602081101561057957600080fd5b50356001600160a01b031661126c565b6102a76004803603604081101561059f57600080fd5b810190602081018135600160201b8111156105b957600080fd5b8201836020820111156105cb57600080fd5b803590602001918460018302840111600160201b831117156105ec57600080fd5b919390929091602081019035600160201b81111561060957600080fd5b82018360208201111561061b57600080fd5b803590602001918460018302840111600160201b8311171561063c57600080fd5b50909250905061127e565b6000818154811061065757600080fd5b6000918252602090912001546001600160a01b0316905081565b6006818154811061068157600080fd5b600091825260209091200154905081565b6000806107367f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633d5c2644856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561070557600080fd5b505afa158015610719573d6000803e3d6000fd5b505050506040513d602081101561072f57600080fd5b5051611180565b6001600160a01b0384166000908152600360205260409020549091508110156107605790506107b1565b6005546001600160a01b038416600090815260046020526040902054429161078891906114dd565b10156107955790506107b1565b50506001600160a01b0381166000908152600360205260409020545b919050565b600080805b60005481101561080457836001600160a01b0316600082815481106107dc57fe5b6000918252602090912001546001600160a01b031614156107fc57600191505b6001016107bb565b5092915050565b60046020526000908152604090205481565b83838383604051806040016040528060128152602001711cd95d13dadcd954dd185ad9505b5bdd5b9d60721b815250610855336107b6565b61087a5760405162461bcd60e51b815260040161087190611814565b60405180910390fd5b600061088886868686610e60565b90506001600160a01b03811633148015906108a757506108a7816107b6565b80156108bb57506001600160a01b03811615155b6108d75760405162461bcd60e51b81526004016108719061184c565b600080806108e7888a018a611692565b50600082815260016020526040902054929550909350915060ff161580156109215750845160208601206001600160e01b03198481169116145b61093d5760405162461bcd60e51b815260040161087190611884565b42811161095c5760405162461bcd60e51b815260040161087190611830565b60008281526001602081905260408220805460ff191690911790558d8d608081101561098757600080fd5b6001600160e01b03198235169160208101359160408201359190810190608081016060820135600160201b8111156109be57600080fd5b8201836020820111156109d057600080fd5b803590602001918460018302840111600160201b831117156109f157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949b5099508998505060208a019650919450505060408310159150610a4b905057600080fd5b508051602090910151909250905060058210610a98576040805162461bcd60e51b81526020600482015260076024820152666c6576656c3c3560c81b604482015290519081900360640190fd5b8060068381548110610aa657fe5b90600052602060002001819055507fc68672618da386214d6545425b5df109ac24986bf591e2685ec5d041ded0ff188282604051808381526020018281526020019250505060405180910390a150505050505050505050505050505050565b6000336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b69576040805162461bcd60e51b81526020600482015260026024820152616f6360f01b604482015290519081900360640190fd5b6000610bdb7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633d5c2644866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561070557600080fd5b90506000610be884611180565b9050808214610c0d576001600160a01b03851660009081526004602052604090204290555b6001600160a01b038516600090815260036020526040902054821415610c3857600192505050610d3d565b6001600160a01b038516600090815260036020526040902054821015610cb2576001600160a01b0385166000818152600360209081526040918290208590558151928352820184905280517f9c3a8893d79649ee146a28a7d276157b00d5a1831429be1179c8b6374e84337d9281900390910190a1610d36565b6005546001600160a01b0386166000908152600460205260409020544291610cda91906114dd565b1015610d36576001600160a01b0385166000818152600360209081526040918290208590558151928352820184905280517f9c3a8893d79649ee146a28a7d276157b00d5a1831429be1179c8b6374e84337d9281900390910190a15b6000925050505b92915050565b60055481565b6040516000904690610d65903090839087908790602001611792565b6040516020818303038152906040528051906020012091505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025460ff16158015610dc4575080516001600160a01b031615155b8015610ddc575060208101516001600160a01b031615155b8015610df4575060408101516001600160a01b031615155b610e105760405162461bcd60e51b815260040161087190611868565b6040805160608101825282516001600160a01b039081168252602080850151821690830152838301511691810191909152610e4f9060009060036115f1565b50506002805460ff19166001179055565b600046818080610e7286880188611759565b9250925092506001610eaf30868c8c604051602001610e949493929190611792565b60405160208183030381529060405280519060200120611526565b84848460405160008152602001604052604051610ecf94939291906117f6565b6020604051602081039080840390855afa158015610ef1573d6000803e3d6000fd5b5050604051601f1901519a9950505050505050505050565b83838383604051806040016040528060188152602001771cd95d13195d995b15985b1a59185d1a5bdb94195c9a5bd960421b815250610f47336107b6565b610f635760405162461bcd60e51b815260040161087190611814565b6000610f7186868686610e60565b90506001600160a01b0381163314801590610f905750610f90816107b6565b8015610fa457506001600160a01b03811615155b610fc05760405162461bcd60e51b81526004016108719061184c565b60008080610fd0888a018a611692565b50600082815260016020526040902054929550909350915060ff1615801561100a5750845160208601206001600160e01b03198481169116145b6110265760405162461bcd60e51b815260040161087190611884565b4281116110455760405162461bcd60e51b815260040161087190611830565b60008281526001602081905260408220805460ff191690911790558d8d608081101561107057600080fd5b6001600160e01b03198235169160208101359160408201359190810190608081016060820135600160201b8111156110a757600080fd5b8201836020820111156110b957600080fd5b803590602001918460018302840111600160201b831117156110da57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949b509950506020808b0198509296505050841015925061113191505057600080fd5b505160058190556040805182815290519192507f41a00c7eee03e61d1b60dd43612931ec2f38759d03ecdd78c75a5f012000acbc919081900360200190a1505050505050505050505050505050565b6000600660008154811061119057fe5b90600052602060002001548210156111aa575060006107b1565b60066001815481106111b857fe5b90600052602060002001548210156111d2575060016107b1565b60066002815481106111e057fe5b90600052602060002001548210156111fa575060026107b1565b600660038154811061120857fe5b9060005260206000200154821015611222575060036107b1565b600660048154811061123057fe5b906000526020600020015482101561124a575060046107b1565b506005919050565b600581565b60016020526000908152604090205460ff1681565b60036020526000908152604090205481565b838383836040518060400160405280601181526020017007472616e736665724f776e65727368697607c1b8152506112b5336107b6565b6112d15760405162461bcd60e51b815260040161087190611814565b60006112df86868686610e60565b90506001600160a01b03811633148015906112fe57506112fe816107b6565b801561131257506001600160a01b03811615155b61132e5760405162461bcd60e51b81526004016108719061184c565b6000808061133e888a018a611692565b50600082815260016020526040902054929550909350915060ff161580156113785750845160208601206001600160e01b03198481169116145b6113945760405162461bcd60e51b815260040161087190611884565b4281116113b35760405162461bcd60e51b815260040161087190611830565b60008281526001602081905260408220805460ff191690911790556113da8d8f018f611692565b93505050506000818060200190518101906113f5919061166b565b90506000805b60005481101561144357336001600160a01b03166000828154811061141c57fe5b6000918252602090912001546001600160a01b0316141561143b578091505b6001016113fb565b50600080828154811061145257fe5b600091825260208220015481546001600160a01b0390911692508491908490811061147957fe5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051858316928416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050505050505050505050505050505050565b600061151f83836040518060400160405280601b81526020017f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815250611556565b9392505050565b60008160405160200161153991906117c5565b604051602081830303815290604052805190602001209050919050565b600083830182858210156115e85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ad578181015183820152602001611595565b50505050905090810190601f1680156115da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50949350505050565b828054828255906000526020600020908101928215611646579160200282015b8281111561164657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611611565b50611652929150611656565b5090565b5b808211156116525760008155600101611657565b60006020828403121561167c578081fd5b81516001600160a01b038116811461151f578182fd5b600080600080608085870312156116a7578283fd5b84356001600160e01b0319811681146116be578384fd5b9350602085810135935060408601359250606086013567ffffffffffffffff808211156116e9578384fd5b818801915088601f8301126116fc578384fd5b81358181111561170857fe5b604051601f8201601f191681018501838111828210171561172557fe5b60405281815283820185018b101561173b578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060006060848603121561176d578283fd5b833560ff8116811461177d578384fd5b95602085013595506040909401359392505050565b60006bffffffffffffffffffffffff198660601b1682528460148301528284603484013791016034019081529392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526002908201526137b760f11b604082015260600190565b602080825260029082015261065760f41b604082015260600190565b602080825260029082015261697360f01b604082015260600190565b602080825260029082015261616960f01b604082015260600190565b60208082526003908201526273727560e81b60408201526060019056fea164736f6c6343000706000a000000000000000000000000e47c751c72ef1d2723e021f8153567bd3e076a70

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

000000000000000000000000e47c751c72ef1d2723e021f8153567bd3e076a70

-----Decoded View---------------
Arg [0] : _cardContract (address): 0xe47c751c72ef1d2723e021f8153567bd3e076a70

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e47c751c72ef1d2723e021f8153567bd3e076a70


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