Contract 0xe6d557d416ff5640235119369c7e26aa18a906d7

 

Contract Overview

Arbi's Finance: sUmami Token
Balance:
0 ETH

ETH Value:
$0.00
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xec668bf50e8904757c45833a26ba15ea27d38e5bf2e80ea121f32299cb978ca3Approve443803002022-12-07 15:36:5712 hrs 7 mins ago0xbeafb385fbdea149dd780f9a340f8db6a6e7d7e7 IN  Arbi's Finance: sUmami Token0 ETH0.00002395
0x2d5133a3be2ce1c29a019729995d328f5859e13eb2ca7be027fca6c62412afbbApprove441018922022-12-06 14:43:161 day 13 hrs ago0xa646b24b78938cb1dbfe123606e6a2fbb8b20196 IN  Arbi's Finance: sUmami Token0 ETH0.00003664
0xd07fe1fcea72424bf0fc1c62cc69cd62ab8fac028324f26fe1a1d653d0eb140dApprove440987622022-12-06 14:28:561 day 13 hrs ago0x5708b68a0ef184f8c8ec90cdeadfe81fadf12c8a IN  Arbi's Finance: sUmami Token0 ETH0.00003128
0xb0ebe68d94eb9d210b2af79c41e28e5399dd195e411e87735d7f50c806d1474aApprove440986952022-12-06 14:28:391 day 13 hrs ago0x5708b68a0ef184f8c8ec90cdeadfe81fadf12c8a IN  Arbi's Finance: sUmami Token0 ETH0.00003128
0xee32706ce68ee927196bfeb5f7382b1f2a55e99b913ef909c5c2a9858bdfb734Increase Allowan...433921172022-12-04 0:00:454 days 3 hrs ago0xeeccaf4b0037630e4a84e95a1d6410899d232e5b IN  Arbi's Finance: sUmami Token0 ETH0.00001935
0x2c9f961c0b52b0303f60333d47ed01bd7e2dc55dc6d30f60bad49acbb384fd3fApprove422206882022-11-29 17:39:038 days 10 hrs ago0x83b02e67a9d6f12e8c1361b431695a4d3ae9df6b IN  Arbi's Finance: sUmami Token0 ETH0.00002112
0x09641648547ecaee26fab5703a3439da6fd28c08b366585fd2ab705345d8b9a7Approve409359382022-11-24 22:10:0913 days 5 hrs ago0x33db6b3a0da82fc5cfd0df03665c71d92c2b639b IN  Arbi's Finance: sUmami Token0 ETH0.00001905
0xf2393f4936e8861008ff053135684d3afaa3170d4c1a744760e45098185d789eApprove407230882022-11-24 4:24:4013 days 23 hrs ago0x9a124f922b957f3f7930677f65d920a3e6f73043 IN  Arbi's Finance: sUmami Token0 ETH0.00001921
0x509fd6cab9bf79785a38e69577984033fcd80488b8c4928c1de239c52da0a63bApprove399152432022-11-21 10:41:0416 days 17 hrs ago0x6f3a5ec56a548b88ccfd75cb0c099ec9b12a0f6a IN  Arbi's Finance: sUmami Token0 ETH0.00001945
0xd63ff2cec404f2367dc0dedc4f2194bf0783c8ef4e28b7b08d4c09be21bba99dTransfer396524502022-11-20 14:09:4717 days 13 hrs ago0xf86087519fa4281fa6b1db7a331f2b16dd07a69a IN  Arbi's Finance: sUmami Token0 ETH0.00001977
0x932a6ac35cb18e2b259f0276d273f0d01f261dc30a268ffeaf1d308d00924ed7Approve391549962022-11-18 21:55:5119 days 5 hrs ago0xe1249fc86c7e52130e9ab75c14f10b310cf6280d IN  Arbi's Finance: sUmami Token0 ETH0.00001962
0x379873d92f5ab35cab898b41c375a0ba605f702ade74a25545d47524434e2462Approve387738442022-11-17 9:40:3620 days 18 hrs ago0xcac0eb798903ffe73ab1776da3174e6e40e721c6 IN  Arbi's Finance: sUmami Token0 ETH0.00002093
0xa951fcef3f0f4c9ce5abdfdee5d775b6ce71791a63cd72a8459fecdd4ae43ecdApprove386982142022-11-17 2:31:2121 days 1 hr ago0xefff0d15d756fe449b152d85f720ae6652662fd0 IN  Arbi's Finance: sUmami Token0 ETH0.00002157
0x557239e9ad732bca043e2752deaea8ba3a6660c3727e5be721834b573065a66fApprove386357192022-11-16 19:37:0621 days 8 hrs ago0x637f1d1fd374fc425fc6fe8e133b17ecfad5f65f IN  Arbi's Finance: sUmami Token0 ETH0.0003411
0x499a0f564a20279aa33a54a899abbd1e37072be9b48f73f645b48462e6c2815cApprove384761402022-11-16 6:42:1321 days 21 hrs ago0xb93eb3494bd859eee47bde92c97b9dbf70d1469f IN  Arbi's Finance: sUmami Token0 ETH0.00001847
0x09c7721d18a0a2a625bc3cdfd352e7a3a7af49db62a6ab9bfc5f68201b399bc0Approve377684492022-11-13 13:37:1824 days 14 hrs ago0xe7513e5595a751af9f298ecea7741cdd839dc7d4 IN  Arbi's Finance: sUmami Token0 ETH0.000022
0xd3676373ae778849f0d36e4cf5d042ff753337ce981e49a1afbe1663a9705246Approve370758212022-11-11 2:09:0327 days 1 hr ago0xe4b761cbbdcb1aa9de6b1f763c78e64309490563 IN  Arbi's Finance: sUmami Token0 ETH0.00002463
0x42382b13206b180ace40a39b7c6df73d481b7711f02bfec63883d644fa4c9fe5Approve364602092022-11-09 0:32:2629 days 3 hrs ago0x27c5fdef9a082abd0711c611dbde9d7db9611aae IN  Arbi's Finance: sUmami Token0 ETH0.00002898
0x62cf645260de3f7654a81d8e29544e67bcefb7fda8059a65b4ae2075b4da1b62Approve352451592022-11-04 16:56:5933 days 10 hrs ago0x24d9be8c2589c9873bc636e24972cdb891cdbc25 IN  Arbi's Finance: sUmami Token0 ETH0.0000418
0x82d2b1d790b4629e0740ae3e653d37d9e42b8a49531880053b4bd595166392ccApprove347884722022-11-02 20:15:5735 days 7 hrs ago0x69e02d001146a86d4e2995f9ecf906265aa77d85 IN  Arbi's Finance: sUmami Token0 ETH0.00004697
0x370fe5e805858ed1f77f6ccd167b10b737c04fffba05ee914a2f19d4f66a65f6Approve347077842022-11-02 13:27:4035 days 14 hrs ago0x642f2849126aab405724ef3156822a15b5507c86 IN  Arbi's Finance: sUmami Token0 ETH0.0000147
0xa3d8227517bba44d314e6d58519787c3ea03477776de47398ef5652afb7e46afApprove339735212022-10-30 19:24:0038 days 8 hrs ago0x07cc9a545238c06c43a9fd9105fb5d7f61c328a4 IN  Arbi's Finance: sUmami Token0 ETH0.00001498
0xd2fce91fccff9dc60782d97f280848f78daeedcee9056b7083ccb2b2809175a6Approve336296972022-10-29 13:59:3739 days 13 hrs ago0x0363433b505d401e3203f75ffce3fcef4a006789 IN  Arbi's Finance: sUmami Token0 ETH0.0000274
0x1685cc924215a9a28593b6df23dd2ce762b88da726f5f1d24cd7b531e4fd93ccApprove327916012022-10-26 15:56:1542 days 11 hrs ago0x7c2dd97fec2953ecd88fdd94a8925b865d9faef9 IN  Arbi's Finance: sUmami Token0 ETH0.00005989
0xe621e61edbc7f67e84fa4bba10f5759cde5ec4ecf04f2e02b9bebca84f32790bApprove318652092022-10-23 4:48:3645 days 22 hrs ago0x25c4df6841211e986d033ebfa985748a8fa67c5f IN  Arbi's Finance: sUmami Token0 ETH0.00001892
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe5ec752582c2da53ce43f73ceba07b65911c73188e1f11880575b1452c43acee443803452022-12-07 15:37:1012 hrs 6 mins ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xe5ec752582c2da53ce43f73ceba07b65911c73188e1f11880575b1452c43acee443803452022-12-07 15:37:1012 hrs 6 mins ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xe5ec752582c2da53ce43f73ceba07b65911c73188e1f11880575b1452c43acee443803452022-12-07 15:37:1012 hrs 6 mins ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x6493c90dc5cebe4646a663328898b7e8ef937450bda54519a69a522a9ea9e49a441019442022-12-06 14:43:311 day 13 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x6493c90dc5cebe4646a663328898b7e8ef937450bda54519a69a522a9ea9e49a441019442022-12-06 14:43:311 day 13 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x6493c90dc5cebe4646a663328898b7e8ef937450bda54519a69a522a9ea9e49a441019442022-12-06 14:43:311 day 13 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xbd508beaf369d60989fa952a4123699fc8be6f8fbdc5029924bd85d65596f7d7438337702022-12-05 14:52:002 days 12 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xbd508beaf369d60989fa952a4123699fc8be6f8fbdc5029924bd85d65596f7d7438337702022-12-05 14:52:002 days 12 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xbd508beaf369d60989fa952a4123699fc8be6f8fbdc5029924bd85d65596f7d7438337702022-12-05 14:52:002 days 12 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x3ee10648f9da6fb72b3d6775a980b422826b5a285bdb3207d7e0056c3338fec3433922572022-12-04 0:01:484 days 3 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x3ee10648f9da6fb72b3d6775a980b422826b5a285bdb3207d7e0056c3338fec3433922572022-12-04 0:01:484 days 3 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x3ee10648f9da6fb72b3d6775a980b422826b5a285bdb3207d7e0056c3338fec3433922572022-12-04 0:01:484 days 3 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x2a1ae59e5b8829546cc7d4938e8de0cfaa09441eec63425fb638b2cae5b92c16422210552022-11-29 17:40:458 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x2a1ae59e5b8829546cc7d4938e8de0cfaa09441eec63425fb638b2cae5b92c16422210552022-11-29 17:40:458 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x2a1ae59e5b8829546cc7d4938e8de0cfaa09441eec63425fb638b2cae5b92c16422210552022-11-29 17:40:458 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xab6ead4803cc5658509ed7a9c81cd2600a2a2ee8336e15f2054bbc8e1def7b84416808482022-11-27 17:30:2210 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xab6ead4803cc5658509ed7a9c81cd2600a2a2ee8336e15f2054bbc8e1def7b84416808482022-11-27 17:30:2210 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xab6ead4803cc5658509ed7a9c81cd2600a2a2ee8336e15f2054bbc8e1def7b84416808482022-11-27 17:30:2210 days 10 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x1702544893598dfd1554fb229c1b63643e27cf99d86bf086186fb9915906904c409360132022-11-24 22:10:4413 days 5 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x1702544893598dfd1554fb229c1b63643e27cf99d86bf086186fb9915906904c409360132022-11-24 22:10:4413 days 5 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x1702544893598dfd1554fb229c1b63643e27cf99d86bf086186fb9915906904c409360132022-11-24 22:10:4413 days 5 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x29c8f4678b61c3d08ac66b85f5ec571698f76b689bc068ad75709ab86d20d05b407232632022-11-24 4:25:4213 days 23 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x29c8f4678b61c3d08ac66b85f5ec571698f76b689bc068ad75709ab86d20d05b407232632022-11-24 4:25:4213 days 23 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0x29c8f4678b61c3d08ac66b85f5ec571698f76b689bc068ad75709ab86d20d05b407232632022-11-24 4:25:4213 days 23 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
0xafe19f479e98a99bdb2b97e5076d94bcb0a44eac11714edcad474541a3984600399155472022-11-21 10:42:2216 days 17 hrs ago Arbi's Finance: Staking Arbi's Finance: sUmami Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
sUMAMI

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2022-01-24
*/

// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;


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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }

    /*
     * Expects percentage to be trailed by 00,
    */
    function percentageAmount( uint256 total_, uint8 percentage_ ) internal pure returns ( uint256 percentAmount_ ) {
        return div( mul( total_, percentage_ ), 1000 );
    }

    /*
     * Expects percentage to be trailed by 00,
    */
    function substractPercentage( uint256 total_, uint8 percentageToSub_ ) internal pure returns ( uint256 result_ ) {
        return sub( total_, div( mul( total_, percentageToSub_ ), 1000 ) );
    }

    function percentageOfTotal( uint256 part_, uint256 total_ ) internal pure returns ( uint256 percent_ ) {
        return div( mul(part_, 100) , total_ );
    }

    /**
     * Taken from Hypersonic https://github.com/M2629/HyperSonic/blob/main/Math.sol
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }

    function quadraticPricing( uint256 payment_, uint256 multiplier_ ) internal pure returns (uint256) {
        return sqrrt( mul( multiplier_, payment_ ) );
    }

  function bondingCurve( uint256 supply_, uint256 multiplier_ ) internal pure returns (uint256) {
      return mul( multiplier_, supply_ );
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function addressToString(address _address) internal pure returns(string memory) {
        bytes32 _bytes = bytes32(uint256(_address));
        bytes memory HEX = "0123456789abcdef";
        bytes memory _addr = new bytes(42);

        _addr[0] = '0';
        _addr[1] = 'x';

        for(uint256 i = 0; i < 20; i++) {
            _addr[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)];
            _addr[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)];
        }

        return string(_addr);

    }
}

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

abstract contract ERC20
  is 
    IERC20
  {

  using SafeMath for uint256;

  // TODO comment actual hash value.
  bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );
    
  // Present in ERC777
  mapping (address => uint256) internal _balances;

  // Present in ERC777
  mapping (address => mapping (address => uint256)) internal _allowances;

  // Present in ERC777
  uint256 internal _totalSupply;

  // Present in ERC777
  string internal _name;
    
  // Present in ERC777
  string internal _symbol;
    
  // Present in ERC777
  uint8 internal _decimals;

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

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

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

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

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

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

  /**
   * @dev See {IERC20-transfer}.
   *
   * Requirements:
   *
   * - `recipient` cannot be the zero address.
   * - the caller must have a balance of at least `amount`.
   */
  // Overrideen in ERC777
  // Confirm that this behavior changes 
  function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
    _transfer(msg.sender, recipient, amount);
    return true;
  }

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

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

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

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

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

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

    _beforeTokenTransfer(sender, recipient, amount);

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

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    // Present in ERC777
    function _mint(address account_, uint256 ammount_) internal virtual {
        require(account_ != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address( this ), account_, ammount_);
        _totalSupply = _totalSupply.add(ammount_);
        _balances[account_] = _balances[account_].add(ammount_);
        emit Transfer(address( this ), account_, ammount_);
    }

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

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

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

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

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

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

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

library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

interface IERC2612Permit {
    /**
     * @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current ERC2612 nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);
}

abstract contract ERC20Permit is ERC20, IERC2612Permit {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    bytes32 public DOMAIN_SEPARATOR;

    constructor() {

        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        DOMAIN_SEPARATOR = keccak256(abi.encode(
            keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
            keccak256(bytes(name())),
            keccak256(bytes("1")), // Version
            chainID,
            address(this)
        ));
    }

    /**
     * @dev See {IERC2612Permit-permit}.
     *
     */
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "Permit: expired deadline");

        bytes32 hashStruct =
            keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, amount, _nonces[owner].current(), deadline));

        bytes32 _hash = keccak256(abi.encodePacked(uint16(0x1901), DOMAIN_SEPARATOR, hashStruct));

        address signer = ecrecover(_hash, v, r, s);
        require(signer != address(0) && signer == owner, "ZeroSwapPermit: Invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, amount);
    }

    /**
     * @dev See {IERC2612Permit-nonces}.
     */
    function nonces(address owner) public view override returns (uint256) {
        return _nonces[owner].current();
    }
}

interface IOwnable {
  function manager() external view returns (address);

  function renounceManagement() external;
  
  function pushManagement( address newOwner_ ) external;
  
  function pullManagement() external;
}

contract Ownable is IOwnable {

    address internal _owner;
    address internal _newOwner;

    event OwnershipPushed(address indexed previousOwner, address indexed newOwner);
    event OwnershipPulled(address indexed previousOwner, address indexed newOwner);

    constructor () {
        _owner = msg.sender;
        emit OwnershipPushed( address(0), _owner );
    }

    function manager() public view override returns (address) {
        return _owner;
    }

    modifier onlyManager() {
        require( _owner == msg.sender, "Ownable: caller is not the owner" );
        _;
    }

    function renounceManagement() public virtual override onlyManager() {
        emit OwnershipPushed( _owner, address(0) );
        _owner = address(0);
    }

    function pushManagement( address newOwner_ ) public virtual override onlyManager() {
        require( newOwner_ != address(0), "Ownable: new owner is the zero address");
        emit OwnershipPushed( _owner, newOwner_ );
        _newOwner = newOwner_;
    }
    
    function pullManagement() public virtual override {
        require( msg.sender == _newOwner, "Ownable: must be new owner to pull");
        emit OwnershipPulled( _owner, _newOwner );
        _owner = _newOwner;
    }
}

contract sUMAMI is ERC20Permit, Ownable {

    using SafeMath for uint256;

    modifier onlyStakingContract() {
        require( msg.sender == stakingContract );
        _;
    }

    address public stakingContract;
    address public initializer;

    event LogSupply(uint256 indexed epoch, uint256 timestamp, uint256 totalSupply );
    event LogRebase( uint256 indexed epoch, uint256 rebase, uint256 index );
    event LogStakingContractUpdated( address stakingContract );

    struct Rebase {
        uint epoch;
        uint rebase; // 18 decimals
        uint totalStakedBefore;
        uint totalStakedAfter;
        uint amountRebased;
        uint index;
        uint blockNumberOccured;
    }
    Rebase[] public rebases;

    uint public INDEX;

    uint256 private constant MAX_UINT256 = ~uint256(0);
    uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 5000000 * 10**9;

    // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment is an integer.
    // Use the highest value that fits in a uint256 for max granularity.
    uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY);

    // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2
    uint256 private constant MAX_SUPPLY = ~uint128(0);  // (2^128) - 1

    uint256 private _gonsPerFragment;
    mapping(address => uint256) private _gonBalances;

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

    constructor() ERC20("Staked Umami", "sUMAMI", 9) ERC20Permit() {
        initializer = msg.sender;
        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);
    }

    function initialize( address stakingContract_ ) external returns ( bool ) {
        require( msg.sender == initializer );
        require( stakingContract_ != address(0) );
        stakingContract = stakingContract_;
        _gonBalances[ stakingContract ] = TOTAL_GONS;

        emit Transfer( address(0x0), stakingContract, _totalSupply );
        emit LogStakingContractUpdated( stakingContract_ );
        
        initializer = address(0);
        return true;
    }

    function setIndex( uint _INDEX ) external onlyManager() returns ( bool ) {
        require( INDEX == 0 );
        INDEX = gonsForBalance( _INDEX );
        return true;
    }

    /**
        @notice increases sUMAMI supply to increase staking balances relative to profit_
        @param profit_ uint256
        @return uint256
     */
    function rebase( uint256 profit_, uint epoch_ ) public onlyStakingContract() returns ( uint256 ) {
        uint256 rebaseAmount;
        uint256 circulatingSupply_ = circulatingSupply();

        if ( profit_ == 0 ) {
            emit LogSupply( epoch_, block.timestamp, _totalSupply );
            emit LogRebase( epoch_, 0, index() );
            return _totalSupply;
        } else if ( circulatingSupply_ > 0 ){
            rebaseAmount = profit_.mul( _totalSupply ).div( circulatingSupply_ );
        } else {
            rebaseAmount = profit_;
        }

        _totalSupply = _totalSupply.add( rebaseAmount );

        if ( _totalSupply > MAX_SUPPLY ) {
            _totalSupply = MAX_SUPPLY;
        }

        _gonsPerFragment = TOTAL_GONS.div( _totalSupply );

        _storeRebase( circulatingSupply_, profit_, epoch_ );

        return _totalSupply;
    }

    /**
        @notice emits event with data about rebase
        @param previousCirculating_ uint
        @param profit_ uint
        @param epoch_ uint
        @return bool
     */
    function _storeRebase( uint previousCirculating_, uint profit_, uint epoch_ ) internal returns ( bool ) {
        uint rebasePercent = profit_.mul( 1e18 ).div( previousCirculating_ );

        rebases.push( Rebase ( {
            epoch: epoch_,
            rebase: rebasePercent, // 18 decimals
            totalStakedBefore: previousCirculating_,
            totalStakedAfter: circulatingSupply(),
            amountRebased: profit_,
            index: index(),
            blockNumberOccured: block.number
        }));
        
        emit LogSupply( epoch_, block.timestamp, _totalSupply );
        emit LogRebase( epoch_, rebasePercent, index() );

        return true;
    }

    function balanceOf( address who ) public view override returns ( uint256 ) {
        return _gonBalances[ who ].div( _gonsPerFragment );
    }

    function gonsForBalance( uint amount ) public view returns ( uint ) {
        return amount.mul( _gonsPerFragment );
    }

    function balanceForGons( uint gons ) public view returns ( uint ) {
        return gons.div( _gonsPerFragment );
    }

    // Staking contract holds excess sOHM
    function circulatingSupply() public view returns ( uint ) {
        return _totalSupply.sub( balanceOf( stakingContract ) );
    }

    function index() public view returns ( uint ) {
        return balanceForGons( INDEX );
    }

function transfer( address to, uint256 value ) public override returns (bool) {
        uint256 gonValue = value.mul( _gonsPerFragment );
        _gonBalances[ msg.sender ] = _gonBalances[ msg.sender ].sub( gonValue );
        _gonBalances[ to ] = _gonBalances[ to ].add( gonValue );
        emit Transfer( msg.sender, to, value );
        return true;
    }

    function allowance( address owner_, address spender ) public view override returns ( uint256 ) {
        return _allowedValue[ owner_ ][ spender ];
    }

    function transferFrom( address from, address to, uint256 value ) public override returns ( bool ) {
       _allowedValue[ from ][ msg.sender ] = _allowedValue[ from ][ msg.sender ].sub( value );
       emit Approval( from, msg.sender,  _allowedValue[ from ][ msg.sender ] );

        uint256 gonValue = gonsForBalance( value );
        _gonBalances[ from ] = _gonBalances[from].sub( gonValue );
        _gonBalances[ to ] = _gonBalances[to].add( gonValue );
        emit Transfer( from, to, value );

        return true;
    }

    function approve( address spender, uint256 value ) public override returns (bool) {
         _allowedValue[ msg.sender ][ spender ] = value;
         emit Approval( msg.sender, spender, value );
         return true;
    }

    // What gets called in a permit
    function _approve( address owner, address spender, uint256 value ) internal override virtual {
        _allowedValue[owner][spender] = value;
        emit Approval( owner, spender, value );
    }

    function increaseAllowance( address spender, uint256 addedValue ) public override returns (bool) {
        _allowedValue[ msg.sender ][ spender ] = _allowedValue[ msg.sender ][ spender ].add( addedValue );
        emit Approval( msg.sender, spender, _allowedValue[ msg.sender ][ spender ] );
        return true;
    }

    function decreaseAllowance( address spender, uint256 subtractedValue ) public override returns (bool) {
        uint256 oldValue = _allowedValue[ msg.sender ][ spender ];
        if (subtractedValue >= oldValue) {
            _allowedValue[ msg.sender ][ spender ] = 0;
        } else {
            _allowedValue[ msg.sender ][ spender ] = oldValue.sub( subtractedValue );
        }
        emit Approval( msg.sender, spender, _allowedValue[ msg.sender ][ spender ] );
        return true;
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebase","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakingContract","type":"address"}],"name":"LogStakingContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPushed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gons","type":"uint256"}],"name":"balanceForGons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"gonsForBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakingContract_","type":"address"}],"name":"initialize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pullManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"pushManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"profit_","type":"uint256"},{"internalType":"uint256","name":"epoch_","type":"uint256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rebases","outputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"rebase","type":"uint256"},{"internalType":"uint256","name":"totalStakedBefore","type":"uint256"},{"internalType":"uint256","name":"totalStakedAfter","type":"uint256"},{"internalType":"uint256","name":"amountRebased","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"blockNumberOccured","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_INDEX","type":"uint256"}],"name":"setIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600c81526b5374616b656420556d616d6960a01b60208083019182528351808501909452600684526573554d414d4960d01b90840152815191929160099162000068916003919062000365565b5081516200007e90600490602085019062000365565b506005805460ff191660ff92909216919091179055504690507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000c2620001d3565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606084015260808301939093523060a0808401919091528351808403909101815260c0909201928390528151910120600755600880546001600160a01b0319163317908190556001600160a01b0316906000907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a3600b80546001600160a01b031916331790556611c37937e080006002819055620001ca908060001906600019036200026d60201b620013661790919060201c565b600e5562000411565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620002635780601f10620002375761010080835404028352916020019162000263565b820191906000526020600020905b8154815290600101906020018083116200024557829003601f168201915b5050505050905090565b6000620002b783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620002be60201b60201c565b9392505050565b600081836200034e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000312578181015183820152602001620002f8565b50505050905090810190601f168015620003405780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200035b57fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200039d5760008555620003e8565b82601f10620003b857805160ff1916838001178555620003e8565b82800160010185558215620003e8579182015b82811115620003e8578251825591602001919060010190620003cb565b50620003f6929150620003fa565b5090565b5b80821115620003f65760008155600101620003fb565b61182480620004216000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063481c6a751161010457806395d89b41116100a2578063c4d66de811610071578063c4d66de81461053d578063d505accf14610563578063dd62ed3e146105b4578063ee99205c146105e2576101da565b806395d89b41146104d55780639ce110d7146104dd578063a457c2d7146104e5578063a9059cbb14610511576101da565b806373c69eb7116100de57806373c69eb7146104355780637965d56d1461048a5780637ecebe00146104a75780639358928b146104cd576101da565b8063481c6a75146103e35780635a96ac0a1461040757806370a082311461040f576101da565b80632986c0e51161017c5780633644e5151161014b5780633644e5151461036c578063395093511461037457806340a5737f146103a057806346f68ee9146103bd576101da565b80632986c0e5146103365780632df75cb11461033e57806330adf81f14610346578063313ce5671461034e576101da565b8063095ea7b3116101b8578063095ea7b31461029b57806318160ddd146102db5780631bd39674146102e357806323b872dd14610300576101da565b8063058ecdb4146101df57806306fdde0314610214578063089208d814610291575b600080fd5b610202600480360360408110156101f557600080fd5b50803590602001356105ea565b60408051918252519081900360200190f35b61021c610734565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025657818101518382015260200161023e565b50505050905090810190601f1680156102835780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102996107ca565b005b6102c7600480360360408110156102b157600080fd5b506001600160a01b038135169060200135610873565b604080519115158252519081900360200190f35b6102026108c7565b610202600480360360208110156102f957600080fd5b50356108cd565b6102c76004803603606081101561031657600080fd5b506001600160a01b038135811691602081013590911690604001356108e4565b610202610a1e565b610202610a30565b610202610a36565b610356610a5a565b6040805160ff9092168252519081900360200190f35b610202610a63565b6102c76004803603604081101561038a57600080fd5b506001600160a01b038135169060200135610a69565b6102c7600480360360208110156103b657600080fd5b5035610aea565b610299600480360360208110156103d357600080fd5b50356001600160a01b0316610b6d565b6103eb610c6d565b604080516001600160a01b039092168252519081900360200190f35b610299610c7c565b6102026004803603602081101561042557600080fd5b50356001600160a01b0316610d28565b6104526004803603602081101561044b57600080fd5b5035610d50565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b610202600480360360208110156104a057600080fd5b5035610da2565b610202600480360360208110156104bd57600080fd5b50356001600160a01b0316610db9565b610202610dda565b61021c610dff565b6103eb610e60565b6102c7600480360360408110156104fb57600080fd5b506001600160a01b038135169060200135610e6f565b6102c76004803603604081101561052757600080fd5b506001600160a01b038135169060200135610f46565b6102c76004803603602081101561055357600080fd5b50356001600160a01b0316611006565b610299600480360360e081101561057957600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356110ff565b610202600480360360408110156105ca57600080fd5b506001600160a01b038135811691602001351661132c565b6103eb611357565b600a546000906001600160a01b0316331461060457600080fd5b60008061060f610dda565b9050846106a557600254604080514281526020810192909252805186927f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da492908290030190a2837f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb26000610681610a1e565b6040805192835260208301919091528051918290030190a26002549250505061072e565b80156106d1576106ca816106c4600254886113af90919063ffffffff16565b90611366565b91506106d5565b8491505b6002546106e29083611408565b60028190556001600160801b031015610701576001600160801b036002555b60025461071790660e3d2cfe61ffff1990611366565b600e55610725818686611462565b50600254925050505b92915050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b5050505050905090565b6008546001600160a01b03163314610829576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600880546001600160a01b0319169055565b3360008181526010602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390926000805160206117cf833981519152928290030190a350600192915050565b60025490565b600061072e600e54836113af90919063ffffffff16565b6001600160a01b038316600090815260106020908152604080832033845290915281205461091290836115a9565b6001600160a01b0385166000818152601060209081526040808320338085529083529281902085905580519485525191936000805160206117cf833981519152929081900390910190a36000610967836108cd565b6001600160a01b0386166000908152600f602052604090205490915061098d90826115a9565b6001600160a01b038087166000908152600f602052604080822093909355908616815220546109bc9082611408565b6001600160a01b038086166000818152600f602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001949350505050565b6000610a2b600d54610da2565b905090565b600d5481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b60075481565b3360009081526010602090815260408083206001600160a01b0386168452909152812054610a979083611408565b3360008181526010602090815260408083206001600160a01b0389168085529083529281902085905580519485525191936000805160206117cf833981519152929081900390910190a350600192915050565b6008546000906001600160a01b03163314610b4c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d5415610b5957600080fd5b610b62826108cd565b600d55506001919050565b6008546001600160a01b03163314610bcc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c115760405162461bcd60e51b81526004018080602001828103825260268152602001806117456026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba90600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031690565b6009546001600160a01b03163314610cc55760405162461bcd60e51b815260040180806020018281038252602281526020018061176b6022913960400191505060405180910390fd5b6009546008546040516001600160a01b0392831692909116907faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d90600090a3600954600880546001600160a01b0319166001600160a01b03909216919091179055565b600e546001600160a01b0382166000908152600f6020526040812054909161072e9190611366565b600c8181548110610d6057600080fd5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b600061072e600e548361136690919063ffffffff16565b6001600160a01b038116600090815260066020526040812061072e906115eb565b600a54600090610a2b90610df6906001600160a01b0316610d28565b600254906115a9565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c05780601f10610795576101008083540402835291602001916107c0565b600b546001600160a01b031681565b3360009081526010602090815260408083206001600160a01b0386168452909152812054808310610ec3573360009081526010602090815260408083206001600160a01b0388168452909152812055610ef2565b610ecd81846115a9565b3360009081526010602090815260408083206001600160a01b03891684529091529020555b3360008181526010602090815260408083206001600160a01b0389168085529083529281902054815190815290519293926000805160206117cf833981519152929181900390910190a35060019392505050565b600080610f5e600e54846113af90919063ffffffff16565b336000908152600f6020526040902054909150610f7b90826115a9565b336000908152600f6020526040808220929092556001600160a01b03861681522054610fa79082611408565b6001600160a01b0385166000818152600f60209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600b546000906001600160a01b0316331461102057600080fd5b6001600160a01b03821661103357600080fd5b600a80546001600160a01b0319166001600160a01b038481169190911780835581166000908152600f60209081526040808320660e3d2cfe61ffff19905593546002548551908152945193169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3604080516001600160a01b038416815290517f817c653428858ed536dc085c5d8273734c517b55de44b55f5c5877a75e3373a19181900360200190a15050600b80546001600160a01b0319169055600190565b83421115611154576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a206578706972656420646561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c99089908990899061119d906115eb565b604080516020808201979097526001600160a01b0395861681830152939094166060840152608083019190915260a082015260c08082018990528251808303909101815260e08201835280519084012060075461190160f01b610100840152610102830152610122808301829052835180840390910181526101428301808552815191860191909120600091829052610162840180865281905260ff8a166101828501526101a284018990526101c28401889052935191955092936001926101e280820193601f1981019281900390910190855afa158015611283573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906112b95750896001600160a01b0316816001600160a01b0316145b6112f45760405162461bcd60e51b815260040180806020018281038252602181526020018061178d6021913960400191505060405180910390fd5b6001600160a01b038a166000908152600660205260409020611315906115ef565b6113208a8a8a6115f8565b50505050505050505050565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b60006113a883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611648565b9392505050565b6000826113be5750600061072e565b828202828482816113cb57fe5b04146113a85760405162461bcd60e51b81526004018080602001828103825260218152602001806117ae6021913960400191505060405180910390fd5b6000828201838110156113a8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008061147b856106c486670de0b6b3a76400006113af565b9050600c6040518060e001604052808581526020018381526020018781526020016114a4610dda565b81526020018681526020016114b7610a1e565b81524360209182015282546001818101855560009485529382902083516007909202019081558282015193810193909355604080830151600280860191909155606084015160038601556080840151600486015560a0840151600586015560c0909301516006909401939093559054825142815291820152815185927f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da4928290030190a2827f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb282611586610a1e565b6040805192835260208301919091528051918290030190a2506001949350505050565b60006113a883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116ea565b5490565b80546001019055565b6001600160a01b03808416600081815260106020908152604080832094871680845294825291829020859055815185815291516000805160206117cf8339815191529281900390910190a3505050565b600081836116d45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611699578181015183820152602001611681565b50505050905090810190601f1680156116c65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816116e057fe5b0495945050505050565b6000818484111561173c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611699578181015183820152602001611681565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c5a65726f537761705065726d69743a20496e76616c6964207369676e6174757265536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f778c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a26469706673582212207d690eddb763566da794ff8f9d7d05d9b3f7ba3eacb2bea764c96e1f1f44bc3e64736f6c63430007050033

Deployed ByteCode Sourcemap

35505:7474:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38093:894;;;;;;;;;;;;;;;;-1:-1:-1;38093:894:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;20617:77;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34837:159;;;:::i;:::-;;41665:226;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41665:226:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;21700:94;;;:::i;40043:124::-;;;;;;;;;;;;;;;;-1:-1:-1;40043:124:0;;:::i;41120:537::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41120:537:0;;;;;;;;;;;;;;;;;:::i;40486:95::-;;;:::i;36269:17::-;;;:::i;32366:108::-;;;:::i;21542:77::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32483:31;;;:::i;42142:322::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42142:322:0;;;;;;;;:::i;37742:178::-;;;;;;;;;;;;;;;;-1:-1:-1;37742:178:0;;:::i;35004:261::-;;;;;;;;;;;;;;;;-1:-1:-1;35004:261:0;-1:-1:-1;;;;;35004:261:0;;:::i;34610:90::-;;;:::i;:::-;;;;-1:-1:-1;;;;;34610:90:0;;;;;;;;;;;;;;35277:221;;;:::i;39891:144::-;;;;;;;;;;;;;;;;-1:-1:-1;39891:144:0;-1:-1:-1;;;;;39891:144:0;;:::i;36237:23::-;;;;;;;;;;;;;;;;-1:-1:-1;36237:23:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40175:120;;;;;;;;;;;;;;;;-1:-1:-1;40175:120:0;;:::i;33862:::-;;;;;;;;;;;;;;;;-1:-1:-1;33862:120:0;-1:-1:-1;;;;;33862:120:0;;:::i;40346:132::-;;;:::i;20827:81::-;;;:::i;35736:26::-;;;:::i;42472:504::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42472:504:0;;;;;;;;:::i;40585:364::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40585:364:0;;;;;;;;:::i;37252:482::-;;;;;;;;;;;;;;;;-1:-1:-1;37252:482:0;-1:-1:-1;;;;;37252:482:0;;:::i;33024:770::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33024:770:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;40957:155::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40957:155:0;;;;;;;;;;:::i;35699:30::-;;;:::i;38093:894::-;35654:15;;38180:7;;-1:-1:-1;;;;;35654:15:0;35640:10;:29;35631:40;;;;;;38201:20:::1;38232:26:::0;38261:19:::1;:17;:19::i;:::-;38232:48:::0;-1:-1:-1;38298:12:0;38293:372:::1;;38369:12;::::0;38333:50:::1;::::0;;38352:15:::1;38333:50:::0;;::::1;::::0;::::1;::::0;;;;;;38344:6;;38333:50:::1;::::0;;;;;;;::::1;38414:6;38403:31;38422:1;38425:7;:5;:7::i;:::-;38403:31;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;38456:12;;38449:19;;;;;;38293:372;38491:22:::0;;38486:179:::1;;38545:53;38578:18;38545:27;38558:12;;38545:7;:11;;:27;;;;:::i;:::-;:31:::0;::::1;:53::i;:::-;38530:68;;38486:179;;;38646:7;38631:22;;38486:179;38692:12;::::0;:32:::1;::::0;38710:12;38692:16:::1;:32::i;:::-;38677:12;:47:::0;;;-1:-1:-1;;;;;;38737:85:0::1;;;-1:-1:-1::0;;;;;38785:12:0::1;:25:::0;38737:85:::1;38869:12;::::0;38853:30:::1;::::0;-1:-1:-1;;36641:54:0;38853:14:::1;:30::i;:::-;38834:16;:49:::0;38896:51:::1;38910:18:::0;38930:7;38939:6;38896:12:::1;:51::i;:::-;;38967:12;;38960:19;;;;35682:1;38093:894:::0;;;;:::o;20617:77::-;20683:5;20676:12;;;;;;;;-1:-1:-1;;20676:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20654:13;;20676:12;;20683:5;;20676:12;;20683:5;20676:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20617:77;:::o;34837:159::-;34751:6;;-1:-1:-1;;;;;34751:6:0;34761:10;34751:20;34742:67;;;;;-1:-1:-1;;;34742:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34938:6:::1;::::0;34921:37:::1;::::0;34954:1:::1;::::0;-1:-1:-1;;;;;34938:6:0::1;::::0;34921:37:::1;::::0;34954:1;;34921:37:::1;34969:6;:19:::0;;-1:-1:-1;;;;;;34969:19:0::1;::::0;;34837:159::o;41665:226::-;41774:10;41741:4;41759:27;;;:13;:27;;;;;;;;-1:-1:-1;;;;;41759:38:0;;;;;;;;;;;:46;;;41822:38;;;;;;;41741:4;;41759:38;;41774:10;;-1:-1:-1;;;;;;;;;;;41822:38:0;;;;;;;-1:-1:-1;41879:4:0;41665:226;;;;:::o;21700:94::-;21776:12;;21700:94;:::o;40043:124::-;40104:4;40129:30;40141:16;;40129:6;:10;;:30;;;;:::i;41120:537::-;-1:-1:-1;;;;;41266:21:0;;41211:4;41266:21;;;:13;:21;;;;;;;;41289:10;41266:35;;;;;;;;:48;;41307:5;41266:39;:48::i;:::-;-1:-1:-1;;;;;41228:21:0;;;;;;:13;:21;;;;;;;;41251:10;41228:35;;;;;;;;;;:86;;;41329:66;;;;;;41251:10;;-1:-1:-1;;;;;;;;;;;41329:66:0;;;;;;;;;;41408:16;41427:23;41443:5;41427:14;:23::i;:::-;-1:-1:-1;;;;;41484:18:0;;;;;;:12;:18;;;;;;41408:42;;-1:-1:-1;41484:34:0;;41408:42;41484:22;:34::i;:::-;-1:-1:-1;;;;;41461:20:0;;;;;;;:12;:20;;;;;;:57;;;;41550:16;;;;;;;:32;;41572:8;41550:20;:32::i;:::-;-1:-1:-1;;;;;41529:18:0;;;;;;;:12;:18;;;;;;;;;:53;;;;41598:27;;;;;;;41529:18;;41598:27;;;;;;;;;;;;;-1:-1:-1;41645:4:0;;41120:537;-1:-1:-1;;;;41120:537:0:o;40486:95::-;40525:4;40550:23;40566:5;;40550:14;:23::i;:::-;40543:30;;40486:95;:::o;36269:17::-;;;;:::o;32366:108::-;32408:66;32366:108;:::o;21542:77::-;21604:9;;;;21542:77;:::o;32483:31::-;;;;:::o;42142:322::-;42306:10;42233:4;42291:27;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42291:38:0;;;;;;;;;;:56;;42335:10;42291:42;:56::i;:::-;42265:10;42250:27;;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42250:38:0;;;;;;;;;;;;:97;;;42363:71;;;;;;42250:38;;-1:-1:-1;;;;;;;;;;;42363:71:0;;;;;;;;;;-1:-1:-1;42452:4:0;42142:322;;;;:::o;37742:178::-;34751:6;;37808:4;;-1:-1:-1;;;;;34751:6:0;34761:10;34751:20;34742:67;;;;;-1:-1:-1;;;34742:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37835:5:::1;::::0;:10;37826:21:::1;;;::::0;::::1;;37866:24;37882:6;37866:14;:24::i;:::-;37858:5;:32:::0;-1:-1:-1;37908:4:0::1;37742:178:::0;;;:::o;35004:261::-;34751:6;;-1:-1:-1;;;;;34751:6:0;34761:10;34751:20;34742:67;;;;;-1:-1:-1;;;34742:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35107:23:0;::::1;35098:75;;;;-1:-1:-1::0;;;35098:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35206:6;::::0;35189:36:::1;::::0;-1:-1:-1;;;;;35189:36:0;;::::1;::::0;35206:6:::1;::::0;35189:36:::1;::::0;35206:6:::1;::::0;35189:36:::1;35236:9;:21:::0;;-1:-1:-1;;;;;;35236:21:0::1;-1:-1:-1::0;;;;;35236:21:0;;;::::1;::::0;;;::::1;::::0;;35004:261::o;34610:90::-;34686:6;;-1:-1:-1;;;;;34686:6:0;34610:90;:::o;35277:221::-;35361:9;;-1:-1:-1;;;;;35361:9:0;35347:10;:23;35338:71;;;;-1:-1:-1;;;35338:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35450:9;;35442:6;;35425:36;;-1:-1:-1;;;;;35450:9:0;;;;35442:6;;;;35425:36;;35450:9;;35425:36;35481:9;;35472:6;:18;;-1:-1:-1;;;;;;35472:18:0;-1:-1:-1;;;;;35481:9:0;;;35472:18;;;;;;35277:221::o;39891:144::-;40009:16;;-1:-1:-1;;;;;39984:19:0;;39956:7;39984:19;;;:12;:19;;;;;;39956:7;;39984:43;;:19;:23;:43::i;36237:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;40175:120::-;40234:4;40259:28;40269:16;;40259:4;:8;;:28;;;;:::i;33862:120::-;-1:-1:-1;;;;;33950:14:0;;33923:7;33950:14;;;:7;:14;;;;;:24;;:22;:24::i;40346:132::-;40451:15;;40397:4;;40422:48;;40440:28;;-1:-1:-1;;;;;40451:15:0;40440:9;:28::i;:::-;40422:12;;;:16;:48::i;20827:81::-;20895:7;20888:14;;;;;;;;-1:-1:-1;;20888:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20866:13;;20888:14;;20895:7;;20888:14;;20895:7;20888:14;;;;;;;;;;;;;;;;;;;;;;;;35736:26;;;-1:-1:-1;;;;;35736:26:0;;:::o;42472:504::-;42619:10;42568:4;42604:27;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42604:38:0;;;;;;;;;;42657:27;;;42653:207;;42716:10;42742:1;42701:27;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42701:38:0;;;;;;;;;:42;42653:207;;;42817:31;:8;42831:15;42817:12;:31::i;:::-;42791:10;42776:27;;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42776:38:0;;;;;;;;;:72;42653:207;42885:10;42906:27;;;;:13;:27;;;;;;;;-1:-1:-1;;;;;42875:71:0;;42906:38;;;;;;;;;;;42875:71;;;;;;;;;42885:10;-1:-1:-1;;;;;;;;;;;42875:71:0;;;;;;;;;;-1:-1:-1;42964:4:0;;42472:504;-1:-1:-1;;;42472:504:0:o;40585:364::-;40657:4;40674:16;40693:29;40704:16;;40693:5;:9;;:29;;;;:::i;:::-;40776:10;40762:26;;;;:12;:26;;;;;;40674:48;;-1:-1:-1;40762:42:0;;40674:48;40762:30;:42::i;:::-;40747:10;40733:26;;;;:12;:26;;;;;;:71;;;;-1:-1:-1;;;;;40836:18:0;;;;;;:34;;40860:8;40836:22;:34::i;:::-;-1:-1:-1;;;;;40815:18:0;;;;;;:12;:18;;;;;;;;;:55;;;;40886:33;;;;;;;40815:18;;40896:10;;40886:33;;;;;;;;;;-1:-1:-1;40937:4:0;;40585:364;-1:-1:-1;;;40585:364:0:o;37252:482::-;37360:11;;37319:4;;-1:-1:-1;;;;;37360:11:0;37346:10;:25;37337:36;;;;;;-1:-1:-1;;;;;37393:30:0;;37384:41;;;;;;37436:15;:34;;-1:-1:-1;;;;;;37436:34:0;-1:-1:-1;;;;;37436:34:0;;;;;;;;;;37495:15;;-1:-1:-1;37481:31:0;;;:12;:31;;;;;;;;-1:-1:-1;;37481:44:0;;37567:15;;37584:12;;37543:55;;;;;;;37567:15;;;-1:-1:-1;;37543:55:0;;;;;;;;;;37614:45;;;-1:-1:-1;;;;;37614:45:0;;;;;;;;;;;;;;;-1:-1:-1;;37680:11:0;:24;;-1:-1:-1;;;;;;37680:24:0;;;-1:-1:-1;;37252:482:0:o;33024:770::-;33269:8;33250:15;:27;;33242:64;;;;;-1:-1:-1;;;33242:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33415:14:0;;33319:18;33415:14;;;:7;:14;;;;;32408:66;;33391:5;;33398:7;;33407:6;;33415:24;;:22;:24::i;:::-;33363:87;;;;;;;;;;;-1:-1:-1;;;;;33363:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33353:98;;;;;;33523:16;;-1:-1:-1;;;33490:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33480:73;;;;;;;;;-1:-1:-1;33583:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33353:98;;-1:-1:-1;33480:73:0;;33583:25;;;;;;;-1:-1:-1;;33583:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33583:25:0;;-1:-1:-1;;33583:25:0;;;-1:-1:-1;;;;;;;33627:20:0;;;;;;:39;;;33661:5;-1:-1:-1;;;;;33651:15:0;:6;-1:-1:-1;;;;;33651:15:0;;33627:39;33619:85;;;;-1:-1:-1;;;33619:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33717:14:0;;;;;;:7;:14;;;;;:26;;:24;:26::i;:::-;33754:32;33763:5;33770:7;33779:6;33754:8;:32::i;:::-;33024:770;;;;;;;;;;:::o;40957:155::-;-1:-1:-1;;;;;41070:23:0;;;41042:7;41070:23;;;:13;:23;;;;;;;;:34;;;;;;;;;;;;;40957:155::o;35699:30::-;;;-1:-1:-1;;;;;35699:30:0;;:::o;3216:132::-;3274:7;3301:39;3305:1;3308;3301:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3294:46;3216:132;-1:-1:-1;;;3216:132:0:o;2269:471::-;2327:7;2572:6;2568:47;;-1:-1:-1;2602:1:0;2595:8;;2568:47;2639:5;;;2643:1;2639;:5;:1;2663:5;;;;;:10;2655:56;;;;-1:-1:-1;;;2655:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;915:181;973:7;1005:5;;;1029:6;;;;1021:46;;;;;-1:-1:-1;;;1021:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;39186:697;39283:4;;39322:47;39347:20;39322:19;:7;39335:4;39322:11;:19::i;:47::-;39301:68;;39382:7;39396:319;;;;;;;;39427:6;39396:319;;;;39456:13;39396:319;;;;39518:20;39396:319;;;;39571:19;:17;:19::i;:::-;39396:319;;;;39620:7;39396:319;;;;39649:7;:5;:7::i;:::-;39396:319;;39691:12;39396:319;;;;;39382:334;;;;;;;;-1:-1:-1;39382:334:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39778:12;;39742:50;;39761:15;39742:50;;;;;;;;39753:6;;39742:50;;;;;;;;39819:6;39808:43;39827:13;39842:7;:5;:7::i;:::-;39808:43;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39871:4:0;;39186:697;-1:-1:-1;;;;39186:697:0:o;1379:136::-;1437:7;1464:43;1468:1;1471;1464:43;;;;;;;;;;;;;;;;;:3;:43::i;30189:114::-;30281:14;;30189:114::o;30311:181::-;30465:19;;30483:1;30465:19;;;30311:181::o;41936:198::-;-1:-1:-1;;;;;42040:20:0;;;;;;;:13;:20;;;;;;;;:29;;;;;;;;;;;;;:37;;;42093:33;;;;;;;-1:-1:-1;;;;;;;;;;;42093:33:0;;;;;;;;;41936:198;;;:::o;3844:278::-;3930:7;3965:12;3958:5;3950:28;;;;-1:-1:-1;;;3950:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3989:9;4005:1;4001;:5;;;;;;;3844:278;-1:-1:-1;;;;;3844:278:0:o;1818:192::-;1904:7;1940:12;1932:6;;;;1924:29;;;;-1:-1:-1;;;1924:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1976:5:0;;;1818:192::o

Metadata Hash

7d690eddb763566da794ff8f9d7d05d9b3f7ba3eacb2bea764c96e1f1f44bc3e
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.