Contract 0x04Ac48711BCdc45b4d223fb021E09DA73c71095e

Contract Overview

Aurigami: PULP Token
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xed31091436df88da38dee86099890a94a62ddad54fd21b83d47baf05c88dbd43Approve749874172022-09-27 2:04:351 day 13 hrs ago0x0e91af6c4b4dd713c36227659e84563ae5b8a65e IN  Aurigami: PULP Token0 ETH0
0x1bae09d046ba44d9c0ef5d548eab4d337fbc17c453bb4737a4196a9cc6c74e39Transfer749029542022-09-25 21:46:362 days 18 hrs ago0xbebe72a0f43504b0f90cb2328d710b9ef689e5f5 IN  Aurigami: PULP Token0 ETH0.00000242053
0x2b51d9866addf4fd4015122bc7569fcd9654364ef41afbfb47fe09279b6d2f66Transfer749029042022-09-25 21:45:392 days 18 hrs ago0x89d0dfb58149fb1ff7471983191f6e0ef5c06dcd IN  Aurigami: PULP Token0 ETH0.00000328489
0x6683a076fd56a9df9adb8c4e37b27b3fea1866fd2d8883599da91294a9426b0eTransfer749027342022-09-25 21:42:242 days 18 hrs ago0xbebe72a0f43504b0f90cb2328d710b9ef689e5f5 IN  Aurigami: PULP Token0 ETH0.00000208369
0x31ba988de76cecf619d5fbce46c10559487e6d8716da17d7201103f8f7801d04Transfer749026552022-09-25 21:40:532 days 18 hrs ago0x89d0dfb58149fb1ff7471983191f6e0ef5c06dcd IN  Aurigami: PULP Token0 ETH0.00000361669
0xb6e149767c6001b55bd5c0fc3c97d83326e3d8a807c7390b373c1fe9c70a4610Approve748771972022-09-25 12:57:083 days 3 hrs ago0x9289247f70b1229cba50da40720ee5652b77b82f IN  Aurigami: PULP Token0 ETH0.0000032648
0x0d7dd3c10794c76f2756800616fd2d4d8215d05ab644815f5c6b6db5affb5af3Approve747938892022-09-24 8:44:174 days 7 hrs ago0xd92fdb169bf65654bc88383fd142a66dd456cf63 IN  Aurigami: PULP Token0 ETH0.0000032648
0x5715d462109bee46a5f12f1f660751a8ef49bd72c2756ac826133701e2d915f3Approve747445332022-09-23 15:48:055 days 15 mins ago0x92d633eec45f6c765034d5285911d7f81a78e715 IN  Aurigami: PULP Token0 ETH0
0xcb1795ee5edee253bcb657bb7a51b0da5d4e9cd103b834a2e31a10aeab96ebb6Approve746811332022-09-22 17:46:175 days 22 hrs ago0x3559c78137cddfa06c11231c6033f09c1b860bb3 IN  Aurigami: PULP Token0 ETH0.0000032648
0xafd324523ad33f33e725f888d3fff9eff333170c5d24548e10a14be0aa3b83c7Approve746808142022-09-22 17:39:345 days 22 hrs ago0x89d0dfb58149fb1ff7471983191f6e0ef5c06dcd IN  Aurigami: PULP Token0 ETH0.00000170492
0x1f5bd03f38bde28ada86351f0d6f5c848371fce874ed3e0fac6c4abc5e8c4ed7Approve746802112022-09-22 17:26:125 days 22 hrs ago0x89d0dfb58149fb1ff7471983191f6e0ef5c06dcd IN  Aurigami: PULP Token0 ETH0.0000032648
0x9117256c04646bd66f6d4b4e424bdad97afbd35d20b6cff0c1b1728e0e0c9efaApprove746355112022-09-22 1:42:346 days 14 hrs ago0x9117900a3794ad6d167dd97853f82a1aa07f9bbc IN  Aurigami: PULP Token0 ETH0.0000032648
0xfcca875d233ea0e2814f3514ca27435dec762593b3d18dae35c3ed0dc3ebf056Transfer746169582022-09-21 19:01:296 days 21 hrs ago0x3559c78137cddfa06c11231c6033f09c1b860bb3 IN  Aurigami: PULP Token0 ETH0.00000208705
0xfcfae98a519c71bd3bdba4b84c971b6e106da9967eac12d9ef8070f5de9863b3Approve745445752022-09-20 17:26:527 days 22 hrs ago0xe4c5eb8d89da3c24341a022fdd57b6f03cdf9129 IN  Aurigami: PULP Token0 ETH0
0x388eec2c61ce93da2d8fb2e61fc698279759cc742ed3315cbf70f8f2297c8f75Approve745006052022-09-20 1:53:368 days 14 hrs ago0x12b25c74896114c8e9cb91f3a6133567e339dcb3 IN  Aurigami: PULP Token0 ETH0.0000032648
0xa8a8537085c2e9f0f3e589dbf073d447e7bbf5971dc1f0fd3e9464a98ba8b865Transfer744600142022-09-19 11:21:469 days 4 hrs ago0xd93939c5cd996c56349d32c62671e15621bada2b IN  Aurigami: PULP Token0 ETH0.00000208537
0x9a75530dd2b5884d2c7060a9d1efa982d259157b68451ed416a1a038a2a07f1aApprove744195992022-09-18 20:56:579 days 19 hrs ago0xa6c23f3179f4786b9e49f7802090038bfecf6c22 IN  Aurigami: PULP Token0 ETH0
0x10039647747ab9035d2bb8da367968c7b78f3a438dcdbee92986017b1dca577dTransfer742679822022-09-16 14:01:1912 days 2 hrs ago0x3559c78137cddfa06c11231c6033f09c1b860bb3 IN  Aurigami: PULP Token0 ETH0.00000208705
0x53899854083fb86935afdc4f2d6e1ab4997c048fb2001fac1d1f9831b896bc80Approve742623992022-09-16 12:00:4012 days 4 hrs ago0x980a3c48fe738c7d489c06c54a1b581cb925ed96 IN  Aurigami: PULP Token0 ETH0.0000032648
0xaf897b097d2b5fdb0d453693ef019acc3cefc7b5c155ffb3cddb41b4437aeb3eApprove742317012022-09-16 0:54:2812 days 15 hrs ago0xc46cce5aff130018d1a7eed02044517695aeb736 IN  Aurigami: PULP Token0 ETH0.0000032648
0x76197b819c5875bcac6ebb98826b27fc1facdb389a64b6601e0b7c1716e2bed7Transfer742154882022-09-15 19:05:3612 days 20 hrs ago0x3559c78137cddfa06c11231c6033f09c1b860bb3 IN  Aurigami: PULP Token0 ETH0.00000208705
0x1859aef7c0354aba7d3f05bc3ac53b45189a9f1d5d549c3027b8960273202344Approve741381832022-09-14 13:57:0414 days 2 hrs ago0x368f77b31b38aaa20e14e42a551f5d6644fb2040 IN  Aurigami: PULP Token0 ETH0.0000032648
0xa5bf0c2203efce5ce605decdb67b97ebd8f677076bff7bf74865ea19ae4b9fa1Transfer741346052022-09-14 12:37:5514 days 3 hrs ago0x386c01fb9619a408c30d988a63643d487060777e IN  Aurigami: PULP Token0 ETH0.000003612455
0x4e43827665deed9d33ba8227606f3c4d80d438cb33dc2b6e7d865ea08bd3ffd6Approve740685702022-09-13 11:46:2115 days 4 hrs ago0x986fcc6b0d290308ad6f6a0e8471f74f53dec06a IN  Aurigami: PULP Token0 ETH0
0x33d903efae1e7adac934cac9de862b343f02aa847922b46ef277f0f4cf035663Approve739524422022-09-11 18:44:4816 days 21 hrs ago0x7385f8b5ab1303c8e476d371973db768f1a43bb4 IN  Aurigami: PULP Token0 ETH0.0000032648
[ Download CSV Export 

OVERVIEW

PULP is a maturing token, which can be transformed into PLY once it has aged sufficiently

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PULP

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 3000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : PULP.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/PULPInterface.sol";
import "./interfaces/RewardsClaimInterface.sol";
import "./BoringOwnable.sol";
import "./AuriMathLib.sol";

// solhint-disable var-name-mixedcase
contract PULP is ERC20, PULPInterface, BoringOwnable {
  using SafeERC20 for IERC20;

  struct UserLock {
    bool isSet;
    uint224 percentLock;
  }

  address public immutable PLY;
  RewardsClaimInterface public immutable unitroller;

  mapping(uint256 => uint256) public globalLock;

  // individual lock data for users (will override the global lock if applicable)
  mapping(address => mapping(uint256 => UserLock)) public userLock;

  // amount of early redemption allowed for each user (can be modified by admin)
  mapping(address => uint256) public earlyRedeems;

  uint256 public constant PULP_FIRST_REDEEM_WEEK = 49 + 27;

  constructor(address _PLY, RewardsClaimInterface _unitroller) ERC20("PULP", "PULP") {
    require(address(_PLY) != address(0), "null address");
    require(address(_unitroller) != address(0), "null address");
    PLY = _PLY;
    unitroller = _unitroller;

    // set percent locks
    // Take reference from rewardClaimStart:
    // week 0 = first 7 days after rewardClaimStart
    // week 1 = Days 8 to 14 after rewardClaimStart etc.
    // starting from week 0: 95% lock, -2% every subsequent week
    // will hit 1% on week 47
    for (uint256 i = 0; i <= 47; i++) {
      // base unlock: 5% (take inverse of it)
      // 100% = 10_000
      // Eg. week 2 = 10_000 - (5 + 2 * 2) * 100 = 9100 = 91%
      globalLock[i] = 10_000 - (5 + i * 2) * 100;
    }
    // week 48 onwards: 0%
  }

  /*///////////////////////////////////////////////////////////////
                    MINTING & LOCKING
  //////////////////////////////////////////////////////////////*/

  /// @notice convert PLY to PULP with 1-1 ratio
  function lockPly(address recipient, uint256 amount) external {
    require(recipient != address(0), "zero address");
    if (amount == 0) return;

    IERC20(PLY).safeTransferFrom(msg.sender, address(this), amount);
    _mint(recipient, amount);

    emit PlyLocked(msg.sender, recipient, amount);
  }

  /// @notice calculate the amount of PLY & PULP to transfer/mint.
  function calcLockAmount(address account, uint256 amount)
    external
    view
    returns (uint256 lockAmount, uint256 claimAmount)
  {
    int256 curWeekInt = getCurrentWeek();
    if (curWeekInt < 0) return (amount, 0);
    uint256 curWeek = uint256(curWeekInt);

    uint256 percentLock;

    // if userLock is set, use that number instead
    if (userLock[account][curWeek].isSet) {
      percentLock = userLock[account][curWeek].percentLock;
    } else {
      percentLock = globalLock[curWeek];
    }

    lockAmount = (amount * percentLock) / 10_000;
    claimAmount = amount - lockAmount;
  }

  function setGlobalLock(uint256[] calldata weekNumbers, uint256[] calldata values)
    external
    onlyOwner
  {
    require(weekNumbers.length == values.length, "bad array lengths");
    for (uint256 i = 0; i < weekNumbers.length; i++) {
      require(values[i] <= 10_000, "exceed max value");
      globalLock[weekNumbers[i]] = values[i];

      emit GlobalLockSet(weekNumbers[i], values[i]);
    }
  }

  function setUserLock(
    address account,
    uint256[] calldata weekNumbers,
    uint256[] calldata values
  ) external onlyOwner {
    require(weekNumbers.length == values.length, "bad array lengths");
    for (uint256 i = 0; i < weekNumbers.length; i++) {
      require(values[i] <= 10_000, "exceed max value");
      userLock[account][weekNumbers[i]] = UserLock(true, Math.safe224(values[i]));

      emit UserLockSet(account, weekNumbers[i], values[i]);
    }
  }

  /*///////////////////////////////////////////////////////////////
                    REDEMPTION OF PULP
  //////////////////////////////////////////////////////////////*/

  /// @notice set amount to type(uint256).max for max redeem
  function redeem(address recipient, uint256 amountToRedeem)
    external
    returns (uint256 amountRedeemed)
  {
    require(recipient != address(0), "zero address");
    require(amountToRedeem != 0, "zero amount");

    int256 curWeek = getCurrentWeek();
    require(curWeek >= 0, "wait until rewardClaimStart");

    if (amountToRedeem == type(uint256).max) {
      amountToRedeem = _getMaxAmountRedeemable(msg.sender, curWeek);
    }

    if (!isPulpUnlocked(curWeek)) {
      require(earlyRedeems[msg.sender] >= amountToRedeem, "insufficient earlyRedeems");
      earlyRedeems[msg.sender] -= amountToRedeem;
    }

    _burn(msg.sender, amountToRedeem);
    IERC20(PLY).safeTransfer(recipient, amountToRedeem);
    amountRedeemed = amountToRedeem;

    emit PulpRedeemed(msg.sender, recipient, amountRedeemed);
  }

  function getMaxAmountRedeemable(address account) external view returns (uint256 res) {
    res = _getMaxAmountRedeemable(account, getCurrentWeek());
  }

  function _getMaxAmountRedeemable(address account, int256 curWeek)
    internal
    view
    returns (uint256 res)
  {
    res = balanceOf(account);

    if (!isPulpUnlocked(curWeek)) {
      res = Math.min(res, earlyRedeems[account]);
    }
  }

  /// @notice preferable way to modify earlyRedeems. Note that once earlyRedeems for an user
  /// is added, the user can redeem it right away. Hence, make sure to double check before
  /// any data is sent
  function addEarlyRedeems(address[] calldata accounts, uint256[] calldata data) public onlyOwner {
    require(accounts.length == data.length, "array lengths mismatch");
    for (uint256 i = 0; i < accounts.length; i++) {
      earlyRedeems[accounts[i]] += data[i];

      emit EarlyRedeemAdd(accounts[i], data[i]);
    }
  }

  /// @notice non-preferable way to modify earlyRedeems
  function resetEarlyRedeems(address[] calldata accounts, uint256[] calldata data)
    public
    onlyOwner
  {
    require(accounts.length == data.length, "array lengths mismatch");
    for (uint256 i = 0; i < accounts.length; i++) {
      earlyRedeems[accounts[i]] = data[i];

      emit EarlyRedeemReset(accounts[i], data[i]);
    }
  }

  /*///////////////////////////////////////////////////////////////
                    VIEW FUNCTIONS
  //////////////////////////////////////////////////////////////*/

  function getCurrentWeek() public view returns (int256) {
    // week 0 = first 7 days after rewardClaimStart
    // week 1 = Days 8 to 14 after rewardClaimStart etc.
    return (int256(block.timestamp) - int32(unitroller.rewardClaimStart())) / 7 days;
  }

  function isPulpUnlocked(int256 curWeek) public pure returns (bool) {
    return curWeek >= int256(PULP_FIRST_REDEEM_WEEK);
  }

  function _beforeTokenTransfer(
    address,
    address to,
    uint256
  ) internal view override {
    require(to != address(this), "fobidden");
  }
}

File 2 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

    /**
     * @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 4 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 11 : PULPInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";

interface PULPInterface is IERC20Metadata {
  function globalLock(uint256 _week) external view returns (uint256);

  function userLock(address _user, uint256 _week) external view returns (bool, uint224);

  function PLY() external view returns (address);

  function lockPly(address recipient, uint256 amount) external;

  function calcLockAmount(address account, uint256 amount)
    external
    view
    returns (uint256 lockAmount, uint256 claimAmount);

  function redeem(address recipient, uint256 amountToRedeem)
    external
    returns (uint256 amountRedeemed);

  function getMaxAmountRedeemable(address account) external view returns (uint256 res);

  event PlyLocked(address indexed locker, address indexed recipient, uint256 amount);

  event GlobalLockSet(uint256 indexed weekNumber, uint256 newPercentLock);

  event UserLockSet(address indexed account, uint256 indexed weekNumber, uint256 newPercentLock);

  event PulpRedeemed(address indexed redeemer, address indexed recipient, uint256 amount);

  event EarlyRedeemAdd(address indexed account, uint256 amountAdd);

  event EarlyRedeemReset(address indexed account, uint256 newAmount);
}

File 6 of 11 : RewardsClaimInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface RewardsClaimInterface {
  function rewardClaimStart() external view returns (uint32);
}

File 7 of 11 : BoringOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

// Audit on 5-Jan-2021 by Keno and BoringCrypto
// Source: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol + Claimable.sol
// Edited by BoringCrypto

contract BoringOwnableData {
    address public owner;
    address public pendingOwner;
}

contract BoringOwnable is BoringOwnableData {
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor(){
        owner = msg.sender;
    }

    /// @notice Transfers ownership to `newOwner`. Either directly or claimable by the new pending owner.
    /// Can only be invoked by the current `owner`.
    /// @param newOwner Address of the new owner.
    /// @param direct True if `newOwner` should be set immediately. False if `newOwner` needs to use `claimOwnership`.
    /// @param renounce Allows the `newOwner` to be `address(0)` if `direct` and `renounce` is True. Has no effect otherwise.
    function transferOwnership(
        address newOwner,
        bool direct,
        bool renounce
    ) public onlyOwner {
        if (direct) {
            // Checks
            require(newOwner != address(0) || renounce, "Ownable: zero address");

            // Effects
            emit OwnershipTransferred(owner, newOwner);
            owner = newOwner;
            pendingOwner = address(0);
        } else {
            // Effects
            pendingOwner = newOwner;
        }
    }

    /// @notice Needs to be called by `pendingOwner` to claim ownership.
    function claimOwnership() public {
        address _pendingOwner = pendingOwner;

        // Checks
        require(msg.sender == _pendingOwner, "Ownable: caller != pending owner");

        // Effects
        emit OwnershipTransferred(owner, _pendingOwner);
        owner = _pendingOwner;
        pendingOwner = address(0);
    }

    /// @notice Only allows the `owner` to execute the function.
    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }
}

File 8 of 11 : AuriMathLib.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.11;

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

  function max(
    uint256 a,
    uint256 b,
    uint256 c
  ) internal pure returns (uint256) {
    return max(a, max(b, c));
  }

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

  function min(
    uint256 a,
    uint256 b,
    uint256 c
  ) internal pure returns (uint256) {
    return min(min(a, b), c);
  }

  /**
   * @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.
    return (a & b) + (a ^ b) / 2;
  }

  /**
   * @dev Returns the ceiling of the division of two numbers.
   *
   * This differs from standard division with `/` in that it rounds up instead
   * of rounding down.
   */
  function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    // (a + b - 1) / b can overflow on addition, so we distribute.
    return a / b + (a % b == 0 ? 0 : 1);
  }

  /**
   * @dev Returns the abs of the difference of two numbers.
   */
  function absDiff(uint256 a, uint256 b) internal pure returns (uint256) {
    return (a > b) ? (a - b) : (b - a);
  }

  function safe216(uint256 n) internal pure returns (uint216) {
    require(n <= type(uint216).max, "safe216");
    return uint216(n);
  }

  function safe224(uint256 n) internal pure returns (uint224) {
    require(n <= type(uint224).max, "safe224");
    return uint224(n);
  }

  function safe32(uint256 n) internal pure returns (uint32) {
    require(n <= type(uint32).max, "safe32");
    return uint32(n);
  }
}

File 9 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_PLY","type":"address"},{"internalType":"contract RewardsClaimInterface","name":"_unitroller","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountAdd","type":"uint256"}],"name":"EarlyRedeemAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EarlyRedeemReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"weekNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPercentLock","type":"uint256"}],"name":"GlobalLockSet","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":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PlyLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PulpRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"weekNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPercentLock","type":"uint256"}],"name":"UserLockSet","type":"event"},{"inputs":[],"name":"PLY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PULP_FIRST_REDEEM_WEEK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"data","type":"uint256[]"}],"name":"addEarlyRedeems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calcLockAmount","outputs":[{"internalType":"uint256","name":"lockAmount","type":"uint256"},{"internalType":"uint256","name":"claimAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"earlyRedeems","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentWeek","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getMaxAmountRedeemable","outputs":[{"internalType":"uint256","name":"res","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"globalLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"curWeek","type":"int256"}],"name":"isPulpUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lockPly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountToRedeem","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"amountRedeemed","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"data","type":"uint256[]"}],"name":"resetEarlyRedeems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"weekNumbers","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"setGlobalLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"weekNumbers","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"setUserLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"renounce","type":"bool"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unitroller","outputs":[{"internalType":"contract RewardsClaimInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userLock","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint224","name":"percentLock","type":"uint224"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b5060405162002a2d38038062002a2d833981016040819052620000349162000270565b604080518082018252600480825263050554c560e41b6020808401828152855180870190965292855284015281519192916200007391600391620001b1565b50805162000089906004906020840190620001b1565b5050600580546001600160a01b03191633179055506001600160a01b038216620000e95760405162461bcd60e51b815260206004820152600c60248201526b6e756c6c206164647265737360a01b60448201526064015b60405180910390fd5b6001600160a01b038116620001305760405162461bcd60e51b815260206004820152600c60248201526b6e756c6c206164647265737360a01b6044820152606401620000e0565b6001600160a01b03808316608052811660a05260005b602f8111620001a8576200015c816002620002c5565b62000169906005620002e7565b62000176906064620002c5565b620001849061271062000302565b600082815260076020526040902055806200019f816200031c565b91505062000146565b50505062000377565b828054620001bf906200033a565b90600052602060002090601f016020900481019282620001e357600085556200022e565b82601f10620001fe57805160ff19168380011785556200022e565b828001600101855582156200022e579182015b828111156200022e57825182559160200191906001019062000211565b506200023c92915062000240565b5090565b5b808211156200023c576000815560010162000241565b6001600160a01b03811681146200026d57600080fd5b50565b600080604083850312156200028457600080fd5b8251620002918162000257565b6020840151909250620002a48162000257565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615620002e257620002e2620002af565b500290565b60008219821115620002fd57620002fd620002af565b500190565b600082821015620003175762000317620002af565b500390565b6000600019821415620003335762000333620002af565b5060010190565b600181811c908216806200034f57607f821691505b602082108114156200037157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161267b620003b2600039600081816104c301526110500152600081816102a501528181610a1101526115c4015261267b6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063710bdfbd1161010f578063a457c2d7116100a2578063bad1d3da11610071578063bad1d3da146104be578063d9cb19b6146104e5578063dd62ed3e146104f8578063e30c39781461053157600080fd5b8063a457c2d714610463578063a9059cbb14610476578063ad64176414610489578063b7bcf6281461049e57600080fd5b80638ee15b9d116100de5780638ee15b9d1461042057806395d89b4114610440578063990973cf14610448578063a19ea8871461045057600080fd5b8063710bdfbd14610360578063822f34a3146103e7578063864977de146103fa5780638da5cb5b1461040d57600080fd5b8063254e0f431161018757806341713f511161015657806341713f51146103145780634e71e0c8146103275780636eb227ce1461032f57806370a082311461033757600080fd5b8063254e0f43146102a05780632daa9449146102df578063313ce567146102f2578063395093511461030157600080fd5b80630a45a8dc116101c35780630a45a8dc1461024057806318160ddd146102685780631e9a69501461027a57806323b872dd1461028d57600080fd5b806306fdde03146101ea578063078dfbe714610208578063095ea7b31461021d575b600080fd5b6101f2610544565b6040516101ff9190612186565b60405180910390f35b61021b6102163660046121e6565b6105d6565b005b61023061022b36600461222f565b610752565b60405190151581526020016101ff565b61025361024e36600461222f565b61076c565b604080519283526020830191909152016101ff565b6002545b6040519081526020016101ff565b61026c61028836600461222f565b61084e565b61023061029b366004612259565b610a82565b6102c77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101ff565b61021b6102ed3660046122da565b610aa8565b604051601281526020016101ff565b61023061030f36600461222f565b610c6f565b61021b610322366004612346565b610cae565b61021b610f72565b61026c611048565b61026c6103453660046123c7565b6001600160a01b031660009081526020819052604090205490565b6103b361036e36600461222f565b600860209081526000928352604080842090915290825290205460ff81169061010090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1682565b6040805192151583527bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091166020830152016101ff565b61026c6103f53660046123c7565b6110ec565b61021b6104083660046122da565b6110ff565b6005546102c7906001600160a01b031681565b61026c61042e3660046123c7565b60096020526000908152604090205481565b6101f26112a4565b61026c604c81565b61021b61045e3660046122da565b6112b3565b61023061047136600461222f565b611495565b61023061048436600461222f565b61154a565b6102306104973660046123e2565b604c131590565b61026c6104ac3660046123e2565b60076020526000908152604090205481565b6102c77f000000000000000000000000000000000000000000000000000000000000000081565b61021b6104f336600461222f565b611558565b61026c6105063660046123fb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6006546102c7906001600160a01b031681565b6060600380546105539061242e565b80601f016020809104026020016040519081016040528092919081815260200182805461057f9061242e565b80156105cc5780601f106105a1576101008083540402835291602001916105cc565b820191906000526020600020905b8154815290600101906020018083116105af57829003601f168201915b5050505050905090565b6005546001600160a01b031633146106355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b8115610719576001600160a01b03831615158061064f5750805b61069b5760405162461bcd60e51b815260206004820152601560248201527f4f776e61626c653a207a65726f20616464726573730000000000000000000000604482015260640161062c565b6005546040516001600160a01b038086169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0385167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155600680549091169055505050565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385161790555b505050565b60003361076081858561163b565b60019150505b92915050565b6000806000610779611048565b90506000811215610791578360009250925050610847565b6001600160a01b038516600090815260086020908152604080832084845290915281205482919060ff161561080d57506001600160a01b038616600090815260086020908152604080832084845290915290205461010090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661081e565b506000818152600760205260409020545b61271061082b828861247f565b61083591906124b4565b945061084185876124c8565b93505050505b9250929050565b60006001600160a01b0383166108a65760405162461bcd60e51b815260206004820152600c60248201527f7a65726f20616464726573730000000000000000000000000000000000000000604482015260640161062c565b816108f35760405162461bcd60e51b815260206004820152600b60248201527f7a65726f20616d6f756e74000000000000000000000000000000000000000000604482015260640161062c565b60006108fd611048565b905060008112156109505760405162461bcd60e51b815260206004820152601b60248201527f7761697420756e74696c20726577617264436c61696d53746172740000000000604482015260640161062c565b600019831415610967576109643382611793565b92505b61097281604c131590565b6109fa57336000908152600960205260409020548311156109d55760405162461bcd60e51b815260206004820152601960248201527f696e73756666696369656e74206561726c7952656465656d7300000000000000604482015260640161062c565b33600090815260096020526040812080548592906109f49084906124c8565b90915550505b610a0433846117d9565b610a386001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016858561196a565b6040518381528392506001600160a01b0385169033907f6e918491d293104c6cf9fa5456f1b039f0240e26ebf613a02db7c9ad80d81ad99060200160405180910390a35092915050565b600033610a90858285611a13565b610a9b858585611aa5565b60019150505b9392505050565b6005546001600160a01b03163314610b025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161062c565b828114610b515760405162461bcd60e51b815260206004820152601660248201527f6172726179206c656e67746873206d69736d6174636800000000000000000000604482015260640161062c565b60005b83811015610c6857828282818110610b6e57610b6e6124df565b9050602002013560096000878785818110610b8b57610b8b6124df565b9050602002016020810190610ba091906123c7565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610bcf91906124f5565b909155508590508482818110610be757610be76124df565b9050602002016020810190610bfc91906123c7565b6001600160a01b03167f8f6d0edf70baaddd078e4704c2f9470140b8545093bd49889f8b9f79aedcb20b848484818110610c3857610c386124df565b90506020020135604051610c4e91815260200190565b60405180910390a280610c608161250d565b915050610b54565b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107609082908690610ca99087906124f5565b61163b565b6005546001600160a01b03163314610d085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161062c565b828114610d575760405162461bcd60e51b815260206004820152601160248201527f626164206172726179206c656e67746873000000000000000000000000000000604482015260640161062c565b60005b83811015610f6a57612710838383818110610d7757610d776124df565b905060200201351115610dcc5760405162461bcd60e51b815260206004820152601060248201527f657863656564206d61782076616c756500000000000000000000000000000000604482015260640161062c565b6040518060400160405280600115158152602001610e01858585818110610df557610df56124df565b90506020020135611cc7565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690526001600160a01b038716600090815260086020526040812090878785818110610e4c57610e4c6124df565b60209081029290920135835250818101929092526040016000208251815493909201517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16610100027fffffff00000000000000000000000000000000000000000000000000000000ff921515929092167fffffff000000000000000000000000000000000000000000000000000000000090931692909217179055848482818110610ef657610ef66124df565b90506020020135866001600160a01b03167f4d0a6a624d28cd26f757decc2537fc57cd6de01d5f7abdf4ed619582c9ffd4e1858585818110610f3a57610f3a6124df565b90506020020135604051610f5091815260200190565b60405180910390a380610f628161250d565b915050610d5a565b505050505050565b6006546001600160a01b0316338114610fcd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161062c565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179055600680549091169055565b600062093a807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663892d8ec76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d09190612528565b6110dd9060030b4261254e565b6110e791906125c2565b905090565b6000610766826110fa611048565b611793565b6005546001600160a01b031633146111595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161062c565b8281146111a85760405162461bcd60e51b815260206004820152601660248201527f6172726179206c656e67746873206d69736d6174636800000000000000000000604482015260640161062c565b60005b83811015610c68578282828181106111c5576111c56124df565b90506020020135600960008787858181106111e2576111e26124df565b90506020020160208101906111f791906123c7565b6001600160a01b03168152602081019190915260400160002055848482818110611223576112236124df565b905060200201602081019061123891906123c7565b6001600160a01b03167f154c79f9fdc2ce7ff7230c4a7d18126cc444cd2587aa7134e59f55559a9ee3e0848484818110611274576112746124df565b9050602002013560405161128a91815260200190565b60405180910390a28061129c8161250d565b9150506111ab565b6060600480546105539061242e565b6005546001600160a01b0316331461130d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161062c565b82811461135c5760405162461bcd60e51b815260206004820152601160248201527f626164206172726179206c656e67746873000000000000000000000000000000604482015260640161062c565b60005b83811015610c685761271083838381811061137c5761137c6124df565b9050602002013511156113d15760405162461bcd60e51b815260206004820152601060248201527f657863656564206d61782076616c756500000000000000000000000000000000604482015260640161062c565b8282828181106113e3576113e36124df565b9050602002013560076000878785818110611400576114006124df565b9050602002013581526020019081526020016000208190555084848281811061142b5761142b6124df565b905060200201357f68f787d3a335d6b249e31db40c235c791e47ee415329978676c26d7fddd5b46e848484818110611465576114656124df565b9050602002013560405161147b91815260200190565b60405180910390a28061148d8161250d565b91505061135f565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156115325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161062c565b61153f828686840361163b565b506001949350505050565b600033610760818585611aa5565b6001600160a01b0382166115ae5760405162461bcd60e51b815260206004820152600c60248201527f7a65726f20616464726573730000000000000000000000000000000000000000604482015260640161062c565b806115b7575050565b6115ec6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611d39565b6115f68282611d8a565b6040518181526001600160a01b0383169033907ff70c4fe5ae9d9032957b752f736f172f45cd793bea0a2899048ce0bb9b2b8aa7906020015b60405180910390a35050565b6001600160a01b0383166116b65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b0382166117325760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216600090815260208190526040902054604c821215610766576001600160a01b038316600090815260096020526040902054610aa1908290611e6e565b6001600160a01b0382166118555760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161062c565b61186182600083611e84565b6001600160a01b038216600090815260208190526040902054818110156118f05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b038316600090815260208190526040812083830390556002805484929061191f9084906124c8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6040516001600160a01b03831660248201526044810182905261074d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611edd565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611a9f5781811015611a925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161062c565b611a9f848484840361163b565b50505050565b6001600160a01b038316611b215760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b038216611b9d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161062c565b611ba8838383611e84565b6001600160a01b03831660009081526020819052604090205481811015611c375760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c6e9084906124f5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611cba91815260200190565b60405180910390a3611a9f565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff821115611d355760405162461bcd60e51b815260206004820152600760248201527f7361666532323400000000000000000000000000000000000000000000000000604482015260640161062c565b5090565b6040516001600160a01b0380851660248301528316604482015260648101829052611a9f9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016119af565b6001600160a01b038216611de05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161062c565b611dec60008383611e84565b8060026000828254611dfe91906124f5565b90915550506001600160a01b03821660009081526020819052604081208054839290611e2b9084906124f5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161162f565b6000818310611e7d5781610aa1565b5090919050565b6001600160a01b03821630141561074d5760405162461bcd60e51b815260206004820152600860248201527f666f62696464656e000000000000000000000000000000000000000000000000604482015260640161062c565b6000611f32826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611fc29092919063ffffffff16565b80519091501561074d5780806020019051810190611f50919061260c565b61074d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161062c565b6060611fd18484600085611fd9565b949350505050565b6060824710156120515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161062c565b6001600160a01b0385163b6120a85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161062c565b600080866001600160a01b031685876040516120c49190612629565b60006040518083038185875af1925050503d8060008114612101576040519150601f19603f3d011682016040523d82523d6000602084013e612106565b606091505b5091509150612116828286612121565b979650505050505050565b60608315612130575081610aa1565b8251156121405782518084602001fd5b8160405162461bcd60e51b815260040161062c9190612186565b60005b8381101561217557818101518382015260200161215d565b83811115611a9f5750506000910152565b60208152600082518060208401526121a581604085016020870161215a565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146121d057600080fd5b919050565b80151581146121e357600080fd5b50565b6000806000606084860312156121fb57600080fd5b612204846121b9565b92506020840135612214816121d5565b91506040840135612224816121d5565b809150509250925092565b6000806040838503121561224257600080fd5b61224b836121b9565b946020939093013593505050565b60008060006060848603121561226e57600080fd5b612277846121b9565b9250612285602085016121b9565b9150604084013590509250925092565b60008083601f8401126122a757600080fd5b50813567ffffffffffffffff8111156122bf57600080fd5b6020830191508360208260051b850101111561084757600080fd5b600080600080604085870312156122f057600080fd5b843567ffffffffffffffff8082111561230857600080fd5b61231488838901612295565b9096509450602087013591508082111561232d57600080fd5b5061233a87828801612295565b95989497509550505050565b60008060008060006060868803121561235e57600080fd5b612367866121b9565b9450602086013567ffffffffffffffff8082111561238457600080fd5b61239089838a01612295565b909650945060408801359150808211156123a957600080fd5b506123b688828901612295565b969995985093965092949392505050565b6000602082840312156123d957600080fd5b610aa1826121b9565b6000602082840312156123f457600080fd5b5035919050565b6000806040838503121561240e57600080fd5b612417836121b9565b9150612425602084016121b9565b90509250929050565b600181811c9082168061244257607f821691505b6020821081141561246357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561249957612499612469565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826124c3576124c361249e565b500490565b6000828210156124da576124da612469565b500390565b634e487b7160e01b600052603260045260246000fd5b6000821982111561250857612508612469565b500190565b600060001982141561252157612521612469565b5060010190565b60006020828403121561253a57600080fd5b815163ffffffff81168114610aa157600080fd5b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561258857612588612469565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156125bc576125bc612469565b50500390565b6000826125d1576125d161249e565b60001983147f80000000000000000000000000000000000000000000000000000000000000008314161561260757612607612469565b500590565b60006020828403121561261e57600080fd5b8151610aa1816121d5565b6000825161263b81846020870161215a565b919091019291505056fea26469706673582212208e8e7651e6866781f1f40369305b0e32a3f54a40138d0f4ebe9be5441ea7974564736f6c634300080b003300000000000000000000000009c9d464b58d96837f8d8b6f4d9fe4ad408d3a4f000000000000000000000000817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb

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

00000000000000000000000009c9d464b58d96837f8d8b6f4d9fe4ad408d3a4f000000000000000000000000817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb

-----Decoded View---------------
Arg [0] : _PLY (address): 0x09c9d464b58d96837f8d8b6f4d9fe4ad408d3a4f
Arg [1] : _unitroller (address): 0x817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000009c9d464b58d96837f8d8b6f4d9fe4ad408d3a4f
Arg [1] : 000000000000000000000000817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb


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