Contract 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d 3

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xac6daaac9c858e8dbb86a6d7722a880868e1b411062a9fed5eb9f33a3c06628fDeposit118506122021-10-17 12:04:501 hr 29 mins ago0xa6e293ce8cfa69624918c8b0ce6006becf24ae66 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00076327
0x028e6a7c8ee6099bb965a603ceb7f28e83f46e116a52f1fdb049032f2a0ffde6Deposit118506022021-10-17 12:04:201 hr 30 mins ago0xa6e293ce8cfa69624918c8b0ce6006becf24ae66 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000638685
0x129fac2d8b59e1463ec0a23616d1b40a8eb47aed871d208ba574bdc4bccfdfa7Deposit118505962021-10-17 12:04:021 hr 30 mins ago0xa6e293ce8cfa69624918c8b0ce6006becf24ae66 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00076315
0x49aa40c82e2f2f8b4c723544dcb3aa2db49850fc21ee01711a642075d6b86434Withdraw118504712021-10-17 11:57:381 hr 36 mins ago0x6ce96cc4b308eac30507d1d5be8b73173f5bc476 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000670695
0xaaf2bfe149e8a2cb6e4331eb1286f9d0be706c716ebeddeef6790fa63f8b2e3bWithdraw118503182021-10-17 11:49:591 hr 44 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000607505
0xbf3d9d39ba47af251f2b4da2b41c2b0de313cf3a6f0a29e8414f46c4af30ce2aWithdraw118500972021-10-17 11:38:531 hr 55 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00090761
0xc71ec7d2da1ea7bca189e25ef8c058ce0522e32c341e63c4de5a5363e8d6bdf2Deposit118499662021-10-17 11:31:572 hrs 2 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00079555
0xb21a9078b3fdf36e093c9efd6ef39b4da907334b6c0ffe433eaf55f7f1c69586Withdraw118498452021-10-17 11:25:352 hrs 8 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000682565
0x950caffc310a4e25f9c0e58b7531b1d6c58e9337290c26e982926947e504c0aeWithdraw118498432021-10-17 11:25:292 hrs 8 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000682565
0x2d608c15454c5e2cfd855667484abb8d945b739a24e2efa99e82ef3eaf31b87aDeposit118497762021-10-17 11:22:082 hrs 12 mins ago0x53dd8d5d7a174f22d1d4cfa0a6df4ff6913e5605 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00071326
0xd77a268f262cef7fda50e9a00dbc89a234dcbb25222f42e1a8cb946ad8628f00Withdraw118489172021-10-17 10:39:092 hrs 55 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000682505
0x4c9e66d01073fca2dccd3a77a0575923f2c2cd08b3988e3a0a138cf5291ef366Withdraw118489132021-10-17 10:38:572 hrs 55 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000682565
0xb12ccc8480a268d6135010abf8b96b4423526327d0298ec0fb5fc7720e074c71Withdraw118488702021-10-17 10:36:482 hrs 57 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000682565
0x6b0042de7c810ec9592b5b99d1d43aeaf149c3d65faaff43565da47c1bc8c9bbDeposit118488542021-10-17 10:36:002 hrs 58 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00063826
0xfed36d8b0be977f90c259f10a005e5ffe26ca0e2210eb11071e5a81a5d0391f3Deposit118488542021-10-17 10:36:002 hrs 58 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00063826
0xd84c7b9f900b1341a240903591fb5291d9908a96ba69c0e3164aab1601cb7890Deposit118488542021-10-17 10:36:002 hrs 58 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00063826
0x19f4a0ae48ac0215908c457c97c3b3dd820823896ee3bae09a7f7440120871faDeposit118488532021-10-17 10:35:572 hrs 58 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00063826
0xc93287dd77bf40d83f5434eaf0342fb3d966ae283c5f9638f5d09246f252add4Deposit118488532021-10-17 10:35:572 hrs 58 mins ago0xb60b2887c7f64ae49ecc939ecb48c985e9358f09 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00071326
0x05af8eeb10ba9d1cf3092d5a7248e99d9ac2d267cd4b72d2848dec6a3983aa78Deposit118477502021-10-17 9:40:483 hrs 53 mins ago0xa823fea1a2a915b3d8c5a5e976668eff0627d0aa IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00076333
0xa3a883d7964452540d5cbaf4ab5bea3642b88144dbb80566e5081126bc7035a0Deposit118477422021-10-17 9:40:243 hrs 54 mins ago0xa823fea1a2a915b3d8c5a5e976668eff0627d0aa IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00076315
0x734b6906ab721fb6f88c4b0d993c351d98a1996f4cced3d6a717ee149659bd2aDeposit118477332021-10-17 9:39:573 hrs 54 mins ago0xa823fea1a2a915b3d8c5a5e976668eff0627d0aa IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000638565
0xf9c6dbace0f929f8eda6ebc3391229e6dc33a0ad557e23bb1534f85073ffb57aDeposit118455402021-10-17 7:50:185 hrs 44 mins ago0x747d37be993d9b0d3cc17f6257eb465377671938 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00069793
0xa096431cb4b0391857bd18df700d0f6745ee86be34173522f538de83876fb7a9Deposit118451572021-10-17 7:31:096 hrs 3 mins ago0xbba7e07ad1548be9b0a33051f0fc817834f939f6 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.00073372
0xe962ff17f189c5baf5252ee8d47de85dd3bcc750b8358f7fb97dd151c7e02be4Deposit118451472021-10-17 7:30:396 hrs 3 mins ago0xbba7e07ad1548be9b0a33051f0fc817834f939f6 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.0006382
0x21a22b8ac06f3b747c4dd34a374911e04b6db2aa547f21d597dc8ee3a87fdad2Withdraw118450772021-10-17 7:27:096 hrs 7 mins ago0x4d40e2541f943e48ec81dcce70647386b0e89132 IN  0x7854fb0edd06a880ec8009c62b1aa38e26f9988d0 BNB0.000595755
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x11a47b547797c9f94c53ea5033c1f430caed3a0c3a07b2da5a38139b700f2bc154713332021-03-07 11:59:36224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d PancakeSwap: BRICK-BUSD 20 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x650aed6ca9ec3eeb5d801a51a80e850a0131d7cef0d896cc4a35ad95b1a6c8c854713302021-03-07 11:59:27224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d PancakeSwap: BRICK-BUSD 20 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0x7fd0168d20494b99ce4c39c7cee90227e51290ce1864b029971211386810496654713272021-03-07 11:59:18224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d PancakeSwap: BRICK-BUSD 20 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
0xee204a349e99be0c3ae0d8721abe3553dd30ccf456a593f4faece53790cdc7da54713262021-03-07 11:59:15224 days 1 hr ago 0x7854fb0edd06a880ec8009c62b1aa38e26f9988d BrickChain: BRICK Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Builder

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-06
*/

pragma solidity 0.6.12;


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

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

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

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

// BrickToken with Governance.
contract BrickToken is ERC20("Brick Token", "Brick"), Ownable {
    uint8 public constant burnDivisor = 100;

    // Creates `_amount` token to `_to`. Must only be called by the owner (DonBuilder).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    function transfer(address recipient, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        // transfer burn amount is 1%
        uint256 burnAmount = amount.div(burnDivisor);
        // sender loses the 1%
        _burn(msg.sender, burnAmount);
        // sender transfers 99%
        return super.transfer(recipient, amount.sub(burnAmount));
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

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

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

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

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

// Builder is the better builder of Brick.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once Brick is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract Builder is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. Bricks to distribute per block.
        uint256 lastRewardBlock; // Last block number that Bricks distribution occurs.
        uint256 accBrickPerShare; // Accumulated Bricks per share, times 1e12. See below.
        uint16 depositFeeBP; // Deposit fee in basis points
    }

    // The Brick TOKEN!
    BrickToken public brick;
    // Dev address. (4%)
    address public devAddr;
    // Product address. (4%)
    address public productAddr;
    // Brick tokens created per block.
    uint256 public brickPerBlock;
    // Bonus muliplier for early brick makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee will be used to buyback Brick when the staking is from an external pool
    address public feeAddress;

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

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

    constructor(
        BrickToken _brick,
        address _devAddr,
        address _productAddr,
        address _feeAddress,
        uint256 _brickPerBlock,
        uint256 _startBlock
    ) public {
        brick = _brick;
        devAddr = _devAddr;
        productAddr = _productAddr;
        feeAddress = _feeAddress;
        brickPerBlock = _brickPerBlock;
        startBlock = _startBlock;
    }

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

    /// @notice Add a new lp to the pool. Can only be called by the owner.
    /// @dev DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        uint16 _depositFeeBP,
        bool _withUpdate
    ) public onlyOwner {
        require(
            _depositFeeBP <= 10000,
            "add: invalid deposit fee basis points"
        );
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock =
            block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accBrickPerShare: 0,
                depositFeeBP: _depositFeeBP
            })
        );
    }

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

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

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

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

    /// @notice Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 brickReward =
            multiplier.mul(brickPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );

        uint256 teamReward = brickReward.div(8);
        brick.mint(devAddr, teamReward.div(2));
        brick.mint(productAddr, teamReward.div(2));
        brick.mint(address(this), brickReward);

        pool.accBrickPerShare = pool.accBrickPerShare.add(
            brickReward.mul(1e12).div(lpSupply)
        );
        pool.lastRewardBlock = block.number;
    }

    /// @notice Deposit LP tokens to Builder for Brick allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accBrickPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeBrickTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accBrickPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

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

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

    /// @notice Safe brick transfer function, just in case if rounding error causes pool to not have enough Bricks.
    function safeBrickTransfer(address _to, uint256 _amount) internal {
        uint256 brickBal = brick.balanceOf(address(this));
        if (_amount > brickBal) {
            brick.transfer(_to, brickBal);
        } else {
            brick.transfer(_to, _amount);
        }
    }

    /// @notice Update dev address by the previous dev.
    function dev(address _devAddr) public {
        require(msg.sender == devAddr, "dev: invalid sender");
        devAddr = _devAddr;
    }

    /// @notice Update dev address by the previous pm.
    function product(address _productAddr) public {
        require(msg.sender == productAddr, "product: invalid sender");
        productAddr = _productAddr;
    }

    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: invalid sender");
        feeAddress = _feeAddress;
    }

    /// @notice transparent and simple way to alter the emission.
    function updateEmissionRate(uint256 _brickPerBlock) public onlyOwner {
        massUpdatePools();
        brickPerBlock = _brickPerBlock;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract BrickToken","name":"_brick","type":"address"},{"internalType":"address","name":"_devAddr","type":"address"},{"internalType":"address","name":"_productAddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_brickPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"brick","outputs":[{"internalType":"contract BrickToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brickPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBrick","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBrickPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_productAddr","type":"address"}],"name":"product","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"productAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_brickPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060085534801561001557600080fd5b50604051611d61380380611d61833981810160405260c081101561003857600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091600061006761010d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039788166001600160a01b0319918216179091556002805496881696821696909617909555600380549487169486169490941790935560058054929095169190931617909255600455600955610111565b3390565b611c41806101206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636df549b7116100f95780638dbb1e3a11610097578063d963842211610071578063d96384221461044a578063da09c72c1461047f578063e2bbb15814610487578063f2fde38b146104aa576101a9565b80638dbb1e3a146103da57806393f1a40b146103fd578063a5f5740b14610442576101a9565b80638705fcd4116100d35780638705fcd41461037e5780638aa28550146103a45780638d88a90e146103ac5780638da5cb5b146103d2576101a9565b80636df549b71461030c578063715018a61461033857806384e82a3314610340576101a9565b8063412753581161016657806351eb05a61161014057806351eb05a6146102c25780635312ea8e146102df578063630b5ba1146102fc57806364bc4be014610304576101a9565b8063412753581461028f578063441a3e701461029757806348cd4cb1146102ba576101a9565b8063081e3eda146101ae5780630ba84cd2146101c85780631526fe27146101e757806317caf6f11461023d57806317f7dad8146102455780633e9d5e0e1461026b575b600080fd5b6101b66104d0565b60408051918252519081900360200190f35b6101e5600480360360208110156101de57600080fd5b50356104d6565b005b610204600480360360208110156101fd57600080fd5b5035610545565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b6101b6610591565b6101e56004803603602081101561025b57600080fd5b50356001600160a01b0316610597565b610273610618565b604080516001600160a01b039092168252519081900360200190f35b610273610627565b6101e5600480360360408110156102ad57600080fd5b5080359060200135610636565b6101b6610795565b6101e5600480360360208110156102d857600080fd5b503561079b565b6101e5600480360360208110156102f557600080fd5b5035610a65565b6101e5610b01565b610273610b24565b6101b66004803603604081101561032257600080fd5b50803590602001356001600160a01b0316610b33565b6101e5610c93565b6101e56004803603608081101561035657600080fd5b508035906001600160a01b036020820135169061ffff60408201351690606001351515610d3f565b6101e56004803603602081101561039457600080fd5b50356001600160a01b0316610f4d565b6101b6610fce565b6101e5600480360360208110156103c257600080fd5b50356001600160a01b0316610fd3565b61027361104a565b6101b6600480360360408110156103f057600080fd5b5080359060200135611059565b6104296004803603604081101561041357600080fd5b50803590602001356001600160a01b0316611071565b6040805192835260208301919091528051918290030190f35b6101b6611095565b6101e56004803603608081101561046057600080fd5b5080359060208101359061ffff6040820135169060600135151561109b565b6102736111f5565b6101e56004803603604081101561049d57600080fd5b5080359060200135611204565b6101e5600480360360208110156104c057600080fd5b50356001600160a01b031661137c565b60065490565b6104de61147e565b6001600160a01b03166104ef61104a565b6001600160a01b031614610538576040805162461bcd60e51b81526020600482018190526024820152600080516020611bc2833981519152604482015290519081900360640190fd5b610540610b01565b600455565b6006818154811061055257fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60085481565b6003546001600160a01b031633146105f6576040805162461bcd60e51b815260206004820152601760248201527f70726f647563743a20696e76616c69642073656e646572000000000000000000604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6005546001600160a01b031681565b60006006838154811061064557fe5b6000918252602080832086845260078252604080852033865290925292208054600590920290920192508311156106b8576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106c18461079b565b60006106fb82600101546106f564e8d4a510006106ef8760030154876000015461148290919063ffffffff16565b906114db565b90611542565b9050801561070d5761070d338261159f565b831561073757815461071f9085611542565b82558254610737906001600160a01b03163386611730565b600383015482546107529164e8d4a51000916106ef91611482565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60095481565b6000600682815481106107aa57fe5b90600052602060002090600502019050806002015443116107cb5750610a62565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561081557600080fd5b505afa158015610829573d6000803e3d6000fd5b505050506040513d602081101561083f57600080fd5b5051905080158061085257506001820154155b15610864575043600290910155610a62565b6000610874836002015443611059565b905060006108a16008546106ef866001015461089b6004548761148290919063ffffffff16565b90611482565b905060006108b08260086114db565b600154600280549293506001600160a01b03918216926340c10f199216906108d99085906114db565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561091f57600080fd5b505af1158015610933573d6000803e3d6000fd5b50506001546003546001600160a01b0391821693506340c10f1992501661095b8460026114db565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156109a157600080fd5b505af11580156109b5573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810187905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610a0c57600080fd5b505af1158015610a20573d6000803e3d6000fd5b50505050610a4e610a43856106ef64e8d4a510008661148290919063ffffffff16565b600387015490611782565b600386015550504360029093019290925550505b50565b600060068281548110610a7457fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556005909302018054909450919291610ac4916001600160a01b03919091169083611730565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60065460005b81811015610b2057610b188161079b565b600101610b07565b5050565b6003546001600160a01b031681565b60008060068481548110610b4357fe5b600091825260208083208784526007825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015610bbd57600080fd5b505afa158015610bd1573d6000803e3d6000fd5b505050506040513d6020811015610be757600080fd5b5051600285015490915043118015610bfe57508015155b15610c5e576000610c13856002015443611059565b90506000610c3a6008546106ef886001015461089b6004548761148290919063ffffffff16565b9050610c59610c52846106ef8464e8d4a51000611482565b8590611782565b935050505b610c8683600101546106f564e8d4a510006106ef86886000015461148290919063ffffffff16565b9450505050505b92915050565b610c9b61147e565b6001600160a01b0316610cac61104a565b6001600160a01b031614610cf5576040805162461bcd60e51b81526020600482018190526024820152600080516020611bc2833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d4761147e565b6001600160a01b0316610d5861104a565b6001600160a01b031614610da1576040805162461bcd60e51b81526020600482018190526024820152600080516020611bc2833981519152604482015290519081900360640190fd5b6127108261ffff161115610de65760405162461bcd60e51b8152600401808060200182810382526025815260200180611b0b6025913960400191505060405180910390fd5b8015610df457610df4610b01565b60006009544311610e0757600954610e09565b435b600854909150610e199086611782565b6008556040805160a0810182526001600160a01b0395861681526020810196875290810191825260006060820181815261ffff9586166080840190815260068054600181018255935292517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600590930292830180546001600160a01b031916919098161790965595517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4087015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4186015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428501555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d43909201805461ffff191692909116919091179055565b6005546001600160a01b03163314610fac576040805162461bcd60e51b815260206004820152601d60248201527f736574466565416464726573733a20696e76616c69642073656e646572000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600181565b6002546001600160a01b03163314611028576040805162461bcd60e51b81526020600482015260136024820152723232bb1d1034b73b30b634b21039b2b73232b960691b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b600061106a600161089b8486611542565b9392505050565b60076020908152600092835260408084209091529082529020805460019091015482565b60045481565b6110a361147e565b6001600160a01b03166110b461104a565b6001600160a01b0316146110fd576040805162461bcd60e51b81526020600482018190526024820152600080516020611bc2833981519152604482015290519081900360640190fd5b6127108261ffff1611156111425760405162461bcd60e51b8152600401808060200182810382526025815260200180611b9d6025913960400191505060405180910390fd5b801561115057611150610b01565b61118d836111876006878154811061116457fe5b90600052602060002090600502016001015460085461154290919063ffffffff16565b90611782565b60088190555082600685815481106111a157fe5b90600052602060002090600502016001018190555081600685815481106111c457fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b6002546001600160a01b031681565b60006006838154811061121357fe5b600091825260208083208684526007825260408085203386529092529220600590910290910191506112448461079b565b80541561128d57600061127982600101546106f564e8d4a510006106ef8760030154876000015461148290919063ffffffff16565b9050801561128b5761128b338261159f565b505b821561131f5781546112aa906001600160a01b03163330866117dc565b600482015461ffff16156113105760048201546000906112d790612710906106ef90879061ffff16611482565b60055484549192506112f6916001600160a01b03908116911683611730565b81546113089082906106f59087611782565b82555061131f565b805461131c9084611782565b81555b6003820154815461133a9164e8d4a51000916106ef91611482565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b61138461147e565b6001600160a01b031661139561104a565b6001600160a01b0316146113de576040805162461bcd60e51b81526020600482018190526024820152600080516020611bc2833981519152604482015290519081900360640190fd5b6001600160a01b0381166114235760405162461bcd60e51b8152600401808060200182810382526026815260200180611b306026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008261149157506000610c8d565b8282028284828161149e57fe5b041461106a5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b7c6021913960400191505060405180910390fd5b6000808211611531576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161153a57fe5b049392505050565b600082821115611599576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115ea57600080fd5b505afa1580156115fe573d6000803e3d6000fd5b505050506040513d602081101561161457600080fd5b50519050808211156116a8576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561167657600080fd5b505af115801561168a573d6000803e3d6000fd5b505050506040513d60208110156116a057600080fd5b5061172b9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156116fe57600080fd5b505af1158015611712573d6000803e3d6000fd5b505050506040513d602081101561172857600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261172b90849061183c565b60008282018381101561106a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261183690859061183c565b50505050565b6060611891826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ed9092919063ffffffff16565b80519091501561172b578080602001905160208110156118b057600080fd5b505161172b5760405162461bcd60e51b815260040180806020018281038252602a815260200180611be2602a913960400191505060405180910390fd5b60606118fc8484600085611904565b949350505050565b6060824710156119455760405162461bcd60e51b8152600401808060200182810382526026815260200180611b566026913960400191505060405180910390fd5b61194e85611a60565b61199f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106119de5780518252601f1990920191602091820191016119bf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a40576040519150601f19603f3d011682016040523d82523d6000602084013e611a45565b606091505b5091509150611a55828286611a66565b979650505050505050565b3b151590565b60608315611a7557508161106a565b825115611a855782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611acf578181015183820152602001611ab7565b50505050905090810190601f168015611afc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212201ff86332360fafc92cd93935f62b56fb0c158c79d860e3f973663ebf119f11ce64736f6c634300060c0033000000000000000000000000c4daa5a9f2b832ed0f9bc579662883cd53ea9d61000000000000000000000000654a0197bc300f0e27b9053cb8a54b22d0823a3a000000000000000000000000d8c61d3d71b83b10211f8cb68c02cd388216735f00000000000000000000000045af6152bdb4f4efac5a430fe39408b511f80b680000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000053360f

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

000000000000000000000000c4daa5a9f2b832ed0f9bc579662883cd53ea9d61000000000000000000000000654a0197bc300f0e27b9053cb8a54b22d0823a3a000000000000000000000000d8c61d3d71b83b10211f8cb68c02cd388216735f00000000000000000000000045af6152bdb4f4efac5a430fe39408b511f80b680000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000053360f

-----Decoded View---------------
Arg [0] : _brick (address): 0xc4daa5a9f2b832ed0f9bc579662883cd53ea9d61
Arg [1] : _devAddr (address): 0x654a0197bc300f0e27b9053cb8a54b22d0823a3a
Arg [2] : _productAddr (address): 0xd8c61d3d71b83b10211f8cb68c02cd388216735f
Arg [3] : _feeAddress (address): 0x45af6152bdb4f4efac5a430fe39408b511f80b68
Arg [4] : _brickPerBlock (uint256): 1000000000000000000
Arg [5] : _startBlock (uint256): 5453327

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000c4daa5a9f2b832ed0f9bc579662883cd53ea9d61
Arg [1] : 000000000000000000000000654a0197bc300f0e27b9053cb8a54b22d0823a3a
Arg [2] : 000000000000000000000000d8c61d3d71b83b10211f8cb68c02cd388216735f
Arg [3] : 00000000000000000000000045af6152bdb4f4efac5a430fe39408b511f80b68
Arg [4] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [5] : 000000000000000000000000000000000000000000000000000000000053360f


Deployed ByteCode Sourcemap

45860:11160:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48837:95;;;:::i;:::-;;;;;;;;;;;;;;;;56871:146;;;;;;;;;;;;;;;;-1:-1:-1;56871:146:0;;:::i;:::-;;47763:26;;;;;;;;;;;;;;;;-1:-1:-1;47763:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;47763:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48004:34;;;:::i;56454:163::-;;;;;;;;;;;;;;;;-1:-1:-1;56454:163:0;-1:-1:-1;;;;;56454:163:0;;:::i;47288:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;47288:23:0;;;;;;;;;;;;;;47702:25;;;:::i;54521:790::-;;;;;;;;;;;;;;;;-1:-1:-1;54521:790:0;;;;;;;:::i;48096:25::-;;;:::i;52214:988::-;;;;;;;;;;;;;;;;-1:-1:-1;52214:988:0;;:::i;55391:385::-;;;;;;;;;;;;;;;;-1:-1:-1;55391:385:0;;:::i;51949:180::-;;;:::i;47403:26::-;;;:::i;50937:906::-;;;;;;;;;;;;;;;;-1:-1:-1;50937:906:0;;;;;;-1:-1:-1;;;;;50937:906:0;;:::i;2627:148::-;;;:::i;49112:802::-;;;;;;;;;;;;;;;;-1:-1:-1;49112:802:0;;;-1:-1:-1;;;;;49112:802:0;;;;;;;;;;;;;;;;;;;:::i;56625:171::-;;;;;;;;;;;;;;;;-1:-1:-1;56625:171:0;-1:-1:-1;;;;;56625:171:0;;:::i;47559:44::-;;;:::i;56251:139::-;;;;;;;;;;;;;;;;-1:-1:-1;56251:139:0;-1:-1:-1;;;;;56251:139:0;;:::i;1976:87::-;;;:::i;50688:175::-;;;;;;;;;;;;;;;;-1:-1:-1;50688:175:0;;;;;;;:::i;47845:64::-;;;;;;;;;;;;;;;;-1:-1:-1;47845:64:0;;;;;;-1:-1:-1;;;;;47845:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;47476:28;;;:::i;50036:567::-;;;;;;;;;;;;;;;;-1:-1:-1;50036:567:0;;;;;;;;;;;;;;;;;;;;;:::i;47344:22::-;;;:::i;53278:1185::-;;;;;;;;;;;;;;;;-1:-1:-1;53278:1185:0;;;;;;;:::i;2930:244::-;;;;;;;;;;;;;;;;-1:-1:-1;2930:244:0;-1:-1:-1;;;;;2930:244:0;;:::i;48837:95::-;48909:8;:15;48837:95;:::o;56871:146::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;56951:17:::1;:15;:17::i;:::-;56979:13;:30:::0;56871:146::o;47763:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47763:26:0;;;;-1:-1:-1;47763:26:0;;;;;;;:::o;48004:34::-;;;;:::o;56454:163::-;56533:11;;-1:-1:-1;;;;;56533:11:0;56519:10;:25;56511:61;;;;;-1:-1:-1;;;56511:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56583:11;:26;;-1:-1:-1;;;;;;56583:26:0;-1:-1:-1;;;;;56583:26:0;;;;;;;;;;56454:163::o;47288:23::-;;;-1:-1:-1;;;;;47288:23:0;;:::o;47702:25::-;;;-1:-1:-1;;;;;47702:25:0;;:::o;54521:790::-;54588:21;54612:8;54621:4;54612:14;;;;;;;;;;;;;;;;54661;;;:8;:14;;;;;;54676:10;54661:26;;;;;;;54706:11;;54612:14;;;;;;;;-1:-1:-1;54706:22:0;-1:-1:-1;54706:22:0;54698:53;;;;;-1:-1:-1;;;54698:53:0;;;;;;;;;;;;-1:-1:-1;;;54698:53:0;;;;;;;;;;;;;;;54762:16;54773:4;54762:10;:16::i;:::-;54789:15;54820:101;54891:4;:15;;;54820:48;54863:4;54820:38;54836:4;:21;;;54820:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:101::i;:::-;54789:132;-1:-1:-1;54936:11:0;;54932:82;;54964:38;54982:10;54994:7;54964:17;:38::i;:::-;55028:11;;55024:152;;55070:11;;:24;;55086:7;55070:15;:24::i;:::-;55056:38;;55109:12;;:55;;-1:-1:-1;;;;;55109:12:0;55143:10;55156:7;55109:25;:55::i;:::-;55220:21;;;;55204:11;;:48;;55247:4;;55204:38;;:15;:38::i;:48::-;55186:15;;;:66;55268:35;;;;;;;;55289:4;;55277:10;;55268:35;;;;;;;;;54521:790;;;;;:::o;48096:25::-;;;;:::o;52214:988::-;52266:21;52290:8;52299:4;52290:14;;;;;;;;;;;;;;;;;;52266:38;;52335:4;:20;;;52319:12;:36;52315:75;;52372:7;;;52315:75;52419:12;;:37;;;-1:-1:-1;;;52419:37:0;;52450:4;52419:37;;;;;;52400:16;;-1:-1:-1;;;;;52419:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52419:37:0;;-1:-1:-1;52471:13:0;;;:37;;-1:-1:-1;52488:15:0;;;;:20;52471:37;52467:126;;;-1:-1:-1;52548:12:0;52525:20;;;;:35;52575:7;;52467:126;52603:18;52624:49;52638:4;:20;;;52660:12;52624:13;:49::i;:::-;52603:70;;52684:19;52719:103;52792:15;;52719:50;52753:4;:15;;;52719:29;52734:13;;52719:10;:14;;:29;;;;:::i;:::-;:33;;:50::i;:103::-;52684:138;-1:-1:-1;52835:18:0;52856;52684:138;52872:1;52856:15;:18::i;:::-;52885:5;;52896:7;;;52835:39;;-1:-1:-1;;;;;;52885:5:0;;;;:10;;52896:7;;52905:17;;52835:39;;52905:14;:17::i;:::-;52885:38;;;;;;;;;;;;;-1:-1:-1;;;;;52885:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52934:5:0;;52945:11;;-1:-1:-1;;;;;52934:5:0;;;;-1:-1:-1;52934:10:0;;-1:-1:-1;52945:11:0;52958:17;:10;52973:1;52958:14;:17::i;:::-;52934:42;;;;;;;;;;;;;-1:-1:-1;;;;;52934:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52987:5:0;;:38;;;-1:-1:-1;;;52987:38:0;;53006:4;52987:38;;;;;;;;;;;;-1:-1:-1;;;;;52987:5:0;;;;-1:-1:-1;52987:10:0;;-1:-1:-1;52987:38:0;;;;;:5;;:38;;;;;;;;:5;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53062:86;53102:35;53128:8;53102:21;53118:4;53102:11;:15;;:21;;;;:::i;:35::-;53062:21;;;;;:25;:86::i;:::-;53038:21;;;:110;-1:-1:-1;;53182:12:0;53159:20;;;;:35;;;;-1:-1:-1;;52214:988:0;;:::o;55391:385::-;55450:21;55474:8;55483:4;55474:14;;;;;;;;;;;;;;;;55523;;;:8;:14;;;;;;55538:10;55523:26;;;;;;;55577:11;;55599:15;;;-1:-1:-1;55625:15:0;;:19;;;;55474:14;;;;;55655:12;;55474:14;;-1:-1:-1;55523:26:0;;55577:11;55655:54;;-1:-1:-1;;;;;55655:12:0;;;;;55577:11;55655:25;:54::i;:::-;55725:43;;;;;;;;55755:4;;55743:10;;55725:43;;;;;;;;;55391:385;;;;:::o;51949:180::-;52011:8;:15;51994:14;52037:85;52065:6;52059:3;:12;52037:85;;;52095:15;52106:3;52095:10;:15::i;:::-;52073:5;;52037:85;;;;51949:180;:::o;47403:26::-;;;-1:-1:-1;;;;;47403:26:0;;:::o;50937:906::-;51038:7;51063:21;51087:8;51096:4;51087:14;;;;;;;;;;;;;;;;51136;;;:8;:14;;;;;;-1:-1:-1;;;;;51136:21:0;;;;;;;;;;;51087:14;;;;;;;;51195:21;;;;51246:12;;:37;;-1:-1:-1;;;51246:37:0;;51277:4;51246:37;;;;;;51087:14;;-1:-1:-1;51136:21:0;;51195;;51087:14;;51246:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51246:37:0;51313:20;;;;51246:37;;-1:-1:-1;51298:12:0;:35;:52;;;;-1:-1:-1;51337:13:0;;;51298:52;51294:460;;;51367:18;51405:49;51419:4;:20;;;51441:12;51405:13;:49::i;:::-;51367:87;;51469:19;51508:111;51585:15;;51508:50;51542:4;:15;;;51508:29;51523:13;;51508:10;:14;;:29;;;;:::i;:111::-;51469:150;-1:-1:-1;51653:89:0;51692:35;51718:8;51692:21;51469:150;51708:4;51692:15;:21::i;:35::-;51653:16;;:20;:89::i;:::-;51634:108;;51294:460;;;51771:64;51819:4;:15;;;51771:43;51809:4;51771:33;51787:16;51771:4;:11;;;:15;;:33;;;;:::i;:64::-;51764:71;;;;;;50937:906;;;;;:::o;2627:148::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;2734:1:::1;2718:6:::0;;2697:40:::1;::::0;-1:-1:-1;;;;;2718:6:0;;::::1;::::0;2697:40:::1;::::0;2734:1;;2697:40:::1;2765:1;2748:19:::0;;-1:-1:-1;;;;;;2748:19:0::1;::::0;;2627:148::o;49112:802::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;49313:5:::1;49296:13;:22;;;;49274:109;;;;-1:-1:-1::0;;;49274:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49398:11;49394:61;;;49426:17;:15;:17::i;:::-;49465:23;49519:10;;49504:12;:25;:53;;49547:10;;49504:53;;;49532:12;49504:53;49586:15;::::0;49465:92;;-1:-1:-1;49586:32:0::1;::::0;49606:11;49586:19:::1;:32::i;:::-;49568:15;:50:::0;49657:238:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;49657:238:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;49657:238:0;;;;;;::::1;::::0;;::::1;::::0;;;;;;49629:8:::1;:277:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;49629:277:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49629:277:0;;;;;;;;-1:-1:-1;;49629:277:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;49112:802::o;56625:171::-;56709:10;;-1:-1:-1;;;;;56709:10:0;56695;:24;56687:66;;;;;-1:-1:-1;;;56687:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56764:10;:24;;-1:-1:-1;;;;;;56764:24:0;-1:-1:-1;;;;;56764:24:0;;;;;;;;;;56625:171::o;47559:44::-;47602:1;47559:44;:::o;56251:139::-;56322:7;;-1:-1:-1;;;;;56322:7:0;56308:10;:21;56300:53;;;;;-1:-1:-1;;;56300:53:0;;;;;;;;;;;;-1:-1:-1;;;56300:53:0;;;;;;;;;;;;;;;56364:7;:18;;-1:-1:-1;;;;;;56364:18:0;-1:-1:-1;;;;;56364:18:0;;;;;;;;;;56251:139::o;1976:87::-;2022:7;2049:6;-1:-1:-1;;;;;2049:6:0;1976:87;:::o;50688:175::-;50787:7;50819:36;47602:1;50819:14;:3;50827:5;50819:7;:14::i;:36::-;50812:43;50688:175;-1:-1:-1;;;50688:175:0:o;47845:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47476:28::-;;;;:::o;50036:567::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;50234:5:::1;50217:13;:22;;;;50195:109;;;;-1:-1:-1::0;;;50195:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50319:11;50315:61;;;50347:17;:15;:17::i;:::-;50404:87;50469:11;50404:46;50424:8;50433:4;50424:14;;;;;;;;;;;;;;;;;;:25;;;50404:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:87::i;:::-;50386:15;:105;;;;50530:11;50502:8;50511:4;50502:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;50582:13;50552:8;50561:4;50552:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;50036:567:::0;;;;:::o;47344:22::-;;;-1:-1:-1;;;;;47344:22:0;;:::o;53278:1185::-;53344:21;53368:8;53377:4;53368:14;;;;;;;;;;;;;;;;53417;;;:8;:14;;;;;;53432:10;53417:26;;;;;;;53368:14;;;;;;;;-1:-1:-1;53454:16:0;53426:4;53454:10;:16::i;:::-;53485:11;;:15;53481:296;;53517:15;53552:109;53627:4;:15;;;53552:48;53595:4;53552:38;53568:4;:21;;;53552:4;:11;;;:15;;:38;;;;:::i;:109::-;53517:144;-1:-1:-1;53680:11:0;;53676:90;;53712:38;53730:10;53742:7;53712:17;:38::i;:::-;53481:296;;53791:11;;53787:542;;53819:12;;:140;;-1:-1:-1;;;;;53819:12:0;53875:10;53913:4;53937:7;53819:29;:140::i;:::-;53978:17;;;;;;:21;53974:344;;54053:17;;;;54020:18;;54041:41;;54076:5;;54041:30;;:7;;54053:17;;54041:11;:30::i;:41::-;54127:10;;54101:12;;54020:62;;-1:-1:-1;54101:49:0;;-1:-1:-1;;;;;54101:12:0;;;;54127:10;54020:62;54101:25;:49::i;:::-;54183:11;;:40;;54212:10;;54183:24;;54199:7;54183:15;:24::i;:40::-;54169:54;;-1:-1:-1;53974:344:0;;;54278:11;;:24;;54294:7;54278:15;:24::i;:::-;54264:38;;53974:344;54373:21;;;;54357:11;;:48;;54400:4;;54357:38;;:15;:38::i;:48::-;54339:15;;;:66;54421:34;;;;;;;;54441:4;;54429:10;;54421:34;;;;;;;;;53278:1185;;;;:::o;2930:244::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3019:22:0;::::1;3011:73;;;;-1:-1:-1::0;;;3011:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3121:6;::::0;;3100:38:::1;::::0;-1:-1:-1;;;;;3100:38:0;;::::1;::::0;3121:6;::::1;::::0;3100:38:::1;::::0;::::1;3149:6;:17:::0;;-1:-1:-1;;;;;;3149:17:0::1;-1:-1:-1::0;;;;;3149:17:0;;;::::1;::::0;;;::::1;::::0;;2930:244::o;605:106::-;693:10;605:106;:::o;6764:220::-;6822:7;6846:6;6842:20;;-1:-1:-1;6861:1:0;6854:8;;6842:20;6885:5;;;6889:1;6885;:5;:1;6909:5;;;;;:10;6901:56;;;;-1:-1:-1;;;6901:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7462:153;7520:7;7552:1;7548;:5;7540:44;;;;;-1:-1:-1;;;7540:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7606:1;7602;:5;;;;;;;7462:153;-1:-1:-1;;;7462:153:0:o;6347:158::-;6405:7;6438:1;6433;:6;;6425:49;;;;;-1:-1:-1;;;6425:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6492:5:0;;;6347:158::o;55901:285::-;55997:5;;:30;;;-1:-1:-1;;;55997:30:0;;56021:4;55997:30;;;;;;55978:16;;-1:-1:-1;;;;;55997:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55997:30:0;;-1:-1:-1;56042:18:0;;;56038:141;;;56077:5;;:29;;;-1:-1:-1;;;56077:29:0;;-1:-1:-1;;;;;56077:29:0;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56038:141:0;;-1:-1:-1;56038:141:0;;56139:5;;:28;;;-1:-1:-1;;;56139:28:0;;-1:-1:-1;;;;;56139:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56038:141:0;55901:285;;;:::o;21764:177::-;21874:58;;;-1:-1:-1;;;;;21874:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21874:58:0;-1:-1:-1;;;21874:58:0;;;21847:86;;21867:5;;21847:19;:86::i;5885:179::-;5943:7;5975:5;;;5999:6;;;;5991:46;;;;;-1:-1:-1;;;5991:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;21949:205;22077:68;;;-1:-1:-1;;;;;22077:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22077:68:0;-1:-1:-1;;;22077:68:0;;;22050:96;;22070:5;;22050:19;:96::i;:::-;21949:205;;;;:::o;24069:761::-;24493:23;24519:69;24547:4;24519:69;;;;;;;;;;;;;;;;;24527:5;-1:-1:-1;;;;;24519:27:0;;;:69;;;;;:::i;:::-;24603:17;;24493:95;;-1:-1:-1;24603:21:0;24599:224;;24745:10;24734:30;;;;;;;;;;;;;;;-1:-1:-1;24734:30:0;24726:85;;;;-1:-1:-1;;;24726:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16864:195;16967:12;16999:52;17021:6;17029:4;17035:1;17038:12;16999:21;:52::i;:::-;16992:59;16864:195;-1:-1:-1;;;;16864:195:0:o;17916:530::-;18043:12;18101:5;18076:21;:30;;18068:81;;;;-1:-1:-1;;;18068:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18168:18;18179:6;18168:10;:18::i;:::-;18160:60;;;;;-1:-1:-1;;;18160:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18294:12;18308:23;18335:6;-1:-1:-1;;;;;18335:11:0;18355:5;18363:4;18335:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18335:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18293:75;;;;18386:52;18404:7;18413:10;18425:12;18386:17;:52::i;:::-;18379:59;17916:530;-1:-1:-1;;;;;;;17916:530:0:o;13946:422::-;14313:20;14352:8;;;13946:422::o;20456:742::-;20571:12;20600:7;20596:595;;;-1:-1:-1;20631:10:0;20624:17;;20596:595;20745:17;;:21;20741:439;;21008:10;21002:17;21069:15;21056:10;21052:2;21048:19;21041:44;20956:148;21151:12;21144:20;;-1:-1:-1;;;21144:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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