Contract 0xb8b0cbee15819473cbb0715306faa2d3758cbf67

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa9d48919f94aef2ddb0958ba8f6407b355415002bb19ad115755ceefd23781ce0x6080604022819722020-11-16 9:32:37306 days 19 hrs agoPancake Bunny: Deployer IN  Contract Creation0 BNB0.04745524
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BunnyMinter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 18: BunnyMinter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "./BEP20.sol";
import "./SafeBEP20.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
import "./IBunnyMinter.sol";
import "./IStakingRewards.sol";
import "./PancakeSwap.sol";
import "./IStrategyHelper.sol";

contract BunnyMinter is IBunnyMinter, Ownable, PancakeSwap {
    using SafeMath for uint;
    using SafeBEP20 for IBEP20;

    BEP20 private constant bunny = BEP20(0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51);
    address public constant dev = 0xe87f02606911223C2Cf200398FFAF353f60801F7;
    IBEP20 private constant WBNB = IBEP20(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c);

    uint public WITHDRAWAL_FEE_FREE_PERIOD = 3 days;
    uint public WITHDRAWAL_FEE = 50;
    uint public constant FEE_MAX = 10000;

    uint public PERFORMANCE_FEE = 3000; // 30%

    uint public bunnyPerProfitBNB;
    uint public bunnyPerBunnyBNBFlip;

    address public constant bunnyPool = 0xB24633bAcc60bB1F907633C4c507F6E6d5BC1f44;
    IStrategyHelper public helper = IStrategyHelper(0xA84c09C1a2cF4918CaEf625682B429398b97A1a0);

    mapping (address => bool) private _minters;

    modifier onlyMinter {
        require(isMinter(msg.sender) == true, "not minter");
        _;
    }

    constructor() public {
        bunnyPerProfitBNB = 10e18;
        bunnyPerBunnyBNBFlip = 6e18;
        bunny.approve(bunnyPool, uint(~0));
    }

    function transferBunnyOwner(address _owner) external onlyOwner {
        Ownable(address(bunny)).transferOwnership(_owner);
    }

    function setWithdrawalFee(uint _fee) external onlyOwner {
        require(_fee < 500, "wrong fee");   // less 5%
        WITHDRAWAL_FEE = _fee;
    }

    function setPerformanceFee(uint _fee) external onlyOwner {
        require(_fee < 5000, "wrong fee");
        PERFORMANCE_FEE = _fee;
    }

    function setWithdrawalFeeFreePeriod(uint _period) external onlyOwner {
        WITHDRAWAL_FEE_FREE_PERIOD = _period;
    }

    function setMinter(address minter, bool canMint) external onlyOwner {
        if (canMint) {
            _minters[minter] = canMint;
        } else {
            delete _minters[minter];
        }
    }

    function setBunnyPerProfitBNB(uint _ratio) external onlyOwner {
        bunnyPerProfitBNB = _ratio;
    }

    function setBunnyPerBunnyBNBFlip(uint _bunnyPerBunnyBNBFlip) external onlyOwner {
        bunnyPerBunnyBNBFlip = _bunnyPerBunnyBNBFlip;
    }

    function setHelper(IStrategyHelper _helper) external onlyOwner {
        require(address(_helper) != address(0), "zero address");
        helper = _helper;
    }

    function isMinter(address account) override view public returns(bool) {
        if (bunny.getOwner() != address(this)) {
            return false;
        }

        if (block.timestamp < 1605585600) { // 12:00 SGT 17th November 2020
            return false;
        }
        return _minters[account];
    }

    function amountBunnyToMint(uint bnbProfit) override view public returns(uint) {
        return bnbProfit.mul(bunnyPerProfitBNB).div(1e18);
    }

    function amountBunnyToMintForBunnyBNB(uint amount, uint duration) override view public returns(uint) {
        return amount.mul(bunnyPerBunnyBNBFlip).mul(duration).div(365 days).div(1e18);
    }

    function withdrawalFee(uint amount, uint depositedAt) override view external returns(uint) {
        if (depositedAt.add(WITHDRAWAL_FEE_FREE_PERIOD) > block.timestamp) {
            return amount.mul(WITHDRAWAL_FEE).div(FEE_MAX);
        }
        return 0;
    }

    function performanceFee(uint profit) override view public returns(uint) {
        return profit.mul(PERFORMANCE_FEE).div(FEE_MAX);
    }

    function mintFor(address flip, uint _withdrawalFee, uint _performanceFee, address to, uint) override external onlyMinter {
        uint feeSum = _performanceFee.add(_withdrawalFee);
        IBEP20(flip).safeTransferFrom(msg.sender, address(this), feeSum);

        uint bunnyBNBAmount = tokenToBunnyBNB(flip, IBEP20(flip).balanceOf(address(this)));
        address flipToken = bunnyBNBFlipToken();
        IBEP20(flipToken).safeTransfer(bunnyPool, bunnyBNBAmount);
        IStakingRewards(bunnyPool).notifyRewardAmount(bunnyBNBAmount);

        uint contribution = helper.tvlInBNB(flipToken, bunnyBNBAmount).mul(_performanceFee).div(feeSum);
        uint mintBunny = amountBunnyToMint(contribution);
        mint(mintBunny, to);
    }

    function mintForBunnyBNB(uint amount, uint duration, address to) override external onlyMinter {
        uint mintBunny = amountBunnyToMintForBunnyBNB(amount, duration);
        if (mintBunny == 0) return;
        mint(mintBunny, to);
    }

    function mint(uint amount, address to) private {
        bunny.mint(amount);
        bunny.transfer(to, amount);

        uint bunnyForDev = amount.mul(15).div(100);
        bunny.mint(bunnyForDev);
        IStakingRewards(bunnyPool).stakeTo(bunnyForDev, dev);
    }
}

File 2 of 18: Address.sol
// SPDX-License-Identifier: MIT

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

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

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

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

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

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 3 of 18: BEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

import './Ownable.sol';
import './Context.sol';
import './IBEP20.sol';
import './SafeMath.sol';
import './Address.sol';

/**
 * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: 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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public 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 {BEP20-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 returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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 {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _balances[sender] = _balances[sender].sub(amount, 'BEP20: 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 {
        require(account != address(0), 'BEP20: mint to the zero address');

        _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 {
        require(account != address(0), 'BEP20: burn from the zero address');

        _balances[account] = _balances[account].sub(amount, 'BEP20: 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 {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')
        );
    }
}

File 4 of 18: Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.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 returns (address payable) {
        return msg.sender;
    }

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

File 5 of 18: IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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

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

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 6 of 18: IBunnyMinter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IBunnyMinter {
    function isMinter(address) view external returns(bool);
    function amountBunnyToMint(uint bnbProfit) view external returns(uint);
    function amountBunnyToMintForBunnyBNB(uint amount, uint duration) view external returns(uint);
    function withdrawalFee(uint amount, uint depositedAt) view external returns(uint);
    function performanceFee(uint profit) view external returns(uint);
    function mintFor(address flip, uint _withdrawalFee, uint _performanceFee, address to, uint depositedAt) external;
    function mintForBunnyBNB(uint amount, uint duration, address to) external;
}

File 7 of 18: IPancakeFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IPancakeFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 8 of 18: IPancakePair.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

interface IPancakePair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 9 of 18: IPancakeRouter01.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

interface IPancakeRouter01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
    external
    payable
    returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
    external
    returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
    external
    returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
    external
    payable
    returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 10 of 18: IPancakeRouter02.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

import './IPancakeRouter01.sol';

interface IPancakeRouter02 is IPancakeRouter01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 11 of 18: IStakingRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IStakingRewards {
    function stakeTo(uint256 amount, address _to) external;
    function notifyRewardAmount(uint256 reward) external;
}

File 12 of 18: IStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

/*
  ___                      _   _
 | _ )_  _ _ _  _ _ _  _  | | | |
 | _ \ || | ' \| ' \ || | |_| |_|
 |___/\_,_|_||_|_||_\_, | (_) (_)
                    |__/

*
* MIT License
* ===========
*
* Copyright (c) 2020 BunnyFinance
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

struct Profit {
    uint usd;
    uint bunny;
    uint bnb;
}

struct APY {
    uint usd;
    uint bunny;
    uint bnb;
}

struct UserInfo {
    uint balance;
    uint principal;
    uint available;
    Profit profit;
    uint poolTVL;
    APY poolAPY;
}

interface IStrategy {
    function deposit(uint _amount) external;
    function depositAll() external;
    function withdraw(uint256 _amount) external;    // BUNNY STAKING POOL ONLY
    function withdrawAll() external;
    function getReward() external;                  // BUNNY STAKING POOL ONLY
    function harvest() external;

    function balance() external view returns (uint);
    function balanceOf(address account) external view returns(uint);
    function principalOf(address account) external view returns (uint);
    function withdrawableBalanceOf(address account) external view returns (uint);   // BUNNY STAKING POOL ONLY
    function profitOf(address account) external view returns (uint _usd, uint _bunny, uint _bnb);
    function tvl() external view returns (uint);    // in USD
    function apy() external view returns(uint _usd, uint _bunny, uint _bnb);

    function info(address account) external view returns(UserInfo memory);
}

File 13 of 18: IStrategyHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

/*
  ___                      _   _
 | _ )_  _ _ _  _ _ _  _  | | | |
 | _ \ || | ' \| ' \ || | |_| |_|
 |___/\_,_|_||_|_||_\_, | (_) (_)
                    |__/

*
* MIT License
* ===========
*
* Copyright (c) 2020 BunnyFinance
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

import "./IBunnyMinter.sol";

interface IStrategyHelper {
    function tokenPriceInBNB(address _token) view external returns(uint);
    function cakePriceInBNB() view external returns(uint);
    function bnbPriceInUSD() view external returns(uint);
    function profitOf(IBunnyMinter minter, address _flip, uint amount) external view returns (uint _usd, uint _bunny, uint _bnb);

    function tvl(address _flip, uint amount) external view returns (uint);    // in USD
    function tvlInBNB(address _flip, uint amount) external view returns (uint);    // in BNB
    function apy(IBunnyMinter minter, uint pid) external view returns(uint _usd, uint _bunny, uint _bnb);
}

File 14 of 18: Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

File 15 of 18: Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

import './Context.sol';

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 16 of 18: PancakeSwap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "./SafeMath.sol";
import "./IBEP20.sol";
import "./SafeBEP20.sol";

import "./IPancakeRouter02.sol";
import "./IPancakePair.sol";
import "./IPancakeFactory.sol";

abstract contract PancakeSwap {
    using SafeMath for uint;
    using SafeBEP20 for IBEP20;

    IPancakeRouter02 private constant ROUTER = IPancakeRouter02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
    IPancakeFactory private constant factory = IPancakeFactory(0xBCfCcbde45cE874adCB698cC183deBcF17952812);

    address internal constant cake = 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82;
    address private constant _bunny = 0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51;
    address private constant _wbnb = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;

    function bunnyBNBFlipToken() internal view returns(address) {
        return factory.getPair(_bunny, _wbnb);
    }

    function tokenToBunnyBNB(address token, uint amount) internal returns(uint flipAmount) {
        if (token == cake) {
            flipAmount = _cakeToBunnyBNBFlip(amount);
        } else {
            // flip
            flipAmount = _flipToBunnyBNBFlip(token, amount);
        }
    }

    function _cakeToBunnyBNBFlip(uint amount) private returns(uint flipAmount) {
        swapToken(cake, amount.div(2), _bunny);
        swapToken(cake, amount.sub(amount.div(2)), _wbnb);

        flipAmount = generateFlipToken();
    }

    function _flipToBunnyBNBFlip(address token, uint amount) private returns(uint flipAmount) {
        IPancakePair pair = IPancakePair(token);
        address _token0 = pair.token0();
        address _token1 = pair.token1();
        IBEP20(token).safeApprove(address(ROUTER), 0);
        IBEP20(token).safeApprove(address(ROUTER), amount);
        ROUTER.removeLiquidity(_token0, _token1, amount, 0, 0, address(this), block.timestamp);
        if (_token0 == _wbnb) {
            swapToken(_token1, IBEP20(_token1).balanceOf(address(this)), _bunny);
            flipAmount = generateFlipToken();
        } else if (_token1 == _wbnb) {
            swapToken(_token0, IBEP20(_token0).balanceOf(address(this)), _bunny);
            flipAmount = generateFlipToken();
        } else {
            swapToken(_token0, IBEP20(_token0).balanceOf(address(this)), _bunny);
            swapToken(_token1, IBEP20(_token1).balanceOf(address(this)), _wbnb);
            flipAmount = generateFlipToken();
        }
    }

    function swapToken(address _from, uint _amount, address _to) private {
        if (_from == _to) return;

        address[] memory path;
        if (_from == _wbnb || _to == _wbnb) {
            path = new address[](2);
            path[0] = _from;
            path[1] = _to;
        } else {
            path = new address[](3);
            path[0] = _from;
            path[1] = _wbnb;
            path[2] = _to;
        }

        IBEP20(_from).safeApprove(address(ROUTER), 0);
        IBEP20(_from).safeApprove(address(ROUTER), _amount);
        ROUTER.swapExactTokensForTokens(_amount, 0, path, address(this), block.timestamp);
    }

    function generateFlipToken() private returns(uint liquidity) {
        uint amountADesired = IBEP20(_bunny).balanceOf(address(this));
        uint amountBDesired = IBEP20(_wbnb).balanceOf(address(this));

        IBEP20(_bunny).safeApprove(address(ROUTER), 0);
        IBEP20(_bunny).safeApprove(address(ROUTER), amountADesired);
        IBEP20(_wbnb).safeApprove(address(ROUTER), 0);
        IBEP20(_wbnb).safeApprove(address(ROUTER), amountBDesired);

        (,,liquidity) = ROUTER.addLiquidity(_bunny, _wbnb, amountADesired, amountBDesired, 0, 0, address(this), block.timestamp);

        // send dust
        IBEP20(_bunny).transfer(msg.sender, IBEP20(_bunny).balanceOf(address(this)));
        IBEP20(_wbnb).transfer(msg.sender, IBEP20(_wbnb).balanceOf(address(this)));
    }
}

File 17 of 18: SafeBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './IBEP20.sol';
import './SafeMath.sol';
import './Address.sol';

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: 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(IBEP20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}

File 18 of 18: SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.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) {
        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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"FEE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_FEE_FREE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bnbProfit","type":"uint256"}],"name":"amountBunnyToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"amountBunnyToMintForBunnyBNB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bunnyPerBunnyBNBFlip","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bunnyPerProfitBNB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bunnyPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"helper","outputs":[{"internalType":"contract IStrategyHelper","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"flip","type":"address"},{"internalType":"uint256","name":"_withdrawalFee","type":"uint256"},{"internalType":"uint256","name":"_performanceFee","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintForBunnyBNB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"profit","type":"uint256"}],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bunnyPerBunnyBNBFlip","type":"uint256"}],"name":"setBunnyPerBunnyBNBFlip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratio","type":"uint256"}],"name":"setBunnyPerProfitBNB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStrategyHelper","name":"_helper","type":"address"}],"name":"setHelper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bool","name":"canMint","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setWithdrawalFeeFreePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferBunnyOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"depositedAt","type":"uint256"}],"name":"withdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526203f4806001556032600255610bb8600355600680546001600160a01b03191673a84c09c1a2cf4918caef625682b429398b97a1a01790553480156200004957600080fd5b5060006200005662000160565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350678ac7230489e8000060049081556753444835ec5800006005556040805163095ea7b360e01b815273b24633bacc60bb1f907633c4c507f6e6d5bc1f449281019290925260001960248301525173c9849e6fdb743d08faee3e34dd2d1bc69ea11a519163095ea7b39160448083019260209291908290030181600087803b1580156200012b57600080fd5b505af115801562000140573d6000803e3d6000fd5b505050506040513d60208110156200015757600080fd5b50620001649050565b3390565b6126da80620001746000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063a5d33ed5116100f9578063d2a8f88911610097578063f2fde38b11610071578063f2fde38b1461043c578063f5ac16e014610462578063f96150bf14610485578063fb9feff61461048d576101a9565b8063d2a8f889146103dc578063e93f56651461040e578063edcda40614610416576101a9565b8063c2624e1e116100d3578063c2624e1e1461036c578063c5a6a0c814610374578063cac236f714610391578063cf456ae7146103ae576101a9565b8063a5d33ed51461030d578063aa271e1a14610315578063ac1e50251461034f576101a9565b806370897b23116101665780638e8570f9116101405780638e8570f9146102ba57806391cca3db146102d757806392d33ce4146102df578063986ccc7f146102e7576101a9565b806370897b231461028d578063715018a6146102aa5780638da5cb5b146102b2576101a9565b80631fbc52a3146101ae5780632d409d33146101cd5780634ae2859c146101fc57806363b0e66a1461021f5780636ceb88b9146102435780636d499b011461024b575b600080fd5b6101cb600480360360208110156101c457600080fd5b5035610495565b005b6101ea600480360360208110156101e357600080fd5b50356104f2565b60408051918252519081900360200190f35b6101ea6004803603604081101561021257600080fd5b508035906020013561051d565b610227610567565b604080516001600160a01b039092168252519081900360200190f35b6101ea610576565b6101cb600480360360a081101561026157600080fd5b506001600160a01b0381358116916020810135916040820135916060810135909116906080013561057c565b6101cb600480360360208110156102a357600080fd5b50356107d0565b6101cb61086f565b610227610911565b6101ea600480360360208110156102d057600080fd5b5035610920565b610227610943565b61022761095b565b6101cb600480360360208110156102fd57600080fd5b50356001600160a01b0316610973565b6101ea610a37565b61033b6004803603602081101561032b57600080fd5b50356001600160a01b0316610a3d565b604080519115158252519081900360200190f35b6101cb6004803603602081101561036557600080fd5b5035610b05565b6101ea610ba4565b6101cb6004803603602081101561038a57600080fd5b5035610baa565b6101cb600480360360208110156103a757600080fd5b5035610c07565b6101cb600480360360408110156103c457600080fd5b506001600160a01b0381351690602001351515610c64565b6101cb600480360360608110156103f257600080fd5b50803590602081013590604001356001600160a01b0316610d10565b6101ea610d86565b6101cb6004803603602081101561042c57600080fd5b50356001600160a01b0316610d8c565b6101cb6004803603602081101561045257600080fd5b50356001600160a01b0316610e54565b6101ea6004803603604081101561047857600080fd5b5080359060200135610eb8565b6101ea610ef4565b6101ea610efa565b61049d610f00565b6000546001600160a01b039081169116146104ed576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b600555565b600061051561271061050f60035485610f0490919063ffffffff16565b90610f5d565b90505b919050565b60004261053560015484610f9f90919063ffffffff16565b111561055d5761055661271061050f60025486610f0490919063ffffffff16565b9050610561565b5060005b92915050565b6006546001600160a01b031681565b60055481565b61058533610a3d565b15156001146105c8576040805162461bcd60e51b815260206004820152600a6024820152693737ba1036b4b73a32b960b11b604482015290519081900360640190fd5b60006105d48486610f9f565b90506105eb6001600160a01b038716333084610ff9565b600061066f87886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561063e57600080fd5b505afa158015610652573d6000803e3d6000fd5b505050506040513d602081101561066857600080fd5b5051611053565b9050600061067b61108d565b90506106a56001600160a01b03821673b24633bacc60bb1f907633c4c507f6e6d5bc1f4484611135565b73b24633bacc60bb1f907633c4c507f6e6d5bc1f446001600160a01b0316633c6b16ab836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156106ff57600080fd5b505af1158015610713573d6000803e3d6000fd5b505060065460408051632fd6d7f760e01b81526001600160a01b038681166004830152602482018890529151600095506107ab9450889361050f938d93911691632fd6d7f791604480820192602092909190829003018186803b15801561077957600080fd5b505afa15801561078d573d6000803e3d6000fd5b505050506040513d60208110156107a357600080fd5b505190610f04565b905060006107b882610920565b90506107c48188611187565b50505050505050505050565b6107d8610f00565b6000546001600160a01b03908116911614610828576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b611388811061086a576040805162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b604482015290519081900360640190fd5b600355565b610877610f00565b6000546001600160a01b039081169116146108c7576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000610515670de0b6b3a764000061050f60045485610f0490919063ffffffff16565b73e87f02606911223c2cf200398ffaf353f60801f781565b73b24633bacc60bb1f907633c4c507f6e6d5bc1f4481565b61097b610f00565b6000546001600160a01b039081169116146109cb576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b6001600160a01b038116610a15576040805162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60025481565b6000306001600160a01b031660008051602061260e8339815191526001600160a01b031663893d20e86040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9057600080fd5b505afa158015610aa4573d6000803e3d6000fd5b505050506040513d6020811015610aba57600080fd5b50516001600160a01b031614610ad257506000610518565b635fb34ac0421015610ae657506000610518565b506001600160a01b031660009081526007602052604090205460ff1690565b610b0d610f00565b6000546001600160a01b03908116911614610b5d576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b6101f48110610b9f576040805162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b604482015290519081900360640190fd5b600255565b61271081565b610bb2610f00565b6000546001600160a01b03908116911614610c02576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b600455565b610c0f610f00565b6000546001600160a01b03908116911614610c5f576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b600155565b610c6c610f00565b6000546001600160a01b03908116911614610cbc576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b8015610ceb576001600160a01b0382166000908152600760205260409020805460ff1916821515179055610d0c565b6001600160a01b0382166000908152600760205260409020805460ff191690555b5050565b610d1933610a3d565b1515600114610d5c576040805162461bcd60e51b815260206004820152600a6024820152693737ba1036b4b73a32b960b11b604482015290519081900360640190fd5b6000610d688484610eb8565b905080610d755750610d81565b610d7f8183611187565b505b505050565b60035481565b610d94610f00565b6000546001600160a01b03908116911614610de4576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b6040805163f2fde38b60e01b81526001600160a01b0383166004820152905160008051602061260e8339815191529163f2fde38b91602480830192600092919082900301818387803b158015610e3957600080fd5b505af1158015610e4d573d6000803e3d6000fd5b5050505050565b610e5c610f00565b6000546001600160a01b03908116911614610eac576040805162461bcd60e51b81526020600482018190526024820152600080516020612685833981519152604482015290519081900360640190fd5b610eb5816113af565b50565b6000610eed670de0b6b3a764000061050f6301e1338061050f86610ee76005548a610f0490919063ffffffff16565b90610f04565b9392505050565b60045481565b60015481565b3390565b600082610f1357506000610561565b82820282848281610f2057fe5b0414610eed5760405162461bcd60e51b815260040180806020018281038252602181526020018061262e6021913960400191505060405180910390fd5b6000610eed83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061144f565b600082820183811015610eed576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610d7f9085906114f1565b60006001600160a01b038316730e09fabb73bd3ade0a17ecc321fd13a19e81ce82141561108357610556826115a2565b610eed8383611624565b6040805163e6a4390560e01b815260008051602061260e83398151915260048201526000805160206125c88339815191526024820152905160009173bcfccbde45ce874adcb698cc183debcf179528129163e6a4390591604480820192602092909190829003018186803b15801561110457600080fd5b505afa158015611118573d6000803e3d6000fd5b505050506040513d602081101561112e57600080fd5b5051905090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d819084906114f1565b60008051602061260e8339815191526001600160a01b031663a0712d68836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b505050506040513d602081101561120557600080fd5b50506040805163a9059cbb60e01b81526001600160a01b038316600482015260248101849052905160008051602061260e8339815191529163a9059cbb9160448083019260209291908290030181600087803b15801561126457600080fd5b505af1158015611278573d6000803e3d6000fd5b505050506040513d602081101561128e57600080fd5b50600090506112a3606461050f85600f610f04565b905060008051602061260e8339815191526001600160a01b031663a0712d68826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156112f957600080fd5b505af115801561130d573d6000803e3d6000fd5b505050506040513d602081101561132357600080fd5b505060408051631534e6cd60e21b81526004810183905273e87f02606911223c2cf200398ffaf353f60801f76024820152905173b24633bacc60bb1f907633c4c507f6e6d5bc1f44916354d39b3491604480830192600092919082900301818387803b15801561139257600080fd5b505af11580156113a6573d6000803e3d6000fd5b50505050505050565b6001600160a01b0381166113f45760405162461bcd60e51b81526004018080602001828103825260268152602001806125e86026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081836114db5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816114e757fe5b0495945050505050565b6060611546826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a2d9092919063ffffffff16565b805190915015610d815780806020019051602081101561156557600080fd5b5051610d815760405162461bcd60e51b815260040180806020018281038252602a81526020018061259e602a913960400191505060405180910390fd5b60006115db730e09fabb73bd3ade0a17ecc321fd13a19e81ce826115c7846002610f5d565b60008051602061260e833981519152611a44565b61161c730e09fabb73bd3ade0a17ecc321fd13a19e81ce82611608611601856002610f5d565b8590611dc3565b6000805160206125c8833981519152611a44565b610515611e05565b6000808390506000816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561166557600080fd5b505afa158015611679573d6000803e3d6000fd5b505050506040513d602081101561168f57600080fd5b50516040805163d21220a760e01b815290519192506000916001600160a01b0385169163d21220a7916004808301926020929190829003018186803b1580156116d757600080fd5b505afa1580156116eb573d6000803e3d6000fd5b505050506040513d602081101561170157600080fd5b5051905061172e6001600160a01b0387167305ff2b0db69458a0750badebc4f9e13add608c7f600061228a565b6117566001600160a01b0387167305ff2b0db69458a0750badebc4f9e13add608c7f8761228a565b60408051635d5155ef60e11b81526001600160a01b0384811660048301528316602482015260448101879052600060648201819052608482018190523060a48301524260c483015282517305ff2b0db69458a0750badebc4f9e13add608c7f9363baa2abde9360e480820194929392918390030190829087803b1580156117dc57600080fd5b505af11580156117f0573d6000803e3d6000fd5b505050506040513d604081101561180657600080fd5b50506001600160a01b0382166000805160206125c883398151915214156118c7576118b881826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561187857600080fd5b505afa15801561188c573d6000803e3d6000fd5b505050506040513d60208110156118a257600080fd5b505160008051602061260e833981519152611a44565b6118c0611e05565b9350611a24565b6001600160a01b0381166000805160206125c88339815191521415611937576118b882836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561187857600080fd5b61198882836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561187857600080fd5b611a1981826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156119d957600080fd5b505afa1580156119ed573d6000803e3d6000fd5b505050506040513d6020811015611a0357600080fd5b50516000805160206125c8833981519152611a44565b611a21611e05565b93505b50505092915050565b6060611a3c848460008561239d565b949350505050565b806001600160a01b0316836001600160a01b03161415611a6357610d81565b60606001600160a01b0384166000805160206125c88339815191521480611aa057506001600160a01b0382166000805160206125c8833981519152145b15611b265760408051600280825260608201835290916020830190803683370190505090508381600081518110611ad357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110611b0157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050611be0565b6040805160038082526080820190925290602082016060803683370190505090508381600081518110611b5557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000805160206125c883398151915281600181518110611b9157fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600281518110611bbf57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b611c096001600160a01b0385167305ff2b0db69458a0750badebc4f9e13add608c7f600061228a565b611c316001600160a01b0385167305ff2b0db69458a0750badebc4f9e13add608c7f8561228a565b7305ff2b0db69458a0750badebc4f9e13add608c7f6001600160a01b03166338ed17398460008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015611cca578181015183820152602001611cb2565b505050509050019650505050505050600060405180830381600087803b158015611cf357600080fd5b505af1158015611d07573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611d3057600080fd5b8101908080516040519392919084640100000000821115611d5057600080fd5b908301906020820185811115611d6557600080fd5b8251866020820283011164010000000082111715611d8257600080fd5b82525081516020918201928201910280838360005b83811015611daf578181015183820152602001611d97565b505050509050016040525050505050505050565b6000610eed83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061250a565b604080516370a0823160e01b81523060048201529051600091829160008051602061260e833981519152916370a08231916024808301926020929190829003018186803b158015611e5557600080fd5b505afa158015611e69573d6000803e3d6000fd5b505050506040513d6020811015611e7f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916000805160206125c8833981519152916370a08231916024808301926020929190829003018186803b158015611ed257600080fd5b505afa158015611ee6573d6000803e3d6000fd5b505050506040513d6020811015611efc57600080fd5b50519050611f2e60008051602061260e8339815191527305ff2b0db69458a0750badebc4f9e13add608c7f600061228a565b611f5b60008051602061260e8339815191527305ff2b0db69458a0750badebc4f9e13add608c7f8461228a565b611f896000805160206125c88339815191527305ff2b0db69458a0750badebc4f9e13add608c7f600061228a565b611fb66000805160206125c88339815191527305ff2b0db69458a0750badebc4f9e13add608c7f8361228a565b6040805162e8e33760e81b815260008051602061260e83398151915260048201526000805160206125c88339815191526024820152604481018490526064810183905260006084820181905260a482018190523060c48301524260e483015291517305ff2b0db69458a0750badebc4f9e13add608c7f9263e8e337009261010480820193606093909283900390910190829087803b15801561205757600080fd5b505af115801561206b573d6000803e3d6000fd5b505050506040513d606081101561208157600080fd5b5060409081015181516370a0823160e01b8152306004820152915190945060008051602061260e8339815191529163a9059cbb91339184916370a0823191602480820192602092909190829003018186803b1580156120df57600080fd5b505afa1580156120f3573d6000803e3d6000fd5b505050506040513d602081101561210957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561215a57600080fd5b505af115801561216e573d6000803e3d6000fd5b505050506040513d602081101561218457600080fd5b5050604080516370a0823160e01b815230600482015290516000805160206125c88339815191529163a9059cbb91339184916370a0823191602480820192602092909190829003018186803b1580156121dc57600080fd5b505afa1580156121f0573d6000803e3d6000fd5b505050506040513d602081101561220657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561225757600080fd5b505af115801561226b573d6000803e3d6000fd5b505050506040513d602081101561228157600080fd5b50929392505050565b801580612310575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156122e257600080fd5b505afa1580156122f6573d6000803e3d6000fd5b505050506040513d602081101561230c57600080fd5b5051155b61234b5760405162461bcd60e51b815260040180806020018281038252603681526020018061264f6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d819084906114f1565b60606123a885612564565b6123f9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106124385780518252601f199092019160209182019101612419565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461249a576040519150601f19603f3d011682016040523d82523d6000602084013e61249f565b606091505b509150915081156124b3579150611a3c9050565b8051156124c35780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114a0578181015183820152602001611488565b6000818484111561255c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156114a0578181015183820152602001611488565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611a3c57505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f742073756363656564000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000c9849e6fdb743d08faee3e34dd2d1bc69ea11a51536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207e962532b8ebc9a784d946e3837792881d3658acd31aa38c6740f5c46c8625d264736f6c634300060c0033

Deployed ByteCode Sourcemap

277:4646:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2279:141;;;;;;;;;;;;;;;;-1:-1:-1;2279:141:2;;:::i;:::-;;3528:136;;;;;;;;;;;;;;;;-1:-1:-1;3528:136:2;;:::i;:::-;;;;;;;;;;;;;;;;3259:263;;;;;;;;;;;;;;;;-1:-1:-1;3259:263:2;;;;;;;:::i;995:91::-;;;:::i;:::-;;;;-1:-1:-1;;;;;995:91:2;;;;;;;;;;;;;;872:32;;;:::i;3670:734::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3670:734:2;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1687:139::-;;;;;;;;;;;;;;;;-1:-1:-1;1687:139:2;;:::i;1698:137:14:-;;;:::i;1075:77::-;;;:::i;2908:144:2:-;;;;;;;;;;;;;;;;-1:-1:-1;2908:144:2;;:::i;490:72::-;;;:::i;911:78::-;;;:::i;2426:161::-;;;;;;;;;;;;;;;;-1:-1:-1;2426:161:2;-1:-1:-1;;;;;2426:161:2;;:::i;709:31::-;;;:::i;2593:309::-;;;;;;;;;;;;;;;;-1:-1:-1;2593:309:2;-1:-1:-1;;;;;2593:309:2;;:::i;:::-;;;;;;;;;;;;;;;;;;1532:149;;;;;;;;;;;;;;;;-1:-1:-1;1532:149:2;;:::i;746:36::-;;;:::i;2168:105::-;;;;;;;;;;;;;;;;-1:-1:-1;2168:105:2;;:::i;1832:122::-;;;;;;;;;;;;;;;;-1:-1:-1;1832:122:2;;:::i;1960:202::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1960:202:2;;;;;;;;;;:::i;4410:239::-;;;;;;;;;;;;;;;;-1:-1:-1;4410:239:2;;;;;;;;;;;-1:-1:-1;;;;;4410:239:2;;:::i;789:34::-;;;:::i;1397:129::-;;;;;;;;;;;;;;;;-1:-1:-1;1397:129:2;-1:-1:-1;;;;;1397:129:2;;:::i;1984:107:14:-;;;;;;;;;;;;;;;;-1:-1:-1;1984:107:14;-1:-1:-1;;;;;1984:107:14;;:::i;3058:195:2:-;;;;;;;;;;;;;;;;-1:-1:-1;3058:195:2;;;;;;;:::i;837:29::-;;;:::i;656:47::-;;;:::i;2279:141::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;2369:20:2::1;:44:::0;2279:141::o;3528:136::-;3594:4;3617:40;777:5;3617:27;3628:15;;3617:6;:10;;:27;;;;:::i;:::-;:31;;:40::i;:::-;3610:47;;3528:136;;;;:::o;3259:263::-;3344:4;3410:15;3364:43;3380:26;;3364:11;:15;;:43;;;;:::i;:::-;:61;3360:138;;;3448:39;777:5;3448:26;3459:14;;3448:6;:10;;:26;;;;:::i;:39::-;3441:46;;;;3360:138;-1:-1:-1;3514:1:2;3259:263;;;;;:::o;995:91::-;;;-1:-1:-1;;;;;995:91:2;;:::o;872:32::-;;;;:::o;3670:734::-;1180:20;1189:10;1180:8;:20::i;:::-;:28;;1204:4;1180:28;1172:51;;;;;-1:-1:-1;;;1172:51:2;;;;;;;;;;;;-1:-1:-1;;;1172:51:2;;;;;;;;;;;;;;;3801:11:::1;3815:35;:15:::0;3835:14;3815:19:::1;:35::i;:::-;3801:49:::0;-1:-1:-1;3860:64:2::1;-1:-1:-1::0;;;;;3860:29:2;::::1;3890:10;3910:4;3801:49:::0;3860:29:::1;:64::i;:::-;3935:19;3957:60;3973:4;3986;-1:-1:-1::0;;;;;3979:22:2::1;;4010:4;3979:37;;;;;;;;;;;;;-1:-1:-1::0;;;;;3979:37:2::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;3979:37:2;3957:15:::1;:60::i;:::-;3935:82;;4027:17;4047:19;:17;:19::i;:::-;4027:39:::0;-1:-1:-1;4076:57:2::1;-1:-1:-1::0;;;;;4076:30:2;::::1;947:42;4118:14:::0;4076:30:::1;:57::i;:::-;947:42;-1:-1:-1::0;;;;;4143:45:2::1;;4189:14;4143:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;4235:6:2::1;::::0;:42:::1;::::0;;-1:-1:-1;;;4235:42:2;;-1:-1:-1;;;;;4235:42:2;;::::1;;::::0;::::1;::::0;;;;;;;;;4215:17:::1;::::0;-1:-1:-1;4235:75:2::1;::::0;-1:-1:-1;4303:6:2;;4235:63:::1;::::0;4282:15;;4235:6;::::1;::::0;:15:::1;::::0;:42;;;;;::::1;::::0;;;;;;;;;:6;:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;4235:42:2;;:46:::1;:63::i;:75::-;4215:95;;4320:14;4337:31;4355:12;4337:17;:31::i;:::-;4320:48;;4378:19;4383:9;4394:2;4378:4;:19::i;:::-;1233:1;;;;;3670:734:::0;;;;;:::o;1687:139::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;1769:4:2::1;1762;:11;1754:33;;;::::0;;-1:-1:-1;;;1754:33:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;1754:33:2;;;;;;;;;;;;;::::1;;1797:15;:22:::0;1687:139::o;1698:137:14:-;1289:12;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;1796:1:::1;1780:6:::0;;1759:40:::1;::::0;-1:-1:-1;;;;;1780:6:14;;::::1;::::0;1759:40:::1;::::0;1796:1;;1759:40:::1;1826:1;1809:19:::0;;-1:-1:-1;;;;;;1809:19:14::1;::::0;;1698:137::o;1075:77::-;1113:7;1139:6;-1:-1:-1;;;;;1139:6:14;1075:77;:::o;2908:144:2:-;2980:4;3003:42;3040:4;3003:32;3017:17;;3003:9;:13;;:32;;;;:::i;490:72::-;520:42;490:72;:::o;911:78::-;947:42;911:78;:::o;2426:161::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;-1:-1:-1;;;;;2507:30:2;::::1;2499:55;;;::::0;;-1:-1:-1;;;2499:55:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;2499:55:2;;;;;;;;;;;;;::::1;;2564:6;:16:::0;;-1:-1:-1;;;;;;2564:16:2::1;-1:-1:-1::0;;;;;2564:16:2;;;::::1;::::0;;;::::1;::::0;;2426:161::o;709:31::-;;;;:::o;2593:309::-;2657:4;2705;-1:-1:-1;;;;;2677:33:2;-1:-1:-1;;;;;;;;;;;;;;;;2677:14:2;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2677:16:2;-1:-1:-1;;;;;2677:33:2;;2673:76;;-1:-1:-1;2733:5:2;2726:12;;2673:76;2781:10;2763:15;:28;2759:103;;;-1:-1:-1;2846:5:2;2839:12;;2759:103;-1:-1:-1;;;;;;2878:17:2;;;;;:8;:17;;;;;;;;;2593:309::o;1532:149::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;1613:3:2::1;1606:4;:10;1598:32;;;::::0;;-1:-1:-1;;;1598:32:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;1598:32:2;;;;;;;;;;;;;::::1;;1653:14;:21:::0;1532:149::o;746:36::-;777:5;746:36;:::o;2168:105::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;2240:17:2::1;:26:::0;2168:105::o;1832:122::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;1911:26:2::1;:36:::0;1832:122::o;1960:202::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;2042:7:2::1;2038:118;;;-1:-1:-1::0;;;;;2065:16:2;::::1;;::::0;;;:8:::1;:16;::::0;;;;:26;;-1:-1:-1;;2065:26:2::1;::::0;::::1;;;::::0;;2038:118:::1;;;-1:-1:-1::0;;;;;2129:16:2;::::1;;::::0;;;:8:::1;:16;::::0;;;;2122:23;;-1:-1:-1;;2122:23:2::1;::::0;;2038:118:::1;1960:202:::0;;:::o;4410:239::-;1180:20;1189:10;1180:8;:20::i;:::-;:28;;1204:4;1180:28;1172:51;;;;;-1:-1:-1;;;1172:51:2;;;;;;;;;;;;-1:-1:-1;;;1172:51:2;;;;;;;;;;;;;;;4514:14:::1;4531:46;4560:6;4568:8;4531:28;:46::i;:::-;4514:63:::0;-1:-1:-1;4591:14:2;4587:27:::1;;4607:7;;;4587:27;4623:19;4628:9;4639:2;4623:4;:19::i;:::-;1233:1;;4410:239:::0;;;:::o;789:34::-;;;;:::o;1397:129::-;1289:12:14;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;1470:49:2::1;::::0;;-1:-1:-1;;;1470:49:2;;-1:-1:-1;;;;;1470:49:2;::::1;;::::0;::::1;::::0;;;-1:-1:-1;;;;;;;;;;;441:42:2;1470:41:::1;::::0;:49;;;;;-1:-1:-1;;1470:49:2;;;;;;;-1:-1:-1;441:42:2;1470:49;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;1397:129:::0;:::o;1984:107:14:-;1289:12;:10;:12::i;:::-;1279:6;;-1:-1:-1;;;;;1279:6:14;;;:22;;;1271:67;;;;;-1:-1:-1;;;1271:67:14;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1271:67:14;;;;;;;;;;;;;;;2056:28:::1;2075:8;2056:18;:28::i;:::-;1984:107:::0;:::o;3058:195:2:-;3153:4;3176:70;3241:4;3176:60;3227:8;3176:46;3213:8;3176:32;3187:20;;3176:6;:10;;:32;;;;:::i;:::-;:36;;:46::i;:70::-;3169:77;3058:195;-1:-1:-1;;;3058:195:2:o;837:29::-;;;;:::o;656:47::-;;;;:::o;780:96:3:-;859:10;780:96;:::o;2211:459:17:-;2269:7;2510:6;2506:45;;-1:-1:-1;2539:1:17;2532:8;;2506:45;2573:5;;;2577:1;2573;:5;:1;2596:5;;;;;:10;2588:56;;;;-1:-1:-1;;;2588:56:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3132:130;3190:7;3216:39;3220:1;3223;3216:39;;;;;;;;;;;;;;;;;:3;:39::i;875:176::-;933:7;964:5;;;987:6;;;;979:46;;;;;-1:-1:-1;;;979:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;888:241:16;1053:68;;;-1:-1:-1;;;;;1053:68:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1053:68:16;-1:-1:-1;;;1053:68:16;;;1026:96;;1046:5;;1026:19;:96::i;909:285:15:-;979:15;-1:-1:-1;;;;;1010:13:15;;577:42;1010:13;1006:182;;;1052:27;1072:6;1052:19;:27::i;1006:182::-;1143:34;1163:5;1170:6;1143:19;:34::i;789:114::-;866:30;;;-1:-1:-1;;;866:30:15;;-1:-1:-1;;;;;;;;;;;866:30:15;;;;-1:-1:-1;;;;;;;;;;;866:30:15;;;;;;840:7;;494:42;;866:15;;:30;;;;;;;;;;;;;;;494:42;866:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;866:30:15;;-1:-1:-1;789:114:15;:::o;677:205:16:-;816:58;;;-1:-1:-1;;;;;816:58:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;816:58:16;-1:-1:-1;;;816:58:16;;;789:86;;809:5;;789:19;:86::i;4655:266:2:-;-1:-1:-1;;;;;;;;;;;;;;;;4712:10:2;;4723:6;4712:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4740:26:2;;;-1:-1:-1;;;4740:26:2;;-1:-1:-1;;;;;4740:26:2;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;441:42:2;4740:14;;:26;;;;;4712:18;;4740:26;;;;;;;-1:-1:-1;441:42:2;4740:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4777:16:2;;-1:-1:-1;4796:23:2;4815:3;4796:14;:6;4807:2;4796:10;:14::i;:23::-;4777:42;;-1:-1:-1;;;;;;;;;;;;;;;;4829:10:2;;4840:11;4829:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4862:52:2;;;-1:-1:-1;;;4862:52:2;;;;;;;;520:42;4862:52;;;;;;947:42;;4862:34;;:52;;;;;-1:-1:-1;;4862:52:2;;;;;;;-1:-1:-1;947:42:2;4862:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4655:266;;;:::o;2192:225:14:-;-1:-1:-1;;;;;2265:22:14;;2257:73;;;;-1:-1:-1;;;2257:73:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2366:6;;;2345:38;;-1:-1:-1;;;;;2345:38:14;;;;2366:6;;;2345:38;;;2393:6;:17;;-1:-1:-1;;;;;;2393:17:14;-1:-1:-1;;;;;2393:17:14;;;;;;;;;;2192:225::o;3744:302:17:-;3860:7;3894:12;3887:5;3879:28;;;;-1:-1:-1;;;3879:28:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3917:9;3933:1;3929;:5;;;;;;;3744:302;-1:-1:-1;;;;;3744:302:17:o;3145:763:16:-;3564:23;3590:69;3618:4;3590:69;;;;;;;;;;;;;;;;;3598:5;-1:-1:-1;;;;;3590:27:16;;;:69;;;;;:::i;:::-;3673:17;;3564:95;;-1:-1:-1;3673:21:16;3669:233;;3825:10;3814:30;;;;;;;;;;;;;;;-1:-1:-1;3814:30:16;3806:85;;;;-1:-1:-1;;;3806:85:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1200:232:15;1258:15;1285:38;577:42;1301:13;:6;1312:1;1301:10;:13::i;:::-;-1:-1:-1;;;;;;;;;;;1285:9:15;:38::i;:::-;1333:49;577:42;1349:25;1360:13;:6;1371:1;1360:10;:13::i;:::-;1349:6;;:10;:25::i;:::-;-1:-1:-1;;;;;;;;;;;1333:9:15;:49::i;:::-;1406:19;:17;:19::i;1438:1002::-;1511:15;1538:17;1571:5;1538:39;;1587:15;1605:4;-1:-1:-1;;;;;1605:11:15;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1605:13:15;1646;;;-1:-1:-1;;;1646:13:15;;;;1605;;-1:-1:-1;1628:15:15;;-1:-1:-1;;;;;1646:11:15;;;;;:13;;;;;1605;;1646;;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1646:13:15;;-1:-1:-1;1669:45:15;-1:-1:-1;;;;;1669:25:15;;386:42;1712:1;1669:25;:45::i;:::-;1724:50;-1:-1:-1;;;;;1724:25:15;;386:42;1767:6;1724:25;:50::i;:::-;1784:86;;;-1:-1:-1;;;1784:86:15;;-1:-1:-1;;;;;1784:86:15;;;;;;;;;;;;;;;;;;;1833:1;1784:86;;;;;;;;;;;;1847:4;1784:86;;;;1854:15;1784:86;;;;;;386:42;;1784:22;;:86;;;;;;;;;;;;;;;;386:42;1784:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;1884:16:15;;-1:-1:-1;;;;;;;;;;;1884:16:15;1880:554;;;1916:68;1926:7;1942;-1:-1:-1;;;;;1935:25:15;;1969:4;1935:40;;;;;;;;;;;;;-1:-1:-1;;;;;1935:40:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1935:40:15;-1:-1:-1;;;;;;;;;;;1916:9:15;:68::i;:::-;2011:19;:17;:19::i;:::-;1998:32;;1880:554;;;-1:-1:-1;;;;;2051:16:15;;-1:-1:-1;;;;;;;;;;;2051:16:15;2047:387;;;2083:68;2093:7;2109;-1:-1:-1;;;;;2102:25:15;;2136:4;2102:40;;;;;;;;;;;;;-1:-1:-1;;;;;2102:40:15;;;;;;;;;;;;;;;;;;;;;;;;;;2047:387;2228:68;2238:7;2254;-1:-1:-1;;;;;2247:25:15;;2281:4;2247:40;;;;;;;;;;;;;-1:-1:-1;;;;;2247:40:15;;;;;;;;;;;;;;;;;;;;;;;;;;2228:68;2310:67;2320:7;2336;-1:-1:-1;;;;;2329:25:15;;2363:4;2329:40;;;;;;;;;;;;;-1:-1:-1;;;;;2329:40:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2329:40:15;-1:-1:-1;;;;;;;;;;;2310:9:15;:67::i;:::-;2404:19;:17;:19::i;:::-;2391:32;;2047:387;1438:1002;;;;;;;:::o;3790:224:0:-;3923:12;3954:53;3977:6;3985:4;3991:1;3994:12;3954:22;:53::i;:::-;3947:60;3790:224;-1:-1:-1;;;;3790:224:0:o;2446:638:15:-;2538:3;-1:-1:-1;;;;;2529:12:15;:5;-1:-1:-1;;;;;2529:12:15;;2525:25;;;2543:7;;2525:25;2560:21;-1:-1:-1;;;;;2595:14:15;;-1:-1:-1;;;;;;;;;;;2595:14:15;;:30;;-1:-1:-1;;;;;;2613:12:15;;-1:-1:-1;;;;;;;;;;;2613:12:15;2595:30;2591:279;;;2648:16;;;2662:1;2648:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2648:16:15;2641:23;;2688:5;2678:4;2683:1;2678:7;;;;;;;;;;;;;:15;-1:-1:-1;;;;;2678:15:15;;;-1:-1:-1;;;;;2678:15:15;;;;;2717:3;2707:4;2712:1;2707:7;;;;;;;;;;;;;:13;-1:-1:-1;;;;;2707:13:15;;;-1:-1:-1;;;;;2707:13:15;;;;;2591:279;;;2758:16;;;2772:1;2758:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2758:16:15;2751:23;;2798:5;2788:4;2793:1;2788:7;;;;;;;;;;;;;:15;-1:-1:-1;;;;;2788:15:15;;;-1:-1:-1;;;;;2788:15:15;;;;;-1:-1:-1;;;;;;;;;;;2817:4:15;2822:1;2817:7;;;;;;;;;;;;;:15;-1:-1:-1;;;;;2817:15:15;;;-1:-1:-1;;;;;2817:15:15;;;;;2856:3;2846:4;2851:1;2846:7;;;;;;;;;;;;;:13;-1:-1:-1;;;;;2846:13:15;;;-1:-1:-1;;;;;2846:13:15;;;;;2591:279;2880:45;-1:-1:-1;;;;;2880:25:15;;386:42;2923:1;2880:25;:45::i;:::-;2935:51;-1:-1:-1;;;;;2935:25:15;;386:42;2978:7;2935:25;:51::i;:::-;386:42;-1:-1:-1;;;;;2996:31:15;;3028:7;3037:1;3040:4;3054;3061:15;2996:81;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2996:81:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2996:81:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2996:81:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2446:638;;;;:::o;1322:134:17:-;1380:7;1406:43;1410:1;1413;1406:43;;;;;;;;;;;;;;;;;:3;:43::i;3090:781:15:-;3183:39;;;-1:-1:-1;;;3183:39:15;;3216:4;3183:39;;;;;;3135:14;;;;-1:-1:-1;;;;;;;;;;;659:42:15;3183:24;;:39;;;;;;;;;;;;;;659:42;3183:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3183:39:15;3254:38;;;-1:-1:-1;;;3254:38:15;;3286:4;3254:38;;;;;;3183:39;;-1:-1:-1;3232:19:15;;-1:-1:-1;;;;;;;;;;;740:42:15;3254:23;;:38;;;;;3183:39;;3254:38;;;;;;;740:42;3254:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3254:38:15;;-1:-1:-1;3303:46:15;-1:-1:-1;;;;;;;;;;;386:42:15;3347:1;3303:26;:46::i;:::-;3359:59;-1:-1:-1;;;;;;;;;;;386:42:15;3403:14;3359:26;:59::i;:::-;3428:45;-1:-1:-1;;;;;;;;;;;386:42:15;3471:1;3428:25;:45::i;:::-;3483:58;-1:-1:-1;;;;;;;;;;;386:42:15;3526:14;3483:25;:58::i;:::-;3568:104;;;-1:-1:-1;;;3568:104:15;;-1:-1:-1;;;;;;;;;;;3568:104:15;;;;-1:-1:-1;;;;;;;;;;;3568:104:15;;;;;;;;;;;;;;;;3635:1;3568:104;;;;;;;;;;;;3649:4;3568:104;;;;3656:15;3568:104;;;;;;386:42;;3568:19;;:104;;;;;;;;;;;;;;;;;;386:42;3568:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3568:104:15;;;;;3740:39;;-1:-1:-1;;;3740:39:15;;3773:4;3740:39;;;;;;3568:104;;-1:-1:-1;;;;;;;;;;;;659:42:15;3704:23;;3728:10;;659:42;;3740:24;;:39;;;;;3568:104;;3740:39;;;;;;;;659:42;3740:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3740:39:15;3704:76;;;-1:-1:-1;;;;;;3704:76:15;;;;;;;-1:-1:-1;;;;;3704:76:15;;;;;;;;;;;;;;;;;;;;3740:39;;3704:76;;;;;;;-1:-1:-1;3704:76:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3825:38:15;;;-1:-1:-1;;;3825:38:15;;3857:4;3825:38;;;;;;-1:-1:-1;;;;;;;;;;;740:42:15;3790:22;;3813:10;;740:42;;3825:23;;:38;;;;;3704:76;;3825:38;;;;;;;;740:42;3825:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3825:38:15;3790:74;;;-1:-1:-1;;;;;;3790:74:15;;;;;;;-1:-1:-1;;;;;3790:74:15;;;;;;;;;;;;;;;;;;;;3825:38;;3790:74;;;;;;;-1:-1:-1;3790:74:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3090:781:15;;;-1:-1:-1;;;3090:781:15:o;1389:656:16:-;1797:10;;;1796:62;;-1:-1:-1;1813:39:16;;;-1:-1:-1;;;1813:39:16;;1837:4;1813:39;;;;-1:-1:-1;;;;;1813:39:16;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1813:39:16;:44;1796:62;1775:163;;;;-1:-1:-1;;;1775:163:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1975:62;;;-1:-1:-1;;;;;1975:62:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1975:62:16;-1:-1:-1;;;1975:62:16;;;1948:90;;1968:5;;1948:19;:90::i;5235:994:0:-;5403:12;5435:18;5446:6;5435:10;:18::i;:::-;5427:60;;;;;-1:-1:-1;;;5427:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5558:12;5572:23;5599:6;-1:-1:-1;;;;;5599:11:0;5618:8;5628:4;5599:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5599:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5557:76;;;;5647:7;5643:580;;;5677:10;-1:-1:-1;5670:17:0;;-1:-1:-1;5670:17:0;5643:580;5788:17;;:21;5784:429;;6046:10;6040:17;6106:15;6093:10;6089:2;6085:19;6078:44;5995:145;6178:20;;-1:-1:-1;;;6178:20:0;;;;;;;;;;;;;;;;;6185:12;;6178:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1747:217:17;1863:7;1898:12;1890:6;;;;1882:29;;;;-1:-1:-1;;;1882:29:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1933:5:17;;;1747:217::o;718:630:0:-;778:4;1251:20;;1084:66;1298:23;;;;;;:42;;-1:-1:-1;;1325:15:0;;;1290:51;-1:-1:-1;;718:630:0:o

Swarm Source

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