Contract 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 2

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xfd0842eedf2ef4a70a686e267bda51ac7399ea9f46c79f5ecc304c78d493fafeExchange227513812022-09-04 7:01:4120 days 18 hrs ago0x9586d60e8558077438abf7597dbba9137194c7d7 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.00021209
0x162af6ce4417b11f994b4169248ca90eb2007ddf945f99d7a768d84697e1b12cExchange227509322022-09-04 6:57:4520 days 18 hrs ago0x9586d60e8558077438abf7597dbba9137194c7d7 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.00018476
0xf5402073095891e527bcee051953f04d943633c8eb64dcf0634dc01a1ee789a2Exchange226610902022-09-03 14:50:3721 days 10 hrs ago0x39e218503c1ccf0af82d81d98a5bfeded883160c IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.0002352
0x86ae0fae1b1e4c617a2fd3f57044196d768401c8fa3a697dd4ad1b1078f6cbc9Exchange225761362022-09-03 2:11:5321 days 22 hrs ago0xbc52813176ceabb91cef9366f33b5e6988f925ef IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.00029532
0x56860ce560939add248e523a0fdcf6b50d5ccdbc5f5256b434636573cbbba29bExchange223240062022-09-01 10:59:1123 days 14 hrs ago0xd46e4bc5cf4e6285f2982a1b005771613ad40a7d IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.00002063
0xf6463ad9d2306ea9a66fbe8d59b96056bdaf0c3148ded50d24e332a2d3eb0fcbExchange219279612022-08-30 4:02:4225 days 21 hrs ago0xae0d56da41765c64d29a3dac984ed1d98964de9c IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000080596856 ETH
0xa0b7d6b4ed4e40453f29d1ef99c37bff0ff3bd0ff99a2759ed5a836872950aa7Exchange218803612022-08-29 17:12:5426 days 7 hrs ago0xf3fbb2c0a711529ef9b81fe59a5ef5b8f1e0eb27 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000076541865 ETH
0xd87c51c3f0a2cdd9b2b50100c8c773c4920bccfab9a6eeb36f83256d3047cfedExchange217818502022-08-29 2:58:1626 days 22 hrs ago0x6bc8417f1716de63445ff73b6eb99ba949c8b0b1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000072172964 ETH
0x56abc83c0ace97d660cfdad2887fb6758627a33df21d991d8c989b5a587bb0e4Exchange217817202022-08-29 2:56:5326 days 22 hrs ago0x6bc8417f1716de63445ff73b6eb99ba949c8b0b1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000079545254 ETH
0x11385190bb06c298319b04b71a038946c9e174455c764189e22f6591522950c3Exchange215222002022-08-27 10:09:4728 days 14 hrs ago0x71cba156874e7644861fa550e11845c219c79ee6 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000069458381 ETH
0x7979d94b999ef58a5b56d745e9bba00ffc50ef59893cb3a97970afc8af589a25Exchange210175052022-08-23 3:52:2232 days 21 hrs ago0x36bddcdeacf5df21f9b556695c587c17106325e1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000068938025 ETH
0x7998da6c5f91e6d43d21b5ade1fbde513333e48cd3362d3d2853067e1d7637bbExchange209984482022-08-22 22:05:2033 days 2 hrs ago0x6f09ef3d1ece52e9c26e1ee2b004a93c7107ab0c IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000076342598 ETH
0xec3da12e84b3888576fcc5c8de36411b598c58b7178322e876a6cf8a21e4f147Exchange209790662022-08-22 16:05:2933 days 8 hrs ago0x2fa03e75ebb2db82a5df756d5fbd1534cf928d3d IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000047214703 ETH
0x1099f676f88b9f9dd8e4dce333d2e0afc2c685e1910f11115b80f3e8b1af813aExchange209403752022-08-22 7:59:2333 days 17 hrs ago0x2f09c6faa5db81c3ad18fe24acc8d5b455c8e0d8 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000039733746 ETH
0x8b95a0cb0131a1f957473bdaad8f63d636b219c3f3b61fb54caea21a68218a00Exchange208199592022-08-20 22:43:1235 days 2 hrs ago0x203f3f18ad98e6f97e3d21cdffaa12d1edaa4a9e IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000068044616 ETH
0x90827adf846d3f1110639d622b311270b33f902a29ef588fe817d2c8269f566cExchange207478172022-08-20 4:01:5135 days 21 hrs ago0x36bddcdeacf5df21f9b556695c587c17106325e1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000061062803 ETH
0xbdfbaff098098e5ff18e47ce026f82f2ab9bf010e4907190edc6ac425511c238Exchange206447162022-08-19 2:42:2636 days 22 hrs ago0x1e121993b4a8bc79d18a4c409db84c100fff25f5 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000078162039 ETH
0xf377c296fd35debdc92bdca1e9e11e4d8f5bf12a04611d31972238a0ef76fe47Exchange206261622022-08-18 21:31:2337 days 3 hrs ago0x63e0e8a3a9c59141843cc26e5433507b8a835999 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000085178397 ETH
0x7ed2b70888cab5652a844328a4e7d687b41ab852e8e6ff0b3c158c16199eb50dExchange205934962022-08-18 12:40:3337 days 12 hrs ago0x129b5ecb0f32634f523c88327cf1bf6c0a6bcbba IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000058592577 ETH
0xc1edd6e1893507da3a1ceedf5842afbe8bdfa2d298464792976329de9addff09Exchange205741362022-08-18 7:37:5237 days 17 hrs ago0xc7ee3b9778e6192ec7a1ef984c786e59d2990eab IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000074165882 ETH
0x096a07da1872d187f6742ee38bc1f9df42c3209dccb8f31186a0f28695366581Exchange205641712022-08-18 4:40:5137 days 20 hrs ago0x36bddcdeacf5df21f9b556695c587c17106325e1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000082436109 ETH
0xe7d08b7b6eb1f00637f6ff7ef489e6127ca196d22b7214b418717645ab1d11c1Exchange205135202022-08-17 14:24:1738 days 10 hrs ago0x3a383f785f1719c741887149ea9647399312338b IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.00004555198 ETH
0x983940a2f0b900183a65d8c750740153bb8a1f9689b8bcda3f0f4d456018d61cExchange204761462022-08-17 6:47:5838 days 18 hrs ago0xdd74a5f502167c1bdd88968d058834170175277b IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000057420323 ETH
0xf76c519adcbaae81ba67ca2cc2a1750c478f36302d5512fcd2452db50568ab01Exchange204653842022-08-17 3:59:4938 days 21 hrs ago0x0eefa7e7877aeb0ce0ffced291f492458aae19eb IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000057597128 ETH
0xb62eee43363c0370af79c6db8ffef3997f4fe3f0534195b4344fc0ad7ac712d5Exchange204227472022-08-16 16:32:5939 days 8 hrs ago0x36bddcdeacf5df21f9b556695c587c17106325e1 IN  0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf870 ETH0.000080979979 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xfd0842eedf2ef4a70a686e267bda51ac7399ea9f46c79f5ecc304c78d493fafe227513812022-09-04 7:01:4120 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xfd0842eedf2ef4a70a686e267bda51ac7399ea9f46c79f5ecc304c78d493fafe227513812022-09-04 7:01:4120 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0xfd0842eedf2ef4a70a686e267bda51ac7399ea9f46c79f5ecc304c78d493fafe227513812022-09-04 7:01:4120 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x162af6ce4417b11f994b4169248ca90eb2007ddf945f99d7a768d84697e1b12c227509322022-09-04 6:57:4520 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x162af6ce4417b11f994b4169248ca90eb2007ddf945f99d7a768d84697e1b12c227509322022-09-04 6:57:4520 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0x162af6ce4417b11f994b4169248ca90eb2007ddf945f99d7a768d84697e1b12c227509322022-09-04 6:57:4520 days 18 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xf5402073095891e527bcee051953f04d943633c8eb64dcf0634dc01a1ee789a2226610902022-09-03 14:50:3721 days 10 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xf5402073095891e527bcee051953f04d943633c8eb64dcf0634dc01a1ee789a2226610902022-09-03 14:50:3721 days 10 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0xf5402073095891e527bcee051953f04d943633c8eb64dcf0634dc01a1ee789a2226610902022-09-03 14:50:3721 days 10 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x86ae0fae1b1e4c617a2fd3f57044196d768401c8fa3a697dd4ad1b1078f6cbc9225761362022-09-03 2:11:5321 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x86ae0fae1b1e4c617a2fd3f57044196d768401c8fa3a697dd4ad1b1078f6cbc9225761362022-09-03 2:11:5321 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0x86ae0fae1b1e4c617a2fd3f57044196d768401c8fa3a697dd4ad1b1078f6cbc9225761362022-09-03 2:11:5321 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x56860ce560939add248e523a0fdcf6b50d5ccdbc5f5256b434636573cbbba29b223240062022-09-01 10:59:1123 days 14 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x56860ce560939add248e523a0fdcf6b50d5ccdbc5f5256b434636573cbbba29b223240062022-09-01 10:59:1123 days 14 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0x56860ce560939add248e523a0fdcf6b50d5ccdbc5f5256b434636573cbbba29b223240062022-09-01 10:59:1123 days 14 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xf6463ad9d2306ea9a66fbe8d59b96056bdaf0c3148ded50d24e332a2d3eb0fcb219279612022-08-30 4:02:4225 days 21 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xf6463ad9d2306ea9a66fbe8d59b96056bdaf0c3148ded50d24e332a2d3eb0fcb219279612022-08-30 4:02:4225 days 21 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0xf6463ad9d2306ea9a66fbe8d59b96056bdaf0c3148ded50d24e332a2d3eb0fcb219279612022-08-30 4:02:4225 days 21 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xa0b7d6b4ed4e40453f29d1ef99c37bff0ff3bd0ff99a2759ed5a836872950aa7218803612022-08-29 17:12:5426 days 7 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xa0b7d6b4ed4e40453f29d1ef99c37bff0ff3bd0ff99a2759ed5a836872950aa7218803612022-08-29 17:12:5426 days 7 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0xa0b7d6b4ed4e40453f29d1ef99c37bff0ff3bd0ff99a2759ed5a836872950aa7218803612022-08-29 17:12:5426 days 7 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xd87c51c3f0a2cdd9b2b50100c8c773c4920bccfab9a6eeb36f83256d3047cfed217818502022-08-29 2:58:1626 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xd87c51c3f0a2cdd9b2b50100c8c773c4920bccfab9a6eeb36f83256d3047cfed217818502022-08-29 2:58:1626 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 Arbi's Finance: ARBIS Token0 ETH
0xd87c51c3f0a2cdd9b2b50100c8c773c4920bccfab9a6eeb36f83256d3047cfed217818502022-08-29 2:58:1626 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x56abc83c0ace97d660cfdad2887fb6758627a33df21d991d8c989b5a587bb0e4217817202022-08-29 2:56:5326 days 22 hrs ago 0x8eade6a7302fbd007d955ff7817ba3e2c8ebbf87 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArbisUmamiExchange

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : ArbisUmamiExchange.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                                                                            //
//                              #@@@@@@@@@@@@&,                               //
//                      [email protected]@@@@   [email protected]@@@@@@@@@@@@@@@@@@*                        //
//                  %@@@,    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    //
//               @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 //
//             @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@               //
//           *@@@#    [email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//          *@@@%    &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//          @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//                                                                            //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//                                                                            //
//               @@   @@     @   @       @       @   @       @                //
//               @@   @@    @@@ @@@     @[email protected]     @@@ @@@     @@@               //
//                &@@@@   @@  @@  @@  @@ ^ @@  @@  @@  @@   @@@               //
//                                                                            //
//          @@@@@      @@@%    *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@      @@@@    %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          [email protected]@@@      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//            @@@@@  &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//                (&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(                 //
//                                                                            //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

// Dependancies
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title Arbis Umami Exchange
 * @author EncryptedBunny
 * @dev Exchange Arbis for Umami at a fixed rate. Arbis will be burnt. 
 */

contract ArbisUmamiExchange is AccessControl {

    /************************************************
     *  LIBRARIES
     ***********************************************/
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /************************************************
     *  EVENTS
     ***********************************************/
    event Exchanged(uint256 arbisAmountIn, uint256 umamiAmountOut, address sender);

    /************************************************
     *  STORAGE
     ***********************************************/

    IERC20 public arbis;
    IERC20 public umami;

    uint256 public rate;
    address public burnAddress;
    bool public active;

    uint256 public constant ARBIS_UNIT = 1000000000000000000;
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

     /************************************************
     *  CONSTRUCTOR
     ***********************************************/

    /**
     * @param _arbis Address of the Arbis token
     * @param _umami Address of the Umami token
     * @param _rate Rate of Umami per arbis. should be number of umami per arbis multiplied by 10^9
     */
    constructor(
        address _arbis,
        address _umami,
        uint256 _rate
    ) {
        require(_arbis != address(0), "arbis address cannot be 0");
        require(_umami != address(0), "umami address cannot be 0");

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, msg.sender);

        arbis = IERC20(_arbis);
        umami = IERC20(_umami);
        burnAddress = 0x000000000000000000000000000000000000dEaD;
        rate = _rate;

        active = true;
    }

    /************************************************
     *  FUNCTIONS
     ***********************************************/

    /**
     * @dev The exchanging function to call.
     */
    function exchange(uint _arbisAmount) public {

        require(active, "Exchange not active");
        require(_arbisAmount > 0, "Arbis is 0");

        uint256 umamiAmount = exchangeAmount(_arbisAmount);

        require(umamiAmount > 0, "Umami is 0");
        require(umamiAmount < umami.balanceOf(address(this)), "Not enough Umami");

        burn(_arbisAmount);

        umami.safeTransfer(msg.sender, umamiAmount);
        
        emit Exchanged(_arbisAmount, umamiAmount, msg.sender);
    }

    /**
     * @dev Burn the arbis.
     */
    function burn(uint _arbisAmount) private {

        require(_arbisAmount > 0, "Arbis is 0");
        arbis.safeTransferFrom(msg.sender, burnAddress, _arbisAmount);
        
    }

    /************************************************
     *  VIEWS
     ***********************************************/

    /**
     * @dev Return the amount of umami that will be recieved from arbis amount.
     * @notice  umami 9 decimals
     *          arbis 18 decimals
     *          (rate / 10^18) * arbis = umami
     */
    function exchangeAmount(uint _arbisAmount) public view returns (uint256) {
        uint256 umamiReturned = rate.mul(_arbisAmount).div(ARBIS_UNIT);

        return umamiReturned;
    }

    /************************************************
     *  MUTABLES
     ***********************************************/

    /**
     * @dev Change the rate of exchange.
     * @notice rate should be number of umami per arbis multiplied by 10^9 
     */
    function changeRate(uint256 _rate) external onlyAdmin {
        rate = _rate;
    }

    /**
     * @dev Change the address arbis is burned too.
     */
    function changeBurnAddress(address _burnAddress) external onlyAdmin {
        burnAddress = _burnAddress;   
    }

    /**
     * @dev Change active to switch on or off exchanger.
     */
    function switchActive(bool _active) external onlyAdmin {
        active = _active;
    }

    /************************************************
     *  ADMIN
     ***********************************************/

     /**
     * @dev Recover a erc20 token.
     */
    function recoverToken(address tokenAddress) external onlyAdmin {
        IERC20 token = IERC20(tokenAddress);

        uint256 balance = token.balanceOf(address(this));

        token.safeTransfer(msg.sender, balance);
    }

    /**
     * @notice recover eth
     */
    function recoverEth() external onlyAdmin {
        (bool success, ) = msg.sender.call{ value: address(this).balance }("");
        require(success, "Withdraw failed");
    }

    /**
     * @dev Access control.
     */
    modifier onlyAdmin() {
        require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
        _;
    }
}

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 3 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

    /**
     * @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 a - b;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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 IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

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

File 6 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 11 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_arbis","type":"address"},{"internalType":"address","name":"_umami","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"arbisAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"umamiAmountOut","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Exchanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARBIS_UNIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"arbis","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burnAddress","type":"address"}],"name":"changeBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"changeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_arbisAmount","type":"uint256"}],"name":"exchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_arbisAmount","type":"uint256"}],"name":"exchangeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"switchActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"umami","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162002a8138038062002a818339818101604052810190620000379190620003fb565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415620000aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a1906200049f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200011d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011490620004c1565b60405180910390fd5b620001326000801b336200025460201b60201c565b620001647fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200026a60201b60201c565b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061dead600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806003819055506001600460146101000a81548160ff021916908315150217905550505050620005b8565b6200026682826200026a60201b60201c565b5050565b6200027c82826200035b60201b60201c565b6200035757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002fc620003c560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600081519050620003de8162000584565b92915050565b600081519050620003f5816200059e565b92915050565b6000806000606084860312156200041157600080fd5b60006200042186828701620003cd565b93505060206200043486828701620003cd565b92505060406200044786828701620003e4565b9150509250925092565b600062000460601983620004e3565b91506200046d8262000532565b602082019050919050565b600062000487601983620004e3565b915062000494826200055b565b602082019050919050565b60006020820190508181036000830152620004ba8162000451565b9050919050565b60006020820190508181036000830152620004dc8162000478565b9050919050565b600082825260208201905092915050565b6000620005018262000508565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f617262697320616464726573732063616e6e6f74206265203000000000000000600082015250565b7f756d616d6920616464726573732063616e6e6f74206265203000000000000000600082015250565b6200058f81620004f4565b81146200059b57600080fd5b50565b620005a98162000528565b8114620005b557600080fd5b50565b6124b980620005c86000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806391d14854116100b8578063bcdb446b1161007c578063bcdb446b1461033c578063c5885d6c14610346578063d547741f14610364578063eb52796214610380578063ee3d17061461039e578063f05a1377146103ba57610137565b806391d14854146102845780639be65a60146102b45780639c4c9c7f146102d0578063a17cf4b7146102ee578063a217fddf1461031e57610137565b806336568abe116100ff57806336568abe146101f4578063535565591461021057806370d5ae051461022c57806374e7493b1461024a57806375b238fc1461026657610137565b806301ffc9a71461013c57806302fb0c5e1461016c578063248a9ca31461018a5780632c4e722e146101ba5780632f2ff15d146101d8575b600080fd5b610156600480360381019061015191906118a9565b6103d6565b6040516101639190611cd5565b60405180910390f35b610174610450565b6040516101819190611cd5565b60405180910390f35b6101a4600480360381019061019f9190611844565b610463565b6040516101b19190611cf0565b60405180910390f35b6101c2610482565b6040516101cf9190611ea8565b60405180910390f35b6101f260048036038101906101ed919061186d565b610488565b005b61020e6004803603810190610209919061186d565b6104a9565b005b61022a600480360381019061022591906118d2565b61052c565b005b61023461078f565b6040516102419190611c5a565b60405180910390f35b610264600480360381019061025f91906118d2565b6107b5565b005b61026e610828565b60405161027b9190611cf0565b60405180910390f35b61029e6004803603810190610299919061186d565b61084c565b6040516102ab9190611cd5565b60405180910390f35b6102ce60048036038101906102c991906117c9565b6108b6565b005b6102d86109e1565b6040516102e59190611d0b565b60405180910390f35b610308600480360381019061030391906118d2565b610a07565b6040516103159190611ea8565b60405180910390f35b610326610a44565b6040516103339190611cf0565b60405180910390f35b610344610a4b565b005b61034e610b63565b60405161035b9190611d0b565b60405180910390f35b61037e6004803603810190610379919061186d565b610b89565b005b610388610baa565b6040516103959190611ea8565b60405180910390f35b6103b860048036038101906103b391906117c9565b610bb6565b005b6103d460048036038101906103cf91906117f2565b610c63565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610449575061044882610ce9565b5b9050919050565b600460149054906101000a900460ff1681565b6000806000838152602001908152602001600020600101549050919050565b60035481565b61049182610463565b61049a81610d53565b6104a48383610d67565b505050565b6104b1610e47565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461051e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051590611e88565b60405180910390fd5b6105288282610e4f565b5050565b600460149054906101000a900460ff1661057b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057290611da8565b60405180910390fd5b600081116105be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b590611d68565b60405180910390fd5b60006105c982610a07565b90506000811161060e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060590611de8565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106699190611c5a565b60206040518083038186803b15801561068157600080fd5b505afa158015610695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b991906118fb565b81106106fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f190611e08565b60405180910390fd5b61070382610f30565b6107503382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610fe79092919063ffffffff16565b7fc075e4ede0f1da782b2222921c612cde93d00ca867dc660b2a22b1ed2f92d62782823360405161078393929190611ec3565b60405180910390a15050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107df7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361084c565b61081e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081590611e28565b60405180910390fd5b8060038190555050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6108e07fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361084c565b61091f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091690611e28565b60405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161095f9190611c5a565b60206040518083038186803b15801561097757600080fd5b505afa15801561098b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109af91906118fb565b90506109dc33828473ffffffffffffffffffffffffffffffffffffffff16610fe79092919063ffffffff16565b505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080610a39670de0b6b3a7640000610a2b8560035461106d90919063ffffffff16565b61108390919063ffffffff16565b905080915050919050565b6000801b81565b610a757fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361084c565b610ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aab90611e28565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610ada90611c0b565b60006040518083038185875af1925050503d8060008114610b17576040519150601f19603f3d011682016040523d82523d6000602084013e610b1c565b606091505b5050905080610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5790611d88565b60405180910390fd5b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b9282610463565b610b9b81610d53565b610ba58383610e4f565b505050565b670de0b6b3a764000081565b610be07fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361084c565b610c1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1690611e28565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c8d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361084c565b610ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc390611e28565b60405180910390fd5b80600460146101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610d6481610d5f610e47565b611099565b50565b610d71828261084c565b610e4357600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610de8610e47565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610e59828261084c565b15610f2c57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ed1610e47565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008111610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90611d68565b60405180910390fd5b610fe433600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611136909392919063ffffffff16565b50565b6110688363a9059cbb60e01b8484604051602401611006929190611cac565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111bf565b505050565b6000818361107b9190611fbe565b905092915050565b600081836110919190611f8d565b905092915050565b6110a3828261084c565b611132576110c88173ffffffffffffffffffffffffffffffffffffffff166014611286565b6110d68360001c6020611286565b6040516020016110e7929190611c20565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111299190611d26565b60405180910390fd5b5050565b6111b9846323b872dd60e01b85858560405160240161115793929190611c75565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111bf565b50505050565b6000611221826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115809092919063ffffffff16565b90506000815111156112815780806020019051810190611241919061181b565b611280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127790611e68565b60405180910390fd5b5b505050565b6060600060028360026112999190611fbe565b6112a39190611f37565b67ffffffffffffffff8111156112e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113145781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611372577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106113fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261143c9190611fbe565b6114469190611f37565b90505b6001811115611532577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106114ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106114eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061152b906120ed565b9050611449565b5060008414611576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156d90611d48565b60405180910390fd5b8091505092915050565b606061158f8484600085611598565b90509392505050565b6060824710156115dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d490611dc8565b60405180910390fd5b6115e6856116ac565b611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c90611e48565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161164e9190611bf4565b60006040518083038185875af1925050503d806000811461168b576040519150601f19603f3d011682016040523d82523d6000602084013e611690565b606091505b50915091506116a08282866116cf565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156116df5782905061172f565b6000835111156116f25782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117269190611d26565b60405180910390fd5b9392505050565b60008135905061174581612410565b92915050565b60008135905061175a81612427565b92915050565b60008151905061176f81612427565b92915050565b6000813590506117848161243e565b92915050565b60008135905061179981612455565b92915050565b6000813590506117ae8161246c565b92915050565b6000815190506117c38161246c565b92915050565b6000602082840312156117db57600080fd5b60006117e984828501611736565b91505092915050565b60006020828403121561180457600080fd5b60006118128482850161174b565b91505092915050565b60006020828403121561182d57600080fd5b600061183b84828501611760565b91505092915050565b60006020828403121561185657600080fd5b600061186484828501611775565b91505092915050565b6000806040838503121561188057600080fd5b600061188e85828601611775565b925050602061189f85828601611736565b9150509250929050565b6000602082840312156118bb57600080fd5b60006118c98482850161178a565b91505092915050565b6000602082840312156118e457600080fd5b60006118f28482850161179f565b91505092915050565b60006020828403121561190d57600080fd5b600061191b848285016117b4565b91505092915050565b61192d81612018565b82525050565b61193c8161202a565b82525050565b61194b81612036565b82525050565b600061195c82611efa565b6119668185611f10565b93506119768185602086016120ba565b80840191505092915050565b61198b81612096565b82525050565b600061199c82611f05565b6119a68185611f1b565b93506119b68185602086016120ba565b6119bf81612175565b840191505092915050565b60006119d582611f05565b6119df8185611f2c565b93506119ef8185602086016120ba565b80840191505092915050565b6000611a08602083611f1b565b9150611a1382612186565b602082019050919050565b6000611a2b600a83611f1b565b9150611a36826121af565b602082019050919050565b6000611a4e600f83611f1b565b9150611a59826121d8565b602082019050919050565b6000611a71601383611f1b565b9150611a7c82612201565b602082019050919050565b6000611a94602683611f1b565b9150611a9f8261222a565b604082019050919050565b6000611ab7600a83611f1b565b9150611ac282612279565b602082019050919050565b6000611ada601083611f1b565b9150611ae5826122a2565b602082019050919050565b6000611afd601683611f1b565b9150611b08826122cb565b602082019050919050565b6000611b20600083611f10565b9150611b2b826122f4565b600082019050919050565b6000611b43601d83611f1b565b9150611b4e826122f7565b602082019050919050565b6000611b66601783611f2c565b9150611b7182612320565b601782019050919050565b6000611b89602a83611f1b565b9150611b9482612349565b604082019050919050565b6000611bac601183611f2c565b9150611bb782612398565b601182019050919050565b6000611bcf602f83611f1b565b9150611bda826123c1565b604082019050919050565b611bee8161208c565b82525050565b6000611c008284611951565b915081905092915050565b6000611c1682611b13565b9150819050919050565b6000611c2b82611b59565b9150611c3782856119ca565b9150611c4282611b9f565b9150611c4e82846119ca565b91508190509392505050565b6000602082019050611c6f6000830184611924565b92915050565b6000606082019050611c8a6000830186611924565b611c976020830185611924565b611ca46040830184611be5565b949350505050565b6000604082019050611cc16000830185611924565b611cce6020830184611be5565b9392505050565b6000602082019050611cea6000830184611933565b92915050565b6000602082019050611d056000830184611942565b92915050565b6000602082019050611d206000830184611982565b92915050565b60006020820190508181036000830152611d408184611991565b905092915050565b60006020820190508181036000830152611d61816119fb565b9050919050565b60006020820190508181036000830152611d8181611a1e565b9050919050565b60006020820190508181036000830152611da181611a41565b9050919050565b60006020820190508181036000830152611dc181611a64565b9050919050565b60006020820190508181036000830152611de181611a87565b9050919050565b60006020820190508181036000830152611e0181611aaa565b9050919050565b60006020820190508181036000830152611e2181611acd565b9050919050565b60006020820190508181036000830152611e4181611af0565b9050919050565b60006020820190508181036000830152611e6181611b36565b9050919050565b60006020820190508181036000830152611e8181611b7c565b9050919050565b60006020820190508181036000830152611ea181611bc2565b9050919050565b6000602082019050611ebd6000830184611be5565b92915050565b6000606082019050611ed86000830186611be5565b611ee56020830185611be5565b611ef26040830184611924565b949350505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000611f428261208c565b9150611f4d8361208c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f8257611f81612117565b5b828201905092915050565b6000611f988261208c565b9150611fa38361208c565b925082611fb357611fb2612146565b5b828204905092915050565b6000611fc98261208c565b9150611fd48361208c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561200d5761200c612117565b5b828202905092915050565b60006120238261206c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006120a1826120a8565b9050919050565b60006120b38261206c565b9050919050565b60005b838110156120d85780820151818401526020810190506120bd565b838111156120e7576000848401525b50505050565b60006120f88261208c565b9150600082141561210c5761210b612117565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4172626973206973203000000000000000000000000000000000000000000000600082015250565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b7f45786368616e6765206e6f742061637469766500000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f556d616d69206973203000000000000000000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820556d616d6900000000000000000000000000000000600082015250565b7f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61241981612018565b811461242457600080fd5b50565b6124308161202a565b811461243b57600080fd5b50565b61244781612036565b811461245257600080fd5b50565b61245e81612040565b811461246957600080fd5b50565b6124758161208c565b811461248057600080fd5b5056fea264697066735822122007ece3152c51f78b19dc40062d13c53b4e8b845b8ad9b52ef8ca7e0980bfc72164736f6c634300080400330000000000000000000000009f20de1fc9b161b34089cbeae888168b44b034610000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e30000000000000000000000000000000000000000000000000000000000000898

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

0000000000000000000000009f20de1fc9b161b34089cbeae888168b44b034610000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e30000000000000000000000000000000000000000000000000000000000000898

-----Decoded View---------------
Arg [0] : _arbis (address): 0x9f20de1fc9b161b34089cbeae888168b44b03461
Arg [1] : _umami (address): 0x1622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [2] : _rate (uint256): 2200

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000009f20de1fc9b161b34089cbeae888168b44b03461
Arg [1] : 0000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000898


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