Contract 0x8f0528ce5ef7b51152a59745befdd91d97091d2f

 

Contract Overview

Alpaca Finance: ALPACA Token
Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0xf47cb4b77639fe7ff8c5f5cb033c35219510a413914966dd4130c838396336f894159722021-07-23 18:57:141 min ago0xe4c4a81626dacbd7dff6e9295f5c76e504209507 IN  Alpaca Finance: ALPACA Token0 BNB0.000266166
0xee3caa787e2d824d8b3a8c5f8311cb3c76a95082e50bb7f9aa503bb90534446294159712021-07-23 18:57:111 min ago0xecf6f086540d40c8273c00113a157cdf483c3fde IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x6f39caef44d8b6dc2ff85cad2127fd4deddd14c945c9b84cfa6a82b62ef684dc94159272021-07-23 18:54:593 mins ago0xb3ed3baf183c05250bc6377a0e1316a0a8a8558d IN  Alpaca Finance: ALPACA Token0 BNB0.000141505
0x1b8f4a95fd1ee8a21ec924141c83e92aab88410d0a9001b2b0260dcb08cae0c194159262021-07-23 18:54:563 mins ago0xe883e4858fd2cdf0d7a2370f98e2ee254bb09663 IN  Alpaca Finance: ALPACA Token0 BNB0.000266166
0x09350a741870b41147cdaeaabf7d49ef627fb2c151a05b94d044b1326e94166294159112021-07-23 18:54:114 mins ago0x5a8421797b8a1e990d5f09cbc65b19087dc6f0cb IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0xc520fab591152904e185d1b59ef35f4583a604583b96f7f0658e6cd65215fcca94159052021-07-23 18:53:534 mins ago0x35605c6657d23738f33aeade3aca67f08c9695cf IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x8157d6858b529b4dfed605f255fa78bf1c88fd989a88737f50afee999b1ed5ec94158772021-07-23 18:52:296 mins ago0x76140fc1d78f3c63b76add11432614c6f9e7bd1e IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x797b0ba34134299984af28c9a2786d35b94f001ca1637558fb57397dee08afd894158752021-07-23 18:52:236 mins ago0xb3ed3baf183c05250bc6377a0e1316a0a8a8558d IN  Alpaca Finance: ALPACA Token0 BNB0.000258865
0xc45e16ca99d1f94d384ac0925fc7dbdf0fb0a92f306ed7f2f852cd712b6d269494158522021-07-23 18:51:147 mins ago0x7aafc28da76541ecd390188f51b6c30b7e31b6c3 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0xde661bb39ec0cadbfe87ca16c6549d373864ff1829945618cda18c71a2562b2194156882021-07-23 18:43:0215 mins ago0x739b87b35ecc5d45c9c86de0c98581ede80ef5a9 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x83bef19aa394ee8b15902886a84edee3b7e35c85be106ea30162658b234796fe94156672021-07-23 18:41:5916 mins ago0x4beb246b2526785b5b236bcffbf304875e9f3fa2 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x48a94e6e37127ebfbc910e6decc78cda80a70f51f932e54158b4a78e8103d71d94155852021-07-23 18:37:5320 mins ago0x2653e0856b45390f9d7fd297bbbd20ab09bb9e99 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0xcab13b404488d64e1888094e748c1ebe7f182c1690247bf91f22d49dd81a2a8b94155142021-07-23 18:34:2024 mins ago0xc0047a4b8708fd56c2a1ebaf705c69b0cbb804b4 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x0c87941e69f1b11c6bcb3019444545beb029ddd09660ac0e9bf745932202270494153802021-07-23 18:27:3831 mins ago0x6d76bef8d6ea81ea4cee5cae1bb4cc4452a078a4 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x3b813ac2113a678fbd25f931f10842f2b73cd1a44c87fb65e1bad2858275b8f794153012021-07-23 18:23:4135 mins ago0x585146ec1344d61c0ce9dd9a78e7de6dd9fbf80b IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x2ef3deb95f3c8284db737742ebd8e59f3046de279d9d027ce2f84098f395315494152062021-07-23 18:18:5639 mins ago0x64e81e1fff74d8efd4485b9e8f24e2750cb4cc5a IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x99b54b5cfca051a1f5802d9a6913de332d114dda066b063751ef9fbb464930f794151712021-07-23 18:17:1141 mins ago0xc1dfc0d14614290cc4c6f1abd247108c65cbd272 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0xfbb9f45bf5a1664a434cc92b9be29a459174c90646679e302c62a446d0fd8af994150992021-07-23 18:13:3445 mins ago0xc1d672eff5f15eb5bfde1a01f2991760bba27d5f IN  Alpaca Finance: ALPACA Token0 BNB0.000108925
0x552169be7976b20f7e04c7160dd0cd7dc21ca3115d83e83934231ca35ed0ff7594150362021-07-23 18:10:2548 mins ago0xb2bde748b39308ea958db9414c2a1403ab8b3cad IN  Alpaca Finance: ALPACA Token0 BNB0.00021797
0x9012833109d5a03ec4b088879965efc81a661af52efe3512ca5adddde5c97ccc94149522021-07-23 18:06:0152 mins ago0xfbb7d0e970f560ec1f97ac6accc9baafc9476e5d IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x8176ac95f59a4571c435469869e4ec5f97661ed22d0a8a8e1c0bfcd9dbdbe7c094149382021-07-23 18:05:1153 mins ago0xa2fb24202db6c0b120e91a1b2ff671dbbbe88e2d IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0x7ff109871281e94f19160f2377500c7c9dd5d3099493df1840b9611dc3bb35e394149082021-07-23 18:03:3055 mins ago0x5c05b4b2274d1ef9c64f1dac1eaf2851bfeea464 IN  Alpaca Finance: ALPACA Token0 BNB0.000258925
0x45afd40e3a89667bd24c027bf5cdce80c31a4c8cc3fc59227a9acbde9eecbf7594148932021-07-23 18:02:3256 mins ago0x4cf8800ccc0a56396f77b1e7c46160f5df0e09a5 IN  Alpaca Finance: ALPACA Token0 BNB0.000588752
0x25f3c98a76c1ef539cd97d6aa3d45a045d14f84cb3b45c11df760eb4dc63a5fc94148242021-07-23 17:58:381 hr ago0x76114a36054e02745f5abec5702606e7d6e5a584 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
0xaa338d2f47b223ffbc2e81c75a54471d1db39ac2230c4672f9d99dba2c5b8cb694143452021-07-23 17:34:011 hr 24 mins ago0x7f5d7e00d82dfeb7e83a0d4285cb21b31feab2b4 IN  Alpaca Finance: ALPACA Token0 BNB0.000221805
[ Download CSV Export 

OVERVIEW

Alpaca Finance is the first leveraged yield farming protocol on Binance Smart Chain. It will be integrated with PancakeSwap and allow users to open leveraged yield farming positions by borrowing assets from vaults.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x88433ab167f65918f496c0c0f1848a698de66f67d70f1f24ddcec8a51b79afd654713362021-03-07 11:59:45138 days 6 hrs ago PancakeSwap: ALPACA Alpaca Finance: ALPACA Token0 BNB
0x88433ab167f65918f496c0c0f1848a698de66f67d70f1f24ddcec8a51b79afd654713362021-03-07 11:59:45138 days 6 hrs ago PancakeSwap: Router Alpaca Finance: ALPACA Token0 BNB
0x56ff30b7d5e488f5926a447af34ff6ed4326ec113afe0c5a8dfc0afac085431554713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x56ff30b7d5e488f5926a447af34ff6ed4326ec113afe0c5a8dfc0afac085431554713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x56ff30b7d5e488f5926a447af34ff6ed4326ec113afe0c5a8dfc0afac085431554713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x56ff30b7d5e488f5926a447af34ff6ed4326ec113afe0c5a8dfc0afac085431554713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xf55b7be276e3247335c919cb68c57bf0367cf21d4e392618b27dd4e1aeb13cc354713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xf55b7be276e3247335c919cb68c57bf0367cf21d4e392618b27dd4e1aeb13cc354713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xf55b7be276e3247335c919cb68c57bf0367cf21d4e392618b27dd4e1aeb13cc354713312021-03-07 11:59:30138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0xcbfb465496e9afa630c40e02e6e2cd373aa74e78cd58a7bde047c0b3e72bdbb654713262021-03-07 11:59:15138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x09c7a1a3c6e75b078d0a6bee2af0de869a7893649f53334d589a8d3fd57420d454713252021-03-07 11:59:12138 days 6 hrs ago PancakeSwap: ALPACA Alpaca Finance: ALPACA Token0 BNB
0x09c7a1a3c6e75b078d0a6bee2af0de869a7893649f53334d589a8d3fd57420d454713252021-03-07 11:59:12138 days 6 hrs ago PancakeSwap: Router Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
0x25d8d1e3acca1420848009bd8027425b1675578c9b8970c6469282c4d4e86e6f54713252021-03-07 11:59:12138 days 6 hrs ago 0xa625ab01b08ce023b2a342dbb12a16f2c8489a8f Alpaca Finance: ALPACA Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AlpacaToken

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-26
*/

/**
 *Submitted for verification at BscScan.com on 2021-02-26
*/

pragma solidity 0.6.6;


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);
}

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

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);
            }
        }
    }
}

/**
 * @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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

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;
    }
}

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

// AlpacaToken with Governance.
contract AlpacaToken is ERC20("AlpacaToken", "ALPACA"), Ownable {
  uint256 private _cap = 188000000e18;
  uint256 private _totalLock;

  uint256 public startReleaseBlock;
  uint256 public endReleaseBlock;
  uint256 public manualMintLimit = 8000000e18;
  uint256 public manualMinted = 0;

  mapping(address => uint256) private _locks;
  mapping(address => uint256) private _lastUnlockBlock;

  event Lock(address indexed to, uint256 value);

  constructor(uint256 _startReleaseBlock, uint256 _endReleaseBlock) public {
    require(_endReleaseBlock > _startReleaseBlock, "endReleaseBlock < startReleaseBlock");
    _setupDecimals(18);
    startReleaseBlock = _startReleaseBlock;
    endReleaseBlock = _endReleaseBlock;

    // maunalMint 250k for seeding liquidity
    manualMint(msg.sender, 250000e18);
  }

  function setReleaseBlock(uint256 _startReleaseBlock, uint256 _endReleaseBlock) public onlyOwner {
    require(_endReleaseBlock > _startReleaseBlock, "endReleaseBlock < startReleaseBlock");
    startReleaseBlock = _startReleaseBlock;
    endReleaseBlock = _endReleaseBlock;
  }

  function cap() public view returns (uint256) {
    return _cap;
  }

  function unlockedSupply() public view returns (uint256) {
    return totalSupply().sub(totalLock());
  }

  function totalLock() public view returns (uint256) {
    return _totalLock;
  }

  function manualMint(address _to, uint256 _amount) public onlyOwner {
    require(manualMinted <= manualMintLimit, "mint limit exceeded");
    mint(_to, _amount);
  }

  function mint(address _to, uint256 _amount) public onlyOwner {
    require(totalSupply().add(_amount) <= cap(), "cap exceeded");
    _mint(_to, _amount);
    _moveDelegates(address(0), _delegates[_to], _amount);
  }

  function burn(address _account, uint256 _amount) public onlyOwner {
    _burn(_account, _amount);
  }

  function totalBalanceOf(address _account) public view returns (uint256) {
    return _locks[_account].add(balanceOf(_account));
  }

  function lockOf(address _account) public view returns (uint256) {
    return _locks[_account];
  }

  function lastUnlockBlock(address _account) public view returns (uint256) {
    return _lastUnlockBlock[_account];
  }

  function lock(address _account, uint256 _amount) public onlyOwner {
    require(_account != address(0), "no lock to address(0)");
    require(_amount <= balanceOf(_account), "no lock over balance");

    _transfer(_account, address(this), _amount);

    _locks[_account] = _locks[_account].add(_amount);
    _totalLock = _totalLock.add(_amount);

    if (_lastUnlockBlock[_account] < startReleaseBlock) {
      _lastUnlockBlock[_account] = startReleaseBlock;
    }

    emit Lock(_account, _amount);
  }

  function canUnlockAmount(address _account) public view returns (uint256) {
    // When block number less than startReleaseBlock, no ALPACAs can be unlocked
    if (block.number < startReleaseBlock) {
      return 0;
    }
    // When block number more than endReleaseBlock, all locked ALPACAs can be unlocked
    else if (block.number >= endReleaseBlock) {
      return _locks[_account];
    }
    // When block number is more than startReleaseBlock but less than endReleaseBlock,
    // some ALPACAs can be released
    else
    {
      uint256 releasedBlock = block.number.sub(_lastUnlockBlock[_account]);
      uint256 blockLeft = endReleaseBlock.sub(_lastUnlockBlock[_account]);
      return _locks[_account].mul(releasedBlock).div(blockLeft);
    }
  }

  function unlock() public {
    require(_locks[msg.sender] > 0, "no locked ALPACAs");

    uint256 amount = canUnlockAmount(msg.sender);

    _transfer(address(this), msg.sender, amount);
    _locks[msg.sender] = _locks[msg.sender].sub(amount);
    _lastUnlockBlock[msg.sender] = block.number;
    _totalLock = _totalLock.sub(amount);
  }

  // @dev move ALPACAs with its locked funds to another account
  function transferAll(address _to) public {
    _locks[_to] = _locks[_to].add(_locks[msg.sender]);

    if (_lastUnlockBlock[_to] < startReleaseBlock) {
      _lastUnlockBlock[_to] = startReleaseBlock;
    }

    if (_lastUnlockBlock[_to] < _lastUnlockBlock[msg.sender]) {
      _lastUnlockBlock[_to] = _lastUnlockBlock[msg.sender];
    }

    _locks[msg.sender] = 0;
    _lastUnlockBlock[msg.sender] = 0;

    _transfer(msg.sender, _to, balanceOf(msg.sender));
  }

  // Copied and modified from YAM code:
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
  // Which is copied and modified from COMPOUND:
  // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

  /// @notice 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 => uint256) 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, uint256 previousBalance, uint256 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,
    uint256 nonce,
    uint256 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), "ALPACA::delegateBySig: invalid signature");
    require(nonce == nonces[signatory]++, "ALPACA::delegateBySig: invalid nonce");
    require(now <= expiry, "ALPACA::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, uint256 blockNumber) external view returns (uint256) {
    require(blockNumber < block.number, "ALPACA::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 ALPACAs (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.sub(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.add(amount);
        _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
      }
    }
  }

  function _writeCheckpoint(
    address delegatee,
    uint32 nCheckpoints,
    uint256 oldVotes,
    uint256 newVotes
  ) internal {
    uint32 blockNumber = safe32(block.number, "ALPACA::_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(uint256 n, string memory errorMessage) internal pure returns (uint32) {
    require(n < 2**32, errorMessage);
    return uint32(n);
  }

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

interface IFairLaunch {
  function poolLength() external view returns (uint256);

  function addPool(
    uint256 _allocPoint,
    address _stakeToken,
    bool _withUpdate
  ) external;

  function setPool(
    uint256 _pid,
    uint256 _allocPoint,
    bool _withUpdate
  ) external;

  function pendingAlpaca(uint256 _pid, address _user) external view returns (uint256);

  function updatePool(uint256 _pid) external;

  function deposit(address _for, uint256 _pid, uint256 _amount) external;

  function withdraw(address _for, uint256 _pid, uint256 _amount) external;

  function withdrawAll(address _for, uint256 _pid) external;

  function harvest(uint256 _pid) external;
}

// FairLaunch is a smart contract for distributing ALPACA by asking user to stake the ERC20-based token.
contract FairLaunch is IFairLaunch, Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  // Info of each user.
  struct UserInfo {
    uint256 amount; // How many Staking tokens the user has provided.
    uint256 rewardDebt; // Reward debt. See explanation below.
    uint256 bonusDebt; // Last block that user exec something to the pool.
    address fundedBy; // Funded by who?
    //
    // We do some fancy math here. Basically, any point in time, the amount of ALPACAs
    // entitled to a user but is pending to be distributed is:
    //
    //   pending reward = (user.amount * pool.accAlpacaPerShare) - user.rewardDebt
    //
    // Whenever a user deposits or withdraws Staking tokens to a pool. Here's what happens:
    //   1. The pool's `accAlpacaPerShare` (and `lastRewardBlock`) gets updated.
    //   2. User receives the pending reward sent to his/her address.
    //   3. User's `amount` gets updated.
    //   4. User's `rewardDebt` gets updated.
  }

  // Info of each pool.
  struct PoolInfo {
    address stakeToken; // Address of Staking token contract.
    uint256 allocPoint; // How many allocation points assigned to this pool. ALPACAs to distribute per block.
    uint256 lastRewardBlock; // Last block number that ALPACAs distribution occurs.
    uint256 accAlpacaPerShare; // Accumulated ALPACAs per share, times 1e12. See below.
    uint256 accAlpacaPerShareTilBonusEnd; // Accumated ALPACAs per share until Bonus End.
  }

  // The Alpaca TOKEN!
  AlpacaToken public alpaca;
  // Dev address.
  address public devaddr;
  // ALPACA tokens created per block.
  uint256 public alpacaPerBlock;
  // Bonus muliplier for early alpaca makers.
  uint256 public bonusMultiplier;
  // Block number when bonus ALPACA period ends.
  uint256 public bonusEndBlock;
  // Bonus lock-up in BPS
  uint256 public bonusLockUpBps;

  // Info of each pool.
  PoolInfo[] public poolInfo;
  // Info of each user that stakes Staking tokens.
  mapping(uint256 => mapping(address => UserInfo)) public userInfo;
  // Total allocation poitns. Must be the sum of all allocation points in all pools.
  uint256 public totalAllocPoint;
  // The block number when ALPACA mining starts.
  uint256 public startBlock;

  event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
  event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

  constructor(
    AlpacaToken _alpaca,
    address _devaddr,
    uint256 _alpacaPerBlock,
    uint256 _startBlock,
    uint256 _bonusLockupBps,
    uint256 _bonusEndBlock
  ) public {
    bonusMultiplier = 0;
    totalAllocPoint = 0;
    alpaca = _alpaca;
    devaddr = _devaddr;
    alpacaPerBlock = _alpacaPerBlock;
    bonusLockUpBps = _bonusLockupBps;
    bonusEndBlock = _bonusEndBlock;
    startBlock = _startBlock;
  }

  /*
  ██████╗░░█████╗░██████╗░░█████╗░███╗░░░███╗  ░██████╗███████╗████████╗████████╗███████╗██████╗░
  ██╔══██╗██╔══██╗██╔══██╗██╔══██╗████╗░████║  ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
  ██████╔╝███████║██████╔╝███████║██╔████╔██║  ╚█████╗░█████╗░░░░░██║░░░░░░██║░░░█████╗░░██████╔╝
  ██╔═══╝░██╔══██║██╔══██╗██╔══██║██║╚██╔╝██║  ░╚═══██╗██╔══╝░░░░░██║░░░░░░██║░░░██╔══╝░░██╔══██╗
  ██║░░░░░██║░░██║██║░░██║██║░░██║██║░╚═╝░██║  ██████╔╝███████╗░░░██║░░░░░░██║░░░███████╗██║░░██║
  ╚═╝░░░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝  ╚═════╝░╚══════╝░░░╚═╝░░░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝
  */

  // Update dev address by the previous dev.
  function setDev(address _devaddr) public {
    require(msg.sender == devaddr, "dev: wut?");
    devaddr = _devaddr;
  }

  function setAlpacaPerBlock(uint256 _alpacaPerBlock) public onlyOwner {
    alpacaPerBlock = _alpacaPerBlock;
  }

  // Set Bonus params. bonus will start to accu on the next block that this function executed
  // See the calculation and counting in test file.
  function setBonus(
    uint256 _bonusMultiplier,
    uint256 _bonusEndBlock,
    uint256 _bonusLockUpBps
  ) public onlyOwner {
    require(_bonusEndBlock > block.number, "setBonus: bad bonusEndBlock");
    require(_bonusMultiplier > 1, "setBonus: bad bonusMultiplier");
    bonusMultiplier = _bonusMultiplier;
    bonusEndBlock = _bonusEndBlock;
    bonusLockUpBps = _bonusLockUpBps;
  }

  // Add a new lp to the pool. Can only be called by the owner.
  function addPool(
    uint256 _allocPoint,
    address _stakeToken,
    bool _withUpdate
  ) public override onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    require(_stakeToken != address(0), "add: not stakeToken addr");
    require(!isDuplicatedPool(_stakeToken), "add: stakeToken dup");
    uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
    totalAllocPoint = totalAllocPoint.add(_allocPoint);
    poolInfo.push(
      PoolInfo({
        stakeToken: _stakeToken,
        allocPoint: _allocPoint,
        lastRewardBlock: lastRewardBlock,
        accAlpacaPerShare: 0,
        accAlpacaPerShareTilBonusEnd: 0
      })
    );
  }

  // Update the given pool's ALPACA allocation point. Can only be called by the owner.
  function setPool(
    uint256 _pid,
    uint256 _allocPoint,
    bool _withUpdate
  ) public override onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
    poolInfo[_pid].allocPoint = _allocPoint;
  }

  /*
  ░██╗░░░░░░░██╗░█████╗░██████╗░██╗░░██╗
  ░██║░░██╗░░██║██╔══██╗██╔══██╗██║░██╔╝
  ░╚██╗████╗██╔╝██║░░██║██████╔╝█████═╝░
  ░░████╔═████║░██║░░██║██╔══██╗██╔═██╗░
  ░░╚██╔╝░╚██╔╝░╚█████╔╝██║░░██║██║░╚██╗
  ░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝
  */

  function isDuplicatedPool(address _stakeToken) public view returns (bool) {
    uint256 length = poolInfo.length;
    for (uint256 _pid = 0; _pid < length; _pid++) {
      if(poolInfo[_pid].stakeToken == _stakeToken) return true;
    }
    return false;
  }

  function poolLength() external override view returns (uint256) {
    return poolInfo.length;
  }

  function manualMint(address _to, uint256 _amount) public onlyOwner {
    alpaca.manualMint(_to, _amount);
  }

  // Return reward multiplier over the given _from to _to block.
  function getMultiplier(uint256 _lastRewardBlock, uint256 _currentBlock) public view returns (uint256) {
    if (_currentBlock <= bonusEndBlock) {
      return _currentBlock.sub(_lastRewardBlock).mul(bonusMultiplier);
    }
    if (_lastRewardBlock >= bonusEndBlock) {
      return _currentBlock.sub(_lastRewardBlock);
    }
    // This is the case where bonusEndBlock is in the middle of _lastRewardBlock and _currentBlock block.
    return bonusEndBlock.sub(_lastRewardBlock).mul(bonusMultiplier).add(_currentBlock.sub(bonusEndBlock));
  }

  // View function to see pending ALPACAs on frontend.
  function pendingAlpaca(uint256 _pid, address _user) external override view returns (uint256) {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_user];
    uint256 accAlpacaPerShare = pool.accAlpacaPerShare;
    uint256 lpSupply = IERC20(pool.stakeToken).balanceOf(address(this));
    if (block.number > pool.lastRewardBlock && lpSupply != 0) {
      uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
      uint256 alpacaReward = multiplier.mul(alpacaPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
      accAlpacaPerShare = accAlpacaPerShare.add(alpacaReward.mul(1e12).div(lpSupply));
    }
    return user.amount.mul(accAlpacaPerShare).div(1e12).sub(user.rewardDebt);
  }

  // Update reward vairables for all pools. Be careful of gas spending!
  function massUpdatePools() public {
    uint256 length = poolInfo.length;
    for (uint256 pid = 0; pid < length; ++pid) {
      updatePool(pid);
    }
  }

  // Update reward variables of the given pool to be up-to-date.
  function updatePool(uint256 _pid) public override {
    PoolInfo storage pool = poolInfo[_pid];
    if (block.number <= pool.lastRewardBlock) {
      return;
    }
    uint256 lpSupply = IERC20(pool.stakeToken).balanceOf(address(this));
    if (lpSupply == 0) {
      pool.lastRewardBlock = block.number;
      return;
    }
    uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
    uint256 alpacaReward = multiplier.mul(alpacaPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
    alpaca.mint(devaddr, alpacaReward.div(10));
    alpaca.mint(address(this), alpacaReward);
    pool.accAlpacaPerShare = pool.accAlpacaPerShare.add(alpacaReward.mul(1e12).div(lpSupply));
    // update accAlpacaPerShareTilBonusEnd
    if (block.number <= bonusEndBlock) {
      alpaca.lock(devaddr, alpacaReward.div(10).mul(bonusLockUpBps).div(10000));
      pool.accAlpacaPerShareTilBonusEnd = pool.accAlpacaPerShare;
    }
    if(block.number > bonusEndBlock && pool.lastRewardBlock < bonusEndBlock) {
      uint256 alpacaBonusPortion = bonusEndBlock.sub(pool.lastRewardBlock).mul(bonusMultiplier).mul(alpacaPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
      alpaca.lock(devaddr, alpacaBonusPortion.div(10).mul(bonusLockUpBps).div(10000));
      pool.accAlpacaPerShareTilBonusEnd = pool.accAlpacaPerShareTilBonusEnd.add(alpacaBonusPortion.mul(1e12).div(lpSupply));
    }
    pool.lastRewardBlock = block.number;
  }

  // Deposit Staking tokens to FairLaunchToken for ALPACA allocation.
  function deposit(address _for, uint256 _pid, uint256 _amount) public override {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_for];
    if (user.fundedBy != address(0)) require(user.fundedBy == msg.sender, "bad sof");
    require(pool.stakeToken != address(0), "deposit: not accept deposit");
    updatePool(_pid);
    if (user.amount > 0) _harvest(_for, _pid);
    if (user.fundedBy == address(0)) user.fundedBy = msg.sender;
    IERC20(pool.stakeToken).safeTransferFrom(address(msg.sender), address(this), _amount);
    user.amount = user.amount.add(_amount);
    user.rewardDebt = user.amount.mul(pool.accAlpacaPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accAlpacaPerShareTilBonusEnd).div(1e12);
    emit Deposit(msg.sender, _pid, _amount);
  }

  // Withdraw Staking tokens from FairLaunchToken.
  function withdraw(address _for, uint256 _pid, uint256 _amount) public override {
    _withdraw(_for, _pid, _amount);
  }

  function withdrawAll(address _for, uint256 _pid) public override {
    _withdraw(_for, _pid, userInfo[_pid][_for].amount);
  }

  function _withdraw(address _for, uint256 _pid, uint256 _amount) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_for];
    require(user.fundedBy == msg.sender, "only funder");
    require(user.amount >= _amount, "withdraw: not good");
    updatePool(_pid);
    _harvest(_for, _pid);
    user.amount = user.amount.sub(_amount);
    user.rewardDebt = user.amount.mul(pool.accAlpacaPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accAlpacaPerShareTilBonusEnd).div(1e12);
    if (pool.stakeToken != address(0)) {
      IERC20(pool.stakeToken).safeTransfer(address(msg.sender), _amount);
    }
    emit Withdraw(msg.sender, _pid, user.amount);
  }

  // Harvest ALPACAs earn from the pool.
  function harvest(uint256 _pid) public override {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    updatePool(_pid);
    _harvest(msg.sender, _pid);
    user.rewardDebt = user.amount.mul(pool.accAlpacaPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accAlpacaPerShareTilBonusEnd).div(1e12);
  }

  function _harvest(address _to, uint256 _pid) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_to];
    require(user.amount > 0, "nothing to harvest");
    uint256 pending = user.amount.mul(pool.accAlpacaPerShare).div(1e12).sub(user.rewardDebt);
    require(pending <= alpaca.balanceOf(address(this)), "wtf not enough alpaca");
    uint256 bonus = user.amount.mul(pool.accAlpacaPerShareTilBonusEnd).div(1e12).sub(user.bonusDebt);
    safeAlpacaTransfer(_to, pending);
    alpaca.lock(_to, bonus.mul(bonusLockUpBps).div(10000));
  }

  // Withdraw without caring about rewards. EMERGENCY ONLY.
  function emergencyWithdraw(uint256 _pid) public {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    IERC20(pool.stakeToken).safeTransfer(address(msg.sender), user.amount);
    emit EmergencyWithdraw(msg.sender, _pid, user.amount);
    user.amount = 0;
    user.rewardDebt = 0;
  }

    // Safe alpaca transfer function, just in case if rounding error causes pool to not have enough ALPACAs.
  function safeAlpacaTransfer(address _to, uint256 _amount) internal {
    uint256 alpacaBal = alpaca.balanceOf(address(this));
    if (_amount > alpacaBal) {
      alpaca.transfer(_to, alpacaBal);
    } else {
      alpaca.transfer(_to, _amount);
    }
  }

}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_startReleaseBlock","type":"uint256"},{"internalType":"uint256","name":"_endReleaseBlock","type":"uint256"}],"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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Lock","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"canUnlockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","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":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endReleaseBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","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":"address","name":"_account","type":"address"}],"name":"lastUnlockBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"lockOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"manualMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startReleaseBlock","type":"uint256"},{"internalType":"uint256","name":"_endReleaseBlock","type":"uint256"}],"name":"setReleaseBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startReleaseBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"totalBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"transferAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526a9b828c6bde7e823c0000006006556a069e10de76676d08000000600a556000600b553480156200003457600080fd5b506040516200323b3803806200323b833981810160405260408110156200005a57600080fd5b508051602091820151604080518082018252600b81526a20b63830b1b0aa37b5b2b760a91b81860190815282518084019093526006835265414c5041434160d01b958301959095528051939492939092620000b99160039190620009a8565b508051620000cf906004906020840190620009a8565b50506005805460ff19166012179055506000620000f46001600160e01b03620001d016565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508181116200018a5760405162461bcd60e51b8152600401808060200182810382526023815260200180620032186023913960400191505060405180910390fd5b6200019f60126001600160e01b03620001d516565b60088290556009819055620001c8336934f086f3b33b684000006001600160e01b03620001eb16565b505062000a4a565b335b90565b6005805460ff191660ff92909216919091179055565b620001fe6001600160e01b03620001d016565b6001600160a01b03166200021a6001600160e01b03620002d816565b6001600160a01b03161462000265576040805162461bcd60e51b81526020600482018190526024820152600080516020620031c2833981519152604482015290519081900360640190fd5b600a54600b541115620002bf576040805162461bcd60e51b815260206004820152601360248201527f6d696e74206c696d697420657863656564656400000000000000000000000000604482015290519081900360640190fd5b620002d482826001600160e01b03620002ec16565b5050565b60055461010090046001600160a01b031690565b620002ff6001600160e01b03620001d016565b6001600160a01b03166200031b6001600160e01b03620002d816565b6001600160a01b03161462000366576040805162461bcd60e51b81526020600482018190526024820152600080516020620031c2833981519152604482015290519081900360640190fd5b620003796001600160e01b036200042d16565b620003a582620003916001600160e01b036200043316565b6200043960201b62001ddc1790919060201c565b1115620003e8576040805162461bcd60e51b815260206004820152600c60248201526b18d85c08195e18d95959195960a21b604482015290519081900360640190fd5b620003fd82826001600160e01b036200049b16565b6001600160a01b038083166000908152600e6020526040812054620002d49216836001600160e01b03620005b316565b60065490565b60025490565b60008282018381101562000494576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216620004f7576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200050e600083836001600160e01b036200073216565b6200052a816002546200043960201b62001ddc1790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200055d91839062001ddc62000439821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b031614158015620005d65750600081115b1562000732576001600160a01b0383161562000687576001600160a01b03831660009081526010602052604081205463ffffffff1690816200061a5760006200064c565b6001600160a01b0385166000908152600f6020908152604080832063ffffffff60001987011684529091529020600101545b905060006200066a84836200073760201b62001ad61790919060201c565b905062000683868484846001600160e01b036200079516565b5050505b6001600160a01b0382161562000732576001600160a01b03821660009081526010602052604081205463ffffffff169081620006c5576000620006f7565b6001600160a01b0384166000908152600f6020908152604080832063ffffffff60001987011684529091529020600101545b905060006200071584836200043960201b62001ddc1790919060201c565b90506200072e858484846001600160e01b036200079516565b5050505b505050565b6000828211156200078f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000620007c543604051806060016040528060368152602001620031e2603691396001600160e01b036200090916565b905060008463ffffffff161180156200080f57506001600160a01b0385166000908152600f6020908152604080832063ffffffff6000198901811685529252909120548282169116145b156200084e576001600160a01b0385166000908152600f6020908152604080832063ffffffff60001989011684529091529020600101829055620008bf565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600f84528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260109092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000816401000000008410620009a05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620009645781810151838201526020016200094a565b50505050905090810190601f168015620009925780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620009eb57805160ff191683800117855562000a1b565b8280016001018555821562000a1b579182015b8281111562000a1b578251825591602001919060010190620009fe565b5062000a2992915062000a2d565b5090565b620001d291905b8082111562000a29576000815560010162000a34565b6127688062000a5a6000396000f3fe608060405234801561001057600080fd5b50600436106101ee5760003560e01c806306fdde03146101f3578063095ea7b31461027057806318160ddd146102b0578063202b1760146102ca57806320606b70146102f057806323b872dd146102f8578063282d3fdf1461032e578063313ce5671461035c578063355274ea1461037a57806339509351146103825780633a1aae35146103ae57806340c10f19146103b65780634b0ee02a146103e2578063587cde1e146104085780635a46d3b51461044a5780635c19a95c146104705780636fcfff451461049657806370a08231146104d5578063715018a6146104fb578063782d6fe1146105035780637ecebe001461052f5780637ee416151461055557806389a2867c1461055d5780638da5cb5b1461058357806395d89b411461058b5780639dc29fac14610593578063a3a7e7f3146105bf578063a457c2d7146105e5578063a69df4b514610611578063a9059cbb14610619578063b4b5ea5714610645578063c3cda5201461066b578063ce4079ef146106b2578063d68afa39146106ba578063dd62ed3e146106dd578063e4c5ff461461070b578063e6b2fb4a14610737578063e7a324dc1461073f578063f1127ed814610747578063f2fde38b14610799578063f85b84a4146107bf578063fd3d27b8146107c7575b600080fd5b6101fb6107cf565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61029c6004803603604081101561028657600080fd5b506001600160a01b038135169060200135610865565b604080519115158252519081900360200190f35b6102b8610883565b60408051918252519081900360200190f35b6102b8600480360360208110156102e057600080fd5b50356001600160a01b0316610889565b6102b8610967565b61029c6004803603606081101561030e57600080fd5b506001600160a01b03813581169160208101359091169060400135610982565b61035a6004803603604081101561034457600080fd5b506001600160a01b038135169060200135610a0f565b005b610364610bfd565b6040805160ff9092168252519081900360200190f35b6102b8610c06565b61029c6004803603604081101561039857600080fd5b506001600160a01b038135169060200135610c0c565b6102b8610c60565b61035a600480360360408110156103cc57600080fd5b506001600160a01b038135169060200135610c66565b6102b8600480360360208110156103f857600080fd5b50356001600160a01b0316610d5d565b61042e6004803603602081101561041e57600080fd5b50356001600160a01b0316610d90565b604080516001600160a01b039092168252519081900360200190f35b6102b86004803603602081101561046057600080fd5b50356001600160a01b0316610dae565b61035a6004803603602081101561048657600080fd5b50356001600160a01b0316610dc9565b6104bc600480360360208110156104ac57600080fd5b50356001600160a01b0316610dd6565b6040805163ffffffff9092168252519081900360200190f35b6102b8600480360360208110156104eb57600080fd5b50356001600160a01b0316610dee565b61035a610e09565b6102b86004803603604081101561051957600080fd5b506001600160a01b038135169060200135610ea9565b6102b86004803603602081101561054557600080fd5b50356001600160a01b03166110b1565b6102b86110c3565b6102b86004803603602081101561057357600080fd5b50356001600160a01b03166110c9565b61042e6110e4565b6101fb6110f8565b61035a600480360360408110156105a957600080fd5b506001600160a01b038135169060200135611159565b61035a600480360360208110156105d557600080fd5b50356001600160a01b03166111c5565b61029c600480360360408110156105fb57600080fd5b506001600160a01b0381351690602001356112b9565b61035a611327565b61029c6004803603604081101561062f57600080fd5b506001600160a01b0381351690602001356113eb565b6102b86004803603602081101561065b57600080fd5b50356001600160a01b03166113ff565b61035a600480360360c081101561068157600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611463565b6102b86116d9565b61035a600480360360408110156106d057600080fd5b50803590602001356116df565b6102b8600480360360408110156106f357600080fd5b506001600160a01b038135811691602001351661178a565b61035a6004803603604081101561072157600080fd5b506001600160a01b0381351690602001356117b5565b6102b8611870565b6102b8611876565b6107796004803603604081101561075d57600080fd5b5080356001600160a01b0316906020013563ffffffff16611891565b6040805163ffffffff909316835260208301919091528051918290030190f35b61035a600480360360208110156107af57600080fd5b50356001600160a01b03166118be565b6102b86119ba565b6102b86119c0565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b5050505050905090565b60006108796108726119e6565b84846119ea565b5060015b92915050565b60025490565b600060085443101561089d57506000610962565b60095443106108c557506001600160a01b0381166000908152600c6020526040902054610962565b6001600160a01b0382166000908152600d60205260408120546108ef90439063ffffffff611ad616565b6001600160a01b0384166000908152600d6020526040812054600954929350909161091f9163ffffffff611ad616565b6001600160a01b0385166000908152600c602052604090205490915061095d908290610951908563ffffffff611b3316565b9063ffffffff611b8c16565b925050505b919050565b6040518060436124fd82396043019050604051809103902081565b600061098f848484611bf0565b610a058461099b6119e6565b610a0085604051806060016040528060288152602001612561602891396001600160a01b038a166000908152600160205260408120906109d96119e6565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611d4516565b6119ea565b5060019392505050565b610a176119e6565b6001600160a01b0316610a286110e4565b6001600160a01b031614610a71576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b6001600160a01b038216610ac4576040805162461bcd60e51b81526020600482015260156024820152746e6f206c6f636b20746f206164647265737328302960581b604482015290519081900360640190fd5b610acd82610dee565b811115610b18576040805162461bcd60e51b81526020600482015260146024820152736e6f206c6f636b206f7665722062616c616e636560601b604482015290519081900360640190fd5b610b23823083611bf0565b6001600160a01b0382166000908152600c6020526040902054610b4c908263ffffffff611ddc16565b6001600160a01b0383166000908152600c6020526040902055600754610b78908263ffffffff611ddc16565b6007556008546001600160a01b0383166000908152600d60205260409020541015610bba576008546001600160a01b0383166000908152600d60205260409020555b6040805182815290516001600160a01b038416917f625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427919081900360200190a25050565b60055460ff1690565b60065490565b6000610879610c196119e6565b84610a008560016000610c2a6119e6565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611ddc16565b60075490565b610c6e6119e6565b6001600160a01b0316610c7f6110e4565b6001600160a01b031614610cc8576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b610cd0610c06565b610ce882610cdc610883565b9063ffffffff611ddc16565b1115610d2a576040805162461bcd60e51b815260206004820152600c60248201526b18d85c08195e18d95959195960a21b604482015290519081900360640190fd5b610d348282611e34565b6001600160a01b038083166000908152600e6020526040812054610d59921683611f1e565b5050565b600061087d610d6b83610dee565b6001600160a01b0384166000908152600c60205260409020549063ffffffff611ddc16565b6001600160a01b039081166000908152600e60205260409020541690565b6001600160a01b03166000908152600c602052604090205490565b610dd3338261206c565b50565b60106020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b610e116119e6565b6001600160a01b0316610e226110e4565b6001600160a01b031614610e6b576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316906000805160206125a9833981519152908390a360058054610100600160a81b0319169055565b6000438210610ee95760405162461bcd60e51b815260040180806020018281038252602981526020018061241a6029913960400191505060405180910390fd5b6001600160a01b03831660009081526010602052604090205463ffffffff1680610f1757600091505061087d565b6001600160a01b0384166000908152600f6020908152604080832063ffffffff600019860181168552925290912054168310610f86576001600160a01b0384166000908152600f602090815260408083206000199490940163ffffffff1683529290522060010154905061087d565b6001600160a01b0384166000908152600f6020908152604080832083805290915290205463ffffffff16831015610fc157600091505061087d565b600060001982015b8163ffffffff168163ffffffff16111561107a57600282820363ffffffff16048103610ff36123bd565b506001600160a01b0387166000908152600f6020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152908714156110555760200151945061087d9350505050565b805163ffffffff1687111561106c57819350611073565b6001820392505b5050610fc9565b506001600160a01b0385166000908152600f6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60116020526000908152604090205481565b60085481565b6001600160a01b03166000908152600d602052604090205490565b60055461010090046001600160a01b031690565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561085b5780601f106108305761010080835404028352916020019161085b565b6111616119e6565b6001600160a01b03166111726110e4565b6001600160a01b0316146111bb576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b610d598282612101565b336000908152600c6020526040808220546001600160a01b03841683529120546111f49163ffffffff611ddc16565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600d909152919020541015611242576008546001600160a01b0382166000908152600d60205260409020555b336000908152600d6020526040808220546001600160a01b0384168352912054101561128957336000908152600d6020526040808220546001600160a01b03841683529120555b336000818152600c60209081526040808320839055600d909152812055610dd390826112b482610dee565b611bf0565b60006108796112c66119e6565b84610a00856040518060600160405280602581526020016126eb60259139600160006112f06119e6565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611d4516565b336000908152600c602052604090205461137c576040805162461bcd60e51b81526020600482015260116024820152706e6f206c6f636b656420414c504143417360781b604482015290519081900360640190fd5b600061138733610889565b9050611394303383611bf0565b336000908152600c60205260409020546113b4908263ffffffff611ad616565b336000908152600c6020908152604080832093909355600d9052204390556007546113e5908263ffffffff611ad616565b60075550565b60006108796113f86119e6565b8484611bf0565b6001600160a01b03811660009081526010602052604081205463ffffffff168061142a57600061145c565b6001600160a01b0383166000908152600f6020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b600060405180806124fd60439139604301905060405180910390206114866107cf565b805190602001206114956121f7565b3060405160200180858152602001848152602001838152602001826001600160a01b03166001600160a01b03168152602001945050505050604051602081830303815290604052805190602001209050600060405180806126b1603a91396040805191829003603a0182206020808401919091526001600160a01b038c1683830152606083018b905260808084018b90528251808503909101815260a08401835280519082012061190160f01b60c085015260c2840187905260e2808501829052835180860390910181526101028501808552815191840191909120600091829052610122860180865281905260ff8c1661014287015261016286018b905261018286018a9052935191965092945091926001926101a28083019392601f198301929081900390910190855afa1580156115d3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116255760405162461bcd60e51b815260040180806020018281038252602881526020018061262f6028913960400191505060405180910390fd5b6001600160a01b038116600090815260116020526040902080546001810190915589146116835760405162461bcd60e51b81526004018080602001828103825260248152602001806124b36024913960400191505060405180910390fd5b874211156116c25760405162461bcd60e51b815260040180806020018281038252602881526020018061248b6028913960400191505060405180910390fd5b6116cc818b61206c565b505050505b505050505050565b60095481565b6116e76119e6565b6001600160a01b03166116f86110e4565b6001600160a01b031614611741576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b81811161177f5760405162461bcd60e51b81526004018080602001828103825260238152602001806127106023913960400191505060405180910390fd5b600891909155600955565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6117bd6119e6565b6001600160a01b03166117ce6110e4565b6001600160a01b031614611817576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b600a54600b541115611866576040805162461bcd60e51b81526020600482015260136024820152721b5a5b9d081b1a5b5a5d08195e18d959591959606a1b604482015290519081900360640190fd5b610d598282610c66565b600b5481565b60405180603a6126b18239603a019050604051809103902081565b600f6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6118c66119e6565b6001600160a01b03166118d76110e4565b6001600160a01b031614611920576040805162461bcd60e51b81526020600482018190526024820152600080516020612589833981519152604482015290519081900360640190fd5b6001600160a01b0381166119655760405162461bcd60e51b81526004018080602001828103825260268152602001806124436026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416906000805160206125a983398151915290600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a5481565b60006119e16119cd610c60565b6119d5610883565b9063ffffffff611ad616565b905090565b3390565b6001600160a01b038316611a2f5760405162461bcd60e51b81526004018080602001828103825260248152602001806126576024913960400191505060405180910390fd5b6001600160a01b038216611a745760405162461bcd60e51b81526004018080602001828103825260228152602001806124696022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082821115611b2d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611b425750600061087d565b82820282848281611b4f57fe5b041461145c5760405162461bcd60e51b81526004018080602001828103825260218152602001806125406021913960400191505060405180910390fd5b6000808211611bdf576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381611be857fe5b049392505050565b6001600160a01b038316611c355760405162461bcd60e51b815260040180806020018281038252602581526020018061260a6025913960400191505060405180910390fd5b6001600160a01b038216611c7a5760405162461bcd60e51b81526004018080602001828103825260238152602001806123d56023913960400191505060405180910390fd5b611c85838383612067565b611cc8816040518060600160405280602681526020016124d7602691396001600160a01b038616600090815260208190526040902054919063ffffffff611d4516565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611cfd908263ffffffff611ddc16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716926000805160206125c983398151915292918290030190a3505050565b60008184841115611dd45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d99578181015183820152602001611d81565b50505050905090810190601f168015611dc65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561145c576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6001600160a01b038216611e8f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611e9b60008383612067565b600254611eae908263ffffffff611ddc16565b6002556001600160a01b038216600090815260208190526040902054611eda908263ffffffff611ddc16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206125c98339815191529281900390910190a35050565b816001600160a01b0316836001600160a01b031614158015611f405750600081115b15612067576001600160a01b03831615611fd8576001600160a01b03831660009081526010602052604081205463ffffffff169081611f80576000611fb2565b6001600160a01b0385166000908152600f6020908152604080832063ffffffff60001987011684529091529020600101545b90506000611fc6828563ffffffff611ad616565b9050611fd4868484846121fb565b5050505b6001600160a01b03821615612067576001600160a01b03821660009081526010602052604081205463ffffffff169081612013576000612045565b6001600160a01b0384166000908152600f6020908152604080832063ffffffff60001987011684529091529020600101545b90506000612059828563ffffffff611ddc16565b90506116d1858484846121fb565b505050565b6001600160a01b038083166000908152600e60205260408120549091169061209384610dee565b6001600160a01b038581166000818152600e602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46120fb828483611f1e565b50505050565b6001600160a01b0382166121465760405162461bcd60e51b81526004018080602001828103825260218152602001806125e96021913960400191505060405180910390fd5b61215282600083612067565b612195816040518060600160405280602281526020016123f8602291396001600160a01b038516600090815260208190526040902054919063ffffffff611d4516565b6001600160a01b0383166000908152602081905260409020556002546121c1908263ffffffff611ad616565b6002556040805182815290516000916001600160a01b038516916000805160206125c98339815191529181900360200190a35050565b4690565b600061221f4360405180606001604052806036815260200161267b60369139612360565b905060008463ffffffff1611801561226857506001600160a01b0385166000908152600f6020908152604080832063ffffffff6000198901811685529252909120548282169116145b156122a5576001600160a01b0385166000908152600f6020908152604080832063ffffffff60001989011684529091529020600101829055612316565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600f84528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260109092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b600081600160201b84106123b55760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d99578181015183820152602001611d81565b509192915050565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365414c504143413a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e65644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373414c504143413a3a64656c656761746542795369673a207369676e61747572652065787069726564414c504143413a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365454950373132446f6d61696e28737472696e67206e616d652c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373414c504143413a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373414c504143413a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747344656c65676174696f6e28616464726573732064656c6567617465652c75696e74323536206e6f6e63652c75696e74323536206578706972792945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f656e6452656c65617365426c6f636b203c20737461727452656c65617365426c6f636ba2646970667358221220d14cba8cfdfc68cd304b4f3aa05e1d3557635990fa63d029452b55e718c3117764736f6c634300060600334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572414c504143413a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473656e6452656c65617365426c6f636b203c20737461727452656c65617365426c6f636b0000000000000000000000000000000000000000000000000000000000632d410000000000000000000000000000000000000000000000000000000000663a81

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

0000000000000000000000000000000000000000000000000000000000632d410000000000000000000000000000000000000000000000000000000000663a81

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000632d41
Arg [1] : 0000000000000000000000000000000000000000000000000000000000663a81


Deployed ByteCode Sourcemap

35192:12174:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;35192:12174:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;26286:91:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;26286:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28432:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;28432:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;27385:108;;;:::i;:::-;;;;;;;;;;;;;;;;37987:774;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37987:774:0;-1:-1:-1;;;;;37987:774:0;;:::i;40637:132::-;;;:::i;29083:321::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;29083:321:0;;;;;;;;;;;;;;;;;:::i;37464:517::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;37464:517:0;;;;;;;;:::i;:::-;;27229:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36312:69;;;:::i;29813:218::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;29813:218:0;;;;;;;;:::i;36499:81::-;;;:::i;36760:219::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;36760:219:0;;;;;;;;:::i;37094:133::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37094:133:0;-1:-1:-1;;;;;37094:133:0;;:::i;41623:111::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;41623:111:0;-1:-1:-1;;;;;41623:111:0;;:::i;:::-;;;;-1:-1:-1;;;;;41623:111:0;;;;;;;;;;;;;;37233:100;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37233:100:0;-1:-1:-1;;;;;37233:100:0;;:::i;41875:98::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;41875:98:0;-1:-1:-1;;;;;41875:98:0;;:::i;40520:48::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40520:48:0;-1:-1:-1;;;;;40520:48:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;27556:127;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27556:127:0;-1:-1:-1;;;;;27556:127:0;;:::i;23667:148::-;;;:::i;44048:1086::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;44048:1086:0;;;;;;;;:::i;41063:41::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;41063:41:0;-1:-1:-1;;;;;41063:41:0;;:::i;35334:32::-;;;:::i;37339:119::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37339:119:0;-1:-1:-1;;;;;37339:119:0;;:::i;23016:87::-;;;:::i;26496:95::-;;;:::i;36985:103::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;36985:103:0;;;;;;;;:::i;39184:479::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39184:479:0;-1:-1:-1;;;;;39184:479:0;;:::i;30534:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;30534:269:0;;;;;;;;:::i;38767:346::-;;;:::i;27896:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;27896:175:0;;;;;;;;:::i;43414:213::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;43414:213:0;-1:-1:-1;;;;;43414:213:0;;:::i;42395:826::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;;42395:826:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;35371:30::-;;;:::i;36026:280::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36026:280:0;;;;;;;:::i;28134:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;28134:151:0;;;;;;;;;;:::i;36586:168::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;36586:168:0;;;;;;;;:::i;35454:31::-;;;:::i;40859:127::-;;;:::i;40387:68::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40387:68:0;;-1:-1:-1;;;;;40387:68:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;23970:244;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23970:244:0;-1:-1:-1;;;;;23970:244:0;;:::i;35406:43::-;;;:::i;36387:106::-;;;:::i;26286:91::-;26364:5;26357:12;;;;;;;;-1:-1:-1;;26357:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26331:13;;26357:12;;26364:5;;26357:12;;26364:5;26357:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26286:91;:::o;28432:169::-;28515:4;28532:39;28541:12;:10;:12::i;:::-;28555:7;28564:6;28532:8;:39::i;:::-;-1:-1:-1;28589:4:0;28432:169;;;;;:::o;27385:108::-;27473:12;;27385:108;:::o;37987:774::-;38051:7;38168:17;;38153:12;:32;38149:607;;;-1:-1:-1;38203:1:0;38196:8;;38149:607;38331:15;;38315:12;:31;38311:445;;-1:-1:-1;;;;;;38364:16:0;;;;;;:6;:16;;;;;;38357:23;;38311:445;-1:-1:-1;;;;;38579:26:0;;38538:21;38579:26;;;:16;:26;;;;;;38562:44;;:12;;:44;:16;:44;:::i;:::-;-1:-1:-1;;;;;38655:26:0;;38615:17;38655:26;;;:16;:26;;;;;;38635:15;;38538:68;;-1:-1:-1;38615:17:0;;38635:47;;;:19;:47;:::i;:::-;-1:-1:-1;;;;;38698:16:0;;;;;;:6;:16;;;;;;38615:67;;-1:-1:-1;38698:50:0;;38615:67;;38698:35;;38719:13;38698:35;:20;:35;:::i;:::-;:39;:50;:39;:50;:::i;:::-;38691:57;;;;38311:445;37987:774;;;:::o;40637:132::-;40679:90;;;;;;;;;;;;;;;;;;40637:132;:::o;29083:321::-;29189:4;29206:36;29216:6;29224:9;29235:6;29206:9;:36::i;:::-;29253:121;29262:6;29270:12;:10;:12::i;:::-;29284:89;29322:6;29284:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29284:19:0;;;;;;:11;:19;;;;;;29304:12;:10;:12::i;:::-;-1:-1:-1;;;;;29284:33:0;;;;;;;;;;;;-1:-1:-1;29284:33:0;;;:89;;:37;:89;:::i;:::-;29253:8;:121::i;:::-;-1:-1:-1;29392:4:0;29083:321;;;;;:::o;37464:517::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;37545:22:0;::::1;37537:56;;;::::0;;-1:-1:-1;;;37537:56:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37537:56:0;;;;;;;;;;;;;::::1;;37619:19;37629:8;37619:9;:19::i;:::-;37608:7;:30;;37600:63;;;::::0;;-1:-1:-1;;;37600:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37600:63:0;;;;;;;;;;;;;::::1;;37672:43;37682:8;37700:4;37707:7;37672:9;:43::i;:::-;-1:-1:-1::0;;;;;37743:16:0;::::1;;::::0;;;:6:::1;:16;::::0;;;;;:29:::1;::::0;37764:7;37743:29:::1;:20;:29;:::i;:::-;-1:-1:-1::0;;;;;37724:16:0;::::1;;::::0;;;:6:::1;:16;::::0;;;;:48;37792:10:::1;::::0;:23:::1;::::0;37807:7;37792:23:::1;:14;:23;:::i;:::-;37779:10;:36:::0;37857:17:::1;::::0;-1:-1:-1;;;;;37828:26:0;::::1;;::::0;;;:16:::1;:26;::::0;;;;;:46:::1;37824:115;;;37914:17;::::0;-1:-1:-1;;;;;37885:26:0;::::1;;::::0;;;:16:::1;:26;::::0;;;;:46;37824:115:::1;37952:23;::::0;;;;;;;-1:-1:-1;;;;;37952:23:0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;37464:517:::0;;:::o;27229:91::-;27303:9;;;;27229:91;:::o;36312:69::-;36371:4;;36312:69;:::o;29813:218::-;29901:4;29918:83;29927:12;:10;:12::i;:::-;29941:7;29950:50;29989:10;29950:11;:25;29962:12;:10;:12::i;:::-;-1:-1:-1;;;;;29950:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29950:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;36499:81::-;36564:10;;36499:81;:::o;36760:219::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;36866:5:::1;:3;:5::i;:::-;36836:26;36854:7;36836:13;:11;:13::i;:::-;:17:::0;:26:::1;:17;:26;:::i;:::-;:35;;36828:60;;;::::0;;-1:-1:-1;;;36828:60:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36828:60:0;;;;;;;;;;;;;::::1;;36895:19;36901:3;36906:7;36895:5;:19::i;:::-;-1:-1:-1::0;;;;;36948:15:0;;::::1;36944:1;36948:15:::0;;;:10:::1;:15;::::0;;;;;36921:52:::1;::::0;36948:15:::1;36965:7:::0;36921:14:::1;:52::i;:::-;36760:219:::0;;:::o;37094:133::-;37157:7;37180:41;37201:19;37211:8;37201:9;:19::i;:::-;-1:-1:-1;;;;;37180:16:0;;;;;;:6;:16;;;;;;;:41;:20;:41;:::i;41623:111::-;-1:-1:-1;;;;;41707:21:0;;;41684:7;41707:21;;;:10;:21;;;;;;;;41623:111::o;37233:100::-;-1:-1:-1;;;;;37311:16:0;37288:7;37311:16;;;:6;:16;;;;;;;37233:100::o;41875:98::-;41935:32;41945:10;41957:9;41935;:32::i;:::-;41875:98;:::o;40520:48::-;;;;;;;;;;;;;;;:::o;27556:127::-;-1:-1:-1;;;;;27657:18:0;27630:7;27657:18;;;;;;;;;;;;27556:127::o;23667:148::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;23758:6:::1;::::0;23737:40:::1;::::0;23774:1:::1;::::0;23758:6:::1;::::0;::::1;-1:-1:-1::0;;;;;23758:6:0::1;::::0;-1:-1:-1;;;;;;;;;;;23737:40:0;23774:1;;23737:40:::1;23788:6;:19:::0;;-1:-1:-1;;;;;;23788:19:0::1;::::0;;23667:148::o;44048:1086::-;44132:7;44170:12;44156:11;:26;44148:80;;;;-1:-1:-1;;;44148:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44259:23:0;;44237:19;44259:23;;;:14;:23;;;;;;;;44293:17;44289:48;;44328:1;44321:8;;;;;44289:48;-1:-1:-1;;;;;44389:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;44410:16:0;;44389:38;;;;;;;;;:48;;:63;-1:-1:-1;44385:137:0;;-1:-1:-1;;;;;44470:20:0;;;;;;:11;:20;;;;;;;;-1:-1:-1;;44491:16:0;;;;44470:38;;;;;;;;44506:1;44470:44;;;-1:-1:-1;44463:51:0;;44385:137;-1:-1:-1;;;;;44575:20:0;;;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:23;:33;:47;-1:-1:-1;44571:78:0;;;44640:1;44633:8;;;;;44571:78;44657:12;-1:-1:-1;;44695:16:0;;44718:364;44733:5;44725:13;;:5;:13;;;44718:364;;;44791:1;44774:13;;;44773:19;;;44765:27;;44828:20;;:::i;:::-;-1:-1:-1;;;;;;44851:20:0;;;;;;:11;:20;;;;;;;;:28;;;;;;;;;;;;;44828:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44892:27;;44888:187;;;44939:8;;;;-1:-1:-1;44932:15:0;;-1:-1:-1;;;;44932:15:0;44888:187;44967:12;;:26;;;-1:-1:-1;44963:112:0;;;45014:6;45006:14;;44963:112;;;45064:1;45055:6;:10;45047:18;;44963:112;44718:364;;;;;-1:-1:-1;;;;;;45095:20:0;;;;;;:11;:20;;;;;;;;:27;;;;;;;;;;:33;;;;-1:-1:-1;;44048:1086:0;;;;:::o;41063:41::-;;;;;;;;;;;;;:::o;35334:32::-;;;;:::o;37339:119::-;-1:-1:-1;;;;;37426:26:0;37403:7;37426:26;;;:16;:26;;;;;;;37339:119::o;23016:87::-;23089:6;;;;;-1:-1:-1;;;;;23089:6:0;;23016:87::o;26496:95::-;26576:7;26569:14;;;;;;;;-1:-1:-1;;26569:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26543:13;;26569:14;;26576:7;;26569:14;;26576:7;26569:14;;;;;;;;;;;;;;;;;;;;;;;;36985:103;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;37058:24:::1;37064:8;37074:7;37058:5;:24::i;39184:479::-:0;39269:10;39262:18;;;;:6;:18;;;;;;;-1:-1:-1;;;;;39246:11:0;;;;;;;:35;;;:15;:35;:::i;:::-;-1:-1:-1;;;;;39232:11:0;;;;;;:6;:11;;;;;;;;:49;;;;39318:17;;39294:16;:21;;;;;;;:41;39290:105;;;39370:17;;-1:-1:-1;;;;;39346:21:0;;;;;;:16;:21;;;;;:41;39290:105;39448:10;39431:28;;;;:16;:28;;;;;;;-1:-1:-1;;;;;39407:21:0;;;;;;;:52;39403:127;;;39511:10;39494:28;;;;:16;:28;;;;;;;-1:-1:-1;;;;;39470:21:0;;;;;;:52;39403:127;39545:10;39559:1;39538:18;;;:6;:18;;;;;;;;:22;;;39567:16;:28;;;;;:32;39608:49;;39630:3;39635:21;39545:10;39635:9;:21::i;:::-;39608:9;:49::i;30534:269::-;30627:4;30644:129;30653:12;:10;:12::i;:::-;30667:7;30676:96;30715:15;30676:96;;;;;;;;;;;;;;;;;:11;:25;30688:12;:10;:12::i;:::-;-1:-1:-1;;;;;30676:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;30676:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;38767:346::-;38814:10;38828:1;38807:18;;;:6;:18;;;;;;38799:52;;;;;-1:-1:-1;;;38799:52:0;;;;;;;;;;;;-1:-1:-1;;;38799:52:0;;;;;;;;;;;;;;;38860:14;38877:27;38893:10;38877:15;:27::i;:::-;38860:44;;38913;38931:4;38938:10;38950:6;38913:9;:44::i;:::-;38992:10;38985:18;;;;:6;:18;;;;;;:30;;39008:6;38985:30;:22;:30;:::i;:::-;38971:10;38964:18;;;;:6;:18;;;;;;;;:51;;;;39022:16;:28;;;39053:12;39022:43;;39085:10;;:22;;39100:6;39085:22;:14;:22;:::i;:::-;39072:10;:35;-1:-1:-1;38767:346:0:o;27896:175::-;27982:4;27999:42;28009:12;:10;:12::i;:::-;28023:9;28034:6;27999:9;:42::i;43414:213::-;-1:-1:-1;;;;;43517:23:0;;43479:7;43517:23;;;:14;:23;;;;;;;;43554:16;:67;;43620:1;43554:67;;;-1:-1:-1;;;;;43573:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;43594:16:0;;43573:38;;;;;;;;43609:1;43573:44;;43554:67;43547:74;43414:213;-1:-1:-1;;;43414:213:0:o;42395:826::-;42550:23;40679:90;;;;;;;;;;;;;;;;;;;42638:6;:4;:6::i;:::-;42622:24;;;;;;42648:12;:10;:12::i;:::-;42670:4;42594:82;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42594:82:0;-1:-1:-1;;;;;42594:82:0;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;42594:82:0;;;42576:107;;;;;;42550:133;;42692:18;40905:81;;;;;;;;;;;;;;;;;;;42723:57;;;;;;;;-1:-1:-1;;;;;42723:57:0;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;42723:57:0;;;;;42713:68;;;;;;-1:-1:-1;;;42817:57:0;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;42817:57:0;;;;;;42807:68;;;;;;;;;-1:-1:-1;42904:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42713:68;;-1:-1:-1;42807:68:0;;-1:-1:-1;;;42904:26:0;;;;;;;42723:57;-1:-1:-1;;42904:26:0;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;42904:26:0;;-1:-1:-1;;42904:26:0;;;-1:-1:-1;;;;;;;42945:23:0;;42937:76;;;;-1:-1:-1;;;42937:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;43037:17:0;;;;;;:6;:17;;;;;:19;;;;;;;;43028:28;;43020:77;;;;-1:-1:-1;;;43020:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43119:6;43112:3;:13;;43104:66;;;;-1:-1:-1;;;43104:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43184:31;43194:9;43205;43184;:31::i;:::-;43177:38;;;;42395:826;;;;;;;:::o;35371:30::-;;;;:::o;36026:280::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;36156:18:::1;36137:16;:37;36129:85;;;;-1:-1:-1::0;;;36129:85:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36221:17;:38:::0;;;;36266:15:::1;:34:::0;36026:280::o;28134:151::-;-1:-1:-1;;;;;28250:18:0;;;28223:7;28250:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;28134:151::o;36586:168::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;36684:15:::1;;36668:12;;:31;;36660:63;;;::::0;;-1:-1:-1;;;36660:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36660:63:0;;;;;;;;;;;;;::::1;;36730:18;36735:3;36740:7;36730:4;:18::i;35454:31::-:0;;;;:::o;40859:127::-;40905:81;;;;;;;;;;;;;;;;;;40859:127;:::o;40387:68::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23970:244::-;23247:12;:10;:12::i;:::-;-1:-1:-1;;;;;23236:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23236:23:0;;23228:68;;;;;-1:-1:-1;;;23228:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23228:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24059:22:0;::::1;24051:73;;;;-1:-1:-1::0;;;24051:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24161:6;::::0;24140:38:::1;::::0;-1:-1:-1;;;;;24140:38:0;;::::1;::::0;24161:6:::1;::::0;::::1;;::::0;-1:-1:-1;;;;;;;;;;;24140:38:0;;;::::1;24189:6;:17:::0;;-1:-1:-1;;;;;24189:17:0;;::::1;;;-1:-1:-1::0;;;;;;24189:17:0;;::::1;::::0;;;::::1;::::0;;23970:244::o;35406:43::-;;;;:::o;36387:106::-;36434:7;36457:30;36475:11;:9;:11::i;:::-;36457:13;:11;:13::i;:::-;:17;:30;:17;:30;:::i;:::-;36450:37;;36387:106;:::o;22152:::-;22240:10;22152:106;:::o;33681:346::-;-1:-1:-1;;;;;33783:19:0;;33775:68;;;;-1:-1:-1;;;33775:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33862:21:0;;33854:68;;;;-1:-1:-1;;;33854:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33935:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;33987:32;;;;;;;;;;;;;;;;;33681:346;;;:::o;5903:158::-;5961:7;5994:1;5989;:6;;5981:49;;;;;-1:-1:-1;;;5981:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6048:5:0;;;5903:158::o;6320:220::-;6378:7;6402:6;6398:20;;-1:-1:-1;6417:1:0;6410:8;;6398:20;6441:5;;;6445:1;6441;:5;:1;6465:5;;;;;:10;6457:56;;;;-1:-1:-1;;;6457:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7018:153;7076:7;7108:1;7104;:5;7096:44;;;;;-1:-1:-1;;;7096:44:0;;;;;;;;;;;;-1:-1:-1;;;7096:44:0;;;;;;;;;;;;;;;7162:1;7158;:5;;;;;;;7018:153;-1:-1:-1;;;7018:153:0:o;31293:539::-;-1:-1:-1;;;;;31399:20:0;;31391:70;;;;-1:-1:-1;;;31391:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31480:23:0;;31472:71;;;;-1:-1:-1;;;31472:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31556:47;31577:6;31585:9;31596:6;31556:20;:47::i;:::-;31636:71;31658:6;31636:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31636:17:0;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;31616:17:0;;;:9;:17;;;;;;;;;;;:91;;;;31741:20;;;;;;;:32;;31766:6;31741:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;31718:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;31789:35;;;;;;;31718:20;;31789:35;;;;-1:-1:-1;;;;;;;;;;;31789:35:0;;;;;;;;31293:539;;;:::o;8268:166::-;8354:7;8390:12;8382:6;;;;8374:29;;;;-1:-1:-1;;;8374:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;8374:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8421:5:0;;;8268:166::o;5441:179::-;5499:7;5531:5;;;5555:6;;;;5547:46;;;;;-1:-1:-1;;;5547:46:0;;;;;;;;;;;;-1:-1:-1;;;5547:46:0;;;;;;;;;;;;;;32114:378;-1:-1:-1;;;;;32198:21:0;;32190:65;;;;;-1:-1:-1;;;32190:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32268:49;32297:1;32301:7;32310:6;32268:20;:49::i;:::-;32345:12;;:24;;32362:6;32345:24;:16;:24;:::i;:::-;32330:12;:39;-1:-1:-1;;;;;32401:18:0;;:9;:18;;;;;;;;;;;:30;;32424:6;32401:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;32380:18:0;;:9;:18;;;;;;;;;;;:51;;;;32447:37;;;;;;;32380:18;;:9;;-1:-1:-1;;;;;;;;;;;32447:37:0;;;;;;;;;32114:378;;:::o;45550:853::-;45672:6;-1:-1:-1;;;;;45662:16:0;:6;-1:-1:-1;;;;;45662:16:0;;;:30;;;;;45691:1;45682:6;:10;45662:30;45658:740;;;-1:-1:-1;;;;;45707:20:0;;;45703:339;;-1:-1:-1;;;;;45799:22:0;;45780:16;45799:22;;;:14;:22;;;;;;;;;45852:13;:60;;45911:1;45852:60;;;-1:-1:-1;;;;;45868:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;45888:13:0;;45868:34;;;;;;;;45900:1;45868:40;;45852:60;45832:80;-1:-1:-1;45923:17:0;45943:21;45832:80;45957:6;45943:21;:13;:21;:::i;:::-;45923:41;;45975:57;45992:6;46000:9;46011;46022;45975:16;:57::i;:::-;45703:339;;;;-1:-1:-1;;;;;46056:20:0;;;46052:339;;-1:-1:-1;;;;;46148:22:0;;46129:16;46148:22;;;:14;:22;;;;;;;;;46201:13;:60;;46260:1;46201:60;;;-1:-1:-1;;;;;46217:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;46237:13:0;;46217:34;;;;;;;;46249:1;46217:40;;46201:60;46181:80;-1:-1:-1;46272:17:0;46292:21;46181:80;46306:6;46292:21;:13;:21;:::i;:::-;46272:41;;46324:57;46341:6;46349:9;46360;46371;46324:16;:57::i;46052:339::-;45550:853;;;:::o;45140:404::-;-1:-1:-1;;;;;45239:21:0;;;45213:23;45239:21;;;:10;:21;;;;;;;;;;45294:20;45250:9;45294;:20::i;:::-;-1:-1:-1;;;;;45368:21:0;;;;;;;:10;:21;;;;;;:33;;-1:-1:-1;;;;;;45368:33:0;;;;;;;;;;45415:54;;45267:47;;-1:-1:-1;45368:33:0;45415:54;;;;;;45368:21;45415:54;45478:60;45493:15;45510:9;45521:16;45478:14;:60::i;:::-;45140:404;;;;:::o;32825:418::-;-1:-1:-1;;;;;32909:21:0;;32901:67;;;;-1:-1:-1;;;32901:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32981:49;33002:7;33019:1;33023:6;32981:20;:49::i;:::-;33064:68;33087:6;33064:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33064:18:0;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;33043:18:0;;:9;:18;;;;;;;;;;:89;33158:12;;:24;;33175:6;33158:24;:16;:24;:::i;:::-;33143:12;:39;33198:37;;;;;;;;33224:1;;-1:-1:-1;;;;;33198:37:0;;;-1:-1:-1;;;;;;;;;;;33198:37:0;;;;;;;;32825:418;;:::o;47209:154::-;47321:9;47209:154;:::o;46409:634::-;46552:18;46573:78;46580:12;46573:78;;;;;;;;;;;;;;;;;:6;:78::i;:::-;46552:99;;46679:1;46664:12;:16;;;:85;;;;-1:-1:-1;;;;;;46684:22:0;;;;;;:11;:22;;;;;;;;:65;-1:-1:-1;;46707:16:0;;46684:40;;;;;;;;;:50;:65;;;:50;;:65;46664:85;46660:313;;;-1:-1:-1;;;;;46760:22:0;;;;;;:11;:22;;;;;;;;:40;-1:-1:-1;;46783:16:0;;46760:40;;;;;;;;46798:1;46760:46;:57;;;46660:313;;;46879:33;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46840:22:0;;-1:-1:-1;46840:22:0;;;:11;:22;;;;;:36;;;;;;;;;;:72;;;;;;;-1:-1:-1;;46840:72:0;;;;;;;;;;;;;46921:25;;;:14;:25;;;;;;:44;;46949:16;;;46921:44;;;;;;;;;;46660:313;46986:51;;;;;;;;;;;;;;-1:-1:-1;;;;;46986:51:0;;;;;;;;;;;46409:634;;;;;:::o;47049:154::-;47127:6;47161:12;-1:-1:-1;;;47150:9:0;;47142:32;;;;-1:-1:-1;;;47142:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;47142:32:0;-1:-1:-1;47195:1:0;;47049:154;-1:-1:-1;;47049:154:0:o;35192:12174::-;;;;;;;;;;-1:-1:-1;35192:12174:0;;;;;;;;:::o

Swarm Source

ipfs://d14cba8cfdfc68cd304b4f3aa05e1d3557635990fa63d029452b55e718c31177
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.