ETH Price: $2,728.48 (+4.65%)

Contract

0x61c10413041f9E8791bCD5c543d77302F585bBcb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake205919142024-08-23 14:32:113 hrs ago1724423531IN
0x61c10413...2F585bBcb
0 ETH0.000678837.38204982
Stake205910012024-08-23 11:27:597 hrs ago1724412479IN
0x61c10413...2F585bBcb
0 ETH0.000197991.22948164
Stake205908412024-08-23 10:55:597 hrs ago1724410559IN
0x61c10413...2F585bBcb
0 ETH0.000175591.09037457
Stake205843982024-08-22 13:18:5929 hrs ago1724332739IN
0x61c10413...2F585bBcb
0 ETH0.000326821.9964002
Unstake205782192024-08-21 16:34:112 days ago1724258051IN
0x61c10413...2F585bBcb
0 ETH0.000397294.3204061
Unstake205731112024-08-20 23:27:592 days ago1724196479IN
0x61c10413...2F585bBcb
0 ETH0.000075461.01500793
Stake205729452024-08-20 22:54:352 days ago1724194475IN
0x61c10413...2F585bBcb
0 ETH0.000156040.95634153
Stake205702752024-08-20 13:57:113 days ago1724162231IN
0x61c10413...2F585bBcb
0 ETH0.000375542.1939379
Unstake205688822024-08-20 9:16:473 days ago1724145407IN
0x61c10413...2F585bBcb
0 ETH0.000225582.06852969
Unstake205683792024-08-20 7:35:233 days ago1724139323IN
0x61c10413...2F585bBcb
0 ETH0.000123641.34462075
Unstake205683282024-08-20 7:25:113 days ago1724138711IN
0x61c10413...2F585bBcb
0 ETH0.000286573.11643668
Unstake205666422024-08-20 1:46:113 days ago1724118371IN
0x61c10413...2F585bBcb
0 ETH0.000403553.70043229
Unstake205661642024-08-20 0:09:593 days ago1724112599IN
0x61c10413...2F585bBcb
0 ETH0.000223913.01153603
Stake205655612024-08-19 22:09:113 days ago1724105351IN
0x61c10413...2F585bBcb
0 ETH0.000215271.73554064
Stake205641252024-08-19 17:20:594 days ago1724088059IN
0x61c10413...2F585bBcb
0 ETH0.000450152.70571799
Stake205634852024-08-19 15:11:234 days ago1724080283IN
0x61c10413...2F585bBcb
0 ETH0.000722534.56230528
Unstake205633382024-08-19 14:41:594 days ago1724078519IN
0x61c10413...2F585bBcb
0 ETH0.000459154.99311293
Unstake205625732024-08-19 12:07:474 days ago1724069267IN
0x61c10413...2F585bBcb
0 ETH0.000273232.97134256
Stake205621942024-08-19 10:51:354 days ago1724064695IN
0x61c10413...2F585bBcb
0 ETH0.000413383.19206785
Unstake205621882024-08-19 10:50:234 days ago1724064623IN
0x61c10413...2F585bBcb
0 ETH0.000300233.26489684
Unstake205616382024-08-19 8:59:594 days ago1724057999IN
0x61c10413...2F585bBcb
0 ETH0.000117191.57625232
Stake205611922024-08-19 7:30:234 days ago1724052623IN
0x61c10413...2F585bBcb
0 ETH0.000246281.55514458
Stake205570492024-08-18 17:37:115 days ago1724002631IN
0x61c10413...2F585bBcb
0 ETH0.000456892.79094647
Unstake205563532024-08-18 15:16:475 days ago1723994207IN
0x61c10413...2F585bBcb
0 ETH0.000264563.5583246
Stake205510762024-08-17 21:37:475 days ago1723930667IN
0x61c10413...2F585bBcb
0 ETH0.000144880.98464922
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CNDLStaking

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : CNDLStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract CNDLStaking is Ownable, ReentrancyGuard {
    using SafeMath for uint256;

    struct Stake {
        uint256 amount;
        uint256 startTime;
        uint256 initialTier;
        uint256 lastUpdateTime;
    }

    IERC20 public cndlToken;
    address public constant CNDL_TOKEN_ADDRESS = 0x6EFb32bc7893b793603E39643D86594CE3638157;
    address public constant FEE_ADDRESS = 0x83576669A353BC57aF70989746722315e48747a2;

    mapping(address => Stake) public stakes;
    mapping(address => uint256) public receiptScores;

    uint256 public constant DURATION = 9 days;
    uint256 public constant EARLY_UNSTAKE_FEE_PERCENT = 5;
    uint256[] public thresholds = [25000 * 10**18, 50000 * 10**18, 100000 * 10**18, 150000 * 10**18, 300000 * 10**18, 600000 * 10**18];
    uint256[] public tierScores = [1, 2, 3, 4, 5, 6]; // corresponding scores for each tier to increment receipt score per duration
    string[] public categoryNames = ["TierOne", "TierTwo", "TierThree", "TierFour", "TierFive", "TierSix"];

    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount, uint256 receiptScore);
    event ReceiptScoreReset(address indexed user);
    event ForciblyUnstaked(address indexed user, uint256 amount, uint256 receiptScore);

    constructor(address _cndlToken) {
        require(_cndlToken == CNDL_TOKEN_ADDRESS, "Invalid CNDL token address");
        cndlToken = IERC20(_cndlToken);
    }

    function stake(uint256 amount) external nonReentrant {
        require(amount >= thresholds[0], "Cannot stake below the minimum threshold");
        require(cndlToken.balanceOf(msg.sender) >= amount, "Insufficient balance to stake");
        require(cndlToken.transferFrom(msg.sender, address(this), amount), "Token transfer failed");

        uint256 initialTier = getTier(amount);

        if (stakes[msg.sender].amount > 0) {
            stakes[msg.sender].amount = stakes[msg.sender].amount.add(amount);
        } else {
            stakes[msg.sender] = Stake(amount, block.timestamp, initialTier, block.timestamp);
        }

        emit Staked(msg.sender, amount);
    }

    function unstake() external nonReentrant {
        updateReceiptScore(msg.sender);
        _unstake(msg.sender);
    }

    function forciblyUnstake(address account) external onlyOwner nonReentrant {
        updateReceiptScore(account);
        _unstake(account);
        emit ForciblyUnstaked(account, stakes[account].amount, receiptScores[account]);
    }

    function _unstake(address account) internal {
        Stake storage userStake = stakes[account];
        require(userStake.amount > 0, "No tokens staked");

        uint256 stakedAmount = userStake.amount;
        uint256 feeAmount = 0;

        if (block.timestamp < userStake.startTime + DURATION) {
            feeAmount = stakedAmount.mul(EARLY_UNSTAKE_FEE_PERCENT).div(100);
            require(cndlToken.transfer(FEE_ADDRESS, feeAmount), "Fee transfer failed");
            stakedAmount = stakedAmount.sub(feeAmount);
        }

        // Reset stake
        userStake.amount = 0;
        userStake.startTime = 0;

        require(cndlToken.transfer(account, stakedAmount), "Token transfer failed");

        emit Unstaked(account, stakedAmount, receiptScores[account]);
    }

    function updateReceiptScore(address account) internal {
        Stake storage userStake = stakes[account];
        if (userStake.amount == 0) {
            return;
        }

        uint256 periods = (block.timestamp - userStake.lastUpdateTime) / DURATION;
        if (periods > 0) {
            receiptScores[account] = receiptScores[account].add(tierScores[userStake.initialTier].mul(periods));
            userStake.lastUpdateTime = userStake.lastUpdateTime.add(periods * DURATION);
        }
    }

    function getUpdatedReceiptScore(address account) public view returns (uint256) {
        Stake storage userStake = stakes[account];
        if (userStake.amount == 0) {
            return receiptScores[account];
        }

        uint256 periods = (block.timestamp - userStake.lastUpdateTime) / DURATION;
        uint256 newScores = tierScores[userStake.initialTier].mul(periods);

        return receiptScores[account].add(newScores);
    }

    function receiptScore(address account) external view returns (uint256) {
        return getUpdatedReceiptScore(account);
    }

    function currentCategory(address account) external view returns (string memory) {
        uint256 stakedAmount = stakes[account].amount;
        require(stakedAmount >= thresholds[0], "No staked amount");

        for (uint256 i = thresholds.length; i > 0; i--) {
            if (stakedAmount >= thresholds[i - 1]) {
                return categoryNames[i - 1];
            }
        }

        revert("No valid threshold category found");
    }

    function isValidThreshold(uint256 amount) internal view returns (bool) {
        return amount >= thresholds[0];
    }

    function getTier(uint256 amount) internal view returns (uint256) {
        for (uint256 i = thresholds.length; i > 0; i--) {
            if (amount >= thresholds[i - 1]) {
                return i - 1;
            }
        }
        revert("Amount does not match any tier");
    }

    function resetReceiptScore(address account) external onlyOwner {
        receiptScores[account] = 0;
        emit ReceiptScoreReset(account);
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 6 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 5 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 6 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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 a + b;
    }

    /**
     * @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 a - b;
    }

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_cndlToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receiptScore","type":"uint256"}],"name":"ForciblyUnstaked","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":true,"internalType":"address","name":"user","type":"address"}],"name":"ReceiptScoreReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receiptScore","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"CNDL_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EARLY_UNSTAKE_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"categoryNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cndlToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"currentCategory","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"forciblyUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUpdatedReceiptScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"receiptScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"receiptScores","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"resetReceiptScore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"initialTier","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"thresholds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tierScores","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060c0016040528069054b40b1f852bda0000069ffffffffffffffffffff168152602001690a968163f0a57b40000069ffffffffffffffffffff16815260200169152d02c7e14af680000069ffffffffffffffffffff168152602001691fc3842bd1f071c0000069ffffffffffffffffffff168152602001693f870857a3e0e380000069ffffffffffffffffffff168152602001697f0e10af47c1c700000069ffffffffffffffffffff168152506005906006620000c792919062000491565b506040518060c00160405280600160ff168152602001600260ff168152602001600360ff168152602001600460ff168152602001600560ff168152602001600660ff1681525060069060066200011f929190620004f1565b506040518060c001604052806040518060400160405280600781526020017f546965724f6e650000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f5469657254776f0000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f546965725468726565000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f54696572466f757200000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f546965724669766500000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f546965725369780000000000000000000000000000000000000000000000000081525081525060079060066200029d92919062000548565b50348015620002ab57600080fd5b5060405162002ce138038062002ce18339818101604052810190620002d191906200069f565b620002f1620002e5620003c560201b60201c565b620003cd60201b60201c565b60018081905550736efb32bc7893b793603e39643d86594ce363815773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146200037d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003749062000732565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000ab5565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255906000526020600020908101928215620004de579160200282015b82811115620004dd578251829069ffffffffffffffffffff16905591602001919060010190620004b2565b5b509050620004ed9190620005a8565b5090565b82805482825590600052602060002090810192821562000535579160200282015b8281111562000534578251829060ff1690559160200191906001019062000512565b5b509050620005449190620005a8565b5090565b82805482825590600052602060002090810192821562000595579160200282015b8281111562000594578251829081620005839190620009ce565b509160200191906001019062000569565b5b509050620005a49190620005c7565b5090565b5b80821115620005c3576000816000905550600101620005a9565b5090565b5b80821115620005eb5760008181620005e19190620005ef565b50600101620005c8565b5090565b508054620005fd90620007bd565b6000825580601f1062000611575062000632565b601f016020900490600052602060002090810190620006319190620005a8565b5b50565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000667826200063a565b9050919050565b62000679816200065a565b81146200068557600080fd5b50565b60008151905062000699816200066e565b92915050565b600060208284031215620006b857620006b762000635565b5b6000620006c88482850162000688565b91505092915050565b600082825260208201905092915050565b7f496e76616c696420434e444c20746f6b656e2061646472657373000000000000600082015250565b60006200071a601a83620006d1565b91506200072782620006e2565b602082019050919050565b600060208201905081810360008301526200074d816200070b565b9050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620007d657607f821691505b602082108103620007ec57620007eb6200078e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620008567fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000817565b62000862868362000817565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008af620008a9620008a3846200087a565b62000884565b6200087a565b9050919050565b6000819050919050565b620008cb836200088e565b620008e3620008da82620008b6565b84845462000824565b825550505050565b600090565b620008fa620008eb565b62000907818484620008c0565b505050565b5b818110156200092f5762000923600082620008f0565b6001810190506200090d565b5050565b601f8211156200097e576200094881620007f2565b620009538462000807565b8101602085101562000963578190505b6200097b620009728562000807565b8301826200090c565b50505b505050565b600082821c905092915050565b6000620009a36000198460080262000983565b1980831691505092915050565b6000620009be838362000990565b9150826002028217905092915050565b620009d98262000754565b67ffffffffffffffff811115620009f557620009f46200075f565b5b62000a018254620007bd565b62000a0e82828562000933565b600060209050601f83116001811462000a46576000841562000a31578287015190505b62000a3d8582620009b0565b86555062000aad565b601f19841662000a5686620007f2565b60005b8281101562000a805784890151825560018201915060208501945060208101905062000a59565b8683101562000aa0578489015162000a9c601f89168262000990565b8355505b6001600288020188555050505b505050505050565b61221c8062000ac56000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063aa5de581116100ad578063df89e23f11610071578063df89e23f14610334578063eb1edd6114610364578063f2fde38b14610382578063f639e0d11461039e578063fb1354f9146103bc5761012c565b8063aa5de5811461026c578063ab5be7fe1461029c578063b2e4b3cc146102cc578063b6c22611146102e8578063dbb02626146103185761012c565b80634d9b76a3116100f45780634d9b76a3146101da578063715018a6146101f8578063784940c5146102025780638da5cb5b14610232578063a694fc3a146102505761012c565b806316934fc4146101315780631be052891461016457806329002064146101825780632def6620146101a05780634c8fd77f146101aa575b600080fd5b61014b6004803603810190610146919061175a565b6103ec565b60405161015b94939291906117a0565b60405180910390f35b61016c61041c565b60405161017991906117e5565b60405180910390f35b61018a610423565b604051610197919061185f565b60405180910390f35b6101a8610449565b005b6101c460048036038101906101bf91906118a6565b61046d565b6040516101d191906117e5565b60405180910390f35b6101e2610491565b6040516101ef91906118e2565b60405180910390f35b6102006104a9565b005b61021c600480360381019061021791906118a6565b6104bd565b604051610229919061198d565b60405180910390f35b61023a610569565b60405161024791906118e2565b60405180910390f35b61026a600480360381019061026591906118a6565b610592565b005b6102866004803603810190610281919061175a565b610999565b60405161029391906117e5565b60405180910390f35b6102b660048036038101906102b1919061175a565b610ae9565b6040516102c391906117e5565b60405180910390f35b6102e660048036038101906102e1919061175a565b610afb565b005b61030260048036038101906102fd91906118a6565b610b8e565b60405161030f91906117e5565b60405180910390f35b610332600480360381019061032d919061175a565b610bb2565b005b61034e6004803603810190610349919061175a565b610cb0565b60405161035b91906117e5565b60405180910390f35b61036c610cc8565b60405161037991906118e2565b60405180910390f35b61039c6004803603810190610397919061175a565b610ce0565b005b6103a6610d63565b6040516103b391906117e5565b60405180910390f35b6103d660048036038101906103d1919061175a565b610d68565b6040516103e3919061198d565b60405180910390f35b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b620bdd8081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610451610f68565b61045a33610fb7565b61046333611134565b61046b61149d565b565b6006818154811061047d57600080fd5b906000526020600020016000915090505481565b736efb32bc7893b793603e39643d86594ce363815781565b6104b16114a6565b6104bb6000611524565b565b600781815481106104cd57600080fd5b9060005260206000200160009150905080546104e8906119de565b80601f0160208091040260200160405190810160405280929190818152602001828054610514906119de565b80156105615780601f1061053657610100808354040283529160200191610561565b820191906000526020600020905b81548152906001019060200180831161054457829003601f168201915b505050505081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61059a610f68565b60056000815481106105af576105ae611a0f565b5b90600052602060002001548110156105fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f390611ab0565b60405180910390fd5b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161065891906118e2565b602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611ae5565b10156106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611b5e565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161073993929190611b7e565b6020604051808303816000875af1158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c9190611bed565b6107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b290611c66565b60405180910390fd5b60006107c6826115e8565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156108b35761086882600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461169790919063ffffffff16565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555061093f565b604051806080016040528083815260200142815260200182815260200142815250600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050505b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8360405161098591906117e5565b60405180910390a25061099661149d565b50565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015403610a3157600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054915050610ae4565b6000620bdd80826003015442610a479190611cb5565b610a519190611d18565b90506000610a8a826006856002015481548110610a7157610a70611a0f565b5b90600052602060002001546116ad90919063ffffffff16565b9050610ade81600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169790919063ffffffff16565b93505050505b919050565b6000610af482610999565b9050919050565b610b036114a6565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff167f1c0a83c75893ea5e5edf7e36b5e8c52f66c4ecfddffd79715205dc2d7e566e7a60405160405180910390a250565b60058181548110610b9e57600080fd5b906000526020600020016000915090505481565b610bba6114a6565b610bc2610f68565b610bcb81610fb7565b610bd481611134565b8073ffffffffffffffffffffffffffffffffffffffff167f58dcf343319c5c854d59fb1ac707500b49ce090cb473892bcb8a191ce582d0d2600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054604051610c9d929190611d49565b60405180910390a2610cad61149d565b50565b60046020528060005260406000206000915090505481565b7383576669a353bc57af70989746722315e48747a281565b610ce86114a6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90611de4565b60405180910390fd5b610d6081611524565b50565b600581565b60606000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506005600081548110610dc657610dc5611a0f565b5b9060005260206000200154811015610e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0a90611e50565b60405180910390fd5b600060058054905090505b6000811115610f27576005600182610e369190611cb5565b81548110610e4757610e46611a0f565b5b90600052602060002001548210610f14576007600182610e679190611cb5565b81548110610e7857610e77611a0f565b5b906000526020600020018054610e8d906119de565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb9906119de565b8015610f065780601f10610edb57610100808354040283529160200191610f06565b820191906000526020600020905b815481529060010190602001808311610ee957829003601f168201915b505050505092505050610f63565b8080610f1f90611e70565b915050610e1e565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90611f0b565b60405180910390fd5b919050565b600260015403610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa490611f77565b60405180910390fd5b6002600181905550565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001540361100c5750611131565b6000620bdd808260030154426110229190611cb5565b61102c9190611d18565b9050600081111561112e576110bd61106f82600685600201548154811061105657611055611a0f565b5b90600052602060002001546116ad90919063ffffffff16565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169790919063ffffffff16565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611125620bdd80826111129190611f97565b836003015461169790919063ffffffff16565b82600301819055505b50505b50565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154116111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b590612025565b60405180910390fd5b6000816000015490506000620bdd8083600101546111dc9190612045565b4210156113155761120a60646111fc6005856116ad90919063ffffffff16565b6116c390919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7383576669a353bc57af70989746722315e48747a2836040518363ffffffff1660e01b815260040161127d929190612079565b6020604051808303816000875af115801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190611bed565b6112ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f6906120ee565b60405180910390fd5b61131281836116d990919063ffffffff16565b91505b6000836000018190555060008360010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401611386929190612079565b6020604051808303816000875af11580156113a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c99190611bed565b611408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ff90611c66565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e83600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405161148f929190611d49565b60405180910390a250505050565b60018081905550565b6114ae6116ef565b73ffffffffffffffffffffffffffffffffffffffff166114cc610569565b73ffffffffffffffffffffffffffffffffffffffff1614611522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115199061215a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060058054905090505b600081111561165657600560018261160c9190611cb5565b8154811061161d5761161c611a0f565b5b906000526020600020015483106116435760018161163b9190611cb5565b915050611692565b808061164e90611e70565b9150506115f4565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611689906121c6565b60405180910390fd5b919050565b600081836116a59190612045565b905092915050565b600081836116bb9190611f97565b905092915050565b600081836116d19190611d18565b905092915050565b600081836116e79190611cb5565b905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611727826116fc565b9050919050565b6117378161171c565b811461174257600080fd5b50565b6000813590506117548161172e565b92915050565b6000602082840312156117705761176f6116f7565b5b600061177e84828501611745565b91505092915050565b6000819050919050565b61179a81611787565b82525050565b60006080820190506117b56000830187611791565b6117c26020830186611791565b6117cf6040830185611791565b6117dc6060830184611791565b95945050505050565b60006020820190506117fa6000830184611791565b92915050565b6000819050919050565b600061182561182061181b846116fc565b611800565b6116fc565b9050919050565b60006118378261180a565b9050919050565b60006118498261182c565b9050919050565b6118598161183e565b82525050565b60006020820190506118746000830184611850565b92915050565b61188381611787565b811461188e57600080fd5b50565b6000813590506118a08161187a565b92915050565b6000602082840312156118bc576118bb6116f7565b5b60006118ca84828501611891565b91505092915050565b6118dc8161171c565b82525050565b60006020820190506118f760008301846118d3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561193757808201518184015260208101905061191c565b60008484015250505050565b6000601f19601f8301169050919050565b600061195f826118fd565b6119698185611908565b9350611979818560208601611919565b61198281611943565b840191505092915050565b600060208201905081810360008301526119a78184611954565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806119f657607f821691505b602082108103611a0957611a086119af565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e6e6f74207374616b652062656c6f7720746865206d696e696d756d207460008201527f68726573686f6c64000000000000000000000000000000000000000000000000602082015250565b6000611a9a602883611908565b9150611aa582611a3e565b604082019050919050565b60006020820190508181036000830152611ac981611a8d565b9050919050565b600081519050611adf8161187a565b92915050565b600060208284031215611afb57611afa6116f7565b5b6000611b0984828501611ad0565b91505092915050565b7f496e73756666696369656e742062616c616e636520746f207374616b65000000600082015250565b6000611b48601d83611908565b9150611b5382611b12565b602082019050919050565b60006020820190508181036000830152611b7781611b3b565b9050919050565b6000606082019050611b9360008301866118d3565b611ba060208301856118d3565b611bad6040830184611791565b949350505050565b60008115159050919050565b611bca81611bb5565b8114611bd557600080fd5b50565b600081519050611be781611bc1565b92915050565b600060208284031215611c0357611c026116f7565b5b6000611c1184828501611bd8565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000611c50601583611908565b9150611c5b82611c1a565b602082019050919050565b60006020820190508181036000830152611c7f81611c43565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611cc082611787565b9150611ccb83611787565b9250828203905081811115611ce357611ce2611c86565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611d2382611787565b9150611d2e83611787565b925082611d3e57611d3d611ce9565b5b828204905092915050565b6000604082019050611d5e6000830185611791565b611d6b6020830184611791565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611dce602683611908565b9150611dd982611d72565b604082019050919050565b60006020820190508181036000830152611dfd81611dc1565b9050919050565b7f4e6f207374616b656420616d6f756e7400000000000000000000000000000000600082015250565b6000611e3a601083611908565b9150611e4582611e04565b602082019050919050565b60006020820190508181036000830152611e6981611e2d565b9050919050565b6000611e7b82611787565b915060008203611e8e57611e8d611c86565b5b600182039050919050565b7f4e6f2076616c6964207468726573686f6c642063617465676f727920666f756e60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ef5602183611908565b9150611f0082611e99565b604082019050919050565b60006020820190508181036000830152611f2481611ee8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611f61601f83611908565b9150611f6c82611f2b565b602082019050919050565b60006020820190508181036000830152611f9081611f54565b9050919050565b6000611fa282611787565b9150611fad83611787565b9250828202611fbb81611787565b91508282048414831517611fd257611fd1611c86565b5b5092915050565b7f4e6f20746f6b656e73207374616b656400000000000000000000000000000000600082015250565b600061200f601083611908565b915061201a82611fd9565b602082019050919050565b6000602082019050818103600083015261203e81612002565b9050919050565b600061205082611787565b915061205b83611787565b925082820190508082111561207357612072611c86565b5b92915050565b600060408201905061208e60008301856118d3565b61209b6020830184611791565b9392505050565b7f466565207472616e73666572206661696c656400000000000000000000000000600082015250565b60006120d8601383611908565b91506120e3826120a2565b602082019050919050565b60006020820190508181036000830152612107816120cb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612144602083611908565b915061214f8261210e565b602082019050919050565b6000602082019050818103600083015261217381612137565b9050919050565b7f416d6f756e7420646f6573206e6f74206d6174636820616e7920746965720000600082015250565b60006121b0601e83611908565b91506121bb8261217a565b602082019050919050565b600060208201905081810360008301526121df816121a3565b905091905056fea2646970667358221220ae16fafbe8ecade248410dfeb871c28062f979ed1fb264f31221b9653771cee464736f6c634300081400330000000000000000000000006efb32bc7893b793603e39643d86594ce3638157

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063aa5de581116100ad578063df89e23f11610071578063df89e23f14610334578063eb1edd6114610364578063f2fde38b14610382578063f639e0d11461039e578063fb1354f9146103bc5761012c565b8063aa5de5811461026c578063ab5be7fe1461029c578063b2e4b3cc146102cc578063b6c22611146102e8578063dbb02626146103185761012c565b80634d9b76a3116100f45780634d9b76a3146101da578063715018a6146101f8578063784940c5146102025780638da5cb5b14610232578063a694fc3a146102505761012c565b806316934fc4146101315780631be052891461016457806329002064146101825780632def6620146101a05780634c8fd77f146101aa575b600080fd5b61014b6004803603810190610146919061175a565b6103ec565b60405161015b94939291906117a0565b60405180910390f35b61016c61041c565b60405161017991906117e5565b60405180910390f35b61018a610423565b604051610197919061185f565b60405180910390f35b6101a8610449565b005b6101c460048036038101906101bf91906118a6565b61046d565b6040516101d191906117e5565b60405180910390f35b6101e2610491565b6040516101ef91906118e2565b60405180910390f35b6102006104a9565b005b61021c600480360381019061021791906118a6565b6104bd565b604051610229919061198d565b60405180910390f35b61023a610569565b60405161024791906118e2565b60405180910390f35b61026a600480360381019061026591906118a6565b610592565b005b6102866004803603810190610281919061175a565b610999565b60405161029391906117e5565b60405180910390f35b6102b660048036038101906102b1919061175a565b610ae9565b6040516102c391906117e5565b60405180910390f35b6102e660048036038101906102e1919061175a565b610afb565b005b61030260048036038101906102fd91906118a6565b610b8e565b60405161030f91906117e5565b60405180910390f35b610332600480360381019061032d919061175a565b610bb2565b005b61034e6004803603810190610349919061175a565b610cb0565b60405161035b91906117e5565b60405180910390f35b61036c610cc8565b60405161037991906118e2565b60405180910390f35b61039c6004803603810190610397919061175a565b610ce0565b005b6103a6610d63565b6040516103b391906117e5565b60405180910390f35b6103d660048036038101906103d1919061175a565b610d68565b6040516103e3919061198d565b60405180910390f35b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b620bdd8081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610451610f68565b61045a33610fb7565b61046333611134565b61046b61149d565b565b6006818154811061047d57600080fd5b906000526020600020016000915090505481565b736efb32bc7893b793603e39643d86594ce363815781565b6104b16114a6565b6104bb6000611524565b565b600781815481106104cd57600080fd5b9060005260206000200160009150905080546104e8906119de565b80601f0160208091040260200160405190810160405280929190818152602001828054610514906119de565b80156105615780601f1061053657610100808354040283529160200191610561565b820191906000526020600020905b81548152906001019060200180831161054457829003601f168201915b505050505081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61059a610f68565b60056000815481106105af576105ae611a0f565b5b90600052602060002001548110156105fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f390611ab0565b60405180910390fd5b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161065891906118e2565b602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611ae5565b10156106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611b5e565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161073993929190611b7e565b6020604051808303816000875af1158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c9190611bed565b6107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b290611c66565b60405180910390fd5b60006107c6826115e8565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156108b35761086882600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461169790919063ffffffff16565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555061093f565b604051806080016040528083815260200142815260200182815260200142815250600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050505b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8360405161098591906117e5565b60405180910390a25061099661149d565b50565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015403610a3157600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054915050610ae4565b6000620bdd80826003015442610a479190611cb5565b610a519190611d18565b90506000610a8a826006856002015481548110610a7157610a70611a0f565b5b90600052602060002001546116ad90919063ffffffff16565b9050610ade81600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169790919063ffffffff16565b93505050505b919050565b6000610af482610999565b9050919050565b610b036114a6565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff167f1c0a83c75893ea5e5edf7e36b5e8c52f66c4ecfddffd79715205dc2d7e566e7a60405160405180910390a250565b60058181548110610b9e57600080fd5b906000526020600020016000915090505481565b610bba6114a6565b610bc2610f68565b610bcb81610fb7565b610bd481611134565b8073ffffffffffffffffffffffffffffffffffffffff167f58dcf343319c5c854d59fb1ac707500b49ce090cb473892bcb8a191ce582d0d2600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054604051610c9d929190611d49565b60405180910390a2610cad61149d565b50565b60046020528060005260406000206000915090505481565b7383576669a353bc57af70989746722315e48747a281565b610ce86114a6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90611de4565b60405180910390fd5b610d6081611524565b50565b600581565b60606000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506005600081548110610dc657610dc5611a0f565b5b9060005260206000200154811015610e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0a90611e50565b60405180910390fd5b600060058054905090505b6000811115610f27576005600182610e369190611cb5565b81548110610e4757610e46611a0f565b5b90600052602060002001548210610f14576007600182610e679190611cb5565b81548110610e7857610e77611a0f565b5b906000526020600020018054610e8d906119de565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb9906119de565b8015610f065780601f10610edb57610100808354040283529160200191610f06565b820191906000526020600020905b815481529060010190602001808311610ee957829003601f168201915b505050505092505050610f63565b8080610f1f90611e70565b915050610e1e565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90611f0b565b60405180910390fd5b919050565b600260015403610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa490611f77565b60405180910390fd5b6002600181905550565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001540361100c5750611131565b6000620bdd808260030154426110229190611cb5565b61102c9190611d18565b9050600081111561112e576110bd61106f82600685600201548154811061105657611055611a0f565b5b90600052602060002001546116ad90919063ffffffff16565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169790919063ffffffff16565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611125620bdd80826111129190611f97565b836003015461169790919063ffffffff16565b82600301819055505b50505b50565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154116111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b590612025565b60405180910390fd5b6000816000015490506000620bdd8083600101546111dc9190612045565b4210156113155761120a60646111fc6005856116ad90919063ffffffff16565b6116c390919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7383576669a353bc57af70989746722315e48747a2836040518363ffffffff1660e01b815260040161127d929190612079565b6020604051808303816000875af115801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190611bed565b6112ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f6906120ee565b60405180910390fd5b61131281836116d990919063ffffffff16565b91505b6000836000018190555060008360010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401611386929190612079565b6020604051808303816000875af11580156113a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c99190611bed565b611408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ff90611c66565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e83600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405161148f929190611d49565b60405180910390a250505050565b60018081905550565b6114ae6116ef565b73ffffffffffffffffffffffffffffffffffffffff166114cc610569565b73ffffffffffffffffffffffffffffffffffffffff1614611522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115199061215a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060058054905090505b600081111561165657600560018261160c9190611cb5565b8154811061161d5761161c611a0f565b5b906000526020600020015483106116435760018161163b9190611cb5565b915050611692565b808061164e90611e70565b9150506115f4565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611689906121c6565b60405180910390fd5b919050565b600081836116a59190612045565b905092915050565b600081836116bb9190611f97565b905092915050565b600081836116d19190611d18565b905092915050565b600081836116e79190611cb5565b905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611727826116fc565b9050919050565b6117378161171c565b811461174257600080fd5b50565b6000813590506117548161172e565b92915050565b6000602082840312156117705761176f6116f7565b5b600061177e84828501611745565b91505092915050565b6000819050919050565b61179a81611787565b82525050565b60006080820190506117b56000830187611791565b6117c26020830186611791565b6117cf6040830185611791565b6117dc6060830184611791565b95945050505050565b60006020820190506117fa6000830184611791565b92915050565b6000819050919050565b600061182561182061181b846116fc565b611800565b6116fc565b9050919050565b60006118378261180a565b9050919050565b60006118498261182c565b9050919050565b6118598161183e565b82525050565b60006020820190506118746000830184611850565b92915050565b61188381611787565b811461188e57600080fd5b50565b6000813590506118a08161187a565b92915050565b6000602082840312156118bc576118bb6116f7565b5b60006118ca84828501611891565b91505092915050565b6118dc8161171c565b82525050565b60006020820190506118f760008301846118d3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561193757808201518184015260208101905061191c565b60008484015250505050565b6000601f19601f8301169050919050565b600061195f826118fd565b6119698185611908565b9350611979818560208601611919565b61198281611943565b840191505092915050565b600060208201905081810360008301526119a78184611954565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806119f657607f821691505b602082108103611a0957611a086119af565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e6e6f74207374616b652062656c6f7720746865206d696e696d756d207460008201527f68726573686f6c64000000000000000000000000000000000000000000000000602082015250565b6000611a9a602883611908565b9150611aa582611a3e565b604082019050919050565b60006020820190508181036000830152611ac981611a8d565b9050919050565b600081519050611adf8161187a565b92915050565b600060208284031215611afb57611afa6116f7565b5b6000611b0984828501611ad0565b91505092915050565b7f496e73756666696369656e742062616c616e636520746f207374616b65000000600082015250565b6000611b48601d83611908565b9150611b5382611b12565b602082019050919050565b60006020820190508181036000830152611b7781611b3b565b9050919050565b6000606082019050611b9360008301866118d3565b611ba060208301856118d3565b611bad6040830184611791565b949350505050565b60008115159050919050565b611bca81611bb5565b8114611bd557600080fd5b50565b600081519050611be781611bc1565b92915050565b600060208284031215611c0357611c026116f7565b5b6000611c1184828501611bd8565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000611c50601583611908565b9150611c5b82611c1a565b602082019050919050565b60006020820190508181036000830152611c7f81611c43565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611cc082611787565b9150611ccb83611787565b9250828203905081811115611ce357611ce2611c86565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611d2382611787565b9150611d2e83611787565b925082611d3e57611d3d611ce9565b5b828204905092915050565b6000604082019050611d5e6000830185611791565b611d6b6020830184611791565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611dce602683611908565b9150611dd982611d72565b604082019050919050565b60006020820190508181036000830152611dfd81611dc1565b9050919050565b7f4e6f207374616b656420616d6f756e7400000000000000000000000000000000600082015250565b6000611e3a601083611908565b9150611e4582611e04565b602082019050919050565b60006020820190508181036000830152611e6981611e2d565b9050919050565b6000611e7b82611787565b915060008203611e8e57611e8d611c86565b5b600182039050919050565b7f4e6f2076616c6964207468726573686f6c642063617465676f727920666f756e60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ef5602183611908565b9150611f0082611e99565b604082019050919050565b60006020820190508181036000830152611f2481611ee8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611f61601f83611908565b9150611f6c82611f2b565b602082019050919050565b60006020820190508181036000830152611f9081611f54565b9050919050565b6000611fa282611787565b9150611fad83611787565b9250828202611fbb81611787565b91508282048414831517611fd257611fd1611c86565b5b5092915050565b7f4e6f20746f6b656e73207374616b656400000000000000000000000000000000600082015250565b600061200f601083611908565b915061201a82611fd9565b602082019050919050565b6000602082019050818103600083015261203e81612002565b9050919050565b600061205082611787565b915061205b83611787565b925082820190508082111561207357612072611c86565b5b92915050565b600060408201905061208e60008301856118d3565b61209b6020830184611791565b9392505050565b7f466565207472616e73666572206661696c656400000000000000000000000000600082015250565b60006120d8601383611908565b91506120e3826120a2565b602082019050919050565b60006020820190508181036000830152612107816120cb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612144602083611908565b915061214f8261210e565b602082019050919050565b6000602082019050818103600083015261217381612137565b9050919050565b7f416d6f756e7420646f6573206e6f74206d6174636820616e7920746965720000600082015250565b60006121b0601e83611908565b91506121bb8261217a565b602082019050919050565b600060208201905081810360008301526121df816121a3565b905091905056fea2646970667358221220ae16fafbe8ecade248410dfeb871c28062f979ed1fb264f31221b9653771cee464736f6c63430008140033

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

0000000000000000000000006efb32bc7893b793603e39643d86594ce3638157

-----Decoded View---------------
Arg [0] : _cndlToken (address): 0x6EFb32bc7893b793603E39643D86594CE3638157

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006efb32bc7893b793603e39643d86594ce3638157


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.