Contract 0xca2DeAc853225f5a4dfC809Ae0B7c6e39104fCe5 1

 

Contract Overview

CafeSwap: Staking
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x073b1a83b1d2ef83cee0f900f098029c75b21940512ac591e6f02a849f50e4a6Deposit387416802023-01-31 11:22:345 hrs 52 mins ago0x6285f201641ae13d7ae9a272987f756c0a17c68d IN  CafeSwap: Staking0 MATIC0.017437354 127
0x0aabb428dfa84239ccf87f8fc48455185e5a59d332154928e40f130b96aa7befDeposit387165092023-01-30 20:06:1921 hrs 8 mins ago0x4fdda93495df6dfb72a8e3f3034201c2e7855dc0 IN  CafeSwap: Staking0 MATIC0.005409300789 45.943152135
0x4ba1972b11192f6c77e4e851655d595c6148d4ed8a68ca9f89b9bea9889ffd9dDeposit387088072023-01-30 15:21:241 day 1 hr ago0x4399518609fcdef8d9ba544cde6f84ed45d7027d IN  CafeSwap: Staking0 MATIC0.003497118027 88.978399288
0x2e0b26458e0a3cf9cb21a8f9f6b336befbb621da9f96a143cc2af725d900f929Deposit387088072023-01-30 15:21:241 day 1 hr ago0x4399518609fcdef8d9ba544cde6f84ed45d7027d IN  CafeSwap: Staking0 MATIC0.012251237679 89.228399288
0x7d1d2a44e63957789eaaf85858dee6a4eeac6e1e9f016a1d2cf9cf45dbb51695Deposit387079132023-01-30 14:48:081 day 2 hrs ago0x4399518609fcdef8d9ba544cde6f84ed45d7027d IN  CafeSwap: Staking0 MATIC0.016688186828 138.834518798
0xae90df8d98b9acab85382772148a26e9af67ec60f19eb606f02fa14913a474ffDeposit387074032023-01-30 14:28:591 day 2 hrs ago0x4399518609fcdef8d9ba544cde6f84ed45d7027d IN  CafeSwap: Staking0 MATIC0.014720509257 122.464761468
0x41cab2038020dec1e4a86b03655d963259056f2f968c1d6763d81e516045d993Deposit387041142023-01-30 12:25:321 day 4 hrs ago0x4399518609fcdef8d9ba544cde6f84ed45d7027d IN  CafeSwap: Staking0 MATIC0.008298159924 60.437283688
0x21382ce615fdb3b5dc145fa09d94bd1814036570fde7d1a3e4ab3f958db4c179Deposit386796992023-01-29 21:32:251 day 19 hrs ago0x80ce219169d5263824f3b4528681021b1cd1fa50 IN  CafeSwap: Staking0 MATIC0.010229039779 73.719621346
0xa775da914ee0139b8dde36e96369afbe3dcfb83de4d01c4c0af72bcb37b7a894Deposit386792772023-01-29 21:17:161 day 19 hrs ago0x80ce219169d5263824f3b4528681021b1cd1fa50 IN  CafeSwap: Staking0 MATIC0.008989468789 74.786349554
0x6bc7bb2d389602e628baddb7c9f6ddf23b74cda5d92556dabcc767c009668ab5Deposit386749532023-01-29 18:42:171 day 22 hrs ago0xfe6838fc42065376f4db3237054e99e6d63eb668 IN  CafeSwap: Staking0 MATIC0.026161502751 169.4123539
0x633c4431485740fbceb290fa966defdbe1bd5724f95b55130cd9adc1fc0551f6Withdraw386747852023-01-29 18:36:211 day 22 hrs ago0xfe6838fc42065376f4db3237054e99e6d63eb668 IN  CafeSwap: Staking0 MATIC0.020428878892 171.311353398
0x4c611c0e1f3c88f2298bae2ba20543157e6e49f517f4d5e22987979d0c30a577Deposit386747482023-01-29 18:35:011 day 22 hrs ago0xfe6838fc42065376f4db3237054e99e6d63eb668 IN  CafeSwap: Staking0 MATIC0.023114806647 196.322430521
0xd9445fbad12215c9c77b03fbc534e3bd907f8eb48f40fac69946f8594baffd72Deposit386725672023-01-29 17:17:401 day 23 hrs ago0xaff6f7afa534fdc34e408137a22aa4713d9da5b2 IN  CafeSwap: Staking0 MATIC0.00619054753 51.501202398
0xca057ad6f296766f0596d171f949ad4d2549ccbe4d13c7c1fd0dc78ae44aae13Deposit386574042023-01-29 8:07:512 days 9 hrs ago0x60daf6009e272d8de9edecb804d7119f28dbbdb8 IN  CafeSwap: Staking0 MATIC0.006328427884 52.648274439
0x181dbca46a4f6bdde71c303275259edee621485760eaf6de2f205573459e860eDeposit386573832023-01-29 8:07:072 days 9 hrs ago0x60daf6009e272d8de9edecb804d7119f28dbbdb8 IN  CafeSwap: Staking0 MATIC0.00668443766 55.610036945
0xba0fd3acb86ba4037a5264a4efba047d6f0c530a3ebfb3bbe5524a7bb613c55eDeposit386536412023-01-29 5:49:402 days 11 hrs ago0x81b78a649dbc11e86726b8f642619e015024796a IN  CafeSwap: Staking0 MATIC0.00282189 30
0x12ef8f10f66358a3a4159dad03a4504c596420b32359acd143d130ee59214a29Deposit386536412023-01-29 5:49:402 days 11 hrs ago0x234a4303e9dac0fcf9995602dbab3d9d44f7ebd1 IN  CafeSwap: Staking0 MATIC0.00121588086 30.94553106
0xf27c50ec24941c8fb7d0d876a1fbd4a1a7382051f00e4f04e8d36e14b056dc46Deposit386536412023-01-29 5:49:402 days 11 hrs ago0x234a4303e9dac0fcf9995602dbab3d9d44f7ebd1 IN  CafeSwap: Staking0 MATIC0.003643495881 30.94553106
0x7927181366b64cb840bbe8146587e00b7548fda62a0e2d9f9a7560a26f05518aDeposit386386622023-01-28 20:40:522 days 20 hrs ago0x586aeec79974cfd450ec13c61844c0501e75e64f IN  CafeSwap: Staking0 MATIC0.002350350823 48.144182055
0x5c41b669721969b959d17b2171ba27f7df7f54b24d305151c7ee5ed1272f7343Deposit386386622023-01-28 20:40:522 days 20 hrs ago0x586aeec79974cfd450ec13c61844c0501e75e64f IN  CafeSwap: Staking0 MATIC0.00218319539 44.720198905
0xd59de4f83102d8aef489d4108132f5c483c28cf98b3e1db111f77d25f2a089e9Deposit386386622023-01-28 20:40:522 days 20 hrs ago0x586aeec79974cfd450ec13c61844c0501e75e64f IN  CafeSwap: Staking0 MATIC0.002864504125 20.644182055
0x78ee0b53d831d159f0dcbbe74def075bf87b7141303ce675cced413233ed7950Deposit386159102023-01-28 6:52:173 days 10 hrs ago0x2021ea724272fdd97651570b7ef02c6154f8f18a IN  CafeSwap: Staking0 MATIC0.006362366698 42.100306362
0x2bc3d60d7a548b671e40b019d2a34cad210f45a6e655e86df3c2076aaa314adaDeposit386139642023-01-28 5:41:163 days 11 hrs ago0x8102c04bc86295603a1280c0aa6e627b80166095 IN  CafeSwap: Staking0 MATIC0.00700142742159.465660667
0xe328198fb49fde120933d8783ca702a8d5d4cb061baa37a678d543c32082b97bDeposit386139512023-01-28 5:40:483 days 11 hrs ago0x8102c04bc86295603a1280c0aa6e627b80166095 IN  CafeSwap: Staking0 MATIC0.0087128750563.457743153
0x262c513e03eaa7b7270263c7c323131feb98d82a1f8efd7b73e292a84b4dd95bWithdraw386097782023-01-28 2:58:223 days 14 hrs ago0x035861d8f4bc3cddd2667599c568248c1a43b421 IN  CafeSwap: Staking0 MATIC0.009343029945 78.348259498
[ Download CSV Export 

OVERVIEW

CafeSwap is a Standalone Automated Market Maker (AMM) offering a suite of yield farming, yield optimization, and staking platform on Binance Smart Chain (BSC) and Polygon Network to trade multichain assets with the lowest transaction fees available.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-09-25
*/

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.6.0;




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

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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");
        }
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.6.0;

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.6.0;





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20MinterPauser}.
 *
 * 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;
    using Address for address;

    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 returns (string memory) {
        return _name;
    }

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 is 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 {
        _decimals = decimals_;
    }

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

// File: contracts/CoffeeToken.sol

pragma solidity 0.6.12;




contract CoffeeToken is ERC20("CafeSwap Token", "pBREW") {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    address public governance;
    address[] public listOfMinters;

    mapping(address => bool) public minters;

    uint256 public cap;

    event MinterChanged(address indexed minter, bool role);

    constructor(uint256 _cap) public {
        cap = _cap;
        governance = msg.sender;
    }

    modifier onlyGovernance() {
        require(msg.sender == governance, "!governance");
        _;
    }

    modifier onlyMinter() {
        require(
            msg.sender == governance || minters[msg.sender],
            "!governance && !minter"
        );
        _;
    }

    function getGetMinter(uint256 _pid) public view returns (address) {
        return listOfMinters[_pid];
    }

    function mint(address _to, uint256 _amount) external onlyMinter {
        _mint(_to, _amount);
    }

    function burn(uint256 _amount) external {
        _burn(msg.sender, _amount);
    }

    function burnFrom(address _account, uint256 _amount) external {
        uint256 decreasedAllowance = allowance(_account, msg.sender).sub(
            _amount,
            "ERC20: burn amount exceeds allowance"
        );
        _approve(_account, msg.sender, decreasedAllowance);
        _burn(_account, _amount);
    }

    function setGovernance(address _governance) external onlyGovernance {
        governance = _governance;
    }

    function addMinter(address _minter) external onlyGovernance {
        minters[_minter] = true;
        listOfMinters.push(_minter);
        emit MinterChanged(_minter, true);
    }

    function removeMinter(address _minter) external onlyGovernance {
        minters[_minter] = false;
        emit MinterChanged(_minter, false);
    }

    function setCap(uint256 _cap) external onlyGovernance {
        require(_cap >= totalSupply(), "_cap is below current total supply");
        cap = _cap;
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) {
            // When minting tokens
            require(
                totalSupply().add(amount) <= cap,
                "ERC20Capped: cap exceeded"
            );
        }
    }

    // This function allows governance to take unsupported tokens out of the contract. This is in an effort to make someone whole, should they seriously mess up.
    // There is no guarantee governance will vote to return these. It also allows for removal of airdropped tokens.
    function governanceRecoverUnsupported(
        IERC20 _token,
        address _to,
        uint256 _amount
    ) external onlyGovernance {
        _token.safeTransfer(_to, _amount);
    }
}

// File: contracts/MasterChefV2.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;







interface ICafeSwapSafeTransfer {
    function safeBrewTransfer(address _to, uint256 _amount) external;
}
// MasterChef is the master of Brew. He can make Brew and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once BREW is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChefV2 is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of BREWs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accBrewPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accBrewPerShare` (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 {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. BREWs to distribute per block.
        uint256 lastRewardBlock; // Last block number that BREWs distribution occurs.
        uint256 accBrewPerShare; // Accumulated BREWs per share, times 1e12. See below.
        uint16 depositFeeBP; // Deposit fee in basis points
    }

    // The BREW TOKEN!
    CoffeeToken public brew;
    // Dev address.
    address public devaddr;
    // BREW tokens created per block.
    uint256 public brewPerBlock;
    // Deposit Fee address
    address public feeAddress;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Info if a pool exists or not
    mapping(IERC20 => bool) public poolExistence;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when BREW mining starts.
    uint256 public startBlock;

    // cafeSwapTransfer helper to be able to stake brew tokens
    ICafeSwapSafeTransfer public cafeSwapTransfer;

    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
    );
    event SetFeeAddress(address indexed user, address indexed newAddress);
    event SetDevAddress(address indexed user, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 brewPerBlock);

    constructor(
        CoffeeToken _brew,
        address _devaddr,
        address _feeAddress,
        uint256 _brewPerBlock,
        uint256 _startBlock,
        ICafeSwapSafeTransfer _cafeSwapTransfer
    ) public {
        brew = _brew;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        brewPerBlock = _brewPerBlock;
        startBlock = _startBlock;
        cafeSwapTransfer = _cafeSwapTransfer;
    }

    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    modifier isPoolExist(uint256 _pid) {
        require(_pid < poolLength(), "isPoolExist: pool not exist");
        _;
    }

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

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        uint16 _depositFeeBP,
        bool _withUpdate
    ) public onlyOwner nonDuplicated(_lpToken) {
        require(
            _depositFeeBP <= 10000,
            "add: invalid deposit fee basis points"
        );
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock =
            block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accBrewPerShare: 0,
                depositFeeBP: _depositFeeBP
            })
        );
    }

    // Update the given pool's BREW allocation point and deposit fee. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint16 _depositFeeBP,
        bool _withUpdate
    ) public onlyOwner isPoolExist(_pid) {
        require(
            _depositFeeBP <= 10000,
            "set: invalid deposit fee basis points"
        );
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from);
    }

    // View function to see pending BREWs on frontend.
    function pendingBrew(uint256 _pid, address _user)
        external
        isPoolExist(_pid)
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBrewPerShare = pool.accBrewPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier =
                getMultiplier(pool.lastRewardBlock, block.number);
            uint256 brewReward =
                multiplier.mul(brewPerBlock).mul(pool.allocPoint).div(
                    totalAllocPoint
                );
            accBrewPerShare = accBrewPerShare.add(
                brewReward.mul(1e12).div(lpSupply)
            );
        }
        return user.amount.mul(accBrewPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables 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 isPoolExist(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 brewReward =
            multiplier.mul(brewPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );
        brew.mint(devaddr, brewReward.div(10));
        brewReward = brewReward.sub(brewReward.div(10));
        brew.mint(address(cafeSwapTransfer), brewReward);
        pool.accBrewPerShare = pool.accBrewPerShare.add(
            brewReward.mul(1e12).div(lpSupply)
        );
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for BREW allocation.
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant isPoolExist(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accBrewPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeBrewTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accBrewPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant isPoolExist(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending =
            user.amount.mul(pool.accBrewPerShare).div(1e12).sub(
                user.rewardDebt
            );
        if (pending > 0) {
            safeBrewTransfer(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBrewPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

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

    function safeBrewTransfer(address _to, uint256 _amount) internal {
        cafeSwapTransfer.safeBrewTransfer(_to, _amount);
    }

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

    function setFeeAddress(address _feeAddress) external {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    //Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _brewPerBlock) external onlyOwner {
        massUpdatePools();
        brewPerBlock = _brewPerBlock;
        emit UpdateEmissionRate(msg.sender, _brewPerBlock);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract CoffeeToken","name":"_brew","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_brewPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"contract ICafeSwapSafeTransfer","name":"_cafeSwapTransfer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"brewPerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"brew","outputs":[{"internalType":"contract CoffeeToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brewPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cafeSwapTransfer","outputs":[{"internalType":"contract ICafeSwapSafeTransfer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBrew","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBrewPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_brewPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006008553480156200001657600080fd5b506040516200333938038062003339833981810160405260c08110156200003c57600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050506000620000916200026860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001600060146101000a81548160ff02191690831515021790555085600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508160098190555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505062000270565b600033905090565b6130b980620002806000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de57806393f1a40b11610097578063d49e77cd11610071578063d49e77cd1461068a578063d9638422146106be578063e2bbb15814610710578063f2fde38b146107485761018e565b806393f1a40b14610565578063a4b2e881146105ce578063cbd258b5146106305761018e565b8063715018a6146103eb57806384e82a33146103f55780638705fcd41461045d5780638d88a90e146104a15780638da5cb5b146104e55780638dbb1e3a146105195761018e565b8063412753581161014b57806351740ce51161012557806351740ce51461036757806351eb05a6146103855780635312ea8e146103b3578063630b5ba1146103e15761018e565b806341275358146102dd578063441a3e701461031157806348cd4cb1146103495761018e565b8063080a2f9814610193578063081e3eda146101c75780630ba84cd2146101e55780631526fe2714610213578063176f0c471461028b57806317caf6f1146102bf575b600080fd5b61019b61078c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101cf6107b2565b6040518082815260200191505060405180910390f35b610211600480360360208110156101fb57600080fd5b81019080803590602001909291905050506107bf565b005b61023f6004803603602081101561022957600080fd5b81019080803590602001909291905050506108e7565b604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018261ffff1681526020019550505050505060405180910390f35b610293610958565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102c761097e565b6040518082815260200191505060405180910390f35b6102e5610984565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103476004803603604081101561032757600080fd5b8101908080359060200190929190803590602001909291905050506109aa565b005b610351610d3d565b6040518082815260200191505060405180910390f35b61036f610d43565b6040518082815260200191505060405180910390f35b6103b16004803603602081101561039b57600080fd5b8101908080359060200190929190505050610d49565b005b6103df600480360360208110156103c957600080fd5b810190808035906020019092919050505061116c565b005b6103e96113d5565b005b6103f3611402565b005b61045b6004803603608081101561040b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803561ffff169060200190929190803515159060200190929190505050611588565b005b61049f6004803603602081101561047357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061190e565b005b6104e3600480360360208110156104b757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a6f565b005b6104ed611bd0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61054f6004803603604081101561052f57600080fd5b810190808035906020019092919080359060200190929190505050611bf9565b6040518082815260200191505060405180910390f35b6105b16004803603604081101561057b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c16565b604051808381526020018281526020019250505060405180910390f35b61061a600480360360408110156105e457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c47565b6040518082815260200191505060405180910390f35b6106726004803603602081101561064657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f0c565b60405180821515815260200191505060405180910390f35b610692611f2c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61070e600480360360808110156106d457600080fd5b810190808035906020019092919080359060200190929190803561ffff169060200190929190803515159060200190929190505050611f52565b005b6107466004803603604081101561072657600080fd5b8101908080359060200190929190803590602001909291905050506121b3565b005b61078a6004803603602081101561075e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506125e5565b005b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600580549050905090565b6107c76127f0565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610887576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61088f6113d5565b806003819055503373ffffffffffffffffffffffffffffffffffffffff167fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053826040518082815260200191505060405180910390a250565b600581815481106108f457fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16905085565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060149054906101000a900460ff16610a2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff02191690831515021790555081610a4f6107b2565b8110610ac3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b600060058481548110610ad257fe5b9060005260206000209060050201905060006006600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610bb0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610bb985610d49565b6000610c038260010154610bf564e8d4a51000610be7876003015487600001546127f890919063ffffffff16565b61287e90919063ffffffff16565b6128c890919063ffffffff16565b90506000811115610c1957610c183382612912565b5b6000851115610c9157610c398583600001546128c890919063ffffffff16565b8260000181905550610c9033868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129c19092919063ffffffff16565b5b610cc364e8d4a51000610cb5856003015485600001546127f890919063ffffffff16565b61287e90919063ffffffff16565b8260010181905550853373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040518082815260200191505060405180910390a3505050506001600060146101000a81548160ff0219169083151502179055505050565b60095481565b60035481565b80610d526107b2565b8110610dc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b600060058381548110610dd557fe5b9060005260206000209060050201905080600201544311610df65750611168565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610e8357600080fd5b505afa158015610e97573d6000803e3d6000fd5b505050506040513d6020811015610ead57600080fd5b810190808051906020019092919050505090506000811480610ed3575060008260010154145b15610ee8574382600201819055505050611168565b6000610ef8836002015443611bf9565b90506000610f3b600854610f2d8660010154610f1f600354876127f890919063ffffffff16565b6127f890919063ffffffff16565b61287e90919063ffffffff16565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610fb2600a8561287e90919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561100557600080fd5b505af1158015611019573d6000803e3d6000fd5b50505050611043611034600a8361287e90919063ffffffff16565b826128c890919063ffffffff16565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156110fa57600080fd5b505af115801561110e573d6000803e3d6000fd5b5050505061115261113f8461113164e8d4a51000856127f890919063ffffffff16565b61287e90919063ffffffff16565b8560030154612a6390919063ffffffff16565b8460030181905550438460020181905550505050505b5050565b600060149054906101000a900460ff166111ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff021916908315150217905550806112116107b2565b8110611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b60006005838154811061129457fe5b9060005260206000209060050201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050600082600001819055506000826001018190555061136433828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129c19092919063ffffffff16565b843373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a3505050506001600060146101000a81548160ff02191690831515021790555050565b6000600580549050905060005b818110156113fe576113f381610d49565b8060010190506113e2565b5050565b61140a6127f0565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6115906127f0565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611650576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8260001515600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611717576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f6e6f6e4475706c6963617465643a206475706c6963617465640000000000000081525060200191505060405180910390fd5b6127108361ffff161115611776576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612fc96025913960400191505060405180910390fd5b8115611785576117846113d5565b5b600060095443116117985760095461179a565b435b90506117b186600854612a6390919063ffffffff16565b6008819055506001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060a001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff1602179055505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f736574466565416464726573733a20464f5242494444454e000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b32576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6465763a207775743f000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e760405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611c0e83836128c890919063ffffffff16565b905092915050565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b600082611c526107b2565b8110611cc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b600060058581548110611cd557fe5b9060005260206000209060050201905060006006600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611dcf57600080fd5b505afa158015611de3573d6000803e3d6000fd5b505050506040513d6020811015611df957600080fd5b81019080805190602001909291905050509050836002015443118015611e20575060008114155b15611ebb576000611e35856002015443611bf9565b90506000611e78600854611e6a8860010154611e5c600354876127f890919063ffffffff16565b6127f890919063ffffffff16565b61287e90919063ffffffff16565b9050611eb6611ea784611e9964e8d4a51000856127f890919063ffffffff16565b61287e90919063ffffffff16565b85612a6390919063ffffffff16565b935050505b611eff8360010154611ef164e8d4a51000611ee38688600001546127f890919063ffffffff16565b61287e90919063ffffffff16565b6128c890919063ffffffff16565b9550505050505092915050565b60076020528060005260406000206000915054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611f5a6127f0565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461201a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b836120236107b2565b8110612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b6127108361ffff1611156120f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806130356025913960400191505060405180910390fd5b8115612105576121046113d5565b5b61214a8461213c6005888154811061211957fe5b9060005260206000209060050201600101546008546128c890919063ffffffff16565b612a6390919063ffffffff16565b600881905550836005868154811061215e57fe5b906000526020600020906005020160010181905550826005868154811061218157fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff1602179055505050505050565b600060149054906101000a900460ff16612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff021916908315150217905550816122586107b2565b81106122cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6973506f6f6c45786973743a20706f6f6c206e6f74206578697374000000000081525060200191505060405180910390fd5b6000600584815481106122db57fe5b9060005260206000209060050201905060006006600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061234885610d49565b6000816000015411156123b757600061239f826001015461239164e8d4a51000612383876003015487600001546127f890919063ffffffff16565b61287e90919063ffffffff16565b6128c890919063ffffffff16565b905060008111156123b5576123b43382612912565b5b505b600084111561253a576124113330868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612aeb909392919063ffffffff16565b60008260040160009054906101000a900461ffff1661ffff16111561251957600061246f6127106124618560040160009054906101000a900461ffff1661ffff16886127f890919063ffffffff16565b61287e90919063ffffffff16565b90506124e2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129c19092919063ffffffff16565b61250b816124fd878560000154612a6390919063ffffffff16565b6128c890919063ffffffff16565b826000018190555050612539565b612530848260000154612a6390919063ffffffff16565b81600001819055505b5b61256c64e8d4a5100061255e846003015484600001546127f890919063ffffffff16565b61287e90919063ffffffff16565b8160010181905550843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040518082815260200191505060405180910390a35050506001600060146101000a81548160ff0219169083151502179055505050565b6125ed6127f0565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146126ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612733576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612fee6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b60008083141561280b5760009050612878565b600082840290508284828161281c57fe5b0414612873576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806130146021913960400191505060405180910390fd5b809150505b92915050565b60006128c083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612bac565b905092915050565b600061290a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612c72565b905092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166386baf6c183836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156129a557600080fd5b505af11580156129b9573d6000803e3d6000fd5b505050505050565b612a5e8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d32565b505050565b600080828401905083811015612ae1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b612ba6846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d32565b50505050565b60008083118290612c58576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c1d578082015181840152602081019050612c02565b50505050905090810190601f168015612c4a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612c6457fe5b049050809150509392505050565b6000838311158290612d1f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612ce4578082015181840152602081019050612cc9565b50505050905090810190601f168015612d115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b612d518273ffffffffffffffffffffffffffffffffffffffff16612f7d565b612dc3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310612e125780518252602082019150602081019050602083039250612def565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612e74576040519150601f19603f3d011682016040523d82523d6000602084013e612e79565b606091505b509150915081612ef1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115612f7757808060200190516020811015612f1057600080fd5b8101908080519060200190929190505050612f76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061305a602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015612fbf57506000801b8214155b9250505091905056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122073e0be55dc84145f2e190ebe9ffd2716d37a1ffd4b88dee2a7e5d649bf994eca64736f6c634300060c0033000000000000000000000000b5106a3277718ecad2f20ab6b86ce0fee7a21f090000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e0000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e000000000000000000000000000000000000000000000000d02ab486cedc0000000000000000000000000000000000000000000000000000000000000129966c0000000000000000000000008110c0755cd5f1e082b3aa2f05c69419abdfb65f

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

000000000000000000000000b5106a3277718ecad2f20ab6b86ce0fee7a21f090000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e0000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e000000000000000000000000000000000000000000000000d02ab486cedc0000000000000000000000000000000000000000000000000000000000000129966c0000000000000000000000008110c0755cd5f1e082b3aa2f05c69419abdfb65f

-----Decoded View---------------
Arg [0] : _brew (address): 0xb5106a3277718ecad2f20ab6b86ce0fee7a21f09
Arg [1] : _devaddr (address): 0x4def43e20e659a06045d812b3f129d6bca65969e
Arg [2] : _feeAddress (address): 0x4def43e20e659a06045d812b3f129d6bca65969e
Arg [3] : _brewPerBlock (uint256): 15000000000000000000
Arg [4] : _startBlock (uint256): 19502700
Arg [5] : _cafeSwapTransfer (address): 0x8110c0755cd5f1e082b3aa2f05c69419abdfb65f

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000b5106a3277718ecad2f20ab6b86ce0fee7a21f09
Arg [1] : 0000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e
Arg [2] : 0000000000000000000000004def43e20e659a06045d812b3f129d6bca65969e
Arg [3] : 000000000000000000000000000000000000000000000000d02ab486cedc0000
Arg [4] : 000000000000000000000000000000000000000000000000000000000129966c
Arg [5] : 0000000000000000000000008110c0755cd5f1e082b3aa2f05c69419abdfb65f


Deployed ByteCode Sourcemap

35176:11305:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37378:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;38672:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46272:206;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;36860:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36618:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;37189:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36799:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;44225:820;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;37280:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36737:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41927:962;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45116:418;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;41671:180;;;:::i;:::-;;19849:148;;;:::i;:::-;;38840:866;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45919:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45729:182;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19207:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;40479:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36942:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;40664:924;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37050:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;36669:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;39818:585;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42958:1215;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20152:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;37378:45;;;;;;;;;;;;;:::o;38672:93::-;38715:7;38742:8;:15;;;;38735:22;;38672:93;:::o;46272:206::-;19429:12;:10;:12::i;:::-;19419:22;;:6;;;;;;;;;;:22;;;19411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46353:17:::1;:15;:17::i;:::-;46396:13;46381:12;:28;;;;46444:10;46425:45;;;46456:13;46425:45;;;;;;;;;;;;;;;;;;46272:206:::0;:::o;36860:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36618:23::-;;;;;;;;;;;;;:::o;37189:34::-;;;;:::o;36799:25::-;;;;;;;;;;;;;:::o;44225:820::-;1899:11;;;;;;;;;;;1891:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2038:5;2024:11;;:19;;;;;;;;;;;;;;;;;;44308:4:::1;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;44325:21:::2;44349:8;44358:4;44349:14;;;;;;;;;;;;;;;;;;44325:38;;44374:21;44398:8;:14;44407:4;44398:14;;;;;;;;;;;:26;44413:10;44398:26;;;;;;;;;;;;;;;44374:50;;44458:7;44443:4;:11;;;:22;;44435:53;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;44499:16;44510:4;44499:10;:16::i;:::-;44526:15;44557:100;44627:4;:15;;;44557:47;44599:4;44557:37;44573:4;:20;;;44557:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:100;;;;:::i;:::-;44526:131;;44682:1;44672:7;:11;44668:81;;;44700:37;44717:10;44729:7;44700:16;:37::i;:::-;44668:81;44773:1;44763:7;:11;44759:152;;;44805:24;44821:7;44805:4;:11;;;:15;;:24;;;;:::i;:::-;44791:4;:11;;:38;;;;44844:55;44878:10;44891:7;44844:4;:12;;;;;;;;;;;;:25;;;;:55;;;;;:::i;:::-;44759:152;44939:47;44981:4;44939:37;44955:4;:20;;;44939:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;44921:4;:15;;:65;;;;45023:4;45011:10;45002:35;;;45029:7;45002:35;;;;;;;;;;;;;;;;;;38655:1;;;2056::::1;2218:4:::0;2204:11;;:18;;;;;;;;;;;;;;;;;;44225:820;;:::o;37280:25::-;;;;:::o;36737:27::-;;;;:::o;41927:962::-;41980:4;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41997:21:::1;42021:8;42030:4;42021:14;;;;;;;;;;;;;;;;;;41997:38;;42066:4;:20;;;42050:12;:36;42046:75;;42103:7;;;42046:75;42131:16;42150:4;:12;;;;;;;;;;;;:22;;;42181:4;42150:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;42131:56;;42214:1;42202:8;:13;:37;;;;42238:1;42219:4;:15;;;:20;42202:37;42198:126;;;42279:12;42256:4;:20;;:35;;;;42306:7;;;;42198:126;42334:18;42355:49;42369:4;:20;;;42391:12;42355:13;:49::i;:::-;42334:70;;42415:18;42449:102;42521:15;;42449:49;42482:4;:15;;;42449:28;42464:12;;42449:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:102;;;;:::i;:::-;42415:136;;42562:4;;;;;;;;;;;:9;;;42572:7;;;;;;;;;;;42581:18;42596:2;42581:10;:14;;:18;;;;:::i;:::-;42562:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;42624:34;42639:18;42654:2;42639:10;:14;;:18;;;;:::i;:::-;42624:10;:14;;:34;;;;:::i;:::-;42611:47;;42669:4;;;;;;;;;;;:9;;;42687:16;;;;;;;;;;;42706:10;42669:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;42751:84;42790:34;42815:8;42790:20;42805:4;42790:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;42751:4;:20;;;:24;;:84;;;;:::i;:::-;42728:4;:20;;:107;;;;42869:12;42846:4;:20;;:35;;;;38655:1;;;;;41927:962:::0;;:::o;45116:418::-;1899:11;;;;;;;;;;;1891:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2038:5;2024:11;;:19;;;;;;;;;;;;;;;;;;45191:4:::1;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;45208:21:::2;45232:8;45241:4;45232:14;;;;;;;;;;;;;;;;;;45208:38;;45257:21;45281:8;:14;45290:4;45281:14;;;;;;;;;;;:26;45296:10;45281:26;;;;;;;;;;;;;;;45257:50;;45318:14;45335:4;:11;;;45318:28;;45371:1;45357:4;:11;;:15;;;;45401:1;45383:4;:15;;:19;;;;45413:54;45447:10;45460:6;45413:4;:12;;;;;;;;;;;;:25;;;;:54;;;;;:::i;:::-;45513:4;45501:10;45483:43;;;45519:6;45483:43;;;;;;;;;;;;;;;;;;38655:1;;;2056::::1;2218:4:::0;2204:11;;:18;;;;;;;;;;;;;;;;;;45116:418;:::o;41671:180::-;41716:14;41733:8;:15;;;;41716:32;;41764:11;41759:85;41787:6;41781:3;:12;41759:85;;;41817:15;41828:3;41817:10;:15::i;:::-;41795:5;;;;;41759:85;;;;41671:180;:::o;19849:148::-;19429:12;:10;:12::i;:::-;19419:22;;:6;;;;;;;;;;:22;;;19411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19956:1:::1;19919:40;;19940:6;::::0;::::1;;;;;;;;19919:40;;;;;;;;;;;;19987:1;19970:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;19849:148::o:0;38840:866::-;19429:12;:10;:12::i;:::-;19419:22;;:6;;;;;;;;;;:22;;;19411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39005:8:::1;38476:5;38449:32;;:13;:23;38463:8;38449:23;;;;;;;;;;;;;;;;;;;;;;;;;:32;;;38441:70;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;39065:5:::2;39048:13;:22;;;;39026:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39150:11;39146:61;;;39178:17;:15;:17::i;:::-;39146:61;39217:23;39271:10;;39256:12;:25;:53;;39299:10;;39256:53;;;39284:12;39256:53;39217:92;;39338:32;39358:11;39338:15;;:19;;:32;;;;:::i;:::-;39320:15;:50;;;;39407:4;39381:13;:23;39395:8;39381:23;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;39422:8;39450:237;;;;;;;;39487:8;39450:237;;;;;;39526:11;39450:237;;;;39573:15;39450:237;;;;39624:1;39450:237;;;;39658:13;39450:237;;;;::::0;39422:276:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38522:1;19489::::1;38840:866:::0;;;;:::o;45919:222::-;46005:10;;;;;;;;;;;45991:24;;:10;:24;;;45983:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46068:11;46055:10;;:24;;;;;;;;;;;;;;;;;;46121:11;46095:38;;46109:10;46095:38;;;;;;;;;;;;45919:222;:::o;45729:182::-;45802:7;;;;;;;;;;;45788:21;;:10;:21;;;45780:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45844:8;45834:7;;:18;;;;;;;;;;;;;;;;;;45894:8;45868:35;;45882:10;45868:35;;;;;;;;;;;;45729:182;:::o;19207:79::-;19245:7;19272:6;;;;;;;;;;;19265:13;;19207:79;:::o;40479:121::-;40551:7;40578:14;40586:5;40578:3;:7;;:14;;;;:::i;:::-;40571:21;;40479:121;;;;:::o;36942:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;40664:924::-;40791:7;40753:4;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40816:21:::1;40840:8;40849:4;40840:14;;;;;;;;;;;;;;;;;;40816:38;;40865:21;40889:8;:14;40898:4;40889:14;;;;;;;;;;;:21;40904:5;40889:21;;;;;;;;;;;;;;;40865:45;;40921:23;40947:4;:20;;;40921:46;;40978:16;40997:4;:12;;;;;;;;;;;;:22;;;41028:4;40997:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;40978:56;;41064:4;:20;;;41049:12;:35;:52;;;;;41100:1;41088:8;:13;;41049:52;41045:455;;;41118:18;41156:49;41170:4;:20;;;41192:12;41156:13;:49::i;:::-;41118:87;;41220:18;41258:110;41334:15;;41258:49;41291:4;:15;;;41258:28;41273:12;;41258:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:110;;;;:::i;:::-;41220:148;;41401:87;41439:34;41464:8;41439:20;41454:4;41439:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;41401:15;:19;;:87;;;;:::i;:::-;41383:105;;41045:455;;;41517:63;41564:4;:15;;;41517:42;41554:4;41517:32;41533:15;41517:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:42;;;;:::i;:::-;:46;;:63;;;;:::i;:::-;41510:70;;;;;;40664:924:::0;;;;;:::o;37050:44::-;;;;;;;;;;;;;;;;;;;;;;:::o;36669:22::-;;;;;;;;;;;;;:::o;39818:585::-;19429:12;:10;:12::i;:::-;19419:22;;:6;;;;;;;;;;:22;;;19411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39978:4:::1;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;40034:5:::2;40017:13;:22;;;;39995:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40119:11;40115:61;;;40147:17;:15;:17::i;:::-;40115:61;40204:87;40269:11;40204:46;40224:8;40233:4;40224:14;;;;;;;;;;;;;;;;;;:25;;;40204:15;;:19;;:46;;;;:::i;:::-;:50;;:87;;;;:::i;:::-;40186:15;:105;;;;40330:11;40302:8;40311:4;40302:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;40382:13;40352:8;40361:4;40352:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;19489:1:::1;39818:585:::0;;;;:::o;42958:1215::-;1899:11;;;;;;;;;;;1891:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2038:5;2024:11;;:19;;;;;;;;;;;;;;;;;;43040:4:::1;38600:12;:10;:12::i;:::-;38593:4;:19;38585:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;43057:21:::2;43081:8;43090:4;43081:14;;;;;;;;;;;;;;;;;;43057:38;;43106:21;43130:8;:14;43139:4;43130:14;;;;;;;;;;;:26;43145:10;43130:26;;;;;;;;;;;;;;;43106:50;;43167:16;43178:4;43167:10;:16::i;:::-;43212:1;43198:4;:11;;;:15;43194:294;;;43230:15;43265:108;43339:4;:15;;;43265:47;43307:4;43265:37;43281:4;:20;;;43265:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:108;;;;:::i;:::-;43230:143;;43402:1;43392:7;:11;43388:89;;;43424:37;43441:10;43453:7;43424:16;:37::i;:::-;43388:89;43194:294;;43512:1;43502:7;:11;43498:542;;;43530:140;43586:10;43624:4;43648:7;43530:4;:12;;;;;;;;;;;;:29;;;;:140;;;;;;:::i;:::-;43709:1;43689:4;:17;;;;;;;;;;;;:21;;;43685:344;;;43731:18;43752:41;43787:5;43752:30;43764:4;:17;;;;;;;;;;;;43752:30;;:7;:11;;:30;;;;:::i;:::-;:34;;:41;;;;:::i;:::-;43731:62;;43812:49;43838:10;;;;;;;;;;;43850;43812:4;:12;;;;;;;;;;;;:25;;;;:49;;;;;:::i;:::-;43894:40;43923:10;43894:24;43910:7;43894:4;:11;;;:15;;:24;;;;:::i;:::-;:28;;:40;;;;:::i;:::-;43880:4;:11;;:54;;;;43685:344;;;;43989:24;44005:7;43989:4;:11;;;:15;;:24;;;;:::i;:::-;43975:4;:11;;:38;;;;43685:344;43498:542;44068:47;44110:4;44068:37;44084:4;:20;;;44068:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;44050:4;:15;;:65;;;;44151:4;44139:10;44131:34;;;44157:7;44131:34;;;;;;;;;;;;;;;;;;38655:1;;2056::::1;2218:4:::0;2204:11;;:18;;;;;;;;;;;;;;;;;;42958:1215;;:::o;20152:244::-;19429:12;:10;:12::i;:::-;19419:22;;:6;;;;;;;;;;:22;;;19411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20261:1:::1;20241:22;;:8;:22;;;;20233:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20351:8;20322:38;;20343:6;::::0;::::1;;;;;;;;20322:38;;;;;;;;;;;;20380:8;20371:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;20152:244:::0;:::o;17763:106::-;17816:15;17851:10;17844:17;;17763:106;:::o;7279:471::-;7337:7;7587:1;7582;:6;7578:47;;;7612:1;7605:8;;;;7578:47;7637:9;7653:1;7649;:5;7637:17;;7682:1;7677;7673;:5;;;;;;:10;7665:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7741:1;7734:8;;;7279:471;;;;;:::o;8218:132::-;8276:7;8303:39;8307:1;8310;8303:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;8296:46;;8218:132;;;;:::o;6405:136::-;6463:7;6490:43;6494:1;6497;6490:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;6483:50;;6405:136;;;;:::o;45542:131::-;45618:16;;;;;;;;;;;:33;;;45652:3;45657:7;45618:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45542:131;;:::o;13793:177::-;13876:86;13896:5;13926:23;;;13951:2;13955:5;13903:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13876:19;:86::i;:::-;13793:177;;;:::o;5949:181::-;6007:7;6027:9;6043:1;6039;:5;6027:17;;6068:1;6063;:6;;6055:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6121:1;6114:8;;;5949:181;;;;:::o;13978:205::-;14079:96;14099:5;14129:27;;;14158:4;14164:2;14168:5;14106:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14079:19;:96::i;:::-;13978:205;;;;:::o;8838:345::-;8924:7;9023:1;9019;:5;9026:12;9011:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9050:9;9066:1;9062;:5;;;;;;9050:17;;9174:1;9167:8;;;8838:345;;;;;:::o;6836:192::-;6922:7;6955:1;6950;:6;;6958:12;6942:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6982:9;6998:1;6994;:5;6982:17;;7019:1;7012:8;;;6836:192;;;;;:::o;15837:1115::-;16442:27;16450:5;16442:25;;;:27::i;:::-;16434:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16579:12;16593:23;16628:5;16620:19;;16640:4;16620:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16578:67;;;;16664:7;16656:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16745:1;16725:10;:17;:21;16721:224;;;16867:10;16856:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16848:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16721:224;15837:1115;;;;:::o;11182:619::-;11242:4;11504:16;11531:19;11553:66;11531:88;;;;11722:7;11710:20;11698:32;;11762:11;11750:8;:23;;:42;;;;;11789:3;11777:15;;:8;:15;;11750:42;11742:51;;;;11182:619;;;:::o

Swarm Source

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