Contract 0x83bbca966537302F6C5CD903ed0f7e614B2F0f9B 1

 
 
Txn Hash
Method
Block
From
To
Value
0x6568dd40342e473bb0293c61f22294be281087868a65854d7f8ffdf3d6a29c1fPurchase For144016442022-03-17 3:36:25199 days 7 hrs agoENS Name cryptobanditz.eth IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00215198 36.70895929
0x9e1147837490b85787e75ff73fe4a0528ed17d3cee28a68dbbc6cb6e1339005fPurchase For143974042022-03-16 11:51:03199 days 23 hrs ago0x079552cc4aa9f29c5a2aba64d2056cf494d00340 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00135532 23.13347774
0xc318422caf2e62d8681fffc623dc42770ff016aeb912aa40e1520949ff5f058cPurchase For143971262022-03-16 10:46:42200 days 16 mins ago0xe5c890d88b89ac6611b6395d6a74e199d929adcc IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00128355 21.90860055
0x2854dd7f43c725034eab73519c11d3bbd92ea6ca9377e52504029c0b3fba38d3Purchase For143967122022-03-16 9:09:48200 days 1 hr ago0x5b2f1051b3fc1407cff5442e9a05fdb76c9f77b1 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.0013183 22.50165174
0x1f96eed4e7bf9482de1ce694ccb5ca8970a4169af8b6a89aeae03ec32872f0bbPurchase For143911282022-03-15 12:21:43200 days 22 hrs ago0xbca17b4501c395229d9bf76d3b71b3fdfddc155e IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00112636 19.2255949
0x234ce3b8a32988b00fa9c213608afbeb2c193df776a0f5939f238002c5aaa65aPurchase For143908322022-03-15 11:19:53200 days 23 hrs ago0xa468489d3818a64f5ae4cada210ec06352e6745c IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00121992 20.80959282
0x18fb9e2928742a77a3b8abcac528c8b8c62e8261b84d92a6c4866ff5688f0007Purchase For143906752022-03-15 10:42:50201 days 20 mins ago0x5b2f1051b3fc1407cff5442e9a05fdb76c9f77b1 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00109396 18.67247893
0x4ce331f501bfbb3f255f181b81c59f051c1dc79d0ccfe43aeba7fcdf4e254c9aPurchase For143900042022-03-15 8:09:35201 days 2 hrs ago0x6b35dca3b762111d359f704908ad6a7ecc9c04eb IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00067758 11.55842392
0xd1750fcc2026a7f8eb3d5dfa45c7f319cd05c5a17177645f4d3640379c266be6Purchase For143879602022-03-15 0:20:35201 days 10 hrs ago0x11cbc87ccae590b26094ec35649d19b87c1b8a5d IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00156152 26.65310294
0x46a5f77e1e5a729134fadd6b06ec4966bc28c440d986a80d5cee7fa4d714aabePurchase For143878922022-03-15 0:05:37201 days 10 hrs ago0x05d2471ac0a0143de4049e039f7ee203da05480c IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00107741 18.38999388
0xa307f696cef046f7752bdfc84fd5730e46cc71ad3bd5f6cc335774983518f41ePurchase For143873802022-03-14 22:16:39201 days 12 hrs ago0x5b2f1051b3fc1407cff5442e9a05fdb76c9f77b1 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.0026924 45.95575658
0xf5f64c5c1537372956103be5893eb25a1b5dae48c82db3e89d574fe54aef35e4Purchase For143872412022-03-14 21:44:31201 days 13 hrs ago0x079552cc4aa9f29c5a2aba64d2056cf494d00340 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00351681 60.02715236
0xfde76bccb4441fda2d1302c5abb754de84b9ab57bf3c7a2f6d96ac6d12eeae37Purchase For143864622022-03-14 18:53:57201 days 16 hrs ago0x0ed2fd18091321e14f18482a267bff88ba621b31 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00257744 43.99350439
0xdeea68eb84a693282f51d761677e0dfcc104166010aa5e9760bcafdeb11953ebPurchase For143853652022-03-14 14:49:51201 days 20 hrs ago0x079552cc4aa9f29c5a2aba64d2056cf494d00340 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00162881 27.8015672
0x17c3628d031f986b3648aaec610eac1dcf31913b745a3f479d1963172a9eebe0Purchase For143850822022-03-14 13:48:02201 days 21 hrs ago0x079552cc4aa9f29c5a2aba64d2056cf494d00340 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00118374 20.20498901
0x3ecb2f2a1328468c8e44fbf668c1ea571617002c7179a034eee115541c9a43f8Purchase For143849172022-03-14 13:12:49201 days 21 hrs ago0xe5c890d88b89ac6611b6395d6a74e199d929adcc IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00159737 27.26498739
0xe3ceb19bef2d1be994a1aca4808b214f70e07956077ab4d0bc84d87f7c9a9bbfPurchase For143844132022-03-14 11:19:36201 days 23 hrs ago0x695e9089fdd7d92037e525ac2cb59a509a0e9a84 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00092499 15.78844359
0x1d93c2b01dff64b97a6486156c24e22d6d11671cd07426b3ffb0d7cbd1ad56c3Purchase For143843012022-03-14 10:55:12202 days 7 mins ago0x695e9089fdd7d92037e525ac2cb59a509a0e9a84 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00103073 17.59328048
0x6a1792960dd6e6e20ae88f13e8dfff1778f2ab63bf85cb7460058fd30295db8aPurchase For143841772022-03-14 10:29:40202 days 33 mins ago0xe5c890d88b89ac6611b6395d6a74e199d929adcc IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00093683 15.99041191
0x01f261641c76730a8a348a2bff86de6fafccf7c48f1093c18564c3868a98c5cePurchase For143839942022-03-14 9:51:15202 days 1 hr ago0xe5c890d88b89ac6611b6395d6a74e199d929adcc IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00097733 16.68179202
0xcffdedb636faf21e69b4fa45ee505879577df54adba87292ef2dff39e8ef59faPurchase For143839832022-03-14 9:48:37202 days 1 hr ago0xe06e4d2e9563c6038c36d279165df74ecf7bf9f6 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00095713 16.33698467
0xfb91b31d9ddd8532870777ae6eba382a5dfe030cfe35bd084f281101c76786c3Purchase For143839772022-03-14 9:47:04202 days 1 hr ago0xe06e4d2e9563c6038c36d279165df74ecf7bf9f6 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00089643 15.30085261
0xb8b1c217b0e0fc45e8af522cefb7eaa1ae412119ce89ffeee28c82771619cee1Purchase For143839702022-03-14 9:45:39202 days 1 hr ago0xe06e4d2e9563c6038c36d279165df74ecf7bf9f6 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00088205 15.05540229
0x1fe18a99c25f293b4348640dd70a854b008c5a2400f87d50dcf8ebb6742dcd5fPurchase For143821262022-03-14 2:43:33202 days 8 hrs ago0x6dcbffba85042471958448fdfea1d4772c3cece6 IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.0015816 26.99587839
0xbe56e14af12862853e48488774de25dbe779d745567747a0b0c10954a354c3afPurchase For143805382022-03-13 20:50:42202 days 14 hrs ago0xfb90835d33e7ca1b5f7fabbf897fbf6e6299638b IN  0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0 Ether0.00163097 27.81564159
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1688be49190d34d9b08dbfed6551e12e848bb7e69032acf90a86e2a6c29769f8114047592020-12-07 9:01:38664 days 2 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.05 Ether
0x32ea601137ca0b6a0df440e6ac7e8f61ad112d223412bfbc41ca9d228b6200d7114001502020-12-06 16:04:27664 days 18 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.02 Ether
0x90501eee72562410810eb500315cdfe994cdd63690bdabf0fbc6b2479b877ade113997422020-12-06 14:32:34664 days 20 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0x51e8d39122dfd1419a0285259f6df2279cf70c4a1b3b999391ff3646a6396a38113997312020-12-06 14:29:19664 days 20 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.002 Ether
0x3bdd6424fd768ac17ea10225b9e327c4dbdc700ae45a24c85d3e6ed93cb04876113986742020-12-06 10:43:37665 days 19 mins ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.02 Ether
0xb925bf2753d2c6c51349921c71038d4cdcad088d2bd1b934510363b4fbe0b8aa113979482020-12-06 8:01:50665 days 3 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.002 Ether
0x4830617f032542f1fca9b55e20c2dbd49354aace8be65794a7583abdc79007ef113979482020-12-06 8:01:50665 days 3 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.002 Ether
0x445acea0df3dba278e3114bbbaa1f54549c62643f39a66d678d0c7a64978186d113952952020-12-05 22:21:54665 days 12 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.05 Ether
0x0049fe97d568250e54d0844ea048a40d91f8cf80497afcbfd11cfa13d5df2634113940672020-12-05 17:46:01665 days 17 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0x88e26f18ce9335ae424ce63aa336a02ddf75b7fe84bd67b5e7157db51ff7fad7113927102020-12-05 12:45:33665 days 22 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0xe3c01175a0a701da8644b3e20c3b45b9da95665ee02ddd8f59427caea589cd98113923032020-12-05 11:12:58665 days 23 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.02 Ether
0xc0962a16de91f394768b78401e91436191d2511d425ae116c63144a76d2039f2113922952020-12-05 11:10:30665 days 23 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.02 Ether
0x3373cd902c38d3a8c0f9640cd5b8a7e1cdc1f22b864bf75a5f84d553d2126313113922902020-12-05 11:09:34665 days 23 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0xcd0b039e2af81de8d0ecd0865d8f18b555edd7ec35a12091d0fced37780054fc113917022020-12-05 9:00:29666 days 2 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0xb9950ee8626610d0b17377cfaa2b6066f41b7acbfd8593579205208004b53501113806962020-12-03 16:20:43667 days 18 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.01 Ether
0xe82545a15ff07d6c24a16c020163412b6a118ad55df21d0e63e6ffa6e2507495113748222020-12-02 18:50:21668 days 16 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0x9f94e82713dc245742f2ba647833c1b7c9d4535d6ab5901e3b4e41ce61b74890113618052020-11-30 18:40:45670 days 16 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0xa5dea7b40a42d65b977e8458e2bdcf182573104e279d2b3e41eeb016359615ca113540042020-11-29 13:47:59671 days 21 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0xc3368813b7281f15535558e228f5286ea28d7c736d4baca00d9b96f1126edc2d113483692020-11-28 17:20:36672 days 17 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0x9af22c560958be80885cdccc9cddc551a4f9e8d7699653fbfd7e98d2533cc619113428142020-11-27 21:04:36673 days 13 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0xf3d916cf7d338ad15b743bb8b7b5a832a7f6f0e63d15d9b14c631e18a29dbb37113399862020-11-27 10:09:50674 days 53 mins ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0x82ac271ba74f51616184cd6e85f2e5d14dd9c1a0861f21ed2ca141eb15d684d8113300492020-11-25 21:52:27675 days 13 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.001 Ether
0x17601809ea2bd258c51588f48dea866fdc455ee41ed6a5e7e0d68c4eea93e52b113293612020-11-25 19:17:32675 days 15 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.05 Ether
0xf0828cf2346bab956ecb327193b759ec4110ff9963dac3852b59ce312df211c5113246572020-11-25 1:44:51676 days 9 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.005 Ether
0xb0999f7c66afc1b8a78fe18a10126fc24b460359aa901d49b05c2acbdffaa357112980232020-11-20 23:50:23680 days 11 hrs ago 0x83bbca966537302f6c5cd903ed0f7e614b2f0f9b0xa4b399269b7d265b3e895ccffd280020854e29b50.02 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimpleSale

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-24
*/

pragma solidity ^0.5.0;

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

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

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


pragma solidity ^0.5.0;

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

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

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

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);
}


pragma solidity ^0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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


pragma solidity ^0.5.0;

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public 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 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 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 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 {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _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 {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal {
        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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}


pragma solidity ^0.5.0;

/**
 * @dev Base interface for a contract that will be called via the GSN from {IRelayHub}.
 *
 * TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.
 */
interface IRelayRecipient {
    /**
     * @dev Returns the address of the {IRelayHub} instance this recipient interacts with.
     */
    function getHubAddr() external view returns (address);

    /**
     * @dev Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the
     * recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not).
     *
     * The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call
     * calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas,
     * and the transaction executed with a gas price of at least `gasPrice`. `relay`'s fee is `transactionFee`, and the
     * recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for
     * replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature
     * over all or some of the previous values.
     *
     * Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code,
     * values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions.
     *
     * {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered
     * rejected. A regular revert will also trigger a rejection.
     */
    function acceptRelayedCall(
        address relay,
        address from,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata approvalData,
        uint256 maxPossibleCharge
    )
        external
        view
        returns (uint256, bytes memory);

    /**
     * @dev Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g.
     * pre-charge the sender of the transaction.
     *
     * `context` is the second value returned in the tuple by {acceptRelayedCall}.
     *
     * Returns a value to be passed to {postRelayedCall}.
     *
     * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call
     * will not be executed, but the recipient will still be charged for the transaction's cost.
     */
    function preRelayedCall(bytes calldata context) external returns (bytes32);

    /**
     * @dev Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g.
     * charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform
     * contract-specific bookkeeping.
     *
     * `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of
     * the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction,
     * not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value.
     *
     *
     * {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call
     * and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the
     * transaction's cost.
     */
    function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external;
}

pragma solidity ^0.5.0;

/**
 * @dev Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract
 * directly.
 *
 * See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on
 * how to deploy an instance of `RelayHub` on your local test network.
 */
interface IRelayHub {
    // Relay management

    /**
     * @dev Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller
     * of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay
     * cannot be its own owner.
     *
     * All Ether in this function call will be added to the relay's stake.
     * Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one.
     *
     * Emits a {Staked} event.
     */
    function stake(address relayaddr, uint256 unstakeDelay) external payable;

    /**
     * @dev Emitted when a relay's stake or unstakeDelay are increased
     */
    event Staked(address indexed relay, uint256 stake, uint256 unstakeDelay);

    /**
     * @dev Registers the caller as a relay.
     * The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA).
     *
     * This function can be called multiple times, emitting new {RelayAdded} events. Note that the received
     * `transactionFee` is not enforced by {relayCall}.
     *
     * Emits a {RelayAdded} event.
     */
    function registerRelay(uint256 transactionFee, string calldata url) external;

    /**
     * @dev Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out
     * {RelayRemoved} events) lets a client discover the list of available relays.
     */
    event RelayAdded(address indexed relay, address indexed owner, uint256 transactionFee, uint256 stake, uint256 unstakeDelay, string url);

    /**
     * @dev Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed.
     *
     * Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be
     * callable.
     *
     * Emits a {RelayRemoved} event.
     */
    function removeRelayByOwner(address relay) external;

    /**
     * @dev Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable.
     */
    event RelayRemoved(address indexed relay, uint256 unstakeTime);

    /** Deletes the relay from the system, and gives back its stake to the owner.
     *
     * Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called.
     *
     * Emits an {Unstaked} event.
     */
    function unstake(address relay) external;

    /**
     * @dev Emitted when a relay is unstaked for, including the returned stake.
     */
    event Unstaked(address indexed relay, uint256 stake);

    // States a relay can be in
    enum RelayState {
        Unknown, // The relay is unknown to the system: it has never been staked for
        Staked, // The relay has been staked for, but it is not yet active
        Registered, // The relay has registered itself, and is active (can relay calls)
        Removed    // The relay has been removed by its owner and can no longer relay calls. It must wait for its unstakeDelay to elapse before it can unstake
    }

    /**
     * @dev Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function
     * to return an empty entry.
     */
    function getRelay(address relay) external view returns (uint256 totalStake, uint256 unstakeDelay, uint256 unstakeTime, address payable owner, RelayState state);

    // Balance management

    /**
     * @dev Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions.
     *
     * Unused balance can only be withdrawn by the contract itself, by calling {withdraw}.
     *
     * Emits a {Deposited} event.
     */
    function depositFor(address target) external payable;

    /**
     * @dev Emitted when {depositFor} is called, including the amount and account that was funded.
     */
    event Deposited(address indexed recipient, address indexed from, uint256 amount);

    /**
     * @dev Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue.
     */
    function balanceOf(address target) external view returns (uint256);

    /**
     * Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and
     * contracts can use it to reduce their funding.
     *
     * Emits a {Withdrawn} event.
     */
    function withdraw(uint256 amount, address payable dest) external;

    /**
     * @dev Emitted when an account withdraws funds from `RelayHub`.
     */
    event Withdrawn(address indexed account, address indexed dest, uint256 amount);

    // Relaying

    /**
     * @dev Checks if the `RelayHub` will accept a relayed operation.
     * Multiple things must be true for this to happen:
     *  - all arguments must be signed for by the sender (`from`)
     *  - the sender's nonce must be the current one
     *  - the recipient must accept this transaction (via {acceptRelayedCall})
     *
     * Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error
     * code if it returns one in {acceptRelayedCall}.
     */
    function canRelay(
        address relay,
        address from,
        address to,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata signature,
        bytes calldata approvalData
    ) external view returns (uint256 status, bytes memory recipientContext);

    // Preconditions for relaying, checked by canRelay and returned as the corresponding numeric values.
    enum PreconditionCheck {
        OK,                         // All checks passed, the call can be relayed
        WrongSignature,             // The transaction to relay is not signed by requested sender
        WrongNonce,                 // The provided nonce has already been used by the sender
        AcceptRelayedCallReverted,  // The recipient rejected this call via acceptRelayedCall
        InvalidRecipientStatusCode  // The recipient returned an invalid (reserved) status code
    }

    /**
     * @dev Relays a transaction.
     *
     * For this to succeed, multiple conditions must be met:
     *  - {canRelay} must `return PreconditionCheck.OK`
     *  - the sender must be a registered relay
     *  - the transaction's gas price must be larger or equal to the one that was requested by the sender
     *  - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the
     * recipient) use all gas available to them
     *  - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is
     * spent)
     *
     * If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded
     * function and {postRelayedCall} will be called in that order.
     *
     * Parameters:
     *  - `from`: the client originating the request
     *  - `to`: the target {IRelayRecipient} contract
     *  - `encodedFunction`: the function call to relay, including data
     *  - `transactionFee`: fee (%) the relay takes over actual gas cost
     *  - `gasPrice`: gas price the client is willing to pay
     *  - `gasLimit`: gas to forward when calling the encoded function
     *  - `nonce`: client's nonce
     *  - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses
     *  - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the
     * `RelayHub`, but it still can be used for e.g. a signature.
     *
     * Emits a {TransactionRelayed} event.
     */
    function relayCall(
        address from,
        address to,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata signature,
        bytes calldata approvalData
    ) external;

    /**
     * @dev Emitted when an attempt to relay a call failed.
     *
     * This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The
     * actual relayed call was not executed, and the recipient not charged.
     *
     * The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values
     * over 10 are custom recipient error codes returned from {acceptRelayedCall}.
     */
    event CanRelayFailed(address indexed relay, address indexed from, address indexed to, bytes4 selector, uint256 reason);

    /**
     * @dev Emitted when a transaction is relayed. 
     * Useful when monitoring a relay's operation and relayed calls to a contract
     *
     * Note that the actual encoded function might be reverted: this is indicated in the `status` parameter.
     *
     * `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner.
     */
    event TransactionRelayed(address indexed relay, address indexed from, address indexed to, bytes4 selector, RelayCallStatus status, uint256 charge);

    // Reason error codes for the TransactionRelayed event
    enum RelayCallStatus {
        OK,                      // The transaction was successfully relayed and execution successful - never included in the event
        RelayedCallFailed,       // The transaction was relayed, but the relayed call failed
        PreRelayedFailed,        // The transaction was not relayed due to preRelatedCall reverting
        PostRelayedFailed,       // The transaction was relayed and reverted due to postRelatedCall reverting
        RecipientBalanceChanged  // The transaction was relayed and reverted due to the recipient's balance changing
    }

    /**
     * @dev Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will
     * spend up to `relayedCallStipend` gas.
     */
    function requiredGas(uint256 relayedCallStipend) external view returns (uint256);

    /**
     * @dev Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee.
     */
    function maxPossibleCharge(uint256 relayedCallStipend, uint256 gasPrice, uint256 transactionFee) external view returns (uint256);

     // Relay penalization. 
     // Any account can penalize relays, removing them from the system immediately, and rewarding the
    // reporter with half of the relay's stake. The other half is burned so that, even if the relay penalizes itself, it
    // still loses half of its stake.

    /**
     * @dev Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and
     * different data (gas price, gas limit, etc. may be different).
     *
     * The (unsigned) transaction data and signature for both transactions must be provided.
     */
    function penalizeRepeatedNonce(bytes calldata unsignedTx1, bytes calldata signature1, bytes calldata unsignedTx2, bytes calldata signature2) external;

    /**
     * @dev Penalize a relay that sent a transaction that didn't target `RelayHub`'s {registerRelay} or {relayCall}.
     */
    function penalizeIllegalTransaction(bytes calldata unsignedTx, bytes calldata signature) external;

    /**
     * @dev Emitted when a relay is penalized.
     */
    event Penalized(address indexed relay, address sender, uint256 amount);

    /**
     * @dev Returns an account's nonce in `RelayHub`.
     */
    function getNonce(address from) external view returns (uint256);
}


pragma solidity ^0.5.0;

/**
 * @dev Base GSN recipient contract: includes the {IRelayRecipient} interface
 * and enables GSN support on all contracts in the inheritance tree.
 *
 * TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall},
 *  {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be
 * provided by derived contracts. See the
 * xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more
 * information on how to use the pre-built {GSNRecipientSignature} and
 * {GSNRecipientERC20Fee}, or how to write your own.
 */
contract GSNRecipient is IRelayRecipient, Context {
    // Default RelayHub address, deployed on mainnet and all testnets at the same address
    address private _relayHub = 0xD216153c06E857cD7f72665E0aF1d7D82172F494;

    uint256 constant private RELAYED_CALL_ACCEPTED = 0;
    uint256 constant private RELAYED_CALL_REJECTED = 11;

    // How much gas is forwarded to postRelayedCall
    uint256 constant internal POST_RELAYED_CALL_MAX_GAS = 100000;

    /**
     * @dev Emitted when a contract changes its {IRelayHub} contract to a new one.
     */
    event RelayHubChanged(address indexed oldRelayHub, address indexed newRelayHub);

    /**
     * @dev Returns the address of the {IRelayHub} contract for this recipient.
     */
    function getHubAddr() public view returns (address) {
        return _relayHub;
    }

    /**
     * @dev Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not
     * use the default instance.
     *
     * IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old
     * {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.
     */
    function _upgradeRelayHub(address newRelayHub) internal {
        address currentRelayHub = _relayHub;
        require(newRelayHub != address(0), "GSNRecipient: new RelayHub is the zero address");
        require(newRelayHub != currentRelayHub, "GSNRecipient: new RelayHub is the current one");

        emit RelayHubChanged(currentRelayHub, newRelayHub);

        _relayHub = newRelayHub;
    }

    /**
     * @dev Returns the version string of the {IRelayHub} for which this recipient implementation was built. If
     * {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.
     */
    // This function is view for future-proofing, it may require reading from
    // storage in the future.
    function relayHubVersion() public view returns (string memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return "1.0.0";
    }

    /**
     * @dev Withdraws the recipient's deposits in `RelayHub`.
     *
     * Derived contracts should expose this in an external interface with proper access control.
     */
    function _withdrawDeposits(uint256 amount, address payable payee) internal {
        IRelayHub(_relayHub).withdraw(amount, payee);
    }

    // Overrides for Context's functions: when called from RelayHub, sender and
    // data require some pre-processing: the actual sender is stored at the end
    // of the call data, which in turns means it needs to be removed from it
    // when handling said data.

    /**
     * @dev Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions,
     * and the end-user for GSN relayed calls (where msg.sender is actually `RelayHub`).
     *
     * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.sender`, and use {_msgSender} instead.
     */
    function _msgSender() internal view returns (address payable) {
        if (msg.sender != _relayHub) {
            return msg.sender;
        } else {
            return _getRelayedCallSender();
        }
    }

    /**
     * @dev Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions,
     * and a reduced version for GSN relayed calls (where msg.data contains additional information).
     *
     * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.data`, and use {_msgData} instead.
     */
    function _msgData() internal view returns (bytes memory) {
        if (msg.sender != _relayHub) {
            return msg.data;
        } else {
            return _getRelayedCallData();
        }
    }

    // Base implementations for pre and post relayedCall: only RelayHub can invoke them, and data is forwarded to the
    // internal hook.

    /**
     * @dev See `IRelayRecipient.preRelayedCall`.
     *
     * This function should not be overriden directly, use `_preRelayedCall` instead.
     *
     * * Requirements:
     *
     * - the caller must be the `RelayHub` contract.
     */
    function preRelayedCall(bytes calldata context) external returns (bytes32) {
        require(msg.sender == getHubAddr(), "GSNRecipient: caller is not RelayHub");
        return _preRelayedCall(context);
    }

    /**
     * @dev See `IRelayRecipient.preRelayedCall`.
     *
     * Called by `GSNRecipient.preRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts
     * must implement this function with any relayed-call preprocessing they may wish to do.
     *
     */
    function _preRelayedCall(bytes memory context) internal returns (bytes32);

    /**
     * @dev See `IRelayRecipient.postRelayedCall`.
     *
     * This function should not be overriden directly, use `_postRelayedCall` instead.
     *
     * * Requirements:
     *
     * - the caller must be the `RelayHub` contract.
     */
    function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external {
        require(msg.sender == getHubAddr(), "GSNRecipient: caller is not RelayHub");
        _postRelayedCall(context, success, actualCharge, preRetVal);
    }

    /**
     * @dev See `IRelayRecipient.postRelayedCall`.
     *
     * Called by `GSNRecipient.postRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts
     * must implement this function with any relayed-call postprocessing they may wish to do.
     *
     */
    function _postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) internal;

    /**
     * @dev Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract
     * will be charged a fee by RelayHub
     */
    function _approveRelayedCall() internal pure returns (uint256, bytes memory) {
        return _approveRelayedCall("");
    }

    /**
     * @dev See `GSNRecipient._approveRelayedCall`.
     *
     * This overload forwards `context` to _preRelayedCall and _postRelayedCall.
     */
    function _approveRelayedCall(bytes memory context) internal pure returns (uint256, bytes memory) {
        return (RELAYED_CALL_ACCEPTED, context);
    }

    /**
     * @dev Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.
     */
    function _rejectRelayedCall(uint256 errorCode) internal pure returns (uint256, bytes memory) {
        return (RELAYED_CALL_REJECTED + errorCode, "");
    }

    /*
     * @dev Calculates how much RelayHub will charge a recipient for using `gas` at a `gasPrice`, given a relayer's
     * `serviceFee`.
     */
    function _computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) internal pure returns (uint256) {
        // The fee is expressed as a percentage. E.g. a value of 40 stands for a 40% fee, so the recipient will be
        // charged for 1.4 times the spent amount.
        return (gas * gasPrice * (100 + serviceFee)) / 100;
    }

    function _getRelayedCallSender() private pure returns (address payable result) {
        // We need to read 20 bytes (an address) located at array index msg.data.length - 20. In memory, the array
        // is prefixed with a 32-byte length value, so we first add 32 to get the memory read index. However, doing
        // so would leave the address in the upper 20 bytes of the 32-byte word, which is inconvenient and would
        // require bit shifting. We therefore subtract 12 from the read index so the address lands on the lower 20
        // bytes. This can always be done due to the 32-byte prefix.

        // The final memory read index is msg.data.length - 20 + 32 - 12 = msg.data.length. Using inline assembly is the
        // easiest/most-efficient way to perform this operation.

        // These fields are not accessible from assembly
        bytes memory array = msg.data;
        uint256 index = msg.data.length;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
            result := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)
        }
        return result;
    }

    function _getRelayedCallData() private pure returns (bytes memory) {
        // RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,
        // we must strip the last 20 bytes (length of an address type) from it.

        uint256 actualDataLength = msg.data.length - 20;
        bytes memory actualData = new bytes(actualDataLength);

        for (uint256 i = 0; i < actualDataLength; ++i) {
            actualData[i] = msg.data[i];
        }

        return actualData;
    }
}


pragma solidity = 0.5.16;

contract SimpleSale is Ownable, GSNRecipient {
    using SafeMath for uint256;

    enum ErrorCodes {
        RESTRICTED_METHOD,
        INSUFFICIENT_BALANCE
    }

    struct Price {
        uint256 ethPrice;
        uint256 erc20Price;
    }

    event Purchased(
        string purchaseId,
        address paymentToken,
        uint256 price,
        uint256 quantity,
        address destination,
        address operator
    );

    event PriceUpdated(
        string purchaseId,
        uint256 ethPrice,
        uint256 erc20Price
    );

    address public ETH_ADDRESS = address(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);

    address public _erc20Token;
    address payable public _payoutWallet;

    mapping(string => Price) public _prices; //  purchaseId => price in tokens

    constructor(address payable payoutWallet, address erc20Token) public {
        setPayoutWallet(payoutWallet);
        _erc20Token = erc20Token;
    }

    function setPayoutWallet(address payable payoutWallet) public onlyOwner {
        require(payoutWallet != address(0));
        require(payoutWallet != address(this));
        _payoutWallet = payoutWallet;
    }

    function setErc20Token(address erc20Token) public onlyOwner {
        _erc20Token = erc20Token;
    }
    
    function setPrice(string memory purchaseId, uint256 ethPrice, uint256 erc20TokenPrice) public onlyOwner {
        _prices[purchaseId] = Price(ethPrice, erc20TokenPrice);
        emit PriceUpdated(purchaseId, ethPrice, erc20TokenPrice);
    }

    function purchaseFor(
        address destination,
        string memory purchaseId,
        uint256 quantity,
        address paymentToken
    ) public payable {
        require(quantity > 0, "Quantity can't be 0");
        require(paymentToken == ETH_ADDRESS || paymentToken == _erc20Token, "Unsupported payment token");

        address payable sender = _msgSender();

        Price memory price = _prices[purchaseId];

        if (paymentToken == ETH_ADDRESS) {
            require(price.ethPrice != 0, "purchaseId not found");
            uint totalPrice = price.ethPrice.mul(quantity);
            require(msg.value >= totalPrice, "Insufficient ETH");
            _payoutWallet.transfer(totalPrice);

            uint256 change = msg.value.sub(totalPrice);
            if (change > 0) {
                sender.transfer(change);
            }
            emit Purchased(purchaseId, paymentToken, price.ethPrice, quantity, destination, sender);
        } else {
            require(_erc20Token != address(0), "ERC20 payment not supported");
            require(price.erc20Price != 0, "Price not found");
            uint totalPrice = price.erc20Price.mul(quantity);
            require(ERC20(_erc20Token).transferFrom(sender, _payoutWallet, totalPrice));
            emit Purchased(purchaseId, paymentToken, price.erc20Price, quantity, destination, sender);
        }
    }

    /////////////////////////////////////////// GSNRecipient implementation ///////////////////////////////////
    /**
     * @dev Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN.
     */
    function acceptRelayedCall(
        address /*relay*/,
        address /*from*/,
        bytes calldata encodedFunction,
        uint256 /*transactionFee*/,
        uint256 /*gasPrice*/,
        uint256 /*gasLimit*/,
        uint256 /*nonce*/,
        bytes calldata /*approvalData*/,
        uint256 /*maxPossibleCharge*/
    )
        external
        view
        returns (uint256, bytes memory mem)
    {
        // restrict to burn function only
        // load methodId stored in first 4 bytes https://solidity.readthedocs.io/en/v0.5.16/abi-spec.html#function-selector-and-argument-encoding
        // load amount stored in the next 32 bytes https://solidity.readthedocs.io/en/v0.5.16/abi-spec.html#function-selector-and-argument-encoding
        // 32 bytes offset is required to skip array length
        bytes4 methodId;
        address recipient;
        string memory purchaseId;
        uint256 quantity;
        address paymentToken;
        mem = encodedFunction;
        assembly {
            let dest := add(mem, 32)
            methodId := mload(dest)
            dest := add(dest, 4)
            recipient := mload(dest)
            dest := add(dest, 32)
            purchaseId := mload(dest)
            dest := add(dest, 32)
            quantity := mload(dest)
            dest := add(dest, 32)
            paymentToken := mload(dest)
        }

        // bytes4(keccak256("purchaseFor(address,string,uint256,address)")) == 0xwwwwww
        // if (methodId != 0xwwwwww) {
            // return _rejectRelayedCall(uint256(ErrorCodes.RESTRICTED_METHOD));
        // }

        // Check that user has enough balance
        // if (balanceOf(from) < amountParam) {
        //     return _rejectRelayedCall(uint256(ErrorCodes.INSUFFICIENT_BALANCE));
        // }

        //TODO restrict to purchaseFor() and add validation checks

        return _approveRelayedCall();
    }

    function _preRelayedCall(bytes memory) internal returns (bytes32) {
        // solhint-disable-previous-line no-empty-blocks
    }

    function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal {
        // solhint-disable-previous-line no-empty-blocks
    }

    /**
     * @dev Withdraws the recipient's deposits in `RelayHub`.
     */
    function withdrawDeposits(uint256 amount, address payable payee) external onlyOwner {
        _withdrawDeposits(amount, payee);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"payoutWallet","type":"address"},{"internalType":"address","name":"erc20Token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"purchaseId","type":"string"},{"indexed":false,"internalType":"uint256","name":"ethPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"erc20Price","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"purchaseId","type":"string"},{"indexed":false,"internalType":"address","name":"paymentToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"constant":true,"inputs":[],"name":"ETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_erc20Token","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_payoutWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"_prices","outputs":[{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"uint256","name":"erc20Price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"mem","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"string","name":"purchaseId","type":"string"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"paymentToken","type":"address"}],"name":"purchaseFor","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"erc20Token","type":"address"}],"name":"setErc20Token","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"payoutWallet","type":"address"}],"name":"setPayoutWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"purchaseId","type":"string"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"uint256","name":"erc20TokenPrice","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawDeposits","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600180546001600160a01b031990811673d216153c06e857cd7f72665e0af1d7d82172f494179091556002805490911673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1790553480156200005957600080fd5b5060405162001a7d38038062001a7d833981810160405260408110156200007f57600080fd5b50805160209091015160006200009d6001600160e01b036200012216565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000fb826001600160e01b036200015916565b600380546001600160a01b0319166001600160a01b03929092169190911790555062000287565b6001546000906001600160a01b031633146200014057503362000156565b620001536001600160e01b036200020b16565b90505b90565b6200016c6001600160e01b036200025816565b620001be576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620001d257600080fd5b6001600160a01b038116301415620001e957600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b600080546001600160a01b0316620002786001600160e01b036200012216565b6001600160a01b031614905090565b6117e680620002976000396000f3fe6080604052600436106101095760003560e01c80638da5cb5b11610095578063c2db1abe11610064578063c2db1abe1461062d578063e06e0e2214610666578063ecb7db46146106ef578063efb54029146107b9578063f2fde38b146107ce57610109565b80638da5cb5b146105505780638f32d59b14610565578063a734f06e1461058e578063ad61ccd5146105a357610109565b80636b8f9c43116100dc5780636b8f9c43146102ec578063715018a61461031f57806374e861d61461033457806380274db71461034957806383947ea0146103d657610109565b80631d74e6781461010e57806326e5cb69146101c65780635e66d0e4146101f9578063628812081461022a575b600080fd5b34801561011a57600080fd5b506101c46004803603606081101561013157600080fd5b810190602081018135600160201b81111561014b57600080fd5b82018360208201111561015d57600080fd5b803590602001918460018302840111600160201b8311171561017e57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505082359350505060200135610801565b005b3480156101d257600080fd5b506101c4600480360360208110156101e957600080fd5b50356001600160a01b0316610978565b34801561020557600080fd5b5061020e6109e1565b604080516001600160a01b039092168252519081900360200190f35b6101c46004803603608081101561024057600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561026a57600080fd5b82018360208201111561027c57600080fd5b803590602001918460018302840111600160201b8311171561029d57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050823593505050602001356001600160a01b03166109f0565b3480156102f857600080fd5b506101c46004803603602081101561030f57600080fd5b50356001600160a01b0316610fe9565b34801561032b57600080fd5b506101c461107b565b34801561034057600080fd5b5061020e61110c565b34801561035557600080fd5b506103c46004803603602081101561036c57600080fd5b810190602081018135600160201b81111561038657600080fd5b82018360208201111561039857600080fd5b803590602001918460018302840111600160201b831117156103b957600080fd5b50909250905061111c565b60408051918252519081900360200190f35b3480156103e257600080fd5b506104d160048036036101208110156103fa57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460018302840111600160201b8311171561046057600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b9193509150356111bd565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105145781810151838201526020016104fc565b50505050905090810190601f1680156105415780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561055c57600080fd5b5061020e611248565b34801561057157600080fd5b5061057a611257565b604080519115158252519081900360200190f35b34801561059a57600080fd5b5061020e61127b565b3480156105af57600080fd5b506105b861128a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156105f25781810151838201526020016105da565b50505050905090810190601f16801561061f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561063957600080fd5b506101c46004803603604081101561065057600080fd5b50803590602001356001600160a01b03166112a9565b34801561067257600080fd5b506101c46004803603608081101561068957600080fd5b810190602081018135600160201b8111156106a357600080fd5b8201836020820111156106b557600080fd5b803590602001918460018302840111600160201b831117156106d657600080fd5b91935091508035151590602081013590604001356112fe565b3480156106fb57600080fd5b506107a06004803603602081101561071257600080fd5b810190602081018135600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460018302840111600160201b8311171561075f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506113a0945050505050565b6040805192835260208301919091528051918290030190f35b3480156107c557600080fd5b5061020e6113c4565b3480156107da57600080fd5b506101c4600480360360208110156107f157600080fd5b50356001600160a01b03166113d3565b610809611257565b610848576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b6040518060400160405280838152602001828152506005846040518082805190602001908083835b6020831061088f5780518252601f199092019160209182019101610870565b51815160209384036101000a600019018019909216911617905292019485525060408051948590038201852086518155958201516001909601959095558381018790529383018590525050606080825285519082015284517f6e838f2a03741f5f2aff5480963b672fb0dd8430a4dc75db9b67ce009733c9fe928692869286928291608083019187019080838360005b8381101561093757818101518382015260200161091f565b50505050905090810190601f1680156109645780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a1505050565b610980611257565b6109bf576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b60008211610a3b576040805162461bcd60e51b815260206004820152601360248201527205175616e746974792063616e2774206265203606c1b604482015290519081900360640190fd5b6002546001600160a01b0382811691161480610a6457506003546001600160a01b038281169116145b610ab5576040805162461bcd60e51b815260206004820152601960248201527f556e737570706f72746564207061796d656e7420746f6b656e00000000000000604482015290519081900360640190fd5b6000610abf611426565b9050610ac961170c565b6005856040518082805190602001908083835b60208310610afb5780518252601f199092019160209182019101610adc565b51815160209384036101000a600019018019909216911617905292019485525060408051948590038201852085820190915280548552600101549084015250506002549091506001600160a01b039081169084161415610d8d578051610b9f576040805162461bcd60e51b81526020600482015260146024820152731c1d5c98da185cd95259081b9bdd08199bdd5b9960621b604482015290519081900360640190fd5b8051600090610bb4908663ffffffff61145116565b905080341015610bfe576040805162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b604482015290519081900360640190fd5b6004546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610c38573d6000803e3d6000fd5b506000610c4b348363ffffffff6114aa16565b90508015610c8b576040516001600160a01b0385169082156108fc029083906000818181858888f19350505050158015610c89573d6000803e3d6000fd5b505b7fce00da9bf01ad6858762bbbaf0dbf7f90ff93fb915adaa03aff580d6358f1d1187868560000151898c896040518080602001876001600160a01b03166001600160a01b03168152602001868152602001858152602001846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b03168152602001828103825288818151815260200191508051906020019080838360005b83811015610d47578181015183820152602001610d2f565b50505050905090810190601f168015610d745780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a15050610fe1565b6003546001600160a01b0316610dea576040805162461bcd60e51b815260206004820152601b60248201527f4552433230207061796d656e74206e6f7420737570706f727465640000000000604482015290519081900360640190fd5b6020810151610e32576040805162461bcd60e51b815260206004820152600f60248201526e141c9a58d9481b9bdd08199bdd5b99608a1b604482015290519081900360640190fd5b6020810151600090610e4a908663ffffffff61145116565b60035460048054604080516323b872dd60e01b81526001600160a01b0389811694820194909452918316602483015260448201859052519394509116916323b872dd916064808201926020929091908290030181600087803b158015610eaf57600080fd5b505af1158015610ec3573d6000803e3d6000fd5b505050506040513d6020811015610ed957600080fd5b5051610ee457600080fd5b7fce00da9bf01ad6858762bbbaf0dbf7f90ff93fb915adaa03aff580d6358f1d1186858460200151888b886040518080602001876001600160a01b03166001600160a01b03168152602001868152602001858152602001846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b03168152602001828103825288818151815260200191508051906020019080838360005b83811015610fa0578181015183820152602001610f88565b50505050905090810190601f168015610fcd5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a1505b505050505050565b610ff1611257565b611030576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b6001600160a01b03811661104357600080fd5b6001600160a01b03811630141561105957600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b611083611257565b6110c2576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b03165b90565b600061112661110c565b6001600160a01b0316336001600160a01b0316146111755760405162461bcd60e51b815260040180806020018281038252602481526020018061178e6024913960400191505060405180910390fd5b6111b483838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506114ec92505050565b90505b92915050565b6000606060008060606000808f8f8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505060208101516024820151604483015160648401516084850151949a5092985090965094509250905061122f6114f2565b9650965050505050509b509b9950505050505050505050565b6000546001600160a01b031690565b600080546001600160a01b031661126c611426565b6001600160a01b031614905090565b6002546001600160a01b031681565b6040805180820190915260058152640312e302e360dc1b602082015290565b6112b1611257565b6112f0576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b6112fa8282611516565b5050565b61130661110c565b6001600160a01b0316336001600160a01b0316146113555760405162461bcd60e51b815260040180806020018281038252602481526020018061178e6024913960400191505060405180910390fd5b61139985858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925086915085905061157d565b5050505050565b80516020818301810180516005825292820191909301209152805460019091015482565b6003546001600160a01b031681565b6113db611257565b61141a576040805162461bcd60e51b8152602060048201819052602482015260008051602061176e833981519152604482015290519081900360640190fd5b61142381611583565b50565b6001546000906001600160a01b03163314611442575033611119565b61144a611623565b9050611119565b600082611460575060006111b7565b8282028284828161146d57fe5b04146111b45760405162461bcd60e51b815260040180806020018281038252602181526020018061174d6021913960400191505060405180910390fd5b60006111b483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611670565b50600090565b6000606061150e60405180602001604052806000815250611707565b915091509091565b60015460408051627b8a6760e11b8152600481018590526001600160a01b0384811660248301529151919092169162f714ce91604480830192600092919082900301818387803b15801561156957600080fd5b505af1158015610fe1573d6000803e3d6000fd5b50505050565b6001600160a01b0381166115c85760405162461bcd60e51b81526004018080602001828103825260268152602001806117276026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b600081848411156116ff5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c45781810151838201526020016116ac565b50505050905090810190601f1680156116f15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600091565b60405180604001604052806000815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a265627a7a723158200237b99e9b47f03a22b77275dd63fd9e137bcfcfa5432d60ec2439250993f37564736f6c63430005100032000000000000000000000000a4b399269b7d265b3e895ccffd280020854e29b50000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000a4b399269b7d265b3e895ccffd280020854e29b50000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : payoutWallet (address): 0xA4B399269b7D265B3e895CCFFD280020854e29B5
Arg [1] : erc20Token (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4b399269b7d265b3e895ccffd280020854e29b5
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

46198:5704:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47524:244;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47524:244:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;47524:244:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;47524:244:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;47524:244:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;47524:244:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;47524:244:0;;-1:-1:-1;;47524:244:0;;;-1:-1:-1;;;47524:244:0;;;;:::i;:::-;;47409:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47409:103:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47409:103:0;-1:-1:-1;;;;;47409:103:0;;:::i;46900:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46900:36:0;;;:::i;:::-;;;;-1:-1:-1;;;;;46900:36:0;;;;;;;;;;;;;;47776:1408;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;47776:1408:0;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;47776:1408:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;47776:1408:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;47776:1408:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;47776:1408:0;;-1:-1:-1;;47776:1408:0;;;-1:-1:-1;;;47776:1408:0;;;-1:-1:-1;;;;;47776:1408:0;;:::i;47187:214::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47187:214:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47187:214:0;-1:-1:-1;;;;;47187:214:0;;:::i;2855:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2855:140:0;;;:::i;37669:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37669:87:0;;;:::i;41332:211::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41332:211:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41332:211:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;41332:211:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;41332:211:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;41332:211:0;;-1:-1:-1;41332:211:0;-1:-1:-1;41332:211:0;:::i;:::-;;;;;;;;;;;;;;;;49445:1943;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49445:1943:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;49445:1943:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;49445:1943:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;49445:1943:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;49445:1943:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;49445:1943:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;49445:1943:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;49445:1943:0;;-1:-1:-1;49445:1943:0;-1:-1:-1;49445:1943:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;49445:1943:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2044:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2044:79:0;;;:::i;2410:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2410:94:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;46776:82;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46776:82:0;;;:::i;38927:230::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38927:230:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;38927:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51764:135;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51764:135:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51764:135:0;;;;;;-1:-1:-1;;;;;51764:135:0;;:::i;42192:277::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42192:277:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;42192:277:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;42192:277:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;42192:277:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;42192:277:0;;-1:-1:-1;42192:277:0;-1:-1:-1;42192:277:0;;;;;;;;;;;;;;:::i;46945:39::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46945:39:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;46945:39:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;46945:39:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;46945:39:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;46945:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;46945:39:0;;-1:-1:-1;46945:39:0;;-1:-1:-1;;;;;46945:39:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;46867:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46867:26:0;;;:::i;3150:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3150:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3150:109:0;-1:-1:-1;;;;;3150:109:0;;:::i;47524:244::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;47661:32;;;;;;;;47667:8;47661:32;;;;47677:15;47661:32;;;47639:7;47647:10;47639:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;47639:19:0;;;;;-1:-1:-1;47639:19:0;;;;;;;;;;;:54;;;;;;;;274:1:-1;47639:54:0;;;;;;;47709:51;;;;;;;;;;;;-1:-1:-1;;47709:51:0;;;;;;;;;;;;;;;;;;;;47639:19;;47709:51;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;47709:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47524:244;;;:::o;47409:103::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;47480:11;:24;;-1:-1:-1;;;;;;47480:24:0;-1:-1:-1;;;;;47480:24:0;;;;;;;;;;47409:103::o;46900:36::-;;;-1:-1:-1;;;;;46900:36:0;;:::o;47776:1408::-;47972:1;47961:8;:12;47953:44;;;;;-1:-1:-1;;;47953:44:0;;;;;;;;;;;;-1:-1:-1;;;47953:44:0;;;;;;;;;;;;;;;48032:11;;-1:-1:-1;;;;;48016:27:0;;;48032:11;;48016:27;;:58;;-1:-1:-1;48063:11:0;;-1:-1:-1;;;;;48047:27:0;;;48063:11;;48047:27;48016:58;48008:96;;;;;-1:-1:-1;;;48008:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48117:22;48142:12;:10;:12::i;:::-;48117:37;;48167:18;;:::i;:::-;48188:7;48196:10;48188:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;48188:19:0;;;;;-1:-1:-1;48188:19:0;;;;;;;;;;;48167:40;;;;;;;;;;274:1:-1;48167:40:0;;;;;;-1:-1:-1;;48240:11:0;;48188:19;;-1:-1:-1;;;;;;48240:11:0;;;48224:27;;;;48220:957;;;48276:14;;48268:52;;;;;-1:-1:-1;;;48268:52:0;;;;;;;;;;;;-1:-1:-1;;;48268:52:0;;;;;;;;;;;;;;;48353:14;;48335:15;;48353:28;;48372:8;48353:28;:18;:28;:::i;:::-;48335:46;;48417:10;48404:9;:23;;48396:52;;;;;-1:-1:-1;;;48396:52:0;;;;;;;;;;;;-1:-1:-1;;;48396:52:0;;;;;;;;;;;;;;;48463:13;;:34;;-1:-1:-1;;;;;48463:13:0;;;;:34;;;;;48486:10;;48463:13;:34;:13;:34;48486:10;48463:13;:34;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;48514:14:0;48531:25;:9;48545:10;48531:25;:13;:25;:::i;:::-;48514:42;-1:-1:-1;48575:10:0;;48571:74;;48606:23;;-1:-1:-1;;;;;48606:15:0;;;:23;;;;;48622:6;;48606:23;;;;48622:6;48606:15;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48606:23:0;48571:74;48664:82;48674:10;48686:12;48700:5;:14;;;48716:8;48726:11;48739:6;48664:82;;;;;;;-1:-1:-1;;;;;48664:82:0;-1:-1:-1;;;;;48664:82:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48664:82:0;-1:-1:-1;;;;;48664:82:0;;;;;;-1:-1:-1;;;;;48664:82:0;-1:-1:-1;;;;;48664:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;48664:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48220:957;;;;;48787:11;;-1:-1:-1;;;;;48787:11:0;48779:65;;;;;-1:-1:-1;;;48779:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48867:16;;;;48859:49;;;;;-1:-1:-1;;;48859:49:0;;;;;;;;;;;;-1:-1:-1;;;48859:49:0;;;;;;;;;;;;;;;48941:16;;;;48923:15;;48941:30;;48962:8;48941:30;:20;:30;:::i;:::-;49000:11;;49034:13;;;48994:66;;;-1:-1:-1;;;48994:66:0;;-1:-1:-1;;;;;48994:66:0;;;;;;;;;;49034:13;;;48994:66;;;;;;;;;;;48923:48;;-1:-1:-1;49000:11:0;;;48994:31;;:66;;;;;;;;;;;;;;;49000:11;;48994:66;;;5:2:-1;;;;30:1;27;20:12;5:2;48994:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48994:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48994:66:0;48986:75;;;;;;49081:84;49091:10;49103:12;49117:5;:16;;;49135:8;49145:11;49158:6;49081:84;;;;;;;-1:-1:-1;;;;;49081:84:0;-1:-1:-1;;;;;49081:84:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49081:84:0;-1:-1:-1;;;;;49081:84:0;;;;;;-1:-1:-1;;;;;49081:84:0;-1:-1:-1;;;;;49081:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;49081:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48220:957;;47776:1408;;;;;;:::o;47187:214::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;47278:26:0;;47270:35;;;;;;-1:-1:-1;;;;;47324:29:0;;47348:4;47324:29;;47316:38;;;;;;47365:13;:28;;-1:-1:-1;;;;;;47365:28:0;-1:-1:-1;;;;;47365:28:0;;;;;;;;;;47187:214::o;2855:140::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;2954:1;2938:6;;2917:40;;-1:-1:-1;;;;;2938:6:0;;;;2917:40;;2954:1;;2917:40;2985:1;2968:19;;-1:-1:-1;;;;;;2968:19:0;;;2855:140::o;37669:87::-;37739:9;;-1:-1:-1;;;;;37739:9:0;37669:87;;:::o;41332:211::-;41398:7;41440:12;:10;:12::i;:::-;-1:-1:-1;;;;;41426:26:0;:10;-1:-1:-1;;;;;41426:26:0;;41418:75;;;;-1:-1:-1;;;41418:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41511:24;41527:7;;41511:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;41511:15:0;;-1:-1:-1;;;41511:24:0:i;:::-;41504:31;;41332:211;;;;;:::o;49445:1943::-;49834:7;49843:16;50277:15;50303:17;50331:24;50366:16;50393:20;50430:15;;50424:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;;;50501:2:0;50492:12;;50530:11;50563:12;;;50602:11;50635:13;;;50676:11;50709:13;;;50748:11;50781:13;;;50824:11;50492:12;;-1:-1:-1;50530:11:0;;-1:-1:-1;50602:11:0;;-1:-1:-1;50676:11:0;-1:-1:-1;50748:11:0;-1:-1:-1;50824:11:0;-1:-1:-1;51359:21:0;:19;:21::i;:::-;51352:28;;;;;;;;;49445:1943;;;;;;;;;;;;;;:::o;2044:79::-;2082:7;2109:6;-1:-1:-1;;;;;2109:6:0;2044:79;:::o;2410:94::-;2450:4;2490:6;;-1:-1:-1;;;;;2490:6:0;2474:12;:10;:12::i;:::-;-1:-1:-1;;;;;2474:22:0;;2467:29;;2410:94;:::o;46776:82::-;;;-1:-1:-1;;;;;46776:82:0;;:::o;38927:230::-;39135:14;;;;;;;;;;;;-1:-1:-1;;;39135:14:0;;;;38927:230;:::o;51764:135::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;51859:32;51877:6;51885:5;51859:17;:32::i;:::-;51764:135;;:::o;42192:277::-;42338:12;:10;:12::i;:::-;-1:-1:-1;;;;;42324:26:0;:10;-1:-1:-1;;;;;42324:26:0;;42316:75;;;;-1:-1:-1;;;42316:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42402:59;42419:7;;42402:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;42428:7:0;;-1:-1:-1;42437:12:0;;-1:-1:-1;42451:9:0;;-1:-1:-1;42402:16:0;:59::i;:::-;42192:277;;;;;:::o;46945:39::-;22:14:-1;;169:4;143:32;;;;;198:20;;46945:39:0;224:31:-1;;156:18;;;283;;;;273:49;328:32;;46945:39:0;;;;;;;;:::o;46867:26::-;;;-1:-1:-1;;;;;46867:26:0;;:::o;3150:109::-;2256:9;:7;:9::i;:::-;2248:54;;;;;-1:-1:-1;;;2248:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2248:54:0;;;;;;;;;;;;;;;3223:28;3242:8;3223:18;:28::i;:::-;3150:109;:::o;40129:216::-;40220:9;;40174:15;;-1:-1:-1;;;;;40220:9:0;40206:10;:23;40202:136;;-1:-1:-1;40253:10:0;40246:17;;40202:136;40303:23;:21;:23::i;:::-;40296:30;;;;8655:471;8713:7;8958:6;8954:47;;-1:-1:-1;8988:1:0;8981:8;;8954:47;9025:5;;;9029:1;9025;:5;:1;9049:5;;;;;:10;9041:56;;;;-1:-1:-1;;;9041:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7739:136;7797:7;7824:43;7828:1;7831;7824:43;;;;;;;;;;;;;;;;;:3;:43::i;51396:132::-;-1:-1:-1;51453:7:0;;51396:132::o;43078:126::-;43132:7;43141:12;43173:23;;;;;;;;;;;;;:19;:23::i;:::-;43166:30;;;;43078:126;;:::o;39352:138::-;39448:9;;39438:44;;;-1:-1:-1;;;39438:44:0;;;;;;;;-1:-1:-1;;;;;39438:44:0;;;;;;;;;39448:9;;;;;39438:29;;:44;;;;;39448:9;;39438:44;;;;;;;39448:9;;39438:44;;;5:2:-1;;;;30:1;27;20:12;5:2;39438:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;51536:139:0;;;;;:::o;3365:229::-;-1:-1:-1;;;;;3439:22:0;;3431:73;;;;-1:-1:-1;;;3431:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3541:6;;;3520:38;;-1:-1:-1;;;;;3520:38:0;;;;3541:6;;;3520:38;;;3569:6;:17;;-1:-1:-1;;;;;;3569:17:0;-1:-1:-1;;;;;3569:17:0;;;;;;;;;;3365:229::o;44338:1270::-;44393:22;45211:18;45232:8;;45211:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;;;45267:8:0;45503:17;45497:24;-1:-1:-1;;;;;45493:73:0;;44338:1270;-1:-1:-1;;44338:1270:0:o;8212:192::-;8298:7;8334:12;8326:6;;;;8318:29;;;;-1:-1:-1;;;8318:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;8318:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8370:5:0;;;8212:192::o;43373:155::-;43447:7;;43373:155::o;46198:5704::-;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://0237b99e9b47f03a22b77275dd63fd9e137bcfcfa5432d60ec2439250993f375
Block Transaction Difficulty Gas Used Reward
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.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.