Contract 0x25994d5f8b7984AfDEb8c935B0b12CA8a6956D37 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaf389c73937eba74f8af5aa0d167a000818d3fb3b763ed254447ecff7299a503Initialize Owner...164221002022-06-23 18:07:206 days 15 hrs ago0xcbd4e556fc24c83159defd1d1bbad66fd7d2c75c IN  0x25994d5f8b7984afdeb8c935b0b12ca8a6956d370 AVAX0.003353525
0x19b98c13d6b9184c092527b8f77505f1fb43861fedc85e09efe4b6a1b0b07fcb0x60c06040164220942022-06-23 18:07:086 days 15 hrs ago0xcbd4e556fc24c83159defd1d1bbad66fd7d2c75c IN  Create: LimitManager0 AVAX0.045355325
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LimitManager

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 : LimitManager.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/ILevelManager.sol";
import "./libraries/SafeMath.sol";

contract LimitManager is MultiSigOwner, Manager {
    using SafeMath for uint256;
    address public immutable levelManager;
    uint256 public constant MAX_LEVEL = 5;
    // user's sepnd amount in a day.
    mapping(address => uint256) public usersSpendAmountDay;
    // user's spend date
    // it is needed to calculate how much assets user sold in a day.
    mapping(address => uint256) public usersSpendTime;
    // unit is usd amount , so decimal is 18
    // specific user's daily spend limit.
    // this value should be zero in default.
    // if this value is not 0, then return the value and if 0, return limt for user's level.
    mapping(address => uint256) public userDailyLimits;
    uint256[] public DailyLimits;
    uint256 public timeDiff;
    event TimeDiffChanged(uint256 timeDiff);
    event DailyLimitChanged(uint256 index, uint256 _amount);
    event UserDailyLimitChanged(address userAddr, uint256 usdAmount);

    constructor(address _cardContract, address _levelManager)
        Manager(_cardContract)
    {
        DailyLimits = [
            100 ether,
            250 ether,
            500 ether,
            2500 ether,
            5000 ether,
            10000 ether
        ];
        levelManager = _levelManager;
        timeDiff = 4 hours;
    }

    ////////////////////////// Read functions /////////////////////////////////////////////////////////////
    function getUserLimit(address userAddr) public view returns (uint256) {
        uint256 dailyLimit = userDailyLimits[userAddr];
        if (dailyLimit != 0) return dailyLimit;
        uint256 userLevel = ILevelManager(levelManager).getUserLevel(userAddr);
        return getDailyLimit(userLevel);
    }

    // verified
    function getDailyLimit(uint256 level) public view returns (uint256) {
        require(level <= 5, "level > 5");
        return DailyLimits[level];
    }

    // decimal of usdAmount is 18
    function withinLimits(address userAddr, uint256 usdAmount)
        public
        view
        returns (bool)
    {
        if (usdAmount <= getUserLimit(userAddr)) return true;
        return false;
    }

    function getSpendAmountToday(address userAddr)
        public
        view
        returns (uint256)
    {
        uint256 currentDate = (block.timestamp.add(timeDiff)).div(1 days); // UTC -> PST time zone 12 PM
        if (usersSpendTime[userAddr] != currentDate) {
            return 0;
        }
        return usersSpendAmountDay[userAddr];
    }

    ///////////////// CallBack functions from card contract //////////////////////////////////////////////
    function updateUserSpendAmount(address userAddr, uint256 usdAmount)
        public
        onlyFromCardContract
    {
        uint256 currentDate = (block.timestamp.add(timeDiff)).div(1 days); // UTC -> PST time zone 12 PM
        uint256 totalSpendAmount;

        if (usersSpendTime[userAddr] != currentDate) {
            usersSpendTime[userAddr] = currentDate;
            totalSpendAmount = usdAmount;
        } else {
            totalSpendAmount = usersSpendAmountDay[userAddr].add(usdAmount);
        }

        require(withinLimits(userAddr, totalSpendAmount), "odl");
        usersSpendAmountDay[userAddr] = totalSpendAmount;
    }

    //////////////////// Owner functions ////////////////////////////////////////////////////////////////
    // verified
    function setDailyLimit(bytes calldata signData, bytes calldata keys)
        public
        validSignOfOwner(signData, keys, "setDailyLimit")
    {
        (, , , 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");
        DailyLimits[index] = _amount;
        emit DailyLimitChanged(index, _amount);
    }

    // verified
    function setUserDailyLimits(bytes calldata signData, bytes calldata keys)
        public
        validSignOfOwner(signData, keys, "setUserDailyLimits")
    {
        (, , , bytes memory params) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        (address userAddr, uint256 usdAmount) = abi.decode(
            params,
            (address, uint256)
        );
        userDailyLimits[userAddr] = usdAmount;
        emit UserDailyLimitChanged(userAddr, usdAmount);
    }

    function setTimeDiff(bytes calldata signData, bytes calldata keys)
        external
        validSignOfOwner(signData, keys, "setTimeDiff")
    {
        (, , , bytes memory params) = abi.decode(
            signData,
            (bytes4, uint256, uint256, bytes)
        );
        uint256 _value = abi.decode(params, (uint256));
        timeDiff = _value;
        emit TimeDiffChanged(timeDiff);
    }
}

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 : ILevelManager.sol
// SPDX-License-Identifier: LICENSED
pragma solidity ^0.7.0;

interface ILevelManager {
    function getUserLevel(address userAddr) external view returns (uint256);

    function getLevel(uint256 _okseAmount) external view returns (uint256);

    function updateUserLevel(
        address userAddr,
        uint256 beforeAmount
    ) external returns (bool);
}

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"},{"internalType":"address","name":"_levelManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"DailyLimitChanged","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":"uint256","name":"timeDiff","type":"uint256"}],"name":"TimeDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdAmount","type":"uint256"}],"name":"UserDailyLimitChanged","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"DailyLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LEVEL","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":"level","type":"uint256"}],"name":"getDailyLimit","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":"getSpendAmountToday","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"}],"name":"getUserLimit","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":"levelManager","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"setDailyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signData","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"setTimeDiff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signData","type":"bytes"},{"internalType":"bytes","name":"keys","type":"bytes"}],"name":"setUserDailyLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signatureId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"usdAmount","type":"uint256"}],"name":"updateUserSpendAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDailyLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersSpendAmountDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersSpendTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"},{"internalType":"uint256","name":"usdAmount","type":"uint256"}],"name":"withinLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b5060405162001e1b38038062001e1b833981810160405260408110156200003757600080fd5b508051602091820151606082811b6001600160601b03191660809081526040805160c08101825268056bc75e2d631000008152680d8d726b7177a8000096810196909652681b1ae4d6e2ef5000009086015268878678326eac9000009185019190915269010f0cf064dd592000009084015269021e19e0c9bab240000060a08401529091620000ca9060069081620000e8565b5060601b6001600160601b03191660a052506138406007556200015a565b82805482825590600052602060002090810192821562000131579160200282015b828111156200013157825182906001600160501b031690559160200191906001019062000109565b506200013f92915062000143565b5090565b5b808211156200013f576000815560010162000144565b60805160601c60a05160601c611c8d6200018e60003980610aed528061176b5250806111ad52806115ff5250611c8d6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063693bd2d0116100c3578063c743a0e21161007c578063c743a0e214610663578063d1f21f4f14610680578063d7262fc91461073e578063db83dc0a14610764578063e7b0b58c1461078a578063e9587e86146107b65761014d565b8063693bd2d01461051e5780636f9e4f0b1461052657806375e16b17146105785780638b1014c414610636578063a49062d41461063e578063b2b9f0ed146106465761014d565b8063343bd79b11610115578063343bd79b146102c5578063360cf54a146102f157806341e7888914610317578063431e1c4e146103d557806345e2e5a1146103f257806368af81e6146104b05761014d565b8063025e7c2714610152578063115d6d791461018b57806311d5cd38146101c35780632a8d950c146102835780632f54bf6e1461028b575b600080fd5b61016f6004803603602081101561016857600080fd5b50356107dc565b604080516001600160a01b039092168252519081900360200190f35b6101b1600480360360208110156101a157600080fd5b50356001600160a01b0316610806565b60408051918252519081900360200190f35b610281600480360360408110156101d957600080fd5b810190602081018135600160201b8111156101f357600080fd5b82018360208201111561020557600080fd5b803590602001918460018302840111600160201b8311171561022657600080fd5b919390929091602081019035600160201b81111561024357600080fd5b82018360208201111561025557600080fd5b803590602001918460018302840111600160201b8311171561027657600080fd5b509092509050610878565b005b61016f610aeb565b6102b1600480360360208110156102a157600080fd5b50356001600160a01b0316610b0f565b604080519115158252519081900360200190f35b6102b1600480360360408110156102db57600080fd5b506001600160a01b038135169060200135610b64565b6101b16004803603602081101561030757600080fd5b50356001600160a01b0316610b87565b6102816004803603604081101561032d57600080fd5b810190602081018135600160201b81111561034757600080fd5b82018360208201111561035957600080fd5b803590602001918460018302840111600160201b8311171561037a57600080fd5b919390929091602081019035600160201b81111561039757600080fd5b8201836020820111156103a957600080fd5b803590602001918460018302840111600160201b831117156103ca57600080fd5b509092509050610b99565b6101b1600480360360208110156103eb57600080fd5b5035610e31565b6102816004803603604081101561040857600080fd5b810190602081018135600160201b81111561042257600080fd5b82018360208201111561043457600080fd5b803590602001918460018302840111600160201b8311171561045557600080fd5b919390929091602081019035600160201b81111561047257600080fd5b82018360208201111561048457600080fd5b803590602001918460018302840111600160201b831117156104a557600080fd5b509092509050610e94565b6101b1600480360360208110156104c657600080fd5b810190602081018135600160201b8111156104e057600080fd5b8201836020820111156104f257600080fd5b803590602001918460018302840111600160201b8311171561051357600080fd5b509092509050611170565b61016f6111ab565b6102816004803603606081101561053c57600080fd5b81019080806060019060038060200260405190810160405280929190826003602002808284376000920191909152509194506111cf9350505050565b61016f6004803603604081101561058e57600080fd5b810190602081018135600160201b8111156105a857600080fd5b8201836020820111156105ba57600080fd5b803590602001918460018302840111600160201b831117156105db57600080fd5b919390929091602081019035600160201b8111156105f857600080fd5b82018360208201111561060a57600080fd5b803590602001918460018302840111600160201b8311171561062b57600080fd5b509092509050611287565b6101b1611330565b6101b1611336565b6102b16004803603602081101561065c57600080fd5b503561133b565b6101b16004803603602081101561067957600080fd5b5035611350565b6102816004803603604081101561069657600080fd5b810190602081018135600160201b8111156106b057600080fd5b8201836020820111156106c257600080fd5b803590602001918460018302840111600160201b831117156106e357600080fd5b919390929091602081019035600160201b81111561070057600080fd5b82018360208201111561071257600080fd5b803590602001918460018302840111600160201b8311171561073357600080fd5b509092509050611371565b6101b16004803603602081101561075457600080fd5b50356001600160a01b03166115d0565b6101b16004803603602081101561077a57600080fd5b50356001600160a01b03166115e2565b610281600480360360408110156107a057600080fd5b506001600160a01b0381351690602001356115f4565b6101b1600480360360208110156107cc57600080fd5b50356001600160a01b0316611741565b600081815481106107ec57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008061082b620151806108256007544261181590919063ffffffff16565b9061185e565b6001600160a01b0384166000908152600460205260409020549091508114610857576000915050610873565b50506001600160a01b0381166000908152600360205260409020545b919050565b838383836040518060400160405280600b81526020016a39b2ba2a34b6b2a234b33360a91b8152506108a933610b0f565b6108ce5760405162461bcd60e51b81526004016108c590611bf3565b60405180910390fd5b60006108dc86868686611287565b90506001600160a01b03811633148015906108fb57506108fb81610b0f565b801561090f57506001600160a01b03811615155b61092b5760405162461bcd60e51b81526004016108c590611c2b565b6000808061093b888a018a611a71565b50600082815260016020526040902054929550909350915060ff161580156109755750845160208601206001600160e01b03198481169116145b6109915760405162461bcd60e51b81526004016108c590611c63565b4281116109b05760405162461bcd60e51b81526004016108c590611c0f565b60008281526001602081905260408220805460ff191690911790558d8d60808110156109db57600080fd5b6001600160e01b03198235169160208101359160408201359190810190608081016060820135600160201b811115610a1257600080fd5b820183602082011115610a2457600080fd5b803590602001918460018302840111600160201b83111715610a4557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949b509950506020808b01985092965050508410159250610a9c91505057600080fd5b505160078190556040805182815290519192507f88dac46c4157e9fbc3f7f17aa5d351a50a5c466c076c8b30f6e514fe53dcc7bf919081900360200190a1505050505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080805b600054811015610b5d57836001600160a01b031660008281548110610b3557fe5b6000918252602090912001546001600160a01b03161415610b5557600191505b600101610b14565b5092915050565b6000610b6f83611741565b8211610b7d57506001610b81565b5060005b92915050565b60056020526000908152604090205481565b8383838360405180604001604052806012815260200171736574557365724461696c794c696d69747360701b815250610bd133610b0f565b610bed5760405162461bcd60e51b81526004016108c590611bf3565b6000610bfb86868686611287565b90506001600160a01b0381163314801590610c1a5750610c1a81610b0f565b8015610c2e57506001600160a01b03811615155b610c4a5760405162461bcd60e51b81526004016108c590611c2b565b60008080610c5a888a018a611a71565b50600082815260016020526040902054929550909350915060ff16158015610c945750845160208601206001600160e01b03198481169116145b610cb05760405162461bcd60e51b81526004016108c590611c63565b428111610ccf5760405162461bcd60e51b81526004016108c590611c0f565b60008281526001602081905260408220805460ff191690911790558d8d6080811015610cfa57600080fd5b6001600160e01b03198235169160208101359160408201359190810190608081016060820135600160201b811115610d3157600080fd5b820183602082011115610d4357600080fd5b803590602001918460018302840111600160201b83111715610d6457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949b5099508998505060208a019650919450505060408310159150610dbe905057600080fd5b5080516020918201516001600160a01b038216600081815260058552604090819020839055805191825293810182905283519295509093507ffcb4556904d2d02126266a72662259e3b3614856b04c3bceeb1ddfe90cdf651a92908290030190a150505050505050505050505050505050565b60006005821115610e75576040805162461bcd60e51b81526020600482015260096024820152686c6576656c203e203560b81b604482015290519081900360640190fd5b60068281548110610e8257fe5b90600052602060002001549050919050565b838383836040518060400160405280600d81526020016c1cd95d11185a5b1e531a5b5a5d609a1b815250610ec733610b0f565b610ee35760405162461bcd60e51b81526004016108c590611bf3565b6000610ef186868686611287565b90506001600160a01b0381163314801590610f105750610f1081610b0f565b8015610f2457506001600160a01b03811615155b610f405760405162461bcd60e51b81526004016108c590611c2b565b60008080610f50888a018a611a71565b50600082815260016020526040902054929550909350915060ff16158015610f8a5750845160208601206001600160e01b03198481169116145b610fa65760405162461bcd60e51b81526004016108c590611c63565b428111610fc55760405162461bcd60e51b81526004016108c590611c0f565b60008281526001602081905260408220805460ff191690911790558d8d6080811015610ff057600080fd5b6001600160e01b03198235169160208101359160408201359190810190608081016060820135600160201b81111561102757600080fd5b82018360208201111561103957600080fd5b803590602001918460018302840111600160201b8311171561105a57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949b5099508998505060208a0196509194505050604083101591506110b4905057600080fd5b50805160209091015190925090506005821115611103576040805162461bcd60e51b81526020600482015260086024820152676c6576656c3c3d3560c01b604482015290519081900360640190fd5b806006838154811061111157fe5b90600052602060002001819055507f070dc0f9e511fdc888935179b3eba0bb274ccb33e0572454d85d32a70219dd628282604051808381526020018281526020019250505060405180910390a150505050505050505050505050505050565b604051600090469061118c903090839087908790602001611b71565b6040516020818303038152906040528051906020012091505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025460ff161580156111eb575080516001600160a01b031615155b8015611203575060208101516001600160a01b031615155b801561121b575060408101516001600160a01b031615155b6112375760405162461bcd60e51b81526004016108c590611c47565b6040805160608101825282516001600160a01b0390811682526020808501518216908301528383015116918101919091526112769060009060036119d0565b50506002805460ff19166001179055565b60004681808061129986880188611b38565b92509250925060016112d630868c8c6040516020016112bb9493929190611b71565b604051602081830303815290604052805190602001206118a0565b848484604051600081526020016040526040516112f69493929190611bd5565b6020604051602081039080840390855afa158015611318573d6000803e3d6000fd5b5050604051601f1901519a9950505050505050505050565b60075481565b600581565b60016020526000908152604090205460ff1681565b6006818154811061136057600080fd5b600091825260209091200154905081565b838383836040518060400160405280601181526020017007472616e736665724f776e65727368697607c1b8152506113a833610b0f565b6113c45760405162461bcd60e51b81526004016108c590611bf3565b60006113d286868686611287565b90506001600160a01b03811633148015906113f157506113f181610b0f565b801561140557506001600160a01b03811615155b6114215760405162461bcd60e51b81526004016108c590611c2b565b60008080611431888a018a611a71565b50600082815260016020526040902054929550909350915060ff1615801561146b5750845160208601206001600160e01b03198481169116145b6114875760405162461bcd60e51b81526004016108c590611c63565b4281116114a65760405162461bcd60e51b81526004016108c590611c0f565b60008281526001602081905260408220805460ff191690911790556114cd8d8f018f611a71565b93505050506000818060200190518101906114e89190611a4a565b90506000805b60005481101561153657336001600160a01b03166000828154811061150f57fe5b6000918252602090912001546001600160a01b0316141561152e578091505b6001016114ee565b50600080828154811061154557fe5b600091825260208220015481546001600160a01b0390911692508491908490811061156c57fe5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051858316928416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050505050505050505050505050505050565b60036020526000908152604090205481565b60046020526000908152604090205481565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611656576040805162461bcd60e51b81526020600482015260026024820152616f6360f01b604482015290519081900360640190fd5b6000611674620151806108256007544261181590919063ffffffff16565b6001600160a01b0384166000908152600460205260408120549192509082146116b957506001600160a01b0383166000908152600460205260409020819055816116df565b6001600160a01b0384166000908152600360205260409020546116dc9084611815565b90505b6116e98482610b64565b611720576040805162461bcd60e51b81526020600482015260036024820152621bd91b60ea1b604482015290519081900360640190fd5b6001600160a01b039093166000908152600360205260409020929092555050565b6001600160a01b0381166000908152600560205260408120548015611767579050610873565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166321923bde856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156117d657600080fd5b505afa1580156117ea573d6000803e3d6000fd5b505050506040513d602081101561180057600080fd5b5051905061180d81610e31565b949350505050565b600061185783836040518060400160405280601b81526020017f536166654d6174683a206164646974696f6e206f766572666c6f7700000000008152506118d0565b9392505050565b600061185783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061196b565b6000816040516020016118b39190611ba4565b604051602081830303815290604052805190602001209050919050565b600083830182858210156119625760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561192757818101518382015260200161190f565b50505050905090810190601f1680156119545780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50949350505050565b600081836119ba5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561192757818101518382015260200161190f565b5060008385816119c657fe5b0495945050505050565b828054828255906000526020600020908101928215611a25579160200282015b82811115611a2557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906119f0565b50611a31929150611a35565b5090565b5b80821115611a315760008155600101611a36565b600060208284031215611a5b578081fd5b81516001600160a01b0381168114611857578182fd5b60008060008060808587031215611a86578283fd5b84356001600160e01b031981168114611a9d578384fd5b9350602085810135935060408601359250606086013567ffffffffffffffff80821115611ac8578384fd5b818801915088601f830112611adb578384fd5b813581811115611ae757fe5b604051601f8201601f1916810185018381118282101715611b0457fe5b60405281815283820185018b1015611b1a578586fd5b81858501868301379081019093019390935250939692955090935050565b600080600060608486031215611b4c578283fd5b833560ff81168114611b5c578384fd5b95602085013595506040909401359392505050565b60006bffffffffffffffffffffffff198660601b1682528460148301528284603484013791016034019081529392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526002908201526137b760f11b604082015260600190565b602080825260029082015261065760f41b604082015260600190565b602080825260029082015261697360f01b604082015260600190565b602080825260029082015261616960f01b604082015260600190565b60208082526003908201526273727560e81b60408201526060019056fea164736f6c6343000706000a000000000000000000000000e47c751c72ef1d2723e021f8153567bd3e076a7000000000000000000000000040f5a9bfd79585ffe39e93efed59b84d27d6d593

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

000000000000000000000000e47c751c72ef1d2723e021f8153567bd3e076a7000000000000000000000000040f5a9bfd79585ffe39e93efed59b84d27d6d593

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

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


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.