Contract 0xf6fba8586a9a0ae40df574c9a9f6668134d27603

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x58d700060c5a06bc173bcb9d8224ae20d0b7d934d5ebdde36f148b0e1e6ecb0385582382021-06-23 21:48:243 mins ago0x10765114f6173fc7d9bea32ef6119684c20a49ca IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001493605
0x1064b02db4d4e09a3e0e820172ea62fb48695beb24dc10ab732e79824102a0d385582182021-06-23 21:47:244 mins ago0x42238feb30ddb3991c57ae74af2f05f26cf41139 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00102841
0xd3a3cefe0a7b773805fe2a69c10924a0a63137da41287930b7e557b520da9c8685579182021-06-23 21:32:2419 mins ago0x42238feb30ddb3991c57ae74af2f05f26cf41139 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00148123
0xbaf088f02369b7751e31b8ff404e3d403bf561284b6f41af7200ce0b0476d51d85579002021-06-23 21:31:3020 mins ago0x42238feb30ddb3991c57ae74af2f05f26cf41139 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001019115
0x8c3e163bb5012f2d201230223adba2c0a1b8890fc720edcae85c2a866542d43f85573962021-06-23 21:06:1845 mins ago0x10765114f6173fc7d9bea32ef6119684c20a49ca IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001517955
0x6331c4ea65ad4a1274ea32bdd061e99336d8337eb7294a6d9408d00ed8cd94eb85571752021-06-23 20:55:1356 mins ago0x3bee91ad788fd4b2a178fb4ecc6ec2341a62aed8 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00144181
0x878fb7288ea5b9334778511f6adbcccd49f883077aa820473b2437bc3d5841ef85567492021-06-23 20:33:541 hr 18 mins ago0x6caa8d1f17a5e12dff63c3410e6aae3e3782b522 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001497475
0xa69c1a42ffaf0040edb0834ab4c95cd006b70e11ef123ef3274dfe90602d29e985567072021-06-23 20:31:481 hr 20 mins ago0x6caa8d1f17a5e12dff63c3410e6aae3e3782b522 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00233152
0x1756a005d24e1213d477611615b2838c532f7779f73026d32bb8e57dc7090a4c85563562021-06-23 20:14:151 hr 37 mins ago0x607204332f069f759e85493267dd3875628938d9 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.002098089
0x1965265f55738f6681b14ce5fa1fbd11a8a172ab8a655e0e4d0c884f0426646b85560592021-06-23 19:59:241 hr 52 mins ago0x10765114f6173fc7d9bea32ef6119684c20a49ca IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001448055
0xfadfb471f3b8d7e88a551a0e61b98f4150464326762a2deb5d379c59082a2f1585558912021-06-23 19:50:272 hrs 1 min ago0x0ae02b7fe8e42b5cb50fa7effa508af6115e1f7b IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001354675
0xd3c871defb93c6d2320819631ee565b610dbf59cfa96b8da6c22f3176f16dab685552422021-06-23 19:17:272 hrs 34 mins ago0x42238feb30ddb3991c57ae74af2f05f26cf41139 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00102639
0x6e95c746c59271afc9c76b2afc692d582c4e687ab80fca146f9be257073bd16385546642021-06-23 18:48:333 hrs 3 mins ago0xab63db56f6d0fa311df5edd760854bbb82577292 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00253912
0xdee38d58d37205597acfd322e754e80b840978b64c495487897716c4c7e4792e85546602021-06-23 18:48:213 hrs 3 mins ago0xfee70fd360da392257e42f950c8be0b5c5583b7d IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001438985
0x6b64efc0b6686cc3fcb61876a85722aeb054d1c9548a4efa915af5117ea130fe85546512021-06-23 18:47:543 hrs 4 mins ago0xfee70fd360da392257e42f950c8be0b5c5583b7d IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001490305
0xfce1d33d1fd893910453766ac0a8fc1114ed5ab559da6a8b13038859d3300c6385544312021-06-23 18:36:543 hrs 15 mins ago0x887af30a9eac07b5f98874ed7154505f62d2ae6a IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.000959655
0x49c6279110634c1adf4e0de10efcd24fe35f49dbf722abd31488b16cd4abf71e85544292021-06-23 18:36:483 hrs 15 mins ago0xf17ef5feffd6638d829f7df224282e09dfbdb1cb IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00273539
0x7f6e642778b5e5f040bc80904c2062aa54ba58b52763630e5e936b746264e1e085544282021-06-23 18:36:453 hrs 15 mins ago0xfee70fd360da392257e42f950c8be0b5c5583b7d IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00095365
0x59fa22ae03a37b69c5a896698b4fd25ffda50d1f1af700345eb0a03eb71d24b985543812021-06-23 18:34:243 hrs 17 mins ago0xfe3a79f402833e061b801f6d6b4cbd5a0772d250 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00279827
0xd82da1715bea50a9ae2043de57ff14971992913b4d8a4cb0b11408f28c94671385542672021-06-23 18:28:423 hrs 23 mins ago0xfee70fd360da392257e42f950c8be0b5c5583b7d IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.001436735
0xa8395acfcd03e47f7f83ec2351997b7eaaf3841236268f57cce0dd35c1519be685540452021-06-23 18:17:363 hrs 34 mins ago0x0ae02b7fe8e42b5cb50fa7effa508af6115e1f7b IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00101834
0xc4f8573926d11d2e0dc06bfdba3b7190ebf4a5f7e87b1c328dff79c1ec19157d85537432021-06-23 18:02:303 hrs 49 mins ago0xfe3a79f402833e061b801f6d6b4cbd5a0772d250 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.000992175
0x515c850e73390166a4c1651185574e0d826e632e21caaa2f1401a7406c7a50d085535662021-06-23 17:53:393 hrs 58 mins ago0x0c8e5d5c15d01b4f3aaff6f92da7946541c78810 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.00096501
0xf146914a7e42e695e3aa68db3980fdeafea4bdea117da5400f0d226e5c4f912685535512021-06-23 17:52:543 hrs 59 mins ago0x826e05367d5c8b7172032535d0fc6b2cf3e06e43 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030 BNB0.000953855
0x7c16968df14ede300e882a0b84bb0fe251b6481c6c39db66f052587174b9afcf85535192021-06-23 17:51:184 hrs ago0x568b3e034d3cdd58613f81717baa4a410aef7152 IN  0xf6fba8586a9a0ae40df574c9a9f6668134d276030.001 BNB0.00225053
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x7c16968df14ede300e882a0b84bb0fe251b6481c6c39db66f052587174b9afcf85535192021-06-23 17:51:184 hrs ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.001 BNB
0xdfb27035a58d04839d5746b9dff0ac9c5ae29beec4dd137258d8d6d273a441d685515612021-06-23 16:13:135 hrs 38 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.12805199 BNB
0xe262a23a0e217b31ebe6f3e3f2a711d7220aa6051acb87a1c1e7f24dfd29c05b85511692021-06-23 15:53:375 hrs 58 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3522.6 BNB
0xfe2f8828b356ee8e67780481faddde31bec1e8694ac73ef9ce1fe445c9dacec685510562021-06-23 15:47:586 hrs 4 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521 BNB
0x4ca6acd9f56e32b859bb0d0782f2dc650c2dc2afad1e64f76c1987c443dc96ff85509232021-06-23 15:41:196 hrs 10 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521 BNB
0x8bc6a83b68531843c273a65445729762e97bad8e5c197b556a90719127be377a85504102021-06-23 15:15:396 hrs 36 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.20945464 BNB
0xb837b1b61f92b3eb606d1402f1041a1e428df31bb815315411ecd75251c7bfbd85498232021-06-23 14:46:157 hrs 5 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.28 BNB
0x697efb65cbd1311fd8d4a71ef996e601f508afc6484a538a20e7d03d978dc25d85497722021-06-23 14:43:407 hrs 8 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521.5 BNB
0x81afd9532cd2e2e939b7fdaf65fc38135d28eaa799ad536ae4b66725947e57e185497522021-06-23 14:42:407 hrs 9 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3522.13025614 BNB
0x2f3946c84f890ba1c50ba094da919f8503a5e0448021ebcc0ff0832e96d9819785496992021-06-23 14:40:017 hrs 12 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.5 BNB
0x64fef70db4dcdd23029ed03cc2709b1a00dd4b958cac6259184adf07d6b18ab585493562021-06-23 14:22:527 hrs 29 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.40819837 BNB
0xa408d3213781a04b5cc6f269d3a8177efd5222ada3b92d0fe9bf84b4e8e8e82385486272021-06-23 13:46:258 hrs 5 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521 BNB
0xc5448d930ae7f10e2c5c68dcceb2106995afceeab9066730a0e20083f939863185476152021-06-23 12:55:308 hrs 56 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.035 BNB
0xeba507991772127139173956d66a5f677a3dcc64af16254cb8e985617a898e1885470782021-06-23 12:28:399 hrs 23 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.00747673 BNB
0x0e2aa6e2b31befadef5725972794f598947efea7da00d3017c5dd1bb39a3468485466312021-06-23 12:06:139 hrs 45 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.03 BNB
0xd4e1d45ddd1defa6c686cbd39a0b90b7449614ad4ba0160c236a00bbc83536c985459182021-06-23 11:30:3310 hrs 21 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521.5 BNB
0x41dc2af00a12fb9d1056e10c80845a156a0aa6b888b8979fa9ad38c3dde2557685442602021-06-23 10:07:0311 hrs 45 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.15 BNB
0xaeed0bec17369439f944282068ef60ddc11203114fd9c8a81058f28be31d4e1b85429952021-06-23 9:03:4112 hrs 48 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3522 BNB
0xf0b189102a35e08169d0c8337336f9b58db4993d113604e70c9a3de9bb9b710d85405882021-06-23 7:02:2914 hrs 49 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521 BNB
0x467c66ab77065a9e43ff83fc8c43c9149665a1f449571819aeb28aa7a4f9df3785399922021-06-23 6:32:0515 hrs 20 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.138 BNB
0x77f8d6393a33484addc0bdb672c41654ada70a8fc0850562ad831fb6e3439e3a85391132021-06-23 5:48:0816 hrs 4 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.55571703 BNB
0x336d2f1bd641a9e263c974b078f60735b1602c0bf0c2b80286faff4cbac0724385386702021-06-23 5:25:5916 hrs 26 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.3 BNB
0x299a8b5dc2506ed0943b3ed2fe4170c0527a6d0fea3f9159c88408932e2e614585352522021-06-23 2:34:3919 hrs 17 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.2 BNB
0x2750a381287d6f4203ee5aa42a7ff7239764a2c7dac0f004734ae7e08df9af8485331032021-06-23 0:46:2521 hrs 5 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3521.7 BNB
0xe04d7e7a44126442b4dce098df0ac543143d8d63c686e1180cb4f7b6c0a7d11285320652021-06-22 23:54:1921 hrs 57 mins ago 0xf6fba8586a9a0ae40df574c9a9f6668134d27603 0x8f34c8232d482cb65fea0d05184596001997d3520.4 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwapXProxy

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : SwapXProxy.sol
pragma solidity ^0.5.0;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/lifecycle/Pausable.sol";
import "./UniversalERC20.sol";

contract SwapXProxy is Ownable, Pausable {
    using SafeMath for uint256;
    using UniversalERC20 for IERC20;

    address public swapXImpl;

    event Swapped(
        address indexed sender,
        IERC20 indexed srcToken,
        IERC20 indexed dstToken,
        address dstReceiver,
        uint256 amount,
        uint256 spentAmount,
        uint256 returnAmount,
        uint256 minReturnAmount,
        address referrer
    );

    event ImplementationUpdated(address indexed newImpl);

    constructor(address impl) public {
        setNewImpl(impl);
    }

    function() external payable {
        require(msg.sender != tx.origin, "SwapX: do not send BNB directly");
    }

    function setNewImpl(address impl) public onlyOwner {
        swapXImpl = impl;
        emit ImplementationUpdated(address(impl));
    }

    function swap(
        IERC20 srcToken,
        IERC20 dstToken,
        address dstReceiver,
        uint256 amount,
        uint256 minReturnAmount,
        address referrer,
        bytes calldata data
    ) 
        external 
        payable  
        whenNotPaused 
        returns (uint256 returnAmount)
    {
        require(minReturnAmount > 0, "Min return should not be 0");
        require(data.length > 0, "Call data should exist");

        dstReceiver = (dstReceiver == address(0)) ? msg.sender : dstReceiver;
        uint256 initialSrcBalance = srcToken.universalBalanceOf(msg.sender);
        uint256 initialDstBalance = dstToken.universalBalanceOf(dstReceiver);

        swapXImpl.call.value(msg.value)(data);

        uint256 spentAmount = initialSrcBalance.sub(srcToken.universalBalanceOf(msg.sender));
        returnAmount = dstToken.universalBalanceOf(dstReceiver).sub(initialDstBalance);
        require(returnAmount >= minReturnAmount, "Return amount is not enough");
        
        emit Swapped(
            msg.sender,
            srcToken,
            dstToken,
            dstReceiver,
            amount,
            spentAmount,
            returnAmount,
            minReturnAmount,
            referrer
        );
    }

    function rescueFund(IERC20 asset, uint256 amount) public onlyOwner {
        asset.universalTransfer(msg.sender, amount);
    }
}

File 2 of 11 : UniversalERC20.sol
pragma solidity ^0.5.0;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";


library UniversalERC20 {

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 private constant ZERO_ADDRESS = IERC20(0x0000000000000000000000000000000000000000);
    IERC20 private constant BNB_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

    function universalTransfer(IERC20 token, address to, uint256 amount) internal returns(bool) {
        if (amount == 0) {
            return true;
        }

        if (isBNB(token)) {
            address(uint160(to)).transfer(amount);
        } else {
            token.safeTransfer(to, amount);
            return true;
        }
    }

    function universalTransferFrom(IERC20 token, address from, address to, uint256 amount) internal {
        if (amount == 0) {
            return;
        }

        if (isBNB(token)) {
            require(msg.value >= amount, "Wrong useage of BNB.universalTransferFrom()");
            if (to != address(this)) {
                address(uint160(to)).transfer(amount);
            }
            if (msg.value > amount) {
                address(uint160(from)).transfer(msg.value.sub(amount));
            }
        } else {
            token.safeTransferFrom(from, to, amount);
        }
    }

    function universalTransferFromSenderToThis(IERC20 token, uint256 amount) internal {
        if (amount == 0) {
            return;
        }

        if (isBNB(token)) {
            require(msg.value >= amount, "Wrong useage of BNB.universalTransferFrom()");
            if (msg.value > amount) {
                // Return remainder if exist
                msg.sender.transfer(msg.value.sub(amount));
            }
        } else {
            token.safeTransferFrom(msg.sender, address(this), amount);
        }
    }

    function universalApprove(IERC20 token, address to, uint256 amount) internal {
        if (!isBNB(token)) {
            if (amount == 0) {
                token.safeApprove(to, 0);
                return;
            }

            uint256 allowance = token.allowance(address(this), to);
            if (allowance < amount) {
                if (allowance > 0) {
                    token.safeApprove(to, 0);
                }
                token.safeApprove(to, amount);
            }
        }
    }

    function universalBalanceOf(IERC20 token, address who) internal view returns (uint256) {
        if (isBNB(token)) {
            return who.balance;
        } else {
            return token.balanceOf(who);
        }
    }

    function universalDecimals(IERC20 token) internal view returns (uint256) {

        if (isBNB(token)) {
            return 18;
        }

        (bool success, bytes memory data) = address(token).staticcall.gas(10000)(
            abi.encodeWithSignature("decimals()")
        );
        if (!success || data.length == 0) {
            (success, data) = address(token).staticcall.gas(10000)(
                abi.encodeWithSignature("DECIMALS()")
            );
        }

        return (success && data.length > 0) ? abi.decode(data, (uint256)) : 18;
    }

    function isBNB(IERC20 token) internal pure returns(bool) {
        return (address(token) == address(ZERO_ADDRESS) || address(token) == address(BNB_ADDRESS));
    }

    function eq(IERC20 a, IERC20 b) internal pure returns(bool) {
        return a == b || (isBNB(a) && isBNB(b));
    }

    function notExist(IERC20 token) internal pure returns(bool) {
        return (address(token) == address(-1));
    }
}

File 3 of 11 : Context.sol
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;
    }
}

File 4 of 11 : Roles.sol
pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

File 5 of 11 : PauserRole.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "../Roles.sol";

contract PauserRole is Context {
    using Roles for Roles.Role;

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

    constructor () internal {
        _addPauser(_msgSender());
    }

    modifier onlyPauser() {
        require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role");
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(_msgSender());
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }
}

File 6 of 11 : Pausable.sol
pragma solidity ^0.5.0;

import "../GSN/Context.sol";
import "../access/roles/PauserRole.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context, PauserRole {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by a pauser (`account`).
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyPauser whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyPauser whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 11 : SafeMath.sol
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;
    }
}

File 8 of 11 : Ownable.sol
pragma solidity ^0.5.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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;
    }
}

File 9 of 11 : IERC20.sol
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);
}

File 10 of 11 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

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

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 11 of 11 : Address.sol
pragma solidity ^0.5.5;

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

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"impl","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newImpl","type":"address"}],"name":"ImplementationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"srcToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"dstToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"referrer","type":"address"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","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":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"impl","type":"address"}],"name":"setNewImpl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"swapXImpl","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200167338038062001673833981810160405260208110156200003757600080fd5b505160006200004e6001600160e01b03620000e316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000be620000af6001600160e01b03620000e316565b6001600160e01b03620000e716565b6002805460ff19169055620000dc816001600160e01b036200013916565b5062000315565b3390565b62000102816001620001f060201b62000f991790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6200014c6001600160e01b036200027d16565b6200019e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60028054610100600160a81b0319166101006001600160a01b038416908102919091179091556040517f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca0390600090a250565b6200020582826001600160e01b03620002ac16565b1562000258576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b600080546001600160a01b03166200029d6001600160e01b03620000e316565b6001600160a01b031614905090565b60006001600160a01b038216620002f55760405162461bcd60e51b8152600401808060200182810382526022815260200180620016516022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61132c80620003256000396000f3fe6080604052600436106100dd5760003560e01c8063715018a61161007f5780638da5cb5b116100595780638da5cb5b146103385780638f32d59b1461034d578063b26413f814610362578063f2fde38b14610395576100dd565b8063715018a6146102db57806382dc1ec4146102f05780638456cb5914610323576100dd565b80636b040185116100bb5780636b040185146101a55780636ba40878146101d65780636e261df11461028d5780636ef8d66d146102c6576100dd565b80633f4ba83a1461013457806346fbf68e146101495780635c975abb14610190575b33321415610132576040805162461bcd60e51b815260206004820152601f60248201527f53776170583a20646f206e6f742073656e6420424e42206469726563746c7900604482015290519081900360640190fd5b005b34801561014057600080fd5b506101326103c8565b34801561015557600080fd5b5061017c6004803603602081101561016c57600080fd5b50356001600160a01b03166104b1565b604080519115158252519081900360200190f35b34801561019c57600080fd5b5061017c6104ca565b3480156101b157600080fd5b506101ba6104d3565b604080516001600160a01b039092168252519081900360200190f35b61027b600480360360e08110156101ec57600080fd5b6001600160a01b0382358116926020810135821692604082013583169260608301359260808101359260a08201359092169181019060e0810160c082013564010000000081111561023c57600080fd5b82018360208201111561024e57600080fd5b8035906020019184600183028401116401000000008311171561027057600080fd5b5090925090506104e7565b60408051918252519081900360200190f35b34801561029957600080fd5b50610132600480360360408110156102b057600080fd5b506001600160a01b0381351690602001356107ca565b3480156102d257600080fd5b50610132610830565b3480156102e757600080fd5b50610132610842565b3480156102fc57600080fd5b506101326004803603602081101561031357600080fd5b50356001600160a01b03166108d3565b34801561032f57600080fd5b50610132610925565b34801561034457600080fd5b506101ba6109ec565b34801561035957600080fd5b5061017c6109fb565b34801561036e57600080fd5b506101326004803603602081101561038557600080fd5b50356001600160a01b0316610a1f565b3480156103a157600080fd5b50610132600480360360208110156103b857600080fd5b50356001600160a01b0316610ab8565b6103d86103d3610b08565b6104b1565b6104135760405162461bcd60e51b81526004018080602001828103825260308152602001806112156030913960400191505060405180910390fd5b60025460ff16610461576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610494610b08565b604080516001600160a01b039092168252519081900360200190a1565b60006104c460018363ffffffff610b0c16565b92915050565b60025460ff1690565b60025461010090046001600160a01b031681565b60025460009060ff1615610535576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000851161058a576040805162461bcd60e51b815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604482015290519081900360640190fd5b816105d5576040805162461bcd60e51b815260206004820152601660248201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b604482015290519081900360640190fd5b6001600160a01b038716156105ea57866105ec565b335b965060006106096001600160a01b038b163363ffffffff610b7316565b905060006106266001600160a01b038b168a63ffffffff610b7316565b9050600260019054906101000a90046001600160a01b03166001600160a01b0316348686604051808383808284376040519201945060009350909150508083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50600091506106d090506106c36001600160a01b038e163363ffffffff610b7316565b849063ffffffff610c1d16565b90506106fb826106ef6001600160a01b038e168d63ffffffff610b7316565b9063ffffffff610c1d16565b935087841015610752576040805162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604482015290519081900360640190fd5b604080516001600160a01b038c81168252602082018c905281830184905260608201879052608082018b905289811660a08301529151828e16928f169133917fbd99c6719f088aa0abd9e7b7a4a635d1f931601e9f304b538dc42be25d8c65c69181900360c00190a450505098975050505050505050565b6107d26109fb565b610811576040805162461bcd60e51b8152602060048201819052602482015260008051602061128c833981519152604482015290519081900360640190fd5b61082b6001600160a01b038316338363ffffffff610c6616565b505050565b61084061083b610b08565b610ce3565b565b61084a6109fb565b610889576040805162461bcd60e51b8152602060048201819052602482015260008051602061128c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6108de6103d3610b08565b6109195760405162461bcd60e51b81526004018080602001828103825260308152602001806112156030913960400191505060405180910390fd5b61092281610d2b565b50565b6109306103d3610b08565b61096b5760405162461bcd60e51b81526004018080602001828103825260308152602001806112156030913960400191505060405180910390fd5b60025460ff16156109b6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610494610b08565b6000546001600160a01b031690565b600080546001600160a01b0316610a10610b08565b6001600160a01b031614905090565b610a276109fb565b610a66576040805162461bcd60e51b8152602060048201819052602482015260008051602061128c833981519152604482015290519081900360640190fd5b60028054610100600160a81b0319166101006001600160a01b038416908102919091179091556040517f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca0390600090a250565b610ac06109fb565b610aff576040805162461bcd60e51b8152602060048201819052602482015260008051602061128c833981519152604482015290519081900360640190fd5b61092281610d73565b3390565b60006001600160a01b038216610b535760405162461bcd60e51b81526004018080602001828103825260228152602001806112ac6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000610b7e83610e13565b15610b9457506001600160a01b038116316104c4565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610bea57600080fd5b505afa158015610bfe573d6000803e3d6000fd5b505050506040513d6020811015610c1457600080fd5b505190506104c4565b6000610c5f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b9392505050565b600081610c7557506001610c5f565b610c7e84610e13565b15610cbf576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610cb9573d6000803e3d6000fd5b50610c5f565b610cd96001600160a01b038516848463ffffffff610ee016565b5060019392505050565b610cf460018263ffffffff610f3216565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b610d3c60018263ffffffff610f9916565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6001600160a01b038116610db85760405162461bcd60e51b81526004018080602001828103825260268152602001806112456026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821615806104c45750506001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261082b90849061101a565b610f3c8282610b0c565b610f775760405162461bcd60e51b815260040180806020018281038252602181526020018061126b6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b610fa38282610b0c565b15610ff5576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b61102c826001600160a01b03166111d8565b61107d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110bb5780518252601f19909201916020918201910161109c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461111d576040519150601f19603f3d011682016040523d82523d6000602084013e611122565b606091505b509150915081611179576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156111d25780806020019051602081101561119557600080fd5b50516111d25760405162461bcd60e51b815260040180806020018281038252602a8152602001806112ce602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061120c57508115155b94935050505056fe506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158200de719376b0a70443a9749c619c0fc6fa00ff5370d3732ab0c9579556928d61464736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f206164647265737300000000000000000000000026585626e4a8d4fc409146b47a61790d9008967c

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

00000000000000000000000026585626e4a8d4fc409146b47a61790d9008967c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000026585626e4a8d4fc409146b47a61790d9008967c


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.