ETH Price: $3,648.48 (-2.53%)

Token

ERC-20: Staked Sonne (sSonne)

Overview

Max Total Supply

10,124,625.346585213910901934 sSonne

Holders

16,941

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1.27 sSonne

Value
$0.00
0x26b1719b8099e733e9ea06d607bf499b065fcd66
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
StakedDistributor

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 9 : StakedDistributor.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

import './libraries/SafeToken.sol';
import './Distributor.sol';

contract StakedDistributor is Distributor, ERC20 {
    using SafeToken for address;
    struct Withdrawal {
        uint256 amount;
        uint256 releaseTime;
    }

    event Withdraw(address indexed user, uint256 amount);

    uint256 public withdrawalPendingTime = 7 * 1 days;
    mapping(address => Withdrawal) public withdrawal;

    address public immutable sonne;

    constructor(
        address sonne_,
        string memory name,
        string memory symbol
    ) ERC20(name, symbol) {
        sonne = sonne_;
    }

    function mint(uint256 amount) public {
        sonne.safeTransferFrom(msg.sender, address(this), amount);
        _mint(msg.sender, amount);
    }

    function burn(uint256 amount) public {
        if (amount > 0) {
            _burn(msg.sender, amount);
        }

        Withdrawal storage withdrawal_ = withdrawal[msg.sender];
        withdrawal_.amount = withdrawal_.amount + amount;
        withdrawal_.releaseTime = block.timestamp + withdrawalPendingTime;
    }

    function withdraw() public {
        Withdrawal storage withdrawal_ = withdrawal[msg.sender];
        require(block.timestamp >= withdrawal_.releaseTime, 'StakedDistributor: not released');
        uint256 amount = withdrawal_.amount;
        withdrawal_.amount = 0;
        sonne.safeTransfer(msg.sender, amount);
        emit Withdraw(msg.sender, amount);
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 /* amount */
    ) internal override {
        if (from != address(0)) {
            _editRecipientInternal(from, balanceOf(from));
        }

        if (to != address(0)) {
            _editRecipientInternal(to, balanceOf(to));
        }
    }

    /* Admin functions */
    function setWithdrawalPendingTime(uint256 withdrawalPendingTime_) public onlyOwner {
        withdrawalPendingTime = withdrawalPendingTime_;
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "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 onlyOwner {
        _transferOwnership(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 onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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.
     */
    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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @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 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].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

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

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 9 : Distributor.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

import './libraries/SafeToken.sol';

abstract contract Distributor is Ownable {
    using SafeMath for uint256;
    using SafeToken for address;

    struct Recipient {
        uint256 lastShareIndex;
        uint256 credit;
    }
    // token => account => recipient
    mapping(address => mapping(address => Recipient)) public recipients;

    // account => shares
    mapping(address => uint256) public shares;

    // token => shareIndex
    mapping(address => uint256) public shareIndex;

    // token => totalShares
    uint256 public totalShares;

    event AddReward(address indexed token, uint256 amount, uint256 newShareIndex);
    event UpdateCredit(address indexed token, address indexed account, uint256 lastShareIndex, uint256 credit);
    event EditRecipient(address indexed account, uint256 shares, uint256 totalShares);
    event Claim(address indexed token, address indexed account, uint256 amount);

    // Valid reward tokens
    address[] public tokens;
    mapping(address => uint256) public tokenIndexes;

    constructor() {
        tokens.push(address(0));
    }

    function addReward(address token, uint256 amount) public returns (uint256 _shareIndex) {
        require(tokenIndexes[token] > 0, 'Distributor: Invalid token');
        require(amount > 0, 'Distributor: Invalid amount');

        if (totalShares == 0) return shareIndex[token];

        _shareIndex = amount.mul(2**160).div(totalShares).add(shareIndex[token]);
        shareIndex[token] = _shareIndex;

        token.safeTransferFrom(msg.sender, address(this), amount);
        emit AddReward(token, amount, shareIndex[token]);
    }

    function updateCredit(address token, address account) public returns (uint256 credit) {
        require(tokenIndexes[token] > 0, 'Distributor: Invalid token');

        uint256 _shareIndex = shareIndex[token];
        if (_shareIndex == 0) return 0;

        Recipient storage recipient = recipients[token][account];
        uint256 lastShareIndex = recipient.lastShareIndex;
        uint256 lastCredit = recipient.credit;
        uint256 _shares = shares[account];

        credit = lastCredit + _shareIndex.sub(lastShareIndex).mul(_shares) / 2**160;
        recipient.lastShareIndex = _shareIndex;
        recipient.credit = credit;

        emit UpdateCredit(token, account, _shareIndex, credit);
    }

    function claim(address token) external returns (uint256 amount) {
        return claimInternal(token, msg.sender);
    }

    function claimAll() external returns (uint256[] memory amounts) {
        amounts = new uint256[](tokens.length);
        for (uint256 i = 1; i < tokens.length; i++) {
            amounts[i] = claimInternal(tokens[i], msg.sender);
        }
    }

    function getClaimable(address token, address account) external view returns (uint256 amount) {
        uint256 _shareIndex = shareIndex[token];
        if (_shareIndex == 0) return 0;

        Recipient memory recipient = recipients[token][account];
        uint256 lastShareIndex = recipient.lastShareIndex;
        uint256 lastCredit = recipient.credit;
        uint256 _shares = shares[account];

        amount = lastCredit + _shareIndex.sub(lastShareIndex).mul(_shares) / 2**160;
    }

    function claimInternal(address token, address account) internal returns (uint256 amount) {
        require(tokenIndexes[token] > 0, 'Distributor: Invalid token');

        amount = updateCredit(token, account);
        if (amount > 0) {
            recipients[token][account].credit = 0;

            IERC20(token).transfer(account, amount);
            //token.safeTransfer(account, amount);

            emit Claim(token, account, amount);
        }
    }

    function _editRecipientInternal(address account, uint256 shares_) internal {
        for (uint256 i = 1; i < tokens.length; i++) {
            updateCredit(tokens[i], account);
        }

        //updateCredit(token, account);
        uint256 prevShares = shares[account];
        uint256 _totalShares = shares_ > prevShares
            ? totalShares.add(shares_ - prevShares)
            : totalShares.sub(prevShares - shares_);
        totalShares = _totalShares;
        shares[account] = shares_;
        emit EditRecipient(account, shares_, _totalShares);
    }

    /* Admin functions */
    function addToken(address token) external onlyOwner {
        require(tokenIndexes[token] == 0, 'Distributor: token already added');
        tokens.push(token);
        tokenIndexes[token] = tokens.length - 1;
    }

    function removeToken(address token) external onlyOwner {
        uint256 index = tokenIndexes[token];
        require(index > 0, 'Distributor: token not found');
        uint256 lastIndex = tokens.length - 1;
        if (index < lastIndex) {
            address lastToken = tokens[lastIndex];
            tokens[index] = lastToken;
            tokenIndexes[lastToken] = index;
        }
        tokens.pop();
        delete tokenIndexes[token];
    }
}

File 9 of 9 : SafeToken.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

interface ERC20Interface {
    function balanceOf(address user) external view returns (uint256);
}

library SafeToken {
    function myBalance(address token) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(address(this));
    }

    function balanceOf(address token, address user) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(user);
    }

    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!safeApprove');
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!safeTransfer');
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!safeTransferFrom');
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, '!safeTransferETH');
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"sonne_","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newShareIndex","type":"uint256"}],"name":"AddReward","type":"event"},{"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":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalShares","type":"uint256"}],"name":"EditRecipient","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"lastShareIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"credit","type":"uint256"}],"name":"UpdateCredit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addReward","outputs":[{"internalType":"uint256","name":"_shareIndex","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","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":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"getClaimable","outputs":[{"internalType":"uint256","name":"amount","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"recipients","outputs":[{"internalType":"uint256","name":"lastShareIndex","type":"uint256"},{"internalType":"uint256","name":"credit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"withdrawalPendingTime_","type":"uint256"}],"name":"setWithdrawalPendingTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shareIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sonne","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenIndexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"amount","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":"amount","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"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"updateCredit","outputs":[{"internalType":"uint256","name":"credit","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawal","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalPendingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405262093a80600c553480156200001857600080fd5b5060405162002178380380620021788339810160408190526200003b9162000290565b81816200004833620000cd565b600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b031916905581516200009d90600a9060208501906200011d565b508051620000b390600b9060208401906200011d565b5050506001600160a01b0390921660805250620003579050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012b906200031a565b90600052602060002090601f0160209004810192826200014f57600085556200019a565b82601f106200016a57805160ff19168380011785556200019a565b828001600101855582156200019a579182015b828111156200019a5782518255916020019190600101906200017d565b50620001a8929150620001ac565b5090565b5b80821115620001a85760008155600101620001ad565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001eb57600080fd5b81516001600160401b0380821115620002085762000208620001c3565b604051601f8301601f19908116603f01168101908282118183101715620002335762000233620001c3565b816040528381526020925086838588010111156200025057600080fd5b600091505b8382101562000274578582018301518183018401529082019062000255565b83821115620002865760008385830101525b9695505050505050565b600080600060608486031215620002a657600080fd5b83516001600160a01b0381168114620002be57600080fd5b60208501519093506001600160401b0380821115620002dc57600080fd5b620002ea87838801620001d9565b935060408601519150808211156200030157600080fd5b506200031086828701620001d9565b9150509250925092565b600181811c908216806200032f57607f821691505b602082108114156200035157634e487b7160e01b600052602260045260246000fd5b50919050565b608051611df7620003816000396000818161041d0152818161069b0152610b0f0152611df76000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063ce7c2ac2116100ad578063d77fa7ee1161007c578063d77fa7ee146104a7578063dd62ed3e146104d6578063edd6755d146104e9578063efe235d0146104fc578063f2fde38b1461050f57600080fd5b8063ce7c2ac21461043f578063d1058e591461045f578063d2f22cf014610474578063d48bfca71461049457600080fd5b8063a0712d68116100e9578063a0712d68146103df578063a457c2d7146103f2578063a9059cbb14610405578063c0c2ae501461041857600080fd5b80638da5cb5b1461037757806395d89b411461038857806396131049146103905780639feb8f50146103cc57600080fd5b80633a98ef391161019d5780634f64b2be1161016c5780634f64b2be146102ff5780635fa7b5841461032a5780636131ab031461033d57806370a0823114610346578063715018a61461036f57600080fd5b80633a98ef39146102c65780633ccfd60b146102cf5780633fb81428146102d957806342966c68146102ec57600080fd5b80631e83409a116101d95780631e83409a1461027e57806323b872dd14610291578063313ce567146102a457806339509351146102b357600080fd5b806304bc3b1c1461020b57806306fdde031461023e578063095ea7b31461025357806318160ddd14610276575b600080fd5b61022b610219366004611abe565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b610246610522565b6040516102359190611b05565b610266610261366004611b38565b6105b4565b6040519015158152602001610235565b60095461022b565b61022b61028c366004611abe565b6105ce565b61026661029f366004611b62565b6105da565b60405160128152602001610235565b6102666102c1366004611b38565b6105fe565b61022b60045481565b6102d7610620565b005b61022b6102e7366004611b9e565b6106fb565b6102d76102fa366004611bd1565b6107aa565b61031261030d366004611bd1565b6107ee565b6040516001600160a01b039091168152602001610235565b6102d7610338366004611abe565b610818565b61022b600c5481565b61022b610354366004611abe565b6001600160a01b031660009081526007602052604090205490565b6102d7610974565b6000546001600160a01b0316610312565b610246610988565b6103b761039e366004611abe565b600d602052600090815260409020805460019091015482565b60408051928352602083019190915201610235565b61022b6103da366004611b38565b610997565b6102d76103ed366004611bd1565b610b02565b610266610400366004611b38565b610b44565b610266610413366004611b38565b610bbf565b6103127f000000000000000000000000000000000000000000000000000000000000000081565b61022b61044d366004611abe565b60026020526000908152604090205481565b610467610bcd565b6040516102359190611bea565b61022b610482366004611abe565b60036020526000908152604090205481565b6102d76104a2366004611abe565b610c88565b6103b76104b5366004611b9e565b60016020818152600093845260408085209091529183529120805491015482565b61022b6104e4366004611b9e565b610d6b565b6102d76104f7366004611bd1565b610d96565b61022b61050a366004611b9e565b610da3565b6102d761051d366004611abe565b610ec2565b6060600a805461053190611c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461055d90611c2e565b80156105aa5780601f1061057f576101008083540402835291602001916105aa565b820191906000526020600020905b81548152906001019060200180831161058d57829003601f168201915b5050505050905090565b6000336105c2818585610f38565b60019150505b92915050565b60006105c8823361105c565b6000336105e8858285611199565b6105f3858585611213565b506001949350505050565b6000336105c28185856106118383610d6b565b61061b9190611c7f565b610f38565b336000908152600d6020526040902060018101544210156106885760405162461bcd60e51b815260206004820152601f60248201527f5374616b65644469737472696275746f723a206e6f742072656c65617365640060448201526064015b60405180910390fd5b8054600082556106c26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836113e7565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25050565b6001600160a01b038216600090815260036020526040812054806107235760009150506105c8565b6001600160a01b0380851660009081526001602081815260408084209488168085529482528084208151808301835281548082529190940154848401819052958552600290925290922054909290600160a01b61078a8261078488876114f2565b90611505565b6107949190611c97565b61079e9083611c7f565b98975050505050505050565b80156107ba576107ba3382611511565b336000908152600d6020526040902080546107d6908390611c7f565b8155600c546107e59042611c7f565b60019091015550565b600581815481106107fe57600080fd5b6000918252602090912001546001600160a01b0316905081565b61082061166b565b6001600160a01b038116600090815260066020526040902054806108865760405162461bcd60e51b815260206004820152601c60248201527f4469737472696275746f723a20746f6b656e206e6f7420666f756e6400000000604482015260640161067f565b60055460009061089890600190611cb9565b905080821015610921576000600582815481106108b7576108b7611cd0565b600091825260209091200154600580546001600160a01b0390921692508291859081106108e6576108e6611cd0565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559290911681526006909152604090208290555b600580548061093257610932611ce6565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03949094168152600690935250506040812055565b61097c61166b565b61098660006116c5565b565b6060600b805461053190611c2e565b6001600160a01b0382166000908152600660205260408120546109cc5760405162461bcd60e51b815260040161067f90611cfc565b60008211610a1c5760405162461bcd60e51b815260206004820152601b60248201527f4469737472696275746f723a20496e76616c696420616d6f756e740000000000604482015260640161067f565b600454610a4257506001600160a01b0382166000908152600360205260409020546105c8565b6001600160a01b038316600090815260036020526040902054600454610a819190610a7b90610a7586600160a01b611505565b90611715565b90611721565b6001600160a01b0384166000818152600360205260409020829055909150610aab9033308561172d565b6001600160a01b038316600081815260036020908152604091829020548251868152918201527f8ad4c79f7fda5880944bd79d8607b099b5d19d1a10100101c978cdbc3878d3e0910160405180910390a292915050565b610b376001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308461172d565b610b413382611845565b50565b60003381610b528286610d6b565b905083811015610bb25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161067f565b6105f38286868403610f38565b6000336105c2818585611213565b60055460609067ffffffffffffffff811115610beb57610beb611d33565b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b50905060015b600554811015610c8457610c5560058281548110610c3a57610c3a611cd0565b6000918252602090912001546001600160a01b03163361105c565b828281518110610c6757610c67611cd0565b602090810291909101015280610c7c81611d49565b915050610c1a565b5090565b610c9061166b565b6001600160a01b03811660009081526006602052604090205415610cf65760405162461bcd60e51b815260206004820181905260248201527f4469737472696275746f723a20746f6b656e20616c7265616479206164646564604482015260640161067f565b600580546001808201835560008390527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090910180546001600160a01b0319166001600160a01b0385161790559054610d4f9190611cb9565b6001600160a01b03909116600090815260066020526040902055565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610d9e61166b565b600c55565b6001600160a01b038216600090815260066020526040812054610dd85760405162461bcd60e51b815260040161067f90611cfc565b6001600160a01b03831660009081526003602052604090205480610e005760009150506105c8565b6001600160a01b038085166000908152600160208181526040808420948816845293815283832080549281015460029092529390922054909190600160a01b610e4d8261078488876114f2565b610e579190611c97565b610e619083611c7f565b8585556001850181905560408051878152602081018390529197506001600160a01b0389811692908b16917f39cb59c115665c2eda6fe547d7c2a8a8f6908243bf576a69f574973a0b650206910160405180910390a3505050505092915050565b610eca61166b565b6001600160a01b038116610f2f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067f565b610b41816116c5565b6001600160a01b038316610f9a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161067f565b6001600160a01b038216610ffb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161067f565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166000908152600660205260408120546110915760405162461bcd60e51b815260040161067f90611cfc565b61109b8383610da3565b905080156105c8576001600160a01b03808416600081815260016020818152604080842095881684529490528382200155905163a9059cbb60e01b815263a9059cbb9061110290859085906004016001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015611121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111459190611d64565b50816001600160a01b0316836001600160a01b03167f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870688360405161118b91815260200190565b60405180910390a392915050565b60006111a58484610d6b565b9050600019811461120d57818110156112005760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161067f565b61120d8484848403610f38565b50505050565b6001600160a01b0383166112775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161067f565b6001600160a01b0382166112d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161067f565b6001600160a01b038316600090815260076020526040902054818110156113515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161067f565b6001600160a01b03808516600090815260076020526040808220858503905591851681529081208054849290611388908490611c7f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113d491815260200190565b60405180910390a361120d848484611930565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916114439190611d86565b6000604051808303816000865af19150503d8060008114611480576040519150601f19603f3d011682016040523d82523d6000602084013e611485565b606091505b50915091508180156114af5750805115806114af5750808060200190518101906114af9190611d64565b6114eb5760405162461bcd60e51b815260206004820152600d60248201526c10b9b0b332aa3930b739b332b960991b604482015260640161067f565b5050505050565b60006114fe8284611cb9565b9392505050565b60006114fe8284611da2565b6001600160a01b0382166115715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161067f565b6001600160a01b038216600090815260076020526040902054818110156115e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161067f565b6001600160a01b0383166000908152600760205260408120838303905560098054849290611614908490611cb9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361166683600084611930565b505050565b6000546001600160a01b031633146109865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114fe8284611c97565b60006114fe8284611c7f565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916117919190611d86565b6000604051808303816000865af19150503d80600081146117ce576040519150601f19603f3d011682016040523d82523d6000602084013e6117d3565b606091505b50915091508180156117fd5750805115806117fd5750808060200190518101906117fd9190611d64565b61183d5760405162461bcd60e51b815260206004820152601160248201527021736166655472616e7366657246726f6d60781b604482015260640161067f565b505050505050565b6001600160a01b03821661189b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161067f565b80600960008282546118ad9190611c7f565b90915550506001600160a01b038216600090815260076020526040812080548392906118da908490611c7f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361192c60008383611930565b5050565b6001600160a01b038316156119675761196783611962856001600160a01b031660009081526007602052604090205490565b611999565b6001600160a01b038216156116665761166682611962846001600160a01b031660009081526007602052604090205490565b60015b6005548110156119ea576119d7600582815481106119bc576119bc611cd0565b6000918252602090912001546001600160a01b031684610da3565b50806119e281611d49565b91505061199c565b506001600160a01b03821660009081526002602052604081205490818311611a2757611a22611a198484611cb9565b600454906114f2565b611a3d565b611a3d611a348385611cb9565b60045490611721565b60048190556001600160a01b038516600081815260026020908152604091829020879055815187815290810184905292935090917fff3664f5f2f8f85ecd8d30ef2aa6773d8a8448219c7421dcbb67957fb3fafba1910160405180910390a250505050565b80356001600160a01b0381168114611ab957600080fd5b919050565b600060208284031215611ad057600080fd5b6114fe82611aa2565b60005b83811015611af4578181015183820152602001611adc565b8381111561120d5750506000910152565b6020815260008251806020840152611b24816040850160208701611ad9565b601f01601f19169190910160400192915050565b60008060408385031215611b4b57600080fd5b611b5483611aa2565b946020939093013593505050565b600080600060608486031215611b7757600080fd5b611b8084611aa2565b9250611b8e60208501611aa2565b9150604084013590509250925092565b60008060408385031215611bb157600080fd5b611bba83611aa2565b9150611bc860208401611aa2565b90509250929050565b600060208284031215611be357600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611c2257835183529284019291840191600101611c06565b50909695505050505050565b600181811c90821680611c4257607f821691505b60208210811415611c6357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c9257611c92611c69565b500190565b600082611cb457634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611ccb57611ccb611c69565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6020808252601a908201527f4469737472696275746f723a20496e76616c696420746f6b656e000000000000604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6000600019821415611d5d57611d5d611c69565b5060010190565b600060208284031215611d7657600080fd5b815180151581146114fe57600080fd5b60008251611d98818460208701611ad9565b9190910192915050565b6000816000190483118215151615611dbc57611dbc611c69565b50029056fea26469706673582212201a7d0168087c9920443c737e11276d94d817b12dd3d8dea6e882ed3d529018b764736f6c634300080a00330000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000c5374616b656420536f6e6e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000673536f6e6e650000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063ce7c2ac2116100ad578063d77fa7ee1161007c578063d77fa7ee146104a7578063dd62ed3e146104d6578063edd6755d146104e9578063efe235d0146104fc578063f2fde38b1461050f57600080fd5b8063ce7c2ac21461043f578063d1058e591461045f578063d2f22cf014610474578063d48bfca71461049457600080fd5b8063a0712d68116100e9578063a0712d68146103df578063a457c2d7146103f2578063a9059cbb14610405578063c0c2ae501461041857600080fd5b80638da5cb5b1461037757806395d89b411461038857806396131049146103905780639feb8f50146103cc57600080fd5b80633a98ef391161019d5780634f64b2be1161016c5780634f64b2be146102ff5780635fa7b5841461032a5780636131ab031461033d57806370a0823114610346578063715018a61461036f57600080fd5b80633a98ef39146102c65780633ccfd60b146102cf5780633fb81428146102d957806342966c68146102ec57600080fd5b80631e83409a116101d95780631e83409a1461027e57806323b872dd14610291578063313ce567146102a457806339509351146102b357600080fd5b806304bc3b1c1461020b57806306fdde031461023e578063095ea7b31461025357806318160ddd14610276575b600080fd5b61022b610219366004611abe565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b610246610522565b6040516102359190611b05565b610266610261366004611b38565b6105b4565b6040519015158152602001610235565b60095461022b565b61022b61028c366004611abe565b6105ce565b61026661029f366004611b62565b6105da565b60405160128152602001610235565b6102666102c1366004611b38565b6105fe565b61022b60045481565b6102d7610620565b005b61022b6102e7366004611b9e565b6106fb565b6102d76102fa366004611bd1565b6107aa565b61031261030d366004611bd1565b6107ee565b6040516001600160a01b039091168152602001610235565b6102d7610338366004611abe565b610818565b61022b600c5481565b61022b610354366004611abe565b6001600160a01b031660009081526007602052604090205490565b6102d7610974565b6000546001600160a01b0316610312565b610246610988565b6103b761039e366004611abe565b600d602052600090815260409020805460019091015482565b60408051928352602083019190915201610235565b61022b6103da366004611b38565b610997565b6102d76103ed366004611bd1565b610b02565b610266610400366004611b38565b610b44565b610266610413366004611b38565b610bbf565b6103127f0000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f081565b61022b61044d366004611abe565b60026020526000908152604090205481565b610467610bcd565b6040516102359190611bea565b61022b610482366004611abe565b60036020526000908152604090205481565b6102d76104a2366004611abe565b610c88565b6103b76104b5366004611b9e565b60016020818152600093845260408085209091529183529120805491015482565b61022b6104e4366004611b9e565b610d6b565b6102d76104f7366004611bd1565b610d96565b61022b61050a366004611b9e565b610da3565b6102d761051d366004611abe565b610ec2565b6060600a805461053190611c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461055d90611c2e565b80156105aa5780601f1061057f576101008083540402835291602001916105aa565b820191906000526020600020905b81548152906001019060200180831161058d57829003601f168201915b5050505050905090565b6000336105c2818585610f38565b60019150505b92915050565b60006105c8823361105c565b6000336105e8858285611199565b6105f3858585611213565b506001949350505050565b6000336105c28185856106118383610d6b565b61061b9190611c7f565b610f38565b336000908152600d6020526040902060018101544210156106885760405162461bcd60e51b815260206004820152601f60248201527f5374616b65644469737472696275746f723a206e6f742072656c65617365640060448201526064015b60405180910390fd5b8054600082556106c26001600160a01b037f0000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f01633836113e7565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25050565b6001600160a01b038216600090815260036020526040812054806107235760009150506105c8565b6001600160a01b0380851660009081526001602081815260408084209488168085529482528084208151808301835281548082529190940154848401819052958552600290925290922054909290600160a01b61078a8261078488876114f2565b90611505565b6107949190611c97565b61079e9083611c7f565b98975050505050505050565b80156107ba576107ba3382611511565b336000908152600d6020526040902080546107d6908390611c7f565b8155600c546107e59042611c7f565b60019091015550565b600581815481106107fe57600080fd5b6000918252602090912001546001600160a01b0316905081565b61082061166b565b6001600160a01b038116600090815260066020526040902054806108865760405162461bcd60e51b815260206004820152601c60248201527f4469737472696275746f723a20746f6b656e206e6f7420666f756e6400000000604482015260640161067f565b60055460009061089890600190611cb9565b905080821015610921576000600582815481106108b7576108b7611cd0565b600091825260209091200154600580546001600160a01b0390921692508291859081106108e6576108e6611cd0565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559290911681526006909152604090208290555b600580548061093257610932611ce6565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03949094168152600690935250506040812055565b61097c61166b565b61098660006116c5565b565b6060600b805461053190611c2e565b6001600160a01b0382166000908152600660205260408120546109cc5760405162461bcd60e51b815260040161067f90611cfc565b60008211610a1c5760405162461bcd60e51b815260206004820152601b60248201527f4469737472696275746f723a20496e76616c696420616d6f756e740000000000604482015260640161067f565b600454610a4257506001600160a01b0382166000908152600360205260409020546105c8565b6001600160a01b038316600090815260036020526040902054600454610a819190610a7b90610a7586600160a01b611505565b90611715565b90611721565b6001600160a01b0384166000818152600360205260409020829055909150610aab9033308561172d565b6001600160a01b038316600081815260036020908152604091829020548251868152918201527f8ad4c79f7fda5880944bd79d8607b099b5d19d1a10100101c978cdbc3878d3e0910160405180910390a292915050565b610b376001600160a01b037f0000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f01633308461172d565b610b413382611845565b50565b60003381610b528286610d6b565b905083811015610bb25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161067f565b6105f38286868403610f38565b6000336105c2818585611213565b60055460609067ffffffffffffffff811115610beb57610beb611d33565b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b50905060015b600554811015610c8457610c5560058281548110610c3a57610c3a611cd0565b6000918252602090912001546001600160a01b03163361105c565b828281518110610c6757610c67611cd0565b602090810291909101015280610c7c81611d49565b915050610c1a565b5090565b610c9061166b565b6001600160a01b03811660009081526006602052604090205415610cf65760405162461bcd60e51b815260206004820181905260248201527f4469737472696275746f723a20746f6b656e20616c7265616479206164646564604482015260640161067f565b600580546001808201835560008390527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090910180546001600160a01b0319166001600160a01b0385161790559054610d4f9190611cb9565b6001600160a01b03909116600090815260066020526040902055565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610d9e61166b565b600c55565b6001600160a01b038216600090815260066020526040812054610dd85760405162461bcd60e51b815260040161067f90611cfc565b6001600160a01b03831660009081526003602052604090205480610e005760009150506105c8565b6001600160a01b038085166000908152600160208181526040808420948816845293815283832080549281015460029092529390922054909190600160a01b610e4d8261078488876114f2565b610e579190611c97565b610e619083611c7f565b8585556001850181905560408051878152602081018390529197506001600160a01b0389811692908b16917f39cb59c115665c2eda6fe547d7c2a8a8f6908243bf576a69f574973a0b650206910160405180910390a3505050505092915050565b610eca61166b565b6001600160a01b038116610f2f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067f565b610b41816116c5565b6001600160a01b038316610f9a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161067f565b6001600160a01b038216610ffb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161067f565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166000908152600660205260408120546110915760405162461bcd60e51b815260040161067f90611cfc565b61109b8383610da3565b905080156105c8576001600160a01b03808416600081815260016020818152604080842095881684529490528382200155905163a9059cbb60e01b815263a9059cbb9061110290859085906004016001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015611121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111459190611d64565b50816001600160a01b0316836001600160a01b03167f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870688360405161118b91815260200190565b60405180910390a392915050565b60006111a58484610d6b565b9050600019811461120d57818110156112005760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161067f565b61120d8484848403610f38565b50505050565b6001600160a01b0383166112775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161067f565b6001600160a01b0382166112d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161067f565b6001600160a01b038316600090815260076020526040902054818110156113515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161067f565b6001600160a01b03808516600090815260076020526040808220858503905591851681529081208054849290611388908490611c7f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113d491815260200190565b60405180910390a361120d848484611930565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916114439190611d86565b6000604051808303816000865af19150503d8060008114611480576040519150601f19603f3d011682016040523d82523d6000602084013e611485565b606091505b50915091508180156114af5750805115806114af5750808060200190518101906114af9190611d64565b6114eb5760405162461bcd60e51b815260206004820152600d60248201526c10b9b0b332aa3930b739b332b960991b604482015260640161067f565b5050505050565b60006114fe8284611cb9565b9392505050565b60006114fe8284611da2565b6001600160a01b0382166115715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161067f565b6001600160a01b038216600090815260076020526040902054818110156115e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161067f565b6001600160a01b0383166000908152600760205260408120838303905560098054849290611614908490611cb9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361166683600084611930565b505050565b6000546001600160a01b031633146109865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114fe8284611c97565b60006114fe8284611c7f565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916117919190611d86565b6000604051808303816000865af19150503d80600081146117ce576040519150601f19603f3d011682016040523d82523d6000602084013e6117d3565b606091505b50915091508180156117fd5750805115806117fd5750808060200190518101906117fd9190611d64565b61183d5760405162461bcd60e51b815260206004820152601160248201527021736166655472616e7366657246726f6d60781b604482015260640161067f565b505050505050565b6001600160a01b03821661189b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161067f565b80600960008282546118ad9190611c7f565b90915550506001600160a01b038216600090815260076020526040812080548392906118da908490611c7f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361192c60008383611930565b5050565b6001600160a01b038316156119675761196783611962856001600160a01b031660009081526007602052604090205490565b611999565b6001600160a01b038216156116665761166682611962846001600160a01b031660009081526007602052604090205490565b60015b6005548110156119ea576119d7600582815481106119bc576119bc611cd0565b6000918252602090912001546001600160a01b031684610da3565b50806119e281611d49565b91505061199c565b506001600160a01b03821660009081526002602052604081205490818311611a2757611a22611a198484611cb9565b600454906114f2565b611a3d565b611a3d611a348385611cb9565b60045490611721565b60048190556001600160a01b038516600081815260026020908152604091829020879055815187815290810184905292935090917fff3664f5f2f8f85ecd8d30ef2aa6773d8a8448219c7421dcbb67957fb3fafba1910160405180910390a250505050565b80356001600160a01b0381168114611ab957600080fd5b919050565b600060208284031215611ad057600080fd5b6114fe82611aa2565b60005b83811015611af4578181015183820152602001611adc565b8381111561120d5750506000910152565b6020815260008251806020840152611b24816040850160208701611ad9565b601f01601f19169190910160400192915050565b60008060408385031215611b4b57600080fd5b611b5483611aa2565b946020939093013593505050565b600080600060608486031215611b7757600080fd5b611b8084611aa2565b9250611b8e60208501611aa2565b9150604084013590509250925092565b60008060408385031215611bb157600080fd5b611bba83611aa2565b9150611bc860208401611aa2565b90509250929050565b600060208284031215611be357600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611c2257835183529284019291840191600101611c06565b50909695505050505050565b600181811c90821680611c4257607f821691505b60208210811415611c6357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c9257611c92611c69565b500190565b600082611cb457634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611ccb57611ccb611c69565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6020808252601a908201527f4469737472696275746f723a20496e76616c696420746f6b656e000000000000604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6000600019821415611d5d57611d5d611c69565b5060010190565b600060208284031215611d7657600080fd5b815180151581146114fe57600080fd5b60008251611d98818460208701611ad9565b9190910192915050565b6000816000190483118215151615611dbc57611dbc611c69565b50029056fea26469706673582212201a7d0168087c9920443c737e11276d94d817b12dd3d8dea6e882ed3d529018b764736f6c634300080a0033

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

0000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000c5374616b656420536f6e6e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000673536f6e6e650000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : sonne_ (address): 0x1DB2466d9F5e10D7090E7152B68d62703a2245F0
Arg [1] : name (string): Staked Sonne
Arg [2] : symbol (string): sSonne

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000001db2466d9f5e10d7090e7152b68d62703a2245f0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 5374616b656420536f6e6e650000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 73536f6e6e650000000000000000000000000000000000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.