Contract 0x453d0a593d0af91e77e590a7935894f7ab1b87ec 4

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x0e83870d01b7aed6ce95be2a96c483c2ab1532b552af9da477c1309ce5ae0a9dUnlock396394462023-02-24 1:34:3330 days 10 hrs ago0x450dbb59c0b1c3a2c50e10cad596aa3b0e9e1680 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.015081594518 132.250605226
0x75394b62edec868cb02148eb1b9c106dc654259f7fbde7b2d1bd535eecd68c8ePre Mature Withd...346181732022-10-21 12:35:50155 days 23 hrs ago0xd5ce4f018d1f7ceb7137c61ff4c71322e512c492 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.002940313032 124.515670037
0x7e633b76598589e3c4217351a70f1dfbe7efbd8799685be7836e0a97d4a6ace6Pre Mature Withd...341607772022-10-10 8:13:27167 days 3 hrs ago0x296a6c535b764c20a4663427de86b7461486a39a IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.000779262003 33.000000131
0x36cf6a4fb4bcd5ad68d3ef5fef3d4ec0d6247e690f76fc8e233c2f5b2444c6cePre Mature Withd...340756102022-10-08 6:38:39169 days 5 hrs ago0x5f672aa0f225d35a9774c244e56ad3653599024d IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.00000002
0x85d73fab144e45ba2b59e91ff258c263862523b983c47064152ceb7c7b85b59fUnlock340755712022-10-08 6:37:17169 days 5 hrs ago0x5f672aa0f225d35a9774c244e56ad3653599024d IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.0007089 30.000000019
0x51f54cef05bb0b232edc0fd2bd74affdee2d585143ceefad9d654978ed555a13Pre Mature Withd...340510692022-10-07 16:21:18169 days 19 hrs ago amaupupup.bitcoin  IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000023
0xcb5cdfae274a448fa0560c08e0061869f52e870c2481f447b082927f38b73cd2Pre Mature Withd...339879642022-10-06 3:49:44171 days 8 hrs ago0x18ba8c033bd9d535f3ddd15f85ae3e1ae4c2ae22 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00085614 30.000000016
0xe9e66a893e11c0ce2b0c4bb118a0f15e7bb307653e8dcc71190603a8c1c582b2Pre Mature Withd...339507402022-10-05 6:11:40172 days 6 hrs ago0x2390ecd7845a02c9e6d41c6e74ff3c1c50401fba IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000013
0x2321d42b1c8f7c05f61e7bba9e4229c3d316f97a56f8b87f4886a385231f5f76Pre Mature Withd...339285892022-10-04 17:25:14172 days 18 hrs ago0x3467cc54682bef249824f68daa23c0799f299593 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.000710740268 30.09825816
0x29bbb054e960c4da624bbd42d46822fc74f5256d6085989ddac4380b0f1557baPre Mature Withd...338796892022-10-03 13:16:45173 days 22 hrs ago0x2cfe4fa34313bc0af3326c1c67aae08198d27c3e IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000035
0xc8ef24000e85cdf52395f88067bc1e8ef48a2f1cf9f7512c2c89d04607245fe9Unlock338796032022-10-03 13:13:45173 days 22 hrs ago0x2cfe4fa34313bc0af3326c1c67aae08198d27c3e IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.0007089 30.000000042
0x65ad8e8cc87d360485127e1324e7df694dc8c58c62e14f44e508978b546b6945Pre Mature Withd...335111282022-09-24 14:47:53182 days 21 hrs ago0xe2b0624de2abbdac4fc772cc6f159ad5286d065c IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000013
0x49f456f1b7ff7db9b47ad55a7bb6d7f3de6b7896de917eec93c8039cef1f2c1bUnlock334709012022-09-23 15:17:44183 days 20 hrs ago0x786da47c45065532908ddf1fb14a746318da1c34 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.000708915096 30.000638851
0x413fd930a15de4204e2966d6fc968f019f79ccddc7f9c918f55ca019b1d9d0a8Pre Mature Withd...334340552022-09-22 17:58:38184 days 18 hrs ago0x9512e279dc25593b0921625329856188b45fed4f IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000014
0xf11153309ef8b95106d142d6fe979af15ef0f7f9f8d99b7844335f095a7ad2d6Unlock331003902022-09-14 15:45:53192 days 20 hrs ago0xaa3279f1e2f9d53ed621e84137b48882caf7fa0a IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00072201465 30.555000017
0x5d909c488843783b87ebea58916ea5632a8e7cdbf1740bf8948d2cfbe44bead9Pre Mature Withd...331003902022-09-14 15:45:53192 days 20 hrs ago0xaa3279f1e2f9d53ed621e84137b48882caf7fa0a IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00070842 30.000000012
0x5829974b7d7a652a3a591df95d626eb7ec6aeb6bee6ee35ae993c57aa3f0cf22Pre Mature Withd...330455652022-09-13 8:18:14194 days 3 hrs ago0x294bc902d1c8f391e22c7e58ad2c012a1db36967 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.000756372926 32.030699021
0x2fe9316cac7ba5d0cfc6427a164e84d42a362e1c72fd3357faed49a0c164824fPre Mature Withd...330455272022-09-13 8:16:58194 days 3 hrs ago0x294bc902d1c8f391e22c7e58ad2c012a1db36967 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.000756372926 32.030699021
0x27742aa6ebe12b4f0cceb2754982d10ec9b8996fce84eee1c0788feabf1ec7f9Unlock328282942022-09-08 2:23:40199 days 9 hrs ago0xc320d39dca9af5488c8443af4fc3277390c1042b IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00071903032230.428706001
0x591242676fdd78ff4723a75d058ebedddd8b32b35ea4a37f74861bde60a8e403Pre Mature Withd...328282802022-09-08 2:23:08199 days 9 hrs ago0xc320d39dca9af5488c8443af4fc3277390c1042b IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00071854346330.428706004
0x88049f0368d88c3da073a41f887e48da4dd4256d441c04b2b4f5795ed72ba1cdUnlock327974612022-09-07 8:26:49200 days 3 hrs ago0x0f16d95614f76e92e51973b13af9d19e108ad193 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00098458333341.666666666
0xe2f887fe12d41e49d00f2f81291e8ff5340ce0652f03673e6a8a896facbfa178Pre Mature Withd...326164622022-09-02 23:49:02204 days 12 hrs ago0x9c760ca5be5ab834cc37352105eb0bb9c98c2bc9 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.00075127941 31.815000013
0xa992ee37ee3b3a992ac5b3c8e2e5944a6f92d172042c85f23f4964082816b4b2Unlock324402722022-08-29 7:26:35209 days 4 hrs ago0xfc967b3ba275ae28aa7360af26a3547d327272ab IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.0007089 30.000000013
0xd65c6814bff6ca10e119f94c43c7341000023262aedfcb968c93af5cb257cd77Unlock323547282022-08-26 20:43:44211 days 15 hrs ago0x4c335f32fe1e141539d689b23229bf0cdb0e9b14 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.0007089 30.000000012
0x2917388b4fcbc8009cd1cb7102c52cd08efc123ecd1a581274b06c591c9622caUnlock323493822022-08-26 17:07:50211 days 19 hrs ago0xda218e8b4f1f2b272606e96917cd58582658f3a6 IN  0x453d0a593d0af91e77e590a7935894f7ab1b87ec0 MATIC0.002617146359 110.755241607
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x654aece755121be709e6c6ab9d38ce863d5f9c5037d1ec6282c476fadf828376185475862021-08-30 8:13:53573 days 3 hrs ago 0x453d0a593d0af91e77e590a7935894f7ab1b87ec  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KommunitasStaking

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-08-30
*/

// Sources flattened with hardhat v2.5.0 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]



pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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


// File @openzeppelin/contracts/math/[email protected]



pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}


// File @openzeppelin/contracts/access/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/math/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


// File contracts/KommunitasVoting.sol


pragma solidity ^0.7.6;







// KommunitasVoting - Governance Token
contract KommunitasVoting is ERC20("KommunitasVoting", "KOMV"), Ownable {
    constructor (){
        _setupDecimals(0);
    }
    /// @notice Creates `_amount` token to `_to`. Must only be called by the StakingContract (KommunitasStaking).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }
    /// @notice Destroys `_amount` token to `_to`. Must only be called by the StakingContract (KommunitasStaking).
    function burn(address _to, uint256 _amount) public onlyOwner {
        _burn(_to, _amount);
        _moveDelegates(_delegates[_to], address(0), _amount);
    }

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "KOMV::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "KOMV::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "KOMV::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "KOMV::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying KOMVs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld - amount;
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld + amount;
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "KOMV::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}


// File contracts/KommunitasStaking.sol



pragma solidity = 0.7.6;





contract KommunitasStaking is Ownable {
    using SafeMath for uint256;

    /* ========== STATE VARIABLES ========== */
    ERC20Burnable public immutable komToken;
    KommunitasVoting public immutable komvToken;    //Kommunitas Voting Token  
    
    uint256 public constant MIN_STAKING_AMOUNT = 100*1e8; //100 Kommunitas Token
    uint256 public apy;
    bool public isEmergency = false;
    uint256 public minDuration;
    uint256 public maxDuration;
    uint256 public penaltyFeesPercentage = 5;   //5% inital penalty fee
    uint256 constant yearDuration = 365 days;

    mapping(address => TokenLock[]) public locks;
    mapping(uint256 => uint256) public durationMultiplier;

    uint256 public communityStaked;

    struct TokenLock {
        uint256 amount;
        uint256 maturity;
        uint256 reward;
        bool claimed;
    }

    /* ========== EVENTS ========== */

    event Locked (address indexed _of, uint256 _amount, uint256 _reward, uint256 _maturity);
    event Unlocked (address indexed _of, uint256 _amount);
    event EmergencyUnlocked (address indexed _of, uint256 _amount);

     /* ========== CONSTRUCTOR ========== */
    constructor(address _komToken, uint256 _apy, uint256 _minDuration, uint256 _maxDuration) {
        require(_maxDuration > _minDuration, "Max duration should be greater than Min");
        komToken = ERC20Burnable(_komToken);
        komvToken = new KommunitasVoting(); // KOM Governance Token Deployment
        apy = _apy;
        minDuration = _minDuration * 1 days;
        maxDuration = _maxDuration * 1 days;
    }

    function calculateReward(uint256 _amount, uint256 _duration) 
    public 
    view returns (uint256 _lockReward) {   
        uint256 multiplier = durationMultiplier[_duration];
        if (multiplier == 0){
            multiplier = 10;
        }
        uint256 effectiveAPY = multiplier.mul(apy).mul(_duration).mul(1e10).div(yearDuration).div(10); 
        _lockReward = effectiveAPY.mul(_amount).div(1e12);
    }

    /**
     * @dev Locks specified amount of tokens against an address,
     *      for a specified time
     * @param _amount Number of tokens to be locked
     * @param _duration Lock duration in days
     */
    function lockedStake(uint256 _amount, uint256 _duration) external {
        _stake(msg.sender, _amount, _duration);
    }
    
    /**
     * @dev Locks a specified amount of tokens for other user,
     *      for a specified time
     * @param _user Address for which tokens need to be delegate Staked
     * @param _amount Number of tokens to be transferred and locked
     * @param _duration Lock time in days
     */
    function delegateLockedStaking(address _user, uint256 _amount, uint256 _duration) external {
        _stake(_user, _amount, _duration);
    }

    function _stake(address _user, uint256 _amount, uint256 _duration) internal {
        require(_user != address(0),"Zero Address");
        require(_amount >= MIN_STAKING_AMOUNT, "Minimum staking amount is 100 KOM");
        require(_duration <= maxDuration, "Lock exceeds maximum duration.");
        require(_duration >= minDuration, "Locking period is too short.");

        uint256 matureUntil = block.timestamp.add(_duration);
        uint256 lockReward = calculateReward(_amount, _duration);

        komToken.transferFrom(msg.sender, address(this), _amount);
        locks[_user].push(TokenLock(_amount, matureUntil, lockReward, false));
        communityStaked = communityStaked.add(_amount);
        if(getUserStakedTokens(_user) > 3000*1e8 && komvToken.balanceOf(_user) == 0){
            komvToken.mint(_user, 1);
        }
        emit Locked(_user, _amount, lockReward, matureUntil);
    }

    /**
     * @dev Unlocks the unlockable tokens of a specified address
     */
    function unlock() external returns (uint256) {
        address _user = msg.sender;
        uint256 unlockableTokens;
        uint256 unlockablePrincipalStakedAmount;
        uint256 locksLength = locks[_user].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (locks[_user][i].maturity <= block.timestamp && !locks[_user][i].claimed) {
                unlockableTokens = unlockableTokens.add(locks[_user][i].amount).add(locks[_user][i].reward);
                unlockablePrincipalStakedAmount = unlockablePrincipalStakedAmount.add(locks[_user][i].amount);
                locks[_user][i].claimed = true;
            }
        }

        require(unlockableTokens > 0, "Nothing to draw");
        communityStaked = communityStaked.sub(unlockablePrincipalStakedAmount);
        if(getUserStakedTokens(_user) < 3000*1e8 && komvToken.balanceOf(_user) > 0){
            komvToken.burn(_user, 1);
        }
        komToken.transfer(_user, unlockableTokens);
        emit Unlocked(_user, unlockableTokens);
        return unlockableTokens;
    }

    /**
     * @dev Pre Mature Withdrawal without caring about rewards. WILL CHARGE PENALTY FEES.
     */
    function preMatureWithdraw() external returns (uint256) {
        uint256 unlockableTokens;
        uint256 locksLength = locks[msg.sender].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (locks[msg.sender][i].maturity > block.timestamp && !locks[msg.sender][i].claimed) {
                unlockableTokens = unlockableTokens.add(locks[msg.sender][i].amount);
                locks[msg.sender][i].claimed = true;
            }
        }
        
        require(unlockableTokens > 0, "Nothing to draw");
        uint256 withdrawableAmount = unlockableTokens;

        if(penaltyFeesPercentage > 0){
            uint256 remainingFeePercentage = 100 - penaltyFeesPercentage;
            // User redeem penaltyFeesPercentage of there Unstake Amount
            withdrawableAmount = (unlockableTokens.mul(remainingFeePercentage).div(100));
            // remaining is treated as penaltyAmount  
            uint256 penaltyAmount = (unlockableTokens.mul(penaltyFeesPercentage).div(100));

            //penalty fees will be burnt
            komToken.burn(penaltyAmount);                 
        }

        communityStaked = communityStaked.sub(unlockableTokens);
        if(getUserStakedTokens(msg.sender) < 3000*1e8 && komvToken.balanceOf(msg.sender) > 0){
            komvToken.burn(msg.sender, 1);
        }
        komToken.transfer(msg.sender, withdrawableAmount);
        emit EmergencyUnlocked(msg.sender, unlockableTokens);
        return unlockableTokens;
    }

    function emergencyWithdraw() external returns (uint256) {
        require(isEmergency, "Not an emergency");
        uint256 totalStakedTokens = getUserStakedTokens(msg.sender);
        require(totalStakedTokens > 0, "Nothing to draw");
        communityStaked = communityStaked.sub(totalStakedTokens);
        if(getUserStakedTokens(msg.sender) < 3000*1e8 && komvToken.balanceOf(msg.sender) > 0){
            komvToken.burn(msg.sender, 1);
        }
        komToken.transfer(msg.sender, totalStakedTokens);
        emit EmergencyUnlocked(msg.sender, totalStakedTokens);
        return totalStakedTokens;
    }

    /**
     * @dev Gets the total withdrawable tokens of a specified address
     * @param _of The address to query the the withdrawable token count of
     */
    function getTotalWithdrawableTokens(address _of) public view returns (uint256) {
        uint256 withdrawableTokens;
        uint256 locksLength = locks[_of].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (locks[_of][i].maturity <= block.timestamp && !locks[_of][i].claimed) {
                withdrawableTokens = withdrawableTokens.add(locks[_of][i].amount).add(locks[_of][i].reward);
            }
        }
        return withdrawableTokens;
    }    

    /**
     * @dev Gets the total locked tokens of a specified address
     * @param _of The address to query the the locked token count of
     */
    function getTotalLockedTokens(address _of) public view returns (uint256) {
        uint256 lockedTokens;
        uint256 locksLength = locks[_of].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (locks[_of][i].maturity > block.timestamp && !locks[_of][i].claimed) {
                lockedTokens = lockedTokens.add(locks[_of][i].amount).add(locks[_of][i].reward);
            }
        }
        return lockedTokens;
    }


    /**
     * @dev Gets the pending rewards tokens of a specified address to be claimed
     * @param _of The address to query the the pending rewards for
     */
    function getUserPendingRewards(address _of) public view returns (uint256) {
        uint256 pendingRewards;
        uint256 locksLength = locks[_of].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (locks[_of][i].maturity <= block.timestamp && !locks[_of][i].claimed) {
                pendingRewards = pendingRewards.add(locks[_of][i].reward);
            }
        }
        return pendingRewards;
    }
    
    /**
     * @dev Gets the staked tokens of a specified address
     * @param _of The address to query the the locked token count of
     */
    function getUserStakedTokens(address _of) public view returns (uint256) {
        uint256 lockedTokens;
        uint256 locksLength = locks[_of].length;
        for (uint256 i = 0; i < locksLength; i++) {
            if (!locks[_of][i].claimed) {
                lockedTokens = lockedTokens.add(locks[_of][i].amount);
            }
        }
        return lockedTokens;
    }

    /**
     * @dev Gets the next unlock of a specified address
     * @param _of The address to query the the locked token count of
     */
    function getUserNextUnlock(address _of) public view returns (uint256, uint256) {
        uint256 nextUnlockTime;
        uint256 nextUnlockRewards;
        uint256 locksLength = locks[_of].length;
        for (uint256 i = 0; i < locksLength; i++) {
            uint256 maturity = locks[_of][i].maturity;
            if (maturity > block.timestamp && !locks[_of][i].claimed) {
                if(nextUnlockTime == 0 || nextUnlockTime > maturity) 
                {
                    nextUnlockTime = maturity;
                    nextUnlockRewards = locks[_of][i].reward;
                }
            }
        }
        return (nextUnlockTime,nextUnlockRewards);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    /**
     * @dev Change multiplier for rewards for a particularDuration.
     * @param _multiplier Value of new multiplier (x / 1e2).
     * @param _duration Duration to set multiplier for in days.
     */
    function setDurationMultiplier(uint256 _multiplier, uint256 _duration) external onlyOwner {
        uint256 durationInSecs = _duration.mul(86400);
        require(durationInSecs <= maxDuration && durationInSecs >= minDuration , "Duration should be within max-min range");
        durationMultiplier[durationInSecs] = _multiplier;
    }
    
    /**
     * @dev Change minimum and maximum lock durations.
     * @param _minDuration Value of minimum lock duration in days.
     * @param _maxDuration Value of maximum lock duration in days.
     */
    function updateLockDuration(uint256 _minDuration, uint256 _maxDuration) external onlyOwner {
        require(_minDuration < _maxDuration, "Maximum lock duration has to exceed minimum lock duration!");
        minDuration = _minDuration * 1 days;
        maxDuration = _maxDuration * 1 days;
    }

    function updatePenaltyFees(uint256 _feesPercentage) external onlyOwner{
        // Fees shouldn't be greater than 10%
        require(_feesPercentage <= 10, "Very High fees");
        penaltyFeesPercentage = _feesPercentage;
    }

    function updateAPY(uint256 _apy) external onlyOwner{
        apy = _apy;
    }

    function emergencyEnable(bool _isEmergency) external onlyOwner{
        isEmergency = _isEmergency;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_komToken","type":"address"},{"internalType":"uint256","name":"_apy","type":"uint256"},{"internalType":"uint256","name":"_minDuration","type":"uint256"},{"internalType":"uint256","name":"_maxDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_of","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"EmergencyUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_of","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maturity","type":"uint256"}],"name":"Locked","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":"_of","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Unlocked","type":"event"},{"inputs":[],"name":"MIN_STAKING_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"_lockReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"delegateLockedStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"durationMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEmergency","type":"bool"}],"name":"emergencyEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getTotalLockedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getTotalWithdrawableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getUserNextUnlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getUserPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getUserStakedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEmergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"komToken","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"komvToken","outputs":[{"internalType":"contract KommunitasVoting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"lockedStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"locks","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maturity","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penaltyFeesPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMatureWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_multiplier","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDurationMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_apy","type":"uint256"}],"name":"updateAPY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDuration","type":"uint256"},{"internalType":"uint256","name":"_maxDuration","type":"uint256"}],"name":"updateLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feesPercentage","type":"uint256"}],"name":"updatePenaltyFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526002805460ff19169055600580553480156200001f57600080fd5b50604051620042d6380380620042d6833981810160405260808110156200004557600080fd5b50805160208201516040830151606090930151919290916000620000686200015b565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350818111620000f25760405162461bcd60e51b8152600401808060200182810382526027815260200180620042af6027913960400191505060405180910390fd5b6001600160601b0319606085901b1660805260405162000112906200015f565b604051809103906000f0801580156200012f573d6000803e3d6000fd5b5060601b6001600160601b03191660a0526001929092556201518090810260035502600455506200016d565b3390565b611ebc80620023f383390190565b60805160601c60a05160601c61221b620001d8600039806106535280610adb5280610ba05280610fda528061107a52806114a8528061156d5280611f1d5280611fbd525080610a315280610c275280610d9a528061110b52806115f45280611e07525061221b6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80639f1d3e2111610104578063de911764116100a2578063ef77fc0411610071578063ef77fc0414610493578063f2fde38b146104b6578063fae728cd146104dc578063fc0fead0146104f9576101da565b8063de91176414610403578063debc431714610442578063e006ac921461044a578063e75e2c581461046d576101da565b8063ae1a01a2116100de578063ae1a01a21461035b578063b425f80214610381578063cf7c11fa146103d5578063db2e21bc146103fb576101da565b80639f1d3e2114610343578063a69df4b51461034b578063ac60147414610353576101da565b80636544a6271161017c5780637702c25f1161014b5780637702c25f146102de578063822ac3791461031057806387cf1772146103185780638da5cb5b1461033b576101da565b80636544a627146102a05780636db5c8fd146102c657806371132cec146102ce578063715018a6146102d6576101da565b80634c07ed94116101b85780634c07ed941461023b578063556a9fd714610258578063567157611461027c5780635f9e8f8214610284576101da565b806313ed0846146101df5780633bcfc4b81461021457806349ce098e1461021c575b600080fd5b610202600480360360408110156101f557600080fd5b5080359060200135610518565b60408051918252519081900360200190f35b61020261058b565b6102396004803603602081101561023257600080fd5b5035610591565b005b6102026004803603602081101561025157600080fd5b503561063f565b610260610651565b604080516001600160a01b039092168252519081900360200190f35b610202610675565b61028c61067b565b604080519115158252519081900360200190f35b610202600480360360208110156102b657600080fd5b50356001600160a01b0316610684565b6102026107cd565b6102026107d3565b6102396107d9565b610239600480360360608110156102f457600080fd5b506001600160a01b038135169060208101359060400135610885565b610202610895565b6102396004803603604081101561032e57600080fd5b5080359060200135610cd9565b610260610d89565b610260610d98565b610202610dbc565b6102026111f4565b6102026004803603602081101561037157600080fd5b50356001600160a01b03166111fd565b6103ad6004803603604081101561039757600080fd5b506001600160a01b038135169060200135611295565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b610202600480360360208110156103eb57600080fd5b50356001600160a01b03166112de565b6102026113dc565b6104296004803603602081101561041957600080fd5b50356001600160a01b03166116a3565b6040805192835260208301919091528051918290030190f35b6102026117b4565b6102396004803603604081101561046057600080fd5b50803590602001356117ba565b6102026004803603602081101561048357600080fd5b50356001600160a01b03166117c9565b610239600480360360408110156104a957600080fd5b50803590602001356118a5565b610239600480360360208110156104cc57600080fd5b50356001600160a01b031661197c565b610239600480360360208110156104f257600080fd5b5035611a7e565b6102396004803603602081101561050f57600080fd5b50351515611ae5565b600081815260076020526040812054806105305750600a5b600061056d600a6105676301e133806105676402540be4006105618a6105616001548b611b5a90919063ffffffff16565b90611b5a565b90611bbc565b905061058264e8d4a510006105678388611b5a565b95945050505050565b60015481565b610599611c23565b6001600160a01b03166105aa610d89565b6001600160a01b0316146105f3576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b600a81111561063a576040805162461bcd60e51b815260206004820152600e60248201526d566572792048696768206665657360901b604482015290519081900360640190fd5b600555565b60076020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035481565b60025460ff1681565b6001600160a01b0381166000908152600660205260408120548190815b818110156107c4576001600160a01b03851660009081526006602052604090208054429190839081106106d057fe5b9060005260206000209060040201600101541115801561072857506001600160a01b038516600090815260066020526040902080548290811061070f57fe5b600091825260209091206003600490920201015460ff16155b156107bc576001600160a01b038516600090815260066020526040902080546107b991908390811061075657fe5b9060005260206000209060040201600201546107b360066000896001600160a01b03166001600160a01b03168152602001908152602001600020848154811061079b57fe5b60009182526020909120600490910201548690611c27565b90611c27565b92505b6001016106a1565b50909392505050565b60045481565b60055481565b6107e1611c23565b6001600160a01b03166107f2610d89565b6001600160a01b03161461083b576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610890838383611c81565b505050565b336000908152600660205260408120548190815b818110156109a6573360009081526006602052604090208054429190839081106108cf57fe5b90600052602060002090600402016001015411801561091d575033600090815260066020526040902080548290811061090457fe5b600091825260209091206003600490920201015460ff16155b1561099e57336000908152600660205260409020805461095a91908390811061094257fe5b60009182526020909120600490910201548490611c27565b33600090815260066020526040902080549194506001918390811061097b57fe5b60009182526020909120600490910201600301805460ff19169115159190911790555b6001016108a9565b50600082116109ee576040805162461bcd60e51b815260206004820152600f60248201526e4e6f7468696e6720746f206472617760881b604482015290519081900360640190fd5b600554829015610ab057600554606490810390610a0f906105678684611b5a565b91506000610a2d606461056760055488611b5a90919063ffffffff16565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342966c68826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610a9557600080fd5b505af1158015610aa9573d6000803e3d6000fd5b5050505050505b600854610abd908461209f565b6008556445d964b800610acf336111fd565b108015610b74575060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b4657600080fd5b505afa158015610b5a573d6000803e3d6000fd5b505050506040513d6020811015610b7057600080fd5b5051115b15610c005760408051632770a7eb60e21b81523360048201526001602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691639dc29fac91604480830192600092919082900301818387803b158015610be757600080fd5b505af1158015610bfb573d6000803e3d6000fd5b505050505b6040805163a9059cbb60e01b81523360048201526024810183905290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb9160448083019260209291908290030181600087803b158015610c6f57600080fd5b505af1158015610c83573d6000803e3d6000fd5b505050506040513d6020811015610c9957600080fd5b505060408051848152905133917f1852b66a7378ee8dd9f44c42c240f75c4599b0696fb3078c451c8ec1178453dc919081900360200190a2509091505090565b610ce1611c23565b6001600160a01b0316610cf2610d89565b6001600160a01b031614610d3b576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b808210610d795760405162461bcd60e51b815260040180806020018281038252603a8152602001806121ac603a913960400191505060405180910390fd5b6201518091820260035502600455565b6000546001600160a01b031690565b7f000000000000000000000000000000000000000000000000000000000000000081565b3360008181526006602052604081205490919082908190815b81811015610f67576001600160a01b0385166000908152600660205260409020805442919083908110610e0457fe5b90600052602060002090600402016001015411158015610e5c57506001600160a01b0385166000908152600660205260409020805482908110610e4357fe5b600091825260209091206003600490920201015460ff16155b15610f5f576001600160a01b03851660009081526006602052604090208054610ee7919083908110610e8a57fe5b9060005260206000209060040201600201546107b360066000896001600160a01b03166001600160a01b031681526020019081526020016000208481548110610ecf57fe5b60009182526020909120600490910201548790611c27565b6001600160a01b03861660009081526006602052604090208054919550610f12918390811061094257fe5b6001600160a01b0386166000908152600660205260409020805491945060019183908110610f3c57fe5b60009182526020909120600490910201600301805460ff19169115159190911790555b600101610dd5565b5060008311610faf576040805162461bcd60e51b815260206004820152600f60248201526e4e6f7468696e6720746f206472617760881b604482015290519081900360640190fd5b600854610fbc908361209f565b6008556445d964b800610fce856111fd565b108015611073575060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561104557600080fd5b505afa158015611059573d6000803e3d6000fd5b505050506040513d602081101561106f57600080fd5b5051115b15611109577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639dc29fac8560016040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156110f057600080fd5b505af1158015611104573d6000803e3d6000fd5b505050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050506040513d60208110156111aa57600080fd5b50506040805184815290516001600160a01b038616917f0f0bc5b519ddefdd8e5f9e6423433aa2b869738de2ae34d58ebc796fc749fa0d919081900360200190a250909250505090565b6402540be40081565b6001600160a01b0381166000908152600660205260408120548190815b818110156107c4576001600160a01b038516600090815260066020526040902080548290811061124657fe5b600091825260209091206003600490920201015460ff1661128d576001600160a01b0385166000908152600660205260409020805461128a91908390811061094257fe5b92505b60010161121a565b600660205281600052604060002081815481106112b157600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919450925060ff1684565b6001600160a01b0381166000908152600660205260408120548190815b818110156107c4576001600160a01b038516600090815260066020526040902080544291908390811061132a57fe5b9060005260206000209060040201600101541115801561138257506001600160a01b038516600090815260066020526040902080548290811061136957fe5b600091825260209091206003600490920201015460ff16155b156113d4576001600160a01b038516600090815260066020526040902080546113d19190839081106113b057fe5b90600052602060002090600402016002015484611c2790919063ffffffff16565b92505b6001016112fb565b60025460009060ff16611429576040805162461bcd60e51b815260206004820152601060248201526f4e6f7420616e20656d657267656e637960801b604482015290519081900360640190fd5b6000611434336111fd565b90506000811161147d576040805162461bcd60e51b815260206004820152600f60248201526e4e6f7468696e6720746f206472617760881b604482015290519081900360640190fd5b60085461148a908261209f565b6008556445d964b80061149c336111fd565b108015611541575060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561151357600080fd5b505afa158015611527573d6000803e3d6000fd5b505050506040513d602081101561153d57600080fd5b5051115b156115cd5760408051632770a7eb60e21b81523360048201526001602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691639dc29fac91604480830192600092919082900301818387803b1580156115b457600080fd5b505af11580156115c8573d6000803e3d6000fd5b505050505b6040805163a9059cbb60e01b81523360048201526024810183905290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb9160448083019260209291908290030181600087803b15801561163c57600080fd5b505af1158015611650573d6000803e3d6000fd5b505050506040513d602081101561166657600080fd5b505060408051828152905133917f1852b66a7378ee8dd9f44c42c240f75c4599b0696fb3078c451c8ec1178453dc919081900360200190a2905090565b6001600160a01b038116600090815260066020526040812054819081908190815b818110156117a8576001600160a01b03871660009081526006602052604081208054839081106116f057fe5b9060005260206000209060040201600101549050428111801561174b57506001600160a01b038816600090815260066020526040902080548390811061173257fe5b600091825260209091206003600490920201015460ff16155b1561179f5784158061175c57508085115b1561179f576001600160a01b0388166000908152600660205260409020805491955085918390811061178a57fe5b90600052602060002090600402016002015493505b506001016116c4565b50919350915050915091565b60085481565b6117c5338383611c81565b5050565b6001600160a01b0381166000908152600660205260408120548190815b818110156107c4576001600160a01b038516600090815260066020526040902080544291908390811061181557fe5b90600052602060002090600402016001015411801561186c57506001600160a01b038516600090815260066020526040902080548290811061185357fe5b600091825260209091206003600490920201015460ff16155b1561189d576001600160a01b0385166000908152600660205260409020805461189a91908390811061075657fe5b92505b6001016117e6565b6118ad611c23565b6001600160a01b03166118be610d89565b6001600160a01b031614611907576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b60006119168262015180611b5a565b9050600454811115801561192c57506003548110155b6119675760405162461bcd60e51b81526004018080602001828103825260278152602001806121856027913960400191505060405180910390fd5b60009081526007602052604090209190915550565b611984611c23565b6001600160a01b0316611995610d89565b6001600160a01b0316146119de576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b6001600160a01b038116611a235760405162461bcd60e51b81526004018080602001828103825260268152602001806120fd6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611a86611c23565b6001600160a01b0316611a97610d89565b6001600160a01b031614611ae0576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b600155565b611aed611c23565b6001600160a01b0316611afe610d89565b6001600160a01b031614611b47576040805162461bcd60e51b81526020600482018190526024820152600080516020612165833981519152604482015290519081900360640190fd5b6002805460ff1916911515919091179055565b600082611b6957506000611bb6565b82820282848281611b7657fe5b0414611bb35760405162461bcd60e51b81526004018080602001828103825260218152602001806121446021913960400191505060405180910390fd5b90505b92915050565b6000808211611c12576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611c1b57fe5b049392505050565b3390565b600082820183811015611bb3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038316611ccb576040805162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b604482015290519081900360640190fd5b6402540be400821015611d0f5760405162461bcd60e51b81526004018080602001828103825260218152602001806121236021913960400191505060405180910390fd5b600454811115611d66576040805162461bcd60e51b815260206004820152601e60248201527f4c6f636b2065786365656473206d6178696d756d206475726174696f6e2e0000604482015290519081900360640190fd5b600354811015611dbd576040805162461bcd60e51b815260206004820152601c60248201527f4c6f636b696e6720706572696f6420697320746f6f2073686f72742e00000000604482015290519081900360640190fd5b6000611dc94283611c27565b90506000611dd78484610518565b604080516323b872dd60e01b81523360048201523060248201526044810187905290519192506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd916064808201926020929091908290030181600087803b158015611e5057600080fd5b505af1158015611e64573d6000803e3d6000fd5b505050506040513d6020811015611e7a57600080fd5b50506001600160a01b0385166000908152600660209081526040808320815160808101835288815280840187815292810186815260608201868152835460018082018655948852959096209151600490950290910193845591519083015551600282015590516003909101805460ff1916911515919091179055600854611f019085611c27565b6008556445d964b800611f13866111fd565b118015611fb657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611f8857600080fd5b505afa158015611f9c573d6000803e3d6000fd5b505050506040513d6020811015611fb257600080fd5b5051155b1561204c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f198660016040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561203357600080fd5b505af1158015612047573d6000803e3d6000fd5b505050505b604080518581526020810183905280820184905290516001600160a01b038716917f44cebfefa4561bee5b61d675ccfd8dc9969fff9cc15e7a4eccccd62af94f9c11919081900360600190a25050505050565b6000828211156120f6576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d696e696d756d207374616b696e6720616d6f756e7420697320313030204b4f4d536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724475726174696f6e2073686f756c642062652077697468696e206d61782d6d696e2072616e67654d6178696d756d206c6f636b206475726174696f6e2068617320746f20657863656564206d696e696d756d206c6f636b206475726174696f6e21a264697066735822122006fa83ade6ac93beaec907ad58ec0ebf1f49f851038ca5a7abab1ca6249ea6b864736f6c6343000706003360806040523480156200001157600080fd5b50604080518082018252601081526f4b6f6d6d756e69746173566f74696e6760801b60208083019182528351808501909452600484526325a7a6ab60e11b90840152815191929162000066916003916200011a565b5080516200007c9060049060208401906200011a565b50506005805460ff191660121790555060006200009862000100565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000fa600062000104565b620001c6565b3390565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200015257600085556200019d565b82601f106200016d57805160ff19168380011785556200019d565b828001600101855582156200019d579182015b828111156200019d57825182559160200191906001019062000180565b50620001ab929150620001af565b5090565b5b80821115620001ab5760008155600101620001b0565b611ce680620001d66000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063782d6fe1116100de578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e14610548578063e7a324dc14610576578063f1127ed81461057e578063f2fde38b146105d05761018e565b8063a9059cbb146104af578063b4b5ea57146104db578063c3cda520146105015761018e565b8063782d6fe1146103f55780637ecebe00146104215780638da5cb5b1461044757806395d89b411461044f5780639dc29fac14610457578063a457c2d7146104835761018e565b8063395093511161014b5780635c19a95c116101255780635c19a95c146103625780636fcfff451461038857806370a08231146103c7578063715018a6146103ed5761018e565b806339509351146102c657806340c10f19146102f2578063587cde1e146103205761018e565b806306fdde0314610193578063095ea7b31461021057806318160ddd1461025057806320606b701461026a57806323b872dd14610272578063313ce567146102a8575b600080fd5b61019b6105f6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b03813516906020013561068c565b604080519115158252519081900360200190f35b6102586106aa565b60408051918252519081900360200190f35b6102586106b0565b61023c6004803603606081101561028857600080fd5b506001600160a01b038135811691602081013590911690604001356106d4565b6102b061075b565b6040805160ff9092168252519081900360200190f35b61023c600480360360408110156102dc57600080fd5b506001600160a01b038135169060200135610764565b61031e6004803603604081101561030857600080fd5b506001600160a01b0381351690602001356107b2565b005b6103466004803603602081101561033657600080fd5b50356001600160a01b0316610847565b604080516001600160a01b039092168252519081900360200190f35b61031e6004803603602081101561037857600080fd5b50356001600160a01b0316610865565b6103ae6004803603602081101561039e57600080fd5b50356001600160a01b0316610872565b6040805163ffffffff9092168252519081900360200190f35b610258600480360360208110156103dd57600080fd5b50356001600160a01b031661088a565b61031e6108a5565b6102586004803603604081101561040b57600080fd5b506001600160a01b038135169060200135610957565b6102586004803603602081101561043757600080fd5b50356001600160a01b0316610b5a565b610346610b6c565b61019b610b80565b61031e6004803603604081101561046d57600080fd5b506001600160a01b038135169060200135610be1565b61023c6004803603604081101561049957600080fd5b506001600160a01b038135169060200135610c73565b61023c600480360360408110156104c557600080fd5b506001600160a01b038135169060200135610cdb565b610258600480360360208110156104f157600080fd5b50356001600160a01b0316610cef565b61031e600480360360c081101561051757600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135610d53565b6102586004803603604081101561055e57600080fd5b506001600160a01b0381358116916020013516610fc6565b610258610ff1565b6105b06004803603604081101561059457600080fd5b5080356001600160a01b0316906020013563ffffffff16611015565b6040805163ffffffff909316835260208301919091528051918290030190f35b61031e600480360360208110156105e657600080fd5b50356001600160a01b0316611042565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106825780601f1061065757610100808354040283529160200191610682565b820191906000526020600020905b81548152906001019060200180831161066557829003601f168201915b5050505050905090565b60006106a0610699611150565b8484611154565b5060015b92915050565b60025490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60006106e1848484611240565b610751846106ed611150565b61074c85604051806060016040528060288152602001611b33602891396001600160a01b038a1660009081526001602052604081209061072b611150565b6001600160a01b03168152602081019190915260400160002054919061139b565b611154565b5060019392505050565b60055460ff1690565b60006106a0610771611150565b8461074c8560016000610782611150565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611432565b6107ba611150565b6001600160a01b03166107cb610b6c565b6001600160a01b031614610814576040805162461bcd60e51b81526020600482018190526024820152600080516020611b5b833981519152604482015290519081900360640190fd5b61081e828261148c565b6001600160a01b0380831660009081526006602052604081205461084392168361157c565b5050565b6001600160a01b039081166000908152600660205260409020541690565b61086f33826116a8565b50565b60086020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b6108ad611150565b6001600160a01b03166108be610b6c565b6001600160a01b031614610907576040805162461bcd60e51b81526020600482018190526024820152600080516020611b5b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60004382106109975760405162461bcd60e51b8152600401808060200182810382526027815260200180611b7b6027913960400191505060405180910390fd5b6001600160a01b03831660009081526008602052604090205463ffffffff16806109c55760009150506106a4565b6001600160a01b038416600090815260076020908152604080832063ffffffff600019860181168552925290912054168310610a34576001600160a01b03841660009081526007602090815260408083206000199490940163ffffffff168352929052206001015490506106a4565b6001600160a01b038416600090815260076020908152604080832083805290915290205463ffffffff16831015610a6f5760009150506106a4565b600060001982015b8163ffffffff168163ffffffff161115610b23576000600263ffffffff848403166001600160a01b038916600090815260076020908152604080832094909304860363ffffffff8181168452948252918390208351808501909452805490941680845260019094015490830152925090871415610afe576020015194506106a49350505050565b805163ffffffff16871115610b1557819350610b1c565b6001820392505b5050610a77565b506001600160a01b038516600090815260076020908152604080832063ffffffff9094168352929052206001015491505092915050565b60096020526000908152604090205481565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106825780601f1061065757610100808354040283529160200191610682565b610be9611150565b6001600160a01b0316610bfa610b6c565b6001600160a01b031614610c43576040805162461bcd60e51b81526020600482018190526024820152600080516020611b5b833981519152604482015290519081900360640190fd5b610c4d828261173d565b6001600160a01b038083166000908152600660205260408120546108439216908361157c565b60006106a0610c80611150565b8461074c85604051806060016040528060258152602001611c8c6025913960016000610caa611150565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061139b565b60006106a0610ce8611150565b8484611240565b6001600160a01b03811660009081526008602052604081205463ffffffff1680610d1a576000610d4c565b6001600160a01b038316600090815260076020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610d7e6105f6565b80519060200120610d8d611839565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa158015610ec0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f125760405162461bcd60e51b8152600401808060200182810382526026815260200180611c406026913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090208054600181019091558914610f705760405162461bcd60e51b8152600401808060200182810382526022815260200180611b116022913960400191505060405180910390fd5b87421115610faf5760405162461bcd60e51b8152600401808060200182810382526026815260200180611c666026913960400191505060405180910390fd5b610fb9818b6116a8565b505050505b505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60076020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b61104a611150565b6001600160a01b031661105b610b6c565b6001600160a01b0316146110a4576040805162461bcd60e51b81526020600482018190526024820152600080516020611b5b833981519152604482015290519081900360640190fd5b6001600160a01b0381166110e95760405162461bcd60e51b8152600401808060200182810382526026815260200180611aa36026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b0383166111995760405162461bcd60e51b8152600401808060200182810382526024815260200180611c1c6024913960400191505060405180910390fd5b6001600160a01b0382166111de5760405162461bcd60e51b8152600401808060200182810382526022815260200180611ac96022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166112855760405162461bcd60e51b8152600401808060200182810382526025815260200180611bc36025913960400191505060405180910390fd5b6001600160a01b0382166112ca5760405162461bcd60e51b8152600401808060200182810382526023815260200180611a5e6023913960400191505060405180910390fd5b6112d58383836116a3565b61131281604051806060016040528060268152602001611aeb602691396001600160a01b038616600090815260208190526040902054919061139b565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546113419082611432565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561142a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113ef5781810151838201526020016113d7565b50505050905090810190601f16801561141c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610d4c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166114e7576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6114f3600083836116a3565b6002546115009082611432565b6002556001600160a01b0382166000908152602081905260409020546115269082611432565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b03161415801561159e5750600081115b156116a3576001600160a01b03831615611625576001600160a01b03831660009081526008602052604081205463ffffffff1690816115de576000611610565b6001600160a01b038516600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90508281036116218684848461183d565b5050505b6001600160a01b038216156116a3576001600160a01b03821660009081526008602052604081205463ffffffff169081611660576000611692565b6001600160a01b038416600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b9050828101610fbe8584848461183d565b505050565b6001600160a01b03808316600090815260066020526040812054909116906116cf8461088a565b6001600160a01b0385811660008181526006602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461173782848361157c565b50505050565b6001600160a01b0382166117825760405162461bcd60e51b8152600401808060200182810382526021815260200180611ba26021913960400191505060405180910390fd5b61178e826000836116a3565b6117cb81604051806060016040528060228152602001611a81602291396001600160a01b038516600090815260208190526040902054919061139b565b6001600160a01b0383166000908152602081905260409020556002546117f190826119a2565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b4690565b600061186143604051806060016040528060348152602001611be8603491396119ff565b905060008463ffffffff161180156118aa57506001600160a01b038516600090815260076020908152604080832063ffffffff6000198901811685529252909120548282169116145b156118e7576001600160a01b038516600090815260076020908152604080832063ffffffff60001989011684529091529020600101829055611958565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600784528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260089092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000828211156119f9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000816401000000008410611a555760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156113ef5781810151838201526020016113d7565b50919291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654b4f4d563a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724b4f4d563a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734b4f4d563a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734b4f4d563a3a64656c656761746542795369673a20696e76616c6964207369676e61747572654b4f4d563a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e32e177ede1e36beab59b5c35c1402190a0bebd0051fa075c33a20a1eb19324d64736f6c634300070600334d6178206475726174696f6e2073686f756c642062652067726561746572207468616e204d696e000000000000000000000000c004e2318722ea2b15499d6375905d75ee5390b8000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000005a

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

000000000000000000000000c004e2318722ea2b15499d6375905d75ee5390b8000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000005a

-----Decoded View---------------
Arg [0] : _komToken (address): 0xc004e2318722ea2b15499d6375905d75ee5390b8
Arg [1] : _apy (uint256): 60
Arg [2] : _minDuration (uint256): 30
Arg [3] : _maxDuration (uint256): 90

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c004e2318722ea2b15499d6375905d75ee5390b8
Arg [1] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [3] : 000000000000000000000000000000000000000000000000000000000000005a


Deployed ByteCode Sourcemap

43978:12095:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45605:424;;;;;;;;;;;;;;;;-1:-1:-1;45605:424:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;44322:18;;;:::i;55633:234::-;;;;;;;;;;;;;;;;-1:-1:-1;55633:234:0;;:::i;:::-;;44624:53;;;;;;;;;;;;;;;;-1:-1:-1;44624:53:0;;:::i;44153:43::-;;;:::i;:::-;;;;-1:-1:-1;;;;;44153:43:0;;;;;;;;;;;;;;44385:26;;;:::i;44347:31::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;51377:487;;;;;;;;;;;;;;;;-1:-1:-1;51377:487:0;-1:-1:-1;;;;;51377:487:0;;:::i;44418:26::-;;;:::i;44451:40::-;;;:::i;25409:148::-;;;:::i;46691:143::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46691:143:0;;;;;;;;;;;;;:::i;49051:1524::-;;;:::i;55325:300::-;;;;;;;;;;;;;;;;-1:-1:-1;55325:300:0;;;;;;;:::i;24758:87::-;;;:::i;44107:39::-;;;:::i;47851:1083::-;;;:::i;44240:52::-;;;:::i;53262:385::-;;;;;;;;;;;;;;;;-1:-1:-1;53262:385:0;-1:-1:-1;;;;;53262:385:0;;:::i;44573:44::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44573:44:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52663:440;;;;;;;;;;;;;;;;-1:-1:-1;52663:440:0;-1:-1:-1;;;;;52663:440:0;;:::i;50583:621::-;;;:::i;53800:686::-;;;;;;;;;;;;;;;;-1:-1:-1;53800:686:0;-1:-1:-1;;;;;53800:686:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;44686:30;;;:::i;46255:123::-;;;;;;;;;;;;;;;;-1:-1:-1;46255:123:0;;;;;;;:::i;52029:456::-;;;;;;;;;;;;;;;;-1:-1:-1;52029:456:0;-1:-1:-1;;;;;52029:456:0;;:::i;54764:339::-;;;;;;;;;;;;;;;;-1:-1:-1;54764:339:0;;;;;;;:::i;25712:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25712:244:0;-1:-1:-1;;;;;25712:244:0;;:::i;55875:80::-;;;;;;;;;;;;;;;;-1:-1:-1;55875:80:0;;:::i;55963:107::-;;;;;;;;;;;;;;;;-1:-1:-1;55963:107:0;;;;:::i;45605:424::-;45699:19;45755:29;;;:18;:29;;;;;;45799:15;45795:62;;-1:-1:-1;45843:2:0;45795:62;45867:20;45890:70;45957:2;45890:62;44556:8;45890:44;45929:4;45890:34;45914:9;45890:19;45905:3;;45890:10;:14;;:19;;;;:::i;:::-;:23;;:34::i;:44::-;:48;;:62::i;:70::-;45867:93;-1:-1:-1;45986:35:0;46016:4;45986:25;45867:93;46003:7;45986:16;:25::i;:35::-;45972:49;45605:424;-1:-1:-1;;;;;45605:424:0:o;44322:18::-;;;;:::o;55633:234::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;55788:2:::1;55769:15;:21;;55761:48;;;::::0;;-1:-1:-1;;;55761:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;55761:48:0;;;;;;;;;;;;;::::1;;55820:21;:39:::0;55633:234::o;44624:53::-;;;;;;;;;;;;;:::o;44153:43::-;;;:::o;44385:26::-;;;;:::o;44347:31::-;;;;;;:::o;51377:487::-;-1:-1:-1;;;;;51526:10:0;;51447:7;51526:10;;;:5;:10;;;;;:17;51447:7;;;51554:267;51578:11;51574:1;:15;51554:267;;;-1:-1:-1;;;;;51615:10:0;;;;;;:5;:10;;;;;:13;;51641:15;;51615:10;51626:1;;51615:13;;;;;;;;;;;;;;;;:22;;;:41;;:67;;;;-1:-1:-1;;;;;;51661:10:0;;;;;;:5;:10;;;;;:13;;51672:1;;51661:13;;;;;;;;;;;;;;:21;:13;;;;;:21;;;;51660:22;51615:67;51611:199;;;-1:-1:-1;;;;;51773:10:0;;;;;;:5;:10;;;;;:13;;51724:70;;51773:10;51784:1;;51773:13;;;;;;;;;;;;;;;;:20;;;51724:44;51747:5;:10;51753:3;-1:-1:-1;;;;;51747:10:0;-1:-1:-1;;;;;51747:10:0;;;;;;;;;;;;51758:1;51747:13;;;;;;;;;;;;;;;;;;;;;:20;51724:18;;:22;:44::i;:::-;:48;;:70::i;:::-;51703:91;;51611:199;51591:3;;51554:267;;;-1:-1:-1;51838:18:0;;51377:487;-1:-1:-1;;;51377:487:0:o;44418:26::-;;;;:::o;44451:40::-;;;;:::o;25409:148::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;25516:1:::1;25500:6:::0;;25479:40:::1;::::0;-1:-1:-1;;;;;25500:6:0;;::::1;::::0;25479:40:::1;::::0;25516:1;;25479:40:::1;25547:1;25530:19:::0;;-1:-1:-1;;;;;;25530:19:0::1;::::0;;25409:148::o;46691:143::-;46793:33;46800:5;46807:7;46816:9;46793:6;:33::i;:::-;46691:143;;;:::o;49051:1524::-;49181:10;49098:7;49175:17;;;:5;:17;;;;;:24;49098:7;;;49210:311;49234:11;49230:1;:15;49210:311;;;49277:10;49271:17;;;;:5;:17;;;;;:20;;49303:15;;49271:17;49289:1;;49271:20;;;;;;;;;;;;;;;;:29;;;:47;:80;;;;-1:-1:-1;49329:10:0;49323:17;;;;:5;:17;;;;;:20;;49341:1;;49323:20;;;;;;;;;;;;;;:28;:20;;;;;:28;;;;49322:29;49271:80;49267:243;;;49418:10;49412:17;;;;:5;:17;;;;;:20;;49391:49;;49412:17;49430:1;;49412:20;;;;;;;;;;;;;;;;;;;:27;49391:16;;:20;:49::i;:::-;49465:10;49459:17;;;;:5;:17;;;;;:20;;49372:68;;-1:-1:-1;49490:4:0;;49477:1;;49459:20;;;;;;;;;;;;;;;;;;;:28;;:35;;-1:-1:-1;;49459:35:0;;;;;;;;;;49267:243;49247:3;;49210:311;;;;49568:1;49549:16;:20;49541:48;;;;;-1:-1:-1;;;49541:48:0;;;;;;;;;;;;-1:-1:-1;;;49541:48:0;;;;;;;;;;;;;;;49661:21;;49629:16;;49661:25;49658:534;;49741:21;;49735:3;:27;;;;49873:53;;:44;:16;49735:27;49873:20;:44::i;:53::-;49851:76;;49998:21;50023:52;50071:3;50023:43;50044:21;;50023:16;:20;;:43;;;;:::i;:52::-;49998:78;;50135:8;-1:-1:-1;;;;;50135:13:0;;50149;50135:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49658:534;;;50222:15;;:37;;50242:16;50222:19;:37::i;:::-;50204:15;:55;50307:8;50273:31;50293:10;50273:19;:31::i;:::-;:42;:81;;;;;50353:1;50319:9;-1:-1:-1;;;;;50319:19:0;;50339:10;50319:31;;;;;;;;;;;;;-1:-1:-1;;;;;50319:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50319:31:0;:35;50273:81;50270:141;;;50370:29;;;-1:-1:-1;;;50370:29:0;;50385:10;50370:29;;;;50397:1;50370:29;;;;;;-1:-1:-1;;;;;50370:9:0;:14;;;;:29;;;;;-1:-1:-1;;50370:29:0;;;;;;;-1:-1:-1;50370:14:0;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50270:141;50421:49;;;-1:-1:-1;;;50421:49:0;;50439:10;50421:49;;;;;;;;;;;;-1:-1:-1;;;;;50421:8:0;:17;;;;:49;;;;;;;;;;;;;;-1:-1:-1;50421:17:0;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50486:47:0;;;;;;;;50504:10;;50486:47;;;;;;50421:49;50486:47;;;-1:-1:-1;50551:16:0;;-1:-1:-1;;49051:1524:0;:::o;55325:300::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;55450:12:::1;55435;:27;55427:98;;;;-1:-1:-1::0;;;55427:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55565:6;55550:21:::0;;::::1;55536:11;:35:::0;55596:21:::1;55582:11;:35:::0;55325:300::o;24758:87::-;24804:7;24831:6;-1:-1:-1;;;;;24831:6:0;24758:87;:::o;44107:39::-;;;:::o;47851:1083::-;47923:10;47887:7;48051:12;;;:5;:12;;;;;:19;47887:7;;47923:10;47887:7;;;;;48081:432;48105:11;48101:1;:15;48081:432;;;-1:-1:-1;;;;;48142:12:0;;;;;;:5;:12;;;;;:15;;48170;;48142:12;48155:1;;48142:15;;;;;;;;;;;;;;;;:24;;;:43;;:71;;;;-1:-1:-1;;;;;;48190:12:0;;;;;;:5;:12;;;;;:15;;48203:1;;48190:15;;;;;;;;;;;;;;:23;:15;;;;;:23;;;;48189:24;48142:71;48138:364;;;-1:-1:-1;;;;;48302:12:0;;;;;;:5;:12;;;;;:15;;48253:72;;48302:12;48315:1;;48302:15;;;;;;;;;;;;;;;;:22;;;48253:44;48274:5;:12;48280:5;-1:-1:-1;;;;;48274:12:0;-1:-1:-1;;;;;48274:12:0;;;;;;;;;;;;48287:1;48274:15;;;;;;;;;;;;;;;;;;;;;:22;48253:16;;:20;:44::i;:72::-;-1:-1:-1;;;;;48414:12:0;;;;;;:5;:12;;;;;:15;;48234:91;;-1:-1:-1;48378:59:0;;48427:1;;48414:15;;;;;48378:59;-1:-1:-1;;;;;48456:12:0;;;;;;:5;:12;;;;;:15;;48344:93;;-1:-1:-1;48482:4:0;;48469:1;;48456:15;;;;;;;;;;;;;;;;;;;:23;;:30;;-1:-1:-1;;48456:30:0;;;;;;;;;;48138:364;48118:3;;48081:432;;;;48552:1;48533:16;:20;48525:48;;;;;-1:-1:-1;;;48525:48:0;;;;;;;;;;;;-1:-1:-1;;;48525:48:0;;;;;;;;;;;;;;;48602:15;;:52;;48622:31;48602:19;:52::i;:::-;48584:15;:70;48697:8;48668:26;48688:5;48668:19;:26::i;:::-;:37;:71;;;;;48738:1;48709:9;-1:-1:-1;;;;;48709:19:0;;48729:5;48709:26;;;;;;;;;;;;;-1:-1:-1;;;;;48709:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48709:26:0;:30;48668:71;48665:126;;;48755:9;-1:-1:-1;;;;;48755:14:0;;48770:5;48777:1;48755:24;;;;;;;;;;;;;-1:-1:-1;;;;;48755:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48665:126;48801:8;-1:-1:-1;;;;;48801:17:0;;48819:5;48826:16;48801:42;;;;;;;;;;;;;-1:-1:-1;;;;;48801:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48859:33:0;;;;;;;;-1:-1:-1;;;;;48859:33:0;;;;;;;;;48801:42;48859:33;;;-1:-1:-1;48910:16:0;;-1:-1:-1;;;47851:1083:0;:::o;44240:52::-;44285:7;44240:52;:::o;53262:385::-;-1:-1:-1;;;;;53398:10:0;;53325:7;53398:10;;;:5;:10;;;;;:17;53325:7;;;53426:184;53450:11;53446:1;:15;53426:184;;;-1:-1:-1;;;;;53488:10:0;;;;;;:5;:10;;;;;:13;;53499:1;;53488:13;;;;;;;;;;;;;;:21;:13;;;;;:21;;;;53483:116;;-1:-1:-1;;;;;53562:10:0;;;;;;:5;:10;;;;;:13;;53545:38;;53562:10;53573:1;;53562:13;;;;;53545:38;53530:53;;53483:116;53463:3;;53426:184;;44573:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44573:44:0;-1:-1:-1;44573:44:0;;;:::o;52663:440::-;-1:-1:-1;;;;;52803:10:0;;52728:7;52803:10;;;:5;:10;;;;;:17;52728:7;;;52831:233;52855:11;52851:1;:15;52831:233;;;-1:-1:-1;;;;;52892:10:0;;;;;;:5;:10;;;;;:13;;52918:15;;52892:10;52903:1;;52892:13;;;;;;;;;;;;;;;;:22;;;:41;;:67;;;;-1:-1:-1;;;;;;52938:10:0;;;;;;:5;:10;;;;;:13;;52949:1;;52938:13;;;;;;;;;;;;;;:21;:13;;;;;:21;;;;52937:22;52892:67;52888:165;;;-1:-1:-1;;;;;53016:10:0;;;;;;:5;:10;;;;;:13;;52997:40;;53016:10;53027:1;;53016:13;;;;;;;;;;;;;;;;:20;;;52997:14;:18;;:40;;;;:::i;:::-;52980:57;;52888:165;52868:3;;52831:233;;50583:621;50658:11;;50630:7;;50658:11;;50650:40;;;;;-1:-1:-1;;;50650:40:0;;;;;;;;;;;;-1:-1:-1;;;50650:40:0;;;;;;;;;;;;;;;50701:25;50729:31;50749:10;50729:19;:31::i;:::-;50701:59;;50799:1;50779:17;:21;50771:49;;;;;-1:-1:-1;;;50771:49:0;;;;;;;;;;;;-1:-1:-1;;;50771:49:0;;;;;;;;;;;;;;;50849:15;;:38;;50869:17;50849:19;:38::i;:::-;50831:15;:56;50935:8;50901:31;50921:10;50901:19;:31::i;:::-;:42;:81;;;;;50981:1;50947:9;-1:-1:-1;;;;;50947:19:0;;50967:10;50947:31;;;;;;;;;;;;;-1:-1:-1;;;;;50947:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50947:31:0;:35;50901:81;50898:141;;;50998:29;;;-1:-1:-1;;;50998:29:0;;51013:10;50998:29;;;;51025:1;50998:29;;;;;;-1:-1:-1;;;;;50998:9:0;:14;;;;:29;;;;;-1:-1:-1;;50998:29:0;;;;;;;-1:-1:-1;50998:14:0;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50898:141;51049:48;;;-1:-1:-1;;;51049:48:0;;51067:10;51049:48;;;;;;;;;;;;-1:-1:-1;;;;;51049:8:0;:17;;;;:48;;;;;;;;;;;;;;-1:-1:-1;51049:17:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51113:48:0;;;;;;;;51131:10;;51113:48;;;;;;51049;51113;;;51179:17;-1:-1:-1;50583:621:0;:::o;53800:686::-;-1:-1:-1;;;;;53981:10:0;;53861:7;53981:10;;;:5;:10;;;;;:17;53861:7;;;;;;;54009:418;54033:11;54029:1;:15;54009:418;;;-1:-1:-1;;;;;54085:10:0;;54066:16;54085:10;;;:5;:10;;;;;:13;;54096:1;;54085:13;;;;;;;;;;;;;;;;:22;;;54066:41;;54137:15;54126:8;:26;:52;;;;-1:-1:-1;;;;;;54157:10:0;;;;;;:5;:10;;;;;:13;;54168:1;;54157:13;;;;;;;;;;;;;;:21;:13;;;;;:21;;;;54156:22;54126:52;54122:294;;;54202:19;;;:48;;;54242:8;54225:14;:25;54202:48;54199:202;;;-1:-1:-1;;;;;54361:10:0;;;;;;:5;:10;;;;;:13;;54310:8;;-1:-1:-1;54310:8:0;;54372:1;;54361:13;;;;;;;;;;;;;;;;:20;;;54341:40;;54199:202;-1:-1:-1;54046:3:0;;54009:418;;;-1:-1:-1;54445:14:0;;-1:-1:-1;54460:17:0;-1:-1:-1;;53800:686:0;;;:::o;44686:30::-;;;;:::o;46255:123::-;46332:38;46339:10;46351:7;46360:9;46332:6;:38::i;:::-;46255:123;;:::o;52029:456::-;-1:-1:-1;;;;;52166:10:0;;52093:7;52166:10;;;:5;:10;;;;;:17;52093:7;;;52194:254;52218:11;52214:1;:15;52194:254;;;-1:-1:-1;;;;;52255:10:0;;;;;;:5;:10;;;;;:13;;52280:15;;52255:10;52266:1;;52255:13;;;;;;;;;;;;;;;;:22;;;:40;:66;;;;-1:-1:-1;;;;;;52300:10:0;;;;;;:5;:10;;;;;:13;;52311:1;;52300:13;;;;;;;;;;;;;;:21;:13;;;;;:21;;;;52299:22;52255:66;52251:186;;;-1:-1:-1;;;;;52400:10:0;;;;;;:5;:10;;;;;:13;;52357:64;;52400:10;52411:1;;52400:13;;;;;52357:64;52342:79;;52251:186;52231:3;;52194:254;;54764:339;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;54865:22:::1;54890:20;:9:::0;54904:5:::1;54890:13;:20::i;:::-;54865:45;;54947:11;;54929:14;:29;;:62;;;;;54980:11;;54962:14;:29;;54929:62;54921:115;;;;-1:-1:-1::0;;;54921:115:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55047:34;::::0;;;:18:::1;:34;::::0;;;;:48;;;;-1:-1:-1;54764:339:0:o;25712:244::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25801:22:0;::::1;25793:73;;;;-1:-1:-1::0;;;25793:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25903:6;::::0;;25882:38:::1;::::0;-1:-1:-1;;;;;25882:38:0;;::::1;::::0;25903:6;::::1;::::0;25882:38:::1;::::0;::::1;25931:6;:17:::0;;-1:-1:-1;;;;;;25931:17:0::1;-1:-1:-1::0;;;;;25931:17:0;;;::::1;::::0;;;::::1;::::0;;25712:244::o;55875:80::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;55937:3:::1;:10:::0;55875:80::o;55963:107::-;24989:12;:10;:12::i;:::-;-1:-1:-1;;;;;24978:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24978:23:0;;24970:68;;;;;-1:-1:-1;;;24970:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24970:68:0;;;;;;;;;;;;;;;56036:11:::1;:26:::0;;-1:-1:-1;;56036:26:0::1;::::0;::::1;;::::0;;;::::1;::::0;;55963:107::o;7563:220::-;7621:7;7645:6;7641:20;;-1:-1:-1;7660:1:0;7653:8;;7641:20;7684:5;;;7688:1;7684;:5;:1;7708:5;;;;;:10;7700:56;;;;-1:-1:-1;;;7700:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7774:1;-1:-1:-1;7563:220:0;;;;;:::o;8261:153::-;8319:7;8351:1;8347;:5;8339:44;;;;;-1:-1:-1;;;8339:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8405:1;8401;:5;;;;;;;8261:153;-1:-1:-1;;;8261:153:0:o;706:106::-;794:10;706:106;:::o;6684:179::-;6742:7;6774:5;;;6798:6;;;;6790:46;;;;;-1:-1:-1;;;6790:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;46842:917;-1:-1:-1;;;;;46937:19:0;;46929:43;;;;;-1:-1:-1;;;46929:43:0;;;;;;;;;;;;-1:-1:-1;;;46929:43:0;;;;;;;;;;;;;;;44285:7;46991;:29;;46983:75;;;;-1:-1:-1;;;46983:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47090:11;;47077:9;:24;;47069:67;;;;;-1:-1:-1;;;47069:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;47168:11;;47155:9;:24;;47147:65;;;;;-1:-1:-1;;;47147:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;47225:19;47247:30;:15;47267:9;47247:19;:30::i;:::-;47225:52;;47288:18;47309:35;47325:7;47334:9;47309:15;:35::i;:::-;47357:57;;;-1:-1:-1;;;47357:57:0;;47379:10;47357:57;;;;47399:4;47357:57;;;;;;;;;;;;47288:56;;-1:-1:-1;;;;;;47357:8:0;:21;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;47357:21:0;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;47425:12:0;;;;;;:5;47357:57;47425:12;;;;;;;47443:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;47425:69;;47443:50;47425:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47425:69:0;;;;;;;;;;47523:15;;:28;;47443:50;47523:19;:28::i;:::-;47505:15;:46;47594:8;47565:26;47585:5;47565:19;:26::i;:::-;:37;:72;;;;;47606:9;-1:-1:-1;;;;;47606:19:0;;47626:5;47606:26;;;;;;;;;;;;;-1:-1:-1;;;;;47606:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47606:26:0;:31;47565:72;47562:127;;;47653:9;-1:-1:-1;;;;;47653:14:0;;47668:5;47675:1;47653:24;;;;;;;;;;;;;-1:-1:-1;;;;;47653:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47562:127;47704:47;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47704:47:0;;;;;;;;;;;;;46842:917;;;;;:::o;7146:158::-;7204:7;7237:1;7232;:6;;7224:49;;;;;-1:-1:-1;;;7224:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7291:5:0;;;7146:158::o

Swarm Source

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