Mumbai Testnet

Contract

0xDe0cD0D51b9981BaB50DB974a1877c1C01b86e91

Overview

MATIC Balance

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Transfer308539372023-01-12 8:22:10502 days ago1673511730IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000036421.50000001
Transfer221137132021-11-30 23:16:29909 days ago1638314189IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000084663.5
Approve205017562021-10-22 16:34:20949 days ago1634920460IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve203188602021-10-18 2:30:17953 days ago1634524217IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Transfer202614952021-10-16 17:36:11955 days ago1634405771IN
0xDe0cD0D5...C01b86e91
0 MATIC0.0005560923
Approve201023472021-10-12 22:16:59958 days ago1634077019IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Transfer198867602021-10-07 17:31:29964 days ago1633627889IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000072493
Transfer198411232021-10-06 15:07:47965 days ago1633532867IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000072493
Approve197790172021-10-05 3:26:26966 days ago1633404386IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve195056912021-09-28 14:20:54973 days ago1632838854IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve195056082021-09-28 14:18:04973 days ago1632838684IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138733
Transfer195054602021-09-28 14:12:56973 days ago1632838376IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000169247
Approve194555732021-09-27 9:33:50974 days ago1632735230IN
0xDe0cD0D5...C01b86e91
0 MATIC0.0011522225
Transfer194305282021-09-26 19:08:40974 days ago1632683320IN
0xDe0cD0D5...C01b86e91
0 MATIC0.0007253430
Approve194303712021-09-26 19:03:14974 days ago1632682994IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000078563
Approve194303452021-09-26 19:02:22974 days ago1632682942IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve192322862021-09-22 1:17:00979 days ago1632273420IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve192286062021-09-21 23:10:28979 days ago1632265828IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve191326162021-09-19 16:01:32982 days ago1632067292IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve190457192021-09-17 14:01:38984 days ago1631887298IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve190047852021-09-16 14:34:30985 days ago1631802870IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000078563
Approve189854842021-09-16 3:26:48985 days ago1631762808IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000138263
Approve186458862021-09-08 0:17:49993 days ago1631060269IN
0xDe0cD0D5...C01b86e91
0 MATIC0.0013826730
Approve182428162021-08-29 8:43:551003 days ago1630226635IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000228858.73876543
Approve182428032021-08-29 8:43:251003 days ago1630226605IN
0xDe0cD0D5...C01b86e91
0 MATIC0.000228858.73876543
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
sKlima

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at mumbai.polygonscan.com on 2021-08-06
*/

// SPDX-License-Identifier: MIT
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_old 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 IOwnable {

    function owner() external view returns (address);

    function renounceOwnership() external;

    function transferOwnership( address newOwner_ ) external;
}

contract Ownable is IOwnable {

    address internal _owner;

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

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

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

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

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

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

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

contract sKlima is ERC20Permit, Ownable {

    using SafeMath for uint256;

    event LogRebase(uint256 indexed epoch, uint256 totalSupply);
    event LogMonetaryPolicyUpdated(address monetaryPolicy);

    // Used for authentication
    address public monetaryPolicy;

    address public stakingContract;

    modifier onlyMonetaryPolicy() {
        require(msg.sender == monetaryPolicy);
        _;
    }

    modifier validRecipient(address to) {
        require(to != address(0x0));
        require(to != address(this));
        _;
    }

    uint256 private constant MAX_UINT256 = ~uint256(0);
    uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 500000 * 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;

    // This is denominated in Fragments, because the gons-fragments conversion might change before
    // it's fully paid.
    mapping (address => mapping (address => uint256)) private _allowedFragments;

    constructor() ERC20("Staked Klima", "sKLIMA", 9) {
        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        emit Transfer(address(0x0), msg.sender, _totalSupply);
    }

    function setStakingContract( address newStakingContract_ ) external onlyOwner() {
        stakingContract = newStakingContract_;
        _gonBalances[stakingContract] = TOTAL_GONS;
    }

    function setMonetaryPolicy(address monetaryPolicy_) external onlyOwner() {
        monetaryPolicy = monetaryPolicy_;
        emit LogMonetaryPolicyUpdated(monetaryPolicy_);
    }

    function rebase(uint256 olyProfit) public onlyMonetaryPolicy() returns (uint256) {
        uint256 _rebase;

        if (olyProfit == 0) {
            emit LogRebase(block.timestamp, _totalSupply);
            return _totalSupply;
        }

        if(circulatingSupply() > 0 ){
            _rebase = olyProfit.mul(_totalSupply).div(circulatingSupply());
        }

        else {
            _rebase = olyProfit;
        }

        _totalSupply = _totalSupply.add(_rebase);


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

        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        emit LogRebase(block.timestamp, _totalSupply);
        return _totalSupply;
    }

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

    function circulatingSupply() public view returns (uint) {
        return _totalSupply.sub(balanceOf(stakingContract));
    }

    function transfer(address to, uint256 value) public override validRecipient(to) returns (bool) {
        require(msg.sender == stakingContract, 'transfer not from staking contract');

        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 _allowedFragments[owner_][spender];
    }

    function transferFrom(address from, address to, uint256 value) public override validRecipient(to) returns (bool) {
        require(stakingContract == to, 'transfer from not to staking contract');

        _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value);

        uint256 gonValue = value.mul(_gonsPerFragment);
        _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) {
        _allowedFragments[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 {
        _allowedFragments[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

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

    function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) {
        uint256 oldValue = _allowedFragments[msg.sender][spender];
        if (subtractedValue >= oldValue) {
            _allowedFragments[msg.sender][spender] = 0;
        } else {
            _allowedFragments[msg.sender][spender] = oldValue.sub(subtractedValue);
        }
        emit Approval(msg.sender, spender, _allowedFragments[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":false,"internalType":"address","name":"monetaryPolicy","type":"address"}],"name":"LogMonetaryPolicyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"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":"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":"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":"monetaryPolicy","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"olyProfit","type":"uint256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"monetaryPolicy_","type":"address"}],"name":"setMonetaryPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStakingContract_","type":"address"}],"name":"setStakingContract","outputs":[],"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"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600c81526b5374616b6564204b6c696d6160a01b602080830191825283518085019094526006845265734b4c494d4160d01b9084015281519192916009916200006891600391906200038b565b5081516200007e9060049060208501906200038b565b506005805460ff191660ff92909216919091179055504690507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000c2620001f9565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606084015260808301939093523060a0808401919091528351808403909101815260c0909201928390528151910120600755600880546001600160a01b0319163317908190556001600160a01b0316906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36601c6bf526340006002819055620001b6906507326b47ffff199062000293602090811b6200113717901c565b600b55600254604080519182525133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a362000437565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620002895780601f106200025d5761010080835404028352916020019162000289565b820191906000526020600020905b8154815290600101906020018083116200026b57829003601f168201915b5050505050905090565b6000620002dd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620002e460201b60201c565b9392505050565b60008183620003745760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620003385781810151838201526020016200031e565b50505050905090810190601f168015620003665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200038157fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003c357600085556200040e565b82601f10620003de57805160ff19168380011785556200040e565b828001600101855582156200040e579182015b828111156200040e578251825591602001919060010190620003f1565b506200041c92915062000420565b5090565b5b808211156200041c576000815560010162000421565b6114f380620004476000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063a9059cbb1161007c578063a9059cbb146103ce578063bc4f2d6d146103fa578063d505accf14610417578063dd62ed3e14610468578063ee99205c14610496578063f2fde38b1461049e57610158565b80638da5cb5b146103405780638e27d7d7146103645780639358928b1461036c57806395d89b41146103745780639dd373b91461037c578063a457c2d7146103a257610158565b80633644e515116101155780633644e51514610290578063395093511461029857806370a08231146102c4578063715018a6146102ea5780637ecebe00146102f45780638b5a6a081461031a57610158565b806306fdde031461015d578063095ea7b3146101da57806318160ddd1461021a57806323b872dd1461023457806330adf81f1461026a578063313ce56714610272575b600080fd5b6101656104c4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610206600480360360408110156101f057600080fd5b506001600160a01b03813516906020013561055a565b604080519115158252519081900360200190f35b6102226105af565b60408051918252519081900360200190f35b6102066004803603606081101561024a57600080fd5b506001600160a01b038135811691602081013590911690604001356105b5565b610222610748565b61027a61076c565b6040805160ff9092168252519081900360200190f35b610222610775565b610206600480360360408110156102ae57600080fd5b506001600160a01b03813516906020013561077b565b610222600480360360208110156102da57600080fd5b50356001600160a01b03166107fc565b6102f261082c565b005b6102226004803603602081101561030a57600080fd5b50356001600160a01b03166108c3565b6102f26004803603602081101561033057600080fd5b50356001600160a01b03166108e4565b610348610985565b604080516001600160a01b039092168252519081900360200190f35b610348610994565b6102226109a3565b6101656109cd565b6102f26004803603602081101561039257600080fd5b50356001600160a01b0316610a2e565b610206600480360360408110156103b857600080fd5b506001600160a01b038135169060200135610ab4565b610206600480360360408110156103e457600080fd5b506001600160a01b038135169060200135610b8b565b6102226004803603602081101561041057600080fd5b5035610cc0565b6102f2600480360360e081101561042d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610de2565b6102226004803603604081101561047e57600080fd5b506001600160a01b038135811691602001351661100f565b61034861103a565b6102f2600480360360208110156104b457600080fd5b50356001600160a01b0316611049565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105505780601f1061052557610100808354040283529160200191610550565b820191906000526020600020905b81548152906001019060200180831161053357829003601f168201915b5050505050905090565b336000818152600d602090815260408083206001600160a01b0387168085529083528184208690558151868152915193949093909260008051602061149e833981519152928290030190a35060015b92915050565b60025490565b6000826001600160a01b0381166105cb57600080fd5b6001600160a01b0381163014156105e157600080fd5b600a546001600160a01b0385811691161461062d5760405162461bcd60e51b81526004018080602001828103825260258152602001806114386025913960400191505060405180910390fd5b6001600160a01b0385166000908152600d6020908152604080832033845290915290205461065b9084611180565b6001600160a01b0386166000908152600d60209081526040808320338452909152812091909155600b546106909085906111c2565b6001600160a01b0387166000908152600c60205260409020549091506106b69082611180565b6001600160a01b038088166000908152600c602052604080822093909355908716815220546106e5908261121b565b6001600160a01b038087166000818152600c602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b60075481565b336000908152600d602090815260408083206001600160a01b03861684529091528120546107a9908361121b565b336000818152600d602090815260408083206001600160a01b03891680855290835292819020859055805194855251919360008051602061149e833981519152929081900390910190a350600192915050565b600b546001600160a01b0382166000908152600c602052604081205490916108249190611137565b90505b919050565b6008546001600160a01b03163314610879576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6001600160a01b038116600090815260066020526040812061082490611275565b6008546001600160a01b03163314610931576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b600980546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd389729181900360200190a150565b6008546001600160a01b031690565b6009546001600160a01b031681565b600a546000906109c8906109bf906001600160a01b03166107fc565b60025490611180565b905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105505780601f1061052557610100808354040283529160200191610550565b6008546001600160a01b03163314610a7b576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b039283161790819055166000908152600c602052604090206507326b47ffff199055565b336000908152600d602090815260408083206001600160a01b0386168452909152812054808310610b0857336000908152600d602090815260408083206001600160a01b0388168452909152812055610b37565b610b128184611180565b336000908152600d602090815260408083206001600160a01b03891684529091529020555b336000818152600d602090815260408083206001600160a01b03891680855290835292819020548151908152905192939260008051602061149e833981519152929181900390910190a35060019392505050565b6000826001600160a01b038116610ba157600080fd5b6001600160a01b038116301415610bb757600080fd5b600a546001600160a01b03163314610c005760405162461bcd60e51b81526004018080602001828103825260228152602001806113cf6022913960400191505060405180910390fd5b6000610c17600b54856111c290919063ffffffff16565b336000908152600c6020526040902054909150610c349082611180565b336000908152600c6020526040808220929092556001600160a01b03871681522054610c60908261121b565b6001600160a01b0386166000818152600c60209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b6009546000906001600160a01b03163314610cda57600080fd5b600082610d2357600254604080519182525142917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25050600254610827565b6000610d2d6109a3565b1115610d5957610d52610d3e6109a3565b600254610d4c9086906111c2565b90611137565b9050610d5c565b50815b600254610d69908261121b565b60028190556001600160801b031015610d88576001600160801b036002555b600254610d9d906507326b47ffff1990611137565b600b55600254604080519182525142917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25050600254919050565b83421115610e37576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a206578706972656420646561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c990899089908990610e8090611275565b604080516020808201979097526001600160a01b0395861681830152939094166060840152608083019190915260a082015260c08082018990528251808303909101815260e08201835280519084012060075461190160f01b610100840152610102830152610122808301829052835180840390910181526101428301808552815191860191909120600091829052610162840180865281905260ff8a166101828501526101a284018990526101c28401889052935191955092936001926101e280820193601f1981019281900390910190855afa158015610f66573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610f9c5750896001600160a01b0316816001600160a01b0316145b610fd75760405162461bcd60e51b81526004018080602001828103825260218152602001806114176021913960400191505060405180910390fd5b6001600160a01b038a166000908152600660205260409020610ff890611279565b6110038a8a8a611282565b50505050505050505050565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b6008546001600160a01b03163314611096576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b6001600160a01b0381166110db5760405162461bcd60e51b81526004018080602001828103825260268152602001806113f16026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b600061117983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112d2565b9392505050565b600061117983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611374565b6000826111d1575060006105a9565b828202828482816111de57fe5b04146111795760405162461bcd60e51b815260040180806020018281038252602181526020018061145d6021913960400191505060405180910390fd5b600082820183811015611179576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b5490565b80546001019055565b6001600160a01b038084166000818152600d60209081526040808320948716808452948252918290208590558151858152915160008051602061149e8339815191529281900390910190a3505050565b6000818361135e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561132357818101518382015260200161130b565b50505050905090810190601f1680156113505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161136a57fe5b0495945050505050565b600081848411156113c65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561132357818101518382015260200161130b565b50505090039056fe7472616e73666572206e6f742066726f6d207374616b696e6720636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735a65726f537761705065726d69743a20496e76616c6964207369676e61747572657472616e736665722066726f6d206e6f7420746f207374616b696e6720636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a2646970667358221220f3f8336a402ea670ca57f29ac105845637852d9611c0b6ae8c9595fb2888fc2b64736f6c63430007050033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063a9059cbb1161007c578063a9059cbb146103ce578063bc4f2d6d146103fa578063d505accf14610417578063dd62ed3e14610468578063ee99205c14610496578063f2fde38b1461049e57610158565b80638da5cb5b146103405780638e27d7d7146103645780639358928b1461036c57806395d89b41146103745780639dd373b91461037c578063a457c2d7146103a257610158565b80633644e515116101155780633644e51514610290578063395093511461029857806370a08231146102c4578063715018a6146102ea5780637ecebe00146102f45780638b5a6a081461031a57610158565b806306fdde031461015d578063095ea7b3146101da57806318160ddd1461021a57806323b872dd1461023457806330adf81f1461026a578063313ce56714610272575b600080fd5b6101656104c4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610206600480360360408110156101f057600080fd5b506001600160a01b03813516906020013561055a565b604080519115158252519081900360200190f35b6102226105af565b60408051918252519081900360200190f35b6102066004803603606081101561024a57600080fd5b506001600160a01b038135811691602081013590911690604001356105b5565b610222610748565b61027a61076c565b6040805160ff9092168252519081900360200190f35b610222610775565b610206600480360360408110156102ae57600080fd5b506001600160a01b03813516906020013561077b565b610222600480360360208110156102da57600080fd5b50356001600160a01b03166107fc565b6102f261082c565b005b6102226004803603602081101561030a57600080fd5b50356001600160a01b03166108c3565b6102f26004803603602081101561033057600080fd5b50356001600160a01b03166108e4565b610348610985565b604080516001600160a01b039092168252519081900360200190f35b610348610994565b6102226109a3565b6101656109cd565b6102f26004803603602081101561039257600080fd5b50356001600160a01b0316610a2e565b610206600480360360408110156103b857600080fd5b506001600160a01b038135169060200135610ab4565b610206600480360360408110156103e457600080fd5b506001600160a01b038135169060200135610b8b565b6102226004803603602081101561041057600080fd5b5035610cc0565b6102f2600480360360e081101561042d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610de2565b6102226004803603604081101561047e57600080fd5b506001600160a01b038135811691602001351661100f565b61034861103a565b6102f2600480360360208110156104b457600080fd5b50356001600160a01b0316611049565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105505780601f1061052557610100808354040283529160200191610550565b820191906000526020600020905b81548152906001019060200180831161053357829003601f168201915b5050505050905090565b336000818152600d602090815260408083206001600160a01b0387168085529083528184208690558151868152915193949093909260008051602061149e833981519152928290030190a35060015b92915050565b60025490565b6000826001600160a01b0381166105cb57600080fd5b6001600160a01b0381163014156105e157600080fd5b600a546001600160a01b0385811691161461062d5760405162461bcd60e51b81526004018080602001828103825260258152602001806114386025913960400191505060405180910390fd5b6001600160a01b0385166000908152600d6020908152604080832033845290915290205461065b9084611180565b6001600160a01b0386166000908152600d60209081526040808320338452909152812091909155600b546106909085906111c2565b6001600160a01b0387166000908152600c60205260409020549091506106b69082611180565b6001600160a01b038088166000908152600c602052604080822093909355908716815220546106e5908261121b565b6001600160a01b038087166000818152600c602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b60075481565b336000908152600d602090815260408083206001600160a01b03861684529091528120546107a9908361121b565b336000818152600d602090815260408083206001600160a01b03891680855290835292819020859055805194855251919360008051602061149e833981519152929081900390910190a350600192915050565b600b546001600160a01b0382166000908152600c602052604081205490916108249190611137565b90505b919050565b6008546001600160a01b03163314610879576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6001600160a01b038116600090815260066020526040812061082490611275565b6008546001600160a01b03163314610931576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b600980546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd389729181900360200190a150565b6008546001600160a01b031690565b6009546001600160a01b031681565b600a546000906109c8906109bf906001600160a01b03166107fc565b60025490611180565b905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105505780601f1061052557610100808354040283529160200191610550565b6008546001600160a01b03163314610a7b576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b039283161790819055166000908152600c602052604090206507326b47ffff199055565b336000908152600d602090815260408083206001600160a01b0386168452909152812054808310610b0857336000908152600d602090815260408083206001600160a01b0388168452909152812055610b37565b610b128184611180565b336000908152600d602090815260408083206001600160a01b03891684529091529020555b336000818152600d602090815260408083206001600160a01b03891680855290835292819020548151908152905192939260008051602061149e833981519152929181900390910190a35060019392505050565b6000826001600160a01b038116610ba157600080fd5b6001600160a01b038116301415610bb757600080fd5b600a546001600160a01b03163314610c005760405162461bcd60e51b81526004018080602001828103825260228152602001806113cf6022913960400191505060405180910390fd5b6000610c17600b54856111c290919063ffffffff16565b336000908152600c6020526040902054909150610c349082611180565b336000908152600c6020526040808220929092556001600160a01b03871681522054610c60908261121b565b6001600160a01b0386166000818152600c60209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b6009546000906001600160a01b03163314610cda57600080fd5b600082610d2357600254604080519182525142917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25050600254610827565b6000610d2d6109a3565b1115610d5957610d52610d3e6109a3565b600254610d4c9086906111c2565b90611137565b9050610d5c565b50815b600254610d69908261121b565b60028190556001600160801b031015610d88576001600160801b036002555b600254610d9d906507326b47ffff1990611137565b600b55600254604080519182525142917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25050600254919050565b83421115610e37576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a206578706972656420646561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c990899089908990610e8090611275565b604080516020808201979097526001600160a01b0395861681830152939094166060840152608083019190915260a082015260c08082018990528251808303909101815260e08201835280519084012060075461190160f01b610100840152610102830152610122808301829052835180840390910181526101428301808552815191860191909120600091829052610162840180865281905260ff8a166101828501526101a284018990526101c28401889052935191955092936001926101e280820193601f1981019281900390910190855afa158015610f66573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610f9c5750896001600160a01b0316816001600160a01b0316145b610fd75760405162461bcd60e51b81526004018080602001828103825260218152602001806114176021913960400191505060405180910390fd5b6001600160a01b038a166000908152600660205260409020610ff890611279565b6110038a8a8a611282565b50505050505050505050565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b6008546001600160a01b03163314611096576040805162461bcd60e51b8152602060048201819052602482015260008051602061147e833981519152604482015290519081900360640190fd5b6001600160a01b0381166110db5760405162461bcd60e51b81526004018080602001828103825260268152602001806113f16026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b600061117983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112d2565b9392505050565b600061117983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611374565b6000826111d1575060006105a9565b828202828482816111de57fe5b04146111795760405162461bcd60e51b815260040180806020018281038252602181526020018061145d6021913960400191505060405180910390fd5b600082820183811015611179576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b5490565b80546001019055565b6001600160a01b038084166000818152600d60209081526040808320948716808452948252918290208590558151858152915160008051602061149e8339815191529281900390910190a3505050565b6000818361135e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561132357818101518382015260200161130b565b50505050905090810190601f1680156113505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161136a57fe5b0495945050505050565b600081848411156113c65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561132357818101518382015260200161130b565b50505090039056fe7472616e73666572206e6f742066726f6d207374616b696e6720636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735a65726f537761705065726d69743a20496e76616c6964207369676e61747572657472616e736665722066726f6d206e6f7420746f207374616b696e6720636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a2646970667358221220f3f8336a402ea670ca57f29ac105845637852d9611c0b6ae8c9595fb2888fc2b64736f6c63430007050033

Deployed Bytecode Sourcemap

36313:5563:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22688:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40572:219;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40572:219:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23841:100;;;:::i;:::-;;;;;;;;;;;;;;;;40016:548;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40016:548:0;;;;;;;;;;;;;;;;;:::i;34648:108::-;;;:::i;23667:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34765:31;;;:::i;41042:325::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41042:325:0;;;;;;;;:::i;39117:136::-;;;;;;;;;;;;;;;;-1:-1:-1;39117:136:0;-1:-1:-1;;;;;39117:136:0;;:::i;18237:161::-;;;:::i;:::-;;36186:120;;;;;;;;;;;;;;;;-1:-1:-1;36186:120:0;-1:-1:-1;;;;;36186:120:0;;:::i;38177:181::-;;;;;;;;;;;;;;;;-1:-1:-1;38177:181:0;-1:-1:-1;;;;;38177:181:0;;:::i;17586:88::-;;;:::i;:::-;;;;-1:-1:-1;;;;;17586:88:0;;;;;;;;;;;;;;36558:29;;;:::i;39261:126::-;;;:::i;22916:87::-;;;:::i;37980:189::-;;;;;;;;;;;;;;;;-1:-1:-1;37980:189:0;-1:-1:-1;;;;;37980:189:0;;:::i;41375:498::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41375:498:0;;;;;;;;:::i;39395:454::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39395:454:0;;;;;;;;:::i;38366:743::-;;;;;;;;;;;;;;;;-1:-1:-1;38366:743:0;;:::i;35352:766::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35352:766:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;39857:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39857:151:0;;;;;;;;;;:::i;36596:30::-;;;:::i;18553:264::-;;;;;;;;;;;;;;;;-1:-1:-1;18553:264:0;-1:-1:-1;;;;;18553:264:0;;:::i;22688:83::-;22758:5;22751:12;;;;;;;;-1:-1:-1;;22751:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22725:13;;22751:12;;22758:5;;22751:12;;22758:5;22751:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22688:83;:::o;40572:219::-;40681:10;40646:4;40663:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;40663:38:0;;;;;;;;;;;:46;;;40725:36;;;;;;;40646:4;;40663:38;;40681:10;;-1:-1:-1;;;;;;;;;;;40725:36:0;;;;;;;-1:-1:-1;40779:4:0;40572:219;;;;;:::o;23841:100::-;23921:12;;23841:100;:::o;40016:548::-;40123:4;40110:2;-1:-1:-1;;;;;36796:18:0;;36788:27;;;;;;-1:-1:-1;;;;;36834:19:0;;36848:4;36834:19;;36826:28;;;;;;40148:15:::1;::::0;-1:-1:-1;;;;;40148:21:0;;::::1;:15:::0;::::1;:21;40140:71;;;;-1:-1:-1::0;;;40140:71:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;40262:23:0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;40286:10:::1;40262:35:::0;;;;;;;;:46:::1;::::0;40302:5;40262:39:::1;:46::i;:::-;-1:-1:-1::0;;;;;40224:23:0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;40248:10:::1;40224:35:::0;;;;;;;:84;;;;40350:16:::1;::::0;40340:27:::1;::::0;:5;;:9:::1;:27::i;:::-;-1:-1:-1::0;;;;;40399:18:0;::::1;;::::0;;;:12:::1;:18;::::0;;;;;40321:46;;-1:-1:-1;40399:32:0::1;::::0;40321:46;40399:22:::1;:32::i;:::-;-1:-1:-1::0;;;;;40378:18:0;;::::1;;::::0;;;:12:::1;:18;::::0;;;;;:53;;;;40461:16;;::::1;::::0;;;;:30:::1;::::0;40482:8;40461:20:::1;:30::i;:::-;-1:-1:-1::0;;;;;40442:16:0;;::::1;;::::0;;;:12:::1;:16;::::0;;;;;;;;:49;;;;40507:25;;;;;;;40442:16;;40507:25;;::::1;::::0;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;40552:4:0::1;::::0;40016:548;-1:-1:-1;;;;;40016:548:0:o;34648:108::-;34690:66;34648:108;:::o;23667:83::-;23733:9;;;;23667:83;:::o;34765:31::-;;;;:::o;41042:325::-;41216:10;41131:4;41198:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41198:38:0;;;;;;;;;;:54;;41241:10;41198:42;:54::i;:::-;41166:10;41148:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41148:38:0;;;;;;;;;;;;:104;;;41268:69;;;;;;41148:38;;-1:-1:-1;;;;;;;;;;;41268:69:0;;;;;;;;;;-1:-1:-1;41355:4:0;41042:325;;;;:::o;39117:136::-;39228:16;;-1:-1:-1;;;;;39206:17:0;;39179:7;39206:17;;;:12;:17;;;;;;39179:7;;39206:39;;:17;:21;:39::i;:::-;39199:46;;39117:136;;;;:::o;18237:161::-;17808:6;;-1:-1:-1;;;;;17808:6:0;17818:10;17808:20;17799:67;;;;;-1:-1:-1;;;17799:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17799:67:0;;;;;;;;;;;;;;;18340:6:::1;::::0;18318:42:::1;::::0;18356:1:::1;::::0;-1:-1:-1;;;;;18340:6:0::1;::::0;18318:42:::1;::::0;18356:1;;18318:42:::1;18371:6;:19:::0;;-1:-1:-1;;;;;;18371:19:0::1;::::0;;18237:161::o;36186:120::-;-1:-1:-1;;;;;36274:14:0;;36247:7;36274:14;;;:7;:14;;;;;:24;;:22;:24::i;38177:181::-;17808:6;;-1:-1:-1;;;;;17808:6:0;17818:10;17808:20;17799:67;;;;;-1:-1:-1;;;17799:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17799:67:0;;;;;;;;;;;;;;;38261:14:::1;:32:::0;;-1:-1:-1;;;;;38261:32:0;::::1;-1:-1:-1::0;;;;;;38261:32:0;;::::1;::::0;::::1;::::0;;;38309:41:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38177:181:::0;:::o;17586:88::-;17660:6;;-1:-1:-1;;;;;17660:6:0;17586:88;:::o;36558:29::-;;;-1:-1:-1;;;;;36558:29:0;;:::o;39261:126::-;39362:15;;39311:4;;39335:44;;39352:26;;-1:-1:-1;;;;;39362:15:0;39352:9;:26::i;:::-;39335:12;;;:16;:44::i;:::-;39328:51;;39261:126;:::o;22916:87::-;22988:7;22981:14;;;;;;;;-1:-1:-1;;22981:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22955:13;;22981:14;;22988:7;;22981:14;;22988:7;22981:14;;;;;;;;;;;;;;;;;;;;;;;;37980:189;17808:6;;-1:-1:-1;;;;;17808:6:0;17818:10;17808:20;17799:67;;;;;-1:-1:-1;;;17799:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17799:67:0;;;;;;;;;;;;;;;38071:15:::1;:37:::0;;-1:-1:-1;;;;;;38071:37:0::1;-1:-1:-1::0;;;;;38071:37:0;;::::1;;::::0;;;;38132:15:::1;-1:-1:-1::0;38119:29:0;;;:12:::1;:29;::::0;;;;-1:-1:-1;;38119:42:0;;37980:189::o;41375:498::-;41523:10;41469:4;41505:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41505:38:0;;;;;;;;;;41558:27;;;41554:205;;41620:10;41643:1;41602:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41602:38:0;;;;;;;;;:42;41554:205;;;41718:29;:8;41731:15;41718:12;:29::i;:::-;41695:10;41677:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41677:38:0;;;;;;;;;:70;41554:205;41783:10;41804:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;41774:69:0;;41804:38;;;;;;;;;;;41774:69;;;;;;;;;41783:10;-1:-1:-1;;;;;;;;;;;41774:69:0;;;;;;;;;;-1:-1:-1;41861:4:0;;41375:498;-1:-1:-1;;;41375:498:0:o;39395:454::-;39484:4;39471:2;-1:-1:-1;;;;;36796:18:0;;36788:27;;;;;;-1:-1:-1;;;;;36834:19:0;;36848:4;36834:19;;36826:28;;;;;;39523:15:::1;::::0;-1:-1:-1;;;;;39523:15:0::1;39509:10;:29;39501:76;;;;-1:-1:-1::0;;;39501:76:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39590:16;39609:27;39619:16;;39609:5;:9;;:27;;;;:::i;:::-;39687:10;39674:24;::::0;;;:12:::1;:24;::::0;;;;;39590:46;;-1:-1:-1;39674:38:0::1;::::0;39590:46;39674:28:::1;:38::i;:::-;39660:10;39647:24;::::0;;;:12:::1;:24;::::0;;;;;:65;;;;-1:-1:-1;;;;;39742:16:0;::::1;::::0;;;;:30:::1;::::0;39763:8;39742:20:::1;:30::i;:::-;-1:-1:-1::0;;;;;39723:16:0;::::1;;::::0;;;:12:::1;:16;::::0;;;;;;;;:49;;;;39788:31;;;;;;;39723:16;;39797:10:::1;::::0;39788:31:::1;::::0;;;;;;;;::::1;-1:-1:-1::0;39837:4:0::1;::::0;39395:454;-1:-1:-1;;;;39395:454:0:o;38366:743::-;36698:14;;38438:7;;-1:-1:-1;;;;;36698:14:0;36684:10;:28;36676:37;;;;;;38458:15:::1;38490:14:::0;38486:126:::1;;38553:12;::::0;38526:40:::1;::::0;;;;;;38536:15:::1;::::0;38526:40:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;38588:12:0::1;::::0;38581:19:::1;;38486:126;38649:1;38627:19;:17;:19::i;:::-;:23;38624:180;;;38677:52;38709:19;:17;:19::i;:::-;38691:12;::::0;38677:27:::1;::::0;:9;;:13:::1;:27::i;:::-;:31:::0;::::1;:52::i;:::-;38667:62;;38624:180;;;-1:-1:-1::0;38783:9:0;38624:180:::1;38831:12;::::0;:25:::1;::::0;38848:7;38831:16:::1;:25::i;:::-;38816:12;:40:::0;;;-1:-1:-1;;;;;;38871:83:0::1;;;-1:-1:-1::0;;;;;38917:12:0::1;:25:::0;38871:83:::1;39000:12;::::0;38985:28:::1;::::0;-1:-1:-1;;37227:54:0;38985:14:::1;:28::i;:::-;38966:16;:47:::0;39058:12:::1;::::0;39031:40:::1;::::0;;;;;;39041:15:::1;::::0;39031:40:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;39089:12:0::1;::::0;38366:743;;;:::o;35352:766::-;35597:8;35578:15;:27;;35570:64;;;;;-1:-1:-1;;;35570:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35739:14:0;;35647:18;35739:14;;;:7;:14;;;;;34690:66;;35715:5;;35722:7;;35731:6;;35739:24;;:22;:24::i;:::-;35687:87;;;;;;;;;;;-1:-1:-1;;;;;35687:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35677:98;;;;;;35847:16;;-1:-1:-1;;;35814:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35804:73;;;;;;;;;-1:-1:-1;35907:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35677:98;;-1:-1:-1;35804:73:0;;35907:25;;;;;;;-1:-1:-1;;35907:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;35907:25:0;;-1:-1:-1;;35907:25:0;;;-1:-1:-1;;;;;;;35951:20:0;;;;;;:39;;;35985:5;-1:-1:-1;;;;;35975:15:0;:6;-1:-1:-1;;;;;35975:15:0;;35951:39;35943:85;;;;-1:-1:-1;;;35943:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36041:14:0;;;;;;:7;:14;;;;;:26;;:24;:26::i;:::-;36078:32;36087:5;36094:7;36103:6;36078:8;:32::i;:::-;35352:766;;;;;;;;;;:::o;39857:151::-;-1:-1:-1;;;;;39966:25:0;;;39939:7;39966:25;;;:17;:25;;;;;;;;:34;;;;;;;;;;;;;39857:151::o;36596:30::-;;;-1:-1:-1;;;;;36596:30:0;;:::o;18553:264::-;17808:6;;-1:-1:-1;;;;;17808:6:0;17818:10;17808:20;17799:67;;;;;-1:-1:-1;;;17799:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17799:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;18657:23:0;::::1;18648:75;;;;-1:-1:-1::0;;;18648:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18761:6;::::0;18739:41:::1;::::0;-1:-1:-1;;;;;18739:41:0;;::::1;::::0;18761:6:::1;::::0;18739:41:::1;::::0;18761:6:::1;::::0;18739:41:::1;18791:6;:18:::0;;-1:-1:-1;;;;;;18791:18:0::1;-1:-1:-1::0;;;;;18791:18:0;;;::::1;::::0;;;::::1;::::0;;18553:264::o;3202:132::-;3260:7;3287:39;3291:1;3294;3287:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3280:46;3202:132;-1:-1:-1;;;3202:132:0:o;1365:136::-;1423:7;1450:43;1454:1;1457;1450:43;;;;;;;;;;;;;;;;;:3;:43::i;2255:471::-;2313:7;2558:6;2554:47;;-1:-1:-1;2588:1:0;2581:8;;2554:47;2625:5;;;2629:1;2625;:5;:1;2649:5;;;;;:10;2641:56;;;;-1:-1:-1;;;2641:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;901:181;959:7;991:5;;;1015:6;;;;1007:46;;;;;-1:-1:-1;;;1007:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;32471:114;32563:14;;32471:114::o;32593:181::-;32747:19;;32765:1;32747:19;;;32593:181::o;40836:198::-;-1:-1:-1;;;;;40938:24:0;;;;;;;:17;:24;;;;;;;;:33;;;;;;;;;;;;;:41;;;40995:31;;;;;;;-1:-1:-1;;;;;;;;;;;40995:31:0;;;;;;;;;40836:198;;;:::o;3830:278::-;3916:7;3951:12;3944:5;3936:28;;;;-1:-1:-1;;;3936:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3975:9;3991:1;3987;:5;;;;;;;3830:278;-1:-1:-1;;;;;3830:278:0:o;1804:192::-;1890:7;1926:12;1918:6;;;;1910:29;;;;-1:-1:-1;;;1910:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1962:5:0;;;1804:192::o

Swarm Source

ipfs://f3f8336a402ea670ca57f29ac105845637852d9611c0b6ae8c9595fb2888fc2b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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