MATIC Price: $0.99 (-1.41%)
Gas: 94 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Value
Start238798842022-01-18 20:38:11800 days ago1642538291IN
0xb81B3e9B...F2cC246E9
0 MATIC0.03310804241.90113666

Latest 1 internal transaction

Parent Txn Hash Block From To Value
210150712021-11-05 14:38:57874 days ago1636123137  Contract Creation0 MATIC
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Stakes

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-11-05
*/

// SPDX-License-Identifier: MIT

/**

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKKKXXXXKKKKKKXXNWWMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNXKKKKXXNWWWWMMWWWWMWWWWNXXXKKKXNWMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWNXKKKXNWMMMMMMMMMNOdxKWMMMMMMMMWNXKKKXNWMMMMMMMMMMMMMM
MMMMMMMMMMMMMWXKKKNWMMMMMMMMMMMMNx:;;l0WMMMMMMMMMMMWNK0KXWMMMMMMMMMMMM
MMMMMMMMMMMWXKKXWMMMMMMMMMMMMMMXd:;;;;cOWMMMMMMMMMMMMMWXKKXWMMMMMMMMMM
MMMMMMMMMWNKKXWMMMMMMMMMMMMMMWKo;;col:;:kNMMMMMMMMMMMMMMWX0KNWMMMMMMMM
MMMMMMMMWX0XWMMMMMMMMMMMMMMMWOl;;oKWXkc;:dXMMMMMMMMMMMMMMMWX0XWMMMMMMM
MMMMMMMNKKNWMMMMMMMMMMMMMMMNkc;:dXMMMWOc;;oKWMMMMMMMMMMMMMMWNKKNMMMMMM
MMMMMMNKKNMMMMMMMMMMMMMMMMNx:;:xNMMMMMW0l;;l0WMMMMMMMWMMMMMMMNKKNMMMMM
MMMMMNKKNMMMMMMMMMMMMMMMMXd:;ckNMMMMMMMMKo:;cOWMMMMXkxkXWMMMMMNKKNMMMM
MMMMWK0NMMMMMMMMMMMMMMMWKo;;l0WMMMMMMMMMMXx:;:xNMMW0lccxXMMMMMMN0KWMMM
MMMMX0XWMMMMMMWWMMMMMMWOl;;oKWMMMMMMMMMMMMNkc;:dXMMNklcoKMMMMMMMX0XMMM
MMMWKKNMMWK0OkkkkkkKWNkc;:dXMMMMMMMMMMMMMMMWOl;;oKWMXdcxNMMMMMMMNKKWMM
MMMN0XWMMWNXX0OdlccdKOc;:xNMMMWXKKXNWNNNNWWMW0o;;l0WNkdKWMMMMMMMWX0NMM
MMMX0XMMMMMMMMMN0dlcdOxoONMMMMW0xdddddodxk0KNWXd:;l0Kx0WMMMMMMMMMX0XMM
MMMX0NMMMMMMMMMMWXxlcoOXWMMMMWKkolclodkKNNNNWWMNxcxOkKWMMMMMMMMMMX0XMM
MMMX0XMMMMMMMMMMMMNklclkNMMWXklccodxdodKWMMMMMMMNKOkKWMMMMMMMMMMMX0XMM
MMMN0XWMMMMMMMMMMMMNOoclxXN0occcdKX0xlco0WMMMMMMNOOXMMMMMMMMMMMMMX0NMM
MMMWKKWMMMMMMMMMMMMMW0dccoxocccdKWMWNklclONMMMMXOONMMMMMMMMMMMMMWKKWMM
MMMMX0XMMMMMMMMMMMMMMWKdcccccco0WMMMMNOoclkNWWKk0NMMMMMMMMMMMMMMX0XWMM
MMMMWKKNMMMMMMMMMMMMMMMXxlcccckNMMMMMMW0oclxK0kKWMMMMMMMMMMMMMMNKKWMMM
MMMMMN0KWMMMMMMMMMMMMMMMNklccoKWMMMMMMMWKdlcoxKWMMMMMMMMMMMMMMWK0NMMMM
MMMMMMN0KWMMMMMMMMMMMMMMMNOod0KXWMMMMMMNK0xoxXWMMMMMMMMMMMMMMWK0NMMMMM
MMMMMMMN0KNMMMMMMMMMMMMMMMWXKkll0WMMMMXdcoOKNMMMMMMMMMMMMMMMNK0NMMMMMM
MMMMMMMMNK0XWMMMMMMMMMMMMMMMNd:;cOWMWKo:;c0WMMMMMMMMMMMMMMWX0KNMMMMMMM
MMMMMMMMMWXKKNWMMMMMMMMMMMMMMXd:;cx0kl;;l0WMMMMMMMMMMMMMWNKKXWMMMMMMMM
MMMMMMMMMMMWX0KNWMMMMMMMMMMMMMNkc;;::;:oKWMMMMMMMMMMMMWNK0XWMMMMMMMMMM
MMMMMMMMMMMMMNXKKXNWMMMMMMMMMMMWOc;;;:dXMMMMMMMMMMMWNXKKXWMMMMMMMMMMMM
MMMMMMMMMMMMMMMWNKKKXNWMMMMMMMMMW0l:ckNMMMMMMMMMWNXKKKNWMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNXKKKXXNWWWMMMMX0KWMMMWWWNXXKKKXNWMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKXXXXXXXXXXKKKKXXNWWMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNNNNNNWWWMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM


---------------------- [ WPSmartContracts.com ] ----------------------

                       [ Blockchain Made Easy ]


    |
    |  Stakes v.2
    |
    |----------------------------
    |
    |  Flavor
    |
    |  >  Ube: Fully featured ERC-20 Staking contract with maturity time 
    |          and an annual interest 
    |

*/

pragma solidity ^0.8.2;

/**
 * @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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

/**
 * @title Owner
 * @dev Set & change owner
 */
contract Owner {

    address private owner;
    
    // event for EVM logging
    event OwnerSet(address indexed oldOwner, address indexed newOwner);
    
    // modifier to check if caller is owner
    modifier isOwner() {
        // If the first argument of 'require' evaluates to 'false', execution terminates and all
        // changes to the state and to Ether balances are reverted.
        // This used to consume all gas in old EVM versions, but not anymore.
        // It is often a good idea to use 'require' to check if functions are called correctly.
        // As a second argument, you can also provide an explanation about what went wrong.
        require(msg.sender == owner, "Caller is not owner");
        _;
    }
    
    /**
     * @dev Set contract deployer as owner
     */
    constructor(address _owner) {
        owner = _owner;
        emit OwnerSet(address(0), owner);
    }

    /**
     * @dev Change owner
     * @param newOwner address of new owner
     */
    function changeOwner(address newOwner) public isOwner {
        emit OwnerSet(owner, newOwner);
        owner = newOwner;
    }

    /**
     * @dev Return owner address 
     * @return address of owner
     */
    function getOwner() public view returns (address) {
        return owner;
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

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

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

/**
 * @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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `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 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 {}
}

/**
 * 
 * Stakes is an interest gain contract for ERC-20 tokens
 * 
 * assets is the ERC20 token
 * interest_rate: percentage rate
 * maturity is the time in seconds after which is safe to end the stake
 * penalization for ending a stake before maturity time
 * lower_amount is the minimum amount for creating a stake
 * 
 */
contract Stakes is Owner, ReentrancyGuard {

    using SafeMath for uint256;

    // token    
    ERC20 public asset;

    // stakes history
    struct Record {
        uint256 from;
        uint256 amount;
        uint256 gain;
        uint256 penalization;
        uint256 to;
        bool ended;
    }

    // contract parameters
    uint8 public interest_rate;
    uint256 public maturity;
    uint8 public penalization;
    uint256 public lower_amount;

    mapping(address => Record[]) public ledger;

    event StakeStart(address indexed user, uint256 value, uint256 index);
    event StakeEnd(address indexed user, uint256 value, uint256 penalty, uint256 interest, uint256 index);
    
    constructor(ERC20 _erc20, address _owner, uint8 _rate, uint256 _maturity, uint8 _penalization, uint256 _lower) Owner(_owner) {
        require(_penalization<=100, "Penalty has to be an integer between 0 and 100");
        asset = _erc20;
        interest_rate = _rate;
        maturity = _maturity;
        penalization = _penalization;
        lower_amount = _lower;
    }
    
    function start(uint256 _value) external {
        require(_value >= lower_amount, "Invalid value");
        asset.transferFrom(msg.sender, address(this), _value);
        ledger[msg.sender].push(Record(block.timestamp, _value, 0, 0, 0, false));
        emit StakeStart(msg.sender, _value, ledger[msg.sender].length-1);
    }

    function end(uint256 i) external nonReentrant {

        require(i < ledger[msg.sender].length, "Invalid index");
        require(ledger[msg.sender][i].ended==false, "Invalid stake");
        
        // penalization
        if(block.timestamp.sub(ledger[msg.sender][i].from) < maturity) {
            uint256 _penalization = ledger[msg.sender][i].amount.mul(penalization).div(100);
            asset.transfer(msg.sender, ledger[msg.sender][i].amount.sub(_penalization));
            asset.transfer(getOwner(), _penalization);
            ledger[msg.sender][i].penalization = _penalization;
            ledger[msg.sender][i].to = block.timestamp;
            ledger[msg.sender][i].ended = true;
            emit StakeEnd(msg.sender, ledger[msg.sender][i].amount, _penalization, 0, i);
        // interest gained
        } else {
            uint256 _interest = get_gains(msg.sender, i);
            // check that the owner can pay interest before trying to pay
            if (asset.allowance(getOwner(), address(this)) >= _interest && asset.balanceOf(getOwner()) >= _interest) {
                asset.transferFrom(getOwner(), msg.sender, _interest);
            } else {
                _interest = 0;
            }
            asset.transfer(msg.sender, ledger[msg.sender][i].amount);
            ledger[msg.sender][i].gain = _interest;
            ledger[msg.sender][i].to = block.timestamp;
            ledger[msg.sender][i].ended = true;
            emit StakeEnd(msg.sender, ledger[msg.sender][i].amount, 0, _interest, i);
        }
    }

    function set(uint256 _lower, uint256 _maturity, uint8 _rate, uint8 _penalization) public isOwner {
        require(_penalization<=100, "Invalid value");
        lower_amount = _lower;
        maturity = _maturity;
        interest_rate = _rate;
        penalization = _penalization;
    }
    
    // calculate interest to the current date time
    function get_gains(address _address, uint256 _rec_number) public view returns (uint256) {
        uint256 _record_seconds = block.timestamp.sub(ledger[_address][_rec_number].from);
        uint256 _year_seconds = 365*24*60*60;
        return _record_seconds.mul(
            ledger[_address][_rec_number].amount.mul(interest_rate).div(100)
        ).div(_year_seconds);
    }

    function ledger_length(address _address) public view returns (uint256) {
        return ledger[_address].length;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"_erc20","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint8","name":"_rate","type":"uint8"},{"internalType":"uint256","name":"_maturity","type":"uint256"},{"internalType":"uint8","name":"_penalization","type":"uint8"},{"internalType":"uint256","name":"_lower","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"penalty","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interest","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"StakeEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"StakeStart","type":"event"},{"inputs":[],"name":"asset","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"end","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_rec_number","type":"uint256"}],"name":"get_gains","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interest_rate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ledger","outputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"gain","type":"uint256"},{"internalType":"uint256","name":"penalization","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"bool","name":"ended","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"ledger_length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lower_amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maturity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penalization","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lower","type":"uint256"},{"internalType":"uint256","name":"_maturity","type":"uint256"},{"internalType":"uint8","name":"_rate","type":"uint8"},{"internalType":"uint8","name":"_penalization","type":"uint8"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200146738038062001467833981016040819052620000349162000156565b600080546001600160a01b0319166001600160a01b03871690811782556040518792907f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735908290a35060018055606460ff83161115620000f15760405162461bcd60e51b815260206004820152602e60248201527f50656e616c74792068617320746f20626520616e20696e74656765722062657460448201526d07765656e203020616e64203130360941b606482015260840160405180910390fd5b600280546001600160a01b03979097166001600160a81b031990971696909617600160a01b60ff95861602179095556003919091556004805460ff19169190921617905550600555620001e3565b805160ff811681146200015157600080fd5b919050565b60008060008060008060c087890312156200017057600080fd5b86516200017d81620001ca565b60208801519096506200019081620001ca565b9450620001a0604088016200013f565b935060608701519250620001b7608088016200013f565b915060a087015190509295509295509295565b6001600160a01b0381168114620001e057600080fd5b50565b61127480620001f36000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063893d20e81161008c578063aa4c0dd911610066578063aa4c0dd9146101d1578063b7f8f9ea146101fa578063cb63dce81461020d578063cbb3d8081461022057600080fd5b8063893d20e81461019a57806395805dad146101ab578063a6f9dae1146101be57600080fd5b80630ad24528146100d45780630c98c9c1146100e9578063204f83f91461010557806338d52e0f1461010e57806357ca87401461013957806374f1ca3a14610158575b600080fd5b6100e76100e23660046110ed565b610234565b005b6100f260055481565b6040519081526020015b60405180910390f35b6100f260035481565b600254610121906001600160a01b031681565b6040516001600160a01b0390911681526020016100fc565b6004546101469060ff1681565b60405160ff90911681526020016100fc565b61016b6101663660046110a1565b610acf565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c0016100fc565b6000546001600160a01b0316610121565b6100e76101b93660046110ed565b610b26565b6100e76101cc366004611086565b610ccd565b6100f26101df366004611086565b6001600160a01b031660009081526006602052604090205490565b6100f26102083660046110a1565b610d78565b6100e761021b36600461111f565b610e1d565b60025461014690600160a01b900460ff1681565b6002600154141561028c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001553360009081526006602052604090205481106102df5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610283565b33600090815260066020526040902080548290811061030057610300611228565b600091825260209091206005600690920201015460ff16156103545760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964207374616b6560981b6044820152606401610283565b600354336000908152600660205260409020805461039591908490811061037d5761037d611228565b60009182526020909120600690910201544290610ee7565b10156106b357600454336000908152600660205260408120805491926103f6926064926103f09260ff1691879081106103d0576103d0611228565b906000526020600020906006020160010154610f3090919063ffffffff16565b90610faf565b60025433600081815260066020526040902080549394506001600160a01b039092169263a9059cbb92610456918691908890811061043657610436611228565b906000526020600020906006020160010154610ee790919063ffffffff16565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561049c57600080fd5b505af11580156104b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d491906110cb565b506002546001600160a01b031663a9059cbb6104f86000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561054057600080fd5b505af1158015610554573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057891906110cb565b5033600090815260066020526040902080548291908490811061059d5761059d611228565b6000918252602080832060069283020160030193909355338252909152604090208054429190849081106105d3576105d3611228565b6000918252602080832060069283020160040193909355338252909152604090208054600191908490811061060a5761060a611228565b60009182526020808320600692830201600501805460ff1916941515949094179093553380835292526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a91908590811061066c5761066c611228565b600091825260208220600160069092020101546040516106a5928691889093845260208401929092526040830152606082015260800190565b60405180910390a250610ac8565b60006106bf3383610d78565b60025490915081906001600160a01b031663dd62ed3e6106e76000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190611106565b1015801561080c575060025481906001600160a01b03166370a082316107926000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156107d157600080fd5b505afa1580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108099190611106565b10155b156108c0576002546001600160a01b03166323b872dd6108346000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015233602482015260448101849052606401602060405180830381600087803b15801561088257600080fd5b505af1158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba91906110cb565b506108c4565b5060005b60025433600081815260066020526040902080546001600160a01b039093169263a9059cbb929190869081106108fc576108fc611228565b60009182526020909120600160069092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561095657600080fd5b505af115801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e91906110cb565b503360009081526006602052604090208054829190849081106109b3576109b3611228565b6000918252602080832060069283020160020193909355338252909152604090208054429190849081106109e9576109e9611228565b60009182526020808320600692830201600401939093553382529091526040902080546001919084908110610a2057610a20611228565b60009182526020808320600692830201600501805460ff1916941515949094179093553380835292526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a919085908110610a8257610a82611228565b90600052602060002090600602016001015460008486604051610abe949392919093845260208401929092526040830152606082015260800190565b60405180910390a2505b5060018055565b60066020528160005260406000208181548110610aeb57600080fd5b600091825260209091206006909102018054600182015460028301546003840154600485015460059095015493965091945092909160ff1686565b600554811015610b685760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610283565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf291906110cb565b50336000818152600660208181526040808420815160c081018352428152808401888152928101868152606082018781526080830188815260a08401898152855460018082018855878c52898c209651918b029096019081559651878601559251600287015590516003860155516004850155516005909301805460ff1916931515939093179092559385905291905290547f01030a23696d25d6138e45b2944d465c807d48422a2700ae29527f92b6cb439c918491610cb291906111fb565b6040805192835260208301919091520160405180910390a250565b6000546001600160a01b03163314610d1d5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610283565b600080546040516001600160a01b03808516939216917f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73591a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216600090815260066020526040812080548291610da8918590811061037d5761037d611228565b905060006301e133809050610e12816103f0610e0b60646103f0600260149054906101000a900460ff1660ff16600660008d6001600160a01b03166001600160a01b031681526020019081526020016000208b815481106103d0576103d0611228565b8590610f30565b925050505b92915050565b6000546001600160a01b03163314610e6d5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610283565b60648160ff161115610eb15760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610283565b6005939093556003919091556002805460ff60a01b1916600160a01b60ff938416021790556004805460ff191691909216179055565b6000610f2983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff1565b9392505050565b600082610f3f57506000610e17565b6000610f4b83856111dc565b905082610f5885836111ba565b14610f295760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610283565b6000610f2983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061102b565b600081848411156110155760405162461bcd60e51b81526004016102839190611165565b50600061102284866111fb565b95945050505050565b6000818361104c5760405162461bcd60e51b81526004016102839190611165565b50600061102284866111ba565b80356001600160a01b038116811461107057600080fd5b919050565b803560ff8116811461107057600080fd5b60006020828403121561109857600080fd5b610f2982611059565b600080604083850312156110b457600080fd5b6110bd83611059565b946020939093013593505050565b6000602082840312156110dd57600080fd5b81518015158114610f2957600080fd5b6000602082840312156110ff57600080fd5b5035919050565b60006020828403121561111857600080fd5b5051919050565b6000806000806080858703121561113557600080fd5b843593506020850135925061114c60408601611075565b915061115a60608601611075565b905092959194509250565b600060208083528351808285015260005b8181101561119257858101830151858201604001528201611176565b818111156111a4576000604083870101525b50601f01601f1916929092016040019392505050565b6000826111d757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156111f6576111f6611212565b500290565b60008282101561120d5761120d611212565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212207f1806e472ea354d55b5eb3d31b8bb6951232bfd69d6960d7948fc6cac1b01e664736f6c634300080700330000000000000000000000000f3a4b199211b14ed334f87ef5acea13aba330a5000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a7640000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063893d20e81161008c578063aa4c0dd911610066578063aa4c0dd9146101d1578063b7f8f9ea146101fa578063cb63dce81461020d578063cbb3d8081461022057600080fd5b8063893d20e81461019a57806395805dad146101ab578063a6f9dae1146101be57600080fd5b80630ad24528146100d45780630c98c9c1146100e9578063204f83f91461010557806338d52e0f1461010e57806357ca87401461013957806374f1ca3a14610158575b600080fd5b6100e76100e23660046110ed565b610234565b005b6100f260055481565b6040519081526020015b60405180910390f35b6100f260035481565b600254610121906001600160a01b031681565b6040516001600160a01b0390911681526020016100fc565b6004546101469060ff1681565b60405160ff90911681526020016100fc565b61016b6101663660046110a1565b610acf565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c0016100fc565b6000546001600160a01b0316610121565b6100e76101b93660046110ed565b610b26565b6100e76101cc366004611086565b610ccd565b6100f26101df366004611086565b6001600160a01b031660009081526006602052604090205490565b6100f26102083660046110a1565b610d78565b6100e761021b36600461111f565b610e1d565b60025461014690600160a01b900460ff1681565b6002600154141561028c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001553360009081526006602052604090205481106102df5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610283565b33600090815260066020526040902080548290811061030057610300611228565b600091825260209091206005600690920201015460ff16156103545760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964207374616b6560981b6044820152606401610283565b600354336000908152600660205260409020805461039591908490811061037d5761037d611228565b60009182526020909120600690910201544290610ee7565b10156106b357600454336000908152600660205260408120805491926103f6926064926103f09260ff1691879081106103d0576103d0611228565b906000526020600020906006020160010154610f3090919063ffffffff16565b90610faf565b60025433600081815260066020526040902080549394506001600160a01b039092169263a9059cbb92610456918691908890811061043657610436611228565b906000526020600020906006020160010154610ee790919063ffffffff16565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561049c57600080fd5b505af11580156104b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d491906110cb565b506002546001600160a01b031663a9059cbb6104f86000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561054057600080fd5b505af1158015610554573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057891906110cb565b5033600090815260066020526040902080548291908490811061059d5761059d611228565b6000918252602080832060069283020160030193909355338252909152604090208054429190849081106105d3576105d3611228565b6000918252602080832060069283020160040193909355338252909152604090208054600191908490811061060a5761060a611228565b60009182526020808320600692830201600501805460ff1916941515949094179093553380835292526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a91908590811061066c5761066c611228565b600091825260208220600160069092020101546040516106a5928691889093845260208401929092526040830152606082015260800190565b60405180910390a250610ac8565b60006106bf3383610d78565b60025490915081906001600160a01b031663dd62ed3e6106e76000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190611106565b1015801561080c575060025481906001600160a01b03166370a082316107926000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156107d157600080fd5b505afa1580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108099190611106565b10155b156108c0576002546001600160a01b03166323b872dd6108346000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015233602482015260448101849052606401602060405180830381600087803b15801561088257600080fd5b505af1158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba91906110cb565b506108c4565b5060005b60025433600081815260066020526040902080546001600160a01b039093169263a9059cbb929190869081106108fc576108fc611228565b60009182526020909120600160069092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561095657600080fd5b505af115801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e91906110cb565b503360009081526006602052604090208054829190849081106109b3576109b3611228565b6000918252602080832060069283020160020193909355338252909152604090208054429190849081106109e9576109e9611228565b60009182526020808320600692830201600401939093553382529091526040902080546001919084908110610a2057610a20611228565b60009182526020808320600692830201600501805460ff1916941515949094179093553380835292526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a919085908110610a8257610a82611228565b90600052602060002090600602016001015460008486604051610abe949392919093845260208401929092526040830152606082015260800190565b60405180910390a2505b5060018055565b60066020528160005260406000208181548110610aeb57600080fd5b600091825260209091206006909102018054600182015460028301546003840154600485015460059095015493965091945092909160ff1686565b600554811015610b685760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610283565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf291906110cb565b50336000818152600660208181526040808420815160c081018352428152808401888152928101868152606082018781526080830188815260a08401898152855460018082018855878c52898c209651918b029096019081559651878601559251600287015590516003860155516004850155516005909301805460ff1916931515939093179092559385905291905290547f01030a23696d25d6138e45b2944d465c807d48422a2700ae29527f92b6cb439c918491610cb291906111fb565b6040805192835260208301919091520160405180910390a250565b6000546001600160a01b03163314610d1d5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610283565b600080546040516001600160a01b03808516939216917f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73591a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216600090815260066020526040812080548291610da8918590811061037d5761037d611228565b905060006301e133809050610e12816103f0610e0b60646103f0600260149054906101000a900460ff1660ff16600660008d6001600160a01b03166001600160a01b031681526020019081526020016000208b815481106103d0576103d0611228565b8590610f30565b925050505b92915050565b6000546001600160a01b03163314610e6d5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610283565b60648160ff161115610eb15760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610283565b6005939093556003919091556002805460ff60a01b1916600160a01b60ff938416021790556004805460ff191691909216179055565b6000610f2983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff1565b9392505050565b600082610f3f57506000610e17565b6000610f4b83856111dc565b905082610f5885836111ba565b14610f295760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610283565b6000610f2983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061102b565b600081848411156110155760405162461bcd60e51b81526004016102839190611165565b50600061102284866111fb565b95945050505050565b6000818361104c5760405162461bcd60e51b81526004016102839190611165565b50600061102284866111ba565b80356001600160a01b038116811461107057600080fd5b919050565b803560ff8116811461107057600080fd5b60006020828403121561109857600080fd5b610f2982611059565b600080604083850312156110b457600080fd5b6110bd83611059565b946020939093013593505050565b6000602082840312156110dd57600080fd5b81518015158114610f2957600080fd5b6000602082840312156110ff57600080fd5b5035919050565b60006020828403121561111857600080fd5b5051919050565b6000806000806080858703121561113557600080fd5b843593506020850135925061114c60408601611075565b915061115a60608601611075565b905092959194509250565b600060208083528351808285015260005b8181101561119257858101830151858201604001528201611176565b818111156111a4576000604083870101525b50601f01601f1916929092016040019392505050565b6000826111d757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156111f6576111f6611212565b500290565b60008282101561120d5761120d611212565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212207f1806e472ea354d55b5eb3d31b8bb6951232bfd69d6960d7948fc6cac1b01e664736f6c63430008070033

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

0000000000000000000000000f3a4b199211b14ed334f87ef5acea13aba330a5000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a7640000

-----Decoded View---------------
Arg [0] : _erc20 (address): 0x0F3A4B199211b14Ed334F87Ef5acEA13Aba330A5
Arg [1] : _owner (address): 0xe4379A25a0DB888E19eC2c14416Fe68a62Aca5cc
Arg [2] : _rate (uint8): 1
Arg [3] : _maturity (uint256): 86400
Arg [4] : _penalization (uint8): 1
Arg [5] : _lower (uint256): 1000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000f3a4b199211b14ed334f87ef5acea13aba330a5
Arg [1] : 000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000


Deployed Bytecode Sourcemap

28563:3909:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30019:1573;;;;;;:::i;:::-;;:::i;:::-;;29014:27;;;;;;;;;6134:25:1;;;6122:2;6107:18;29014:27:0;;;;;;;;28952:23;;;;;;28667:18;;;;;-1:-1:-1;;;;;28667:18:0;;;;;;-1:-1:-1;;;;;2017:32:1;;;1999:51;;1987:2;1972:18;28667::0;1853:203:1;28982:25:0;;;;;;;;;;;;7953:4:1;7941:17;;;7923:36;;7911:2;7896:18;28982:25:0;7781:184:1;29050:42:0;;;;;;:::i;:::-;;:::i;:::-;;;;7512:25:1;;;7568:2;7553:18;;7546:34;;;;7596:18;;;7589:34;;;;7654:2;7639:18;;7632:34;7697:3;7682:19;;7675:35;7754:14;7747:22;7741:3;7726:19;;7719:51;7499:3;7484:19;29050:42:0;7231:545:1;9553:81:0;9594:7;9621:5;-1:-1:-1;;;;;9621:5:0;9553:81;;29682:329;;;;;;:::i;:::-;;:::i;9329:130::-;;;;;;:::i;:::-;;:::i;32347:120::-;;;;;;:::i;:::-;-1:-1:-1;;;;;32436:16:0;32409:7;32436:16;;;:6;:16;;;;;:23;;32347:120;31958:381;;;;;;:::i;:::-;;:::i;31600:294::-;;;;;;:::i;:::-;;:::i;28919:26::-;;;;;-1:-1:-1;;;28919:26:0;;;;;;30019:1573;11292:1;11890:7;;:19;;11882:63;;;;-1:-1:-1;;;11882:63:0;;5830:2:1;11882:63:0;;;5812:21:1;5869:2;5849:18;;;5842:30;5908:33;5888:18;;;5881:61;5959:18;;11882:63:0;;;;;;;;;11292:1;12023:7;:18;30097:10:::1;30090:18;::::0;;;:6:::1;:18;::::0;;;;:25;30086:29;::::1;30078:55;;;::::0;-1:-1:-1;;;30078:55:0;;4744:2:1;30078:55:0::1;::::0;::::1;4726:21:1::0;4783:2;4763:18;;;4756:30;-1:-1:-1;;;4802:18:1;;;4795:43;4855:18;;30078:55:0::1;4542:337:1::0;30078:55:0::1;30159:10;30152:18;::::0;;;:6:::1;:18;::::0;;;;:21;;30171:1;;30152:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:27:::1;:21;::::0;;::::1;;:27;::::0;::::1;;:34;30144:60;;;::::0;-1:-1:-1;;;30144:60:0;;4054:2:1;30144:60:0::1;::::0;::::1;4036:21:1::0;4093:2;4073:18;;;4066:30;-1:-1:-1;;;4112:18:1;;;4105:43;4165:18;;30144:60:0::1;3852:337:1::0;30144:60:0::1;30303:8;::::0;30280:10:::1;30273:18;::::0;;;:6:::1;:18;::::0;;;;:21;;30253:47:::1;::::0;30273:18;30292:1;;30273:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:26:::0;30253:15:::1;::::0;:19:::1;:47::i;:::-;:58;30250:1335;;;30385:12;::::0;30359:10:::1;30328:21;30352:18:::0;;;:6:::1;:18;::::0;;;;:21;;30328;;30352:55:::1;::::0;30403:3:::1;::::0;30352:46:::1;::::0;30385:12:::1;;::::0;30371:1;;30352:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;:32;;:46;;;;:::i;:::-;:50:::0;::::1;:55::i;:::-;30422:5;::::0;30437:10:::1;30422:5;30449:18:::0;;;:6:::1;:18;::::0;;;;:21;;30328:79;;-1:-1:-1;;;;;;30422:5:0;;::::1;::::0;:14:::1;::::0;30449:47:::1;::::0;30328:79;;30449:18;30468:1;;30449:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;:32;;:47;;;;:::i;:::-;30422:75;::::0;-1:-1:-1;;;;;;30422:75:0::1;::::0;;;;;;-1:-1:-1;;;;;2942:32:1;;;30422:75:0::1;::::0;::::1;2924:51:1::0;2991:18;;;2984:34;2897:18;;30422:75:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;30512:5:0::1;::::0;-1:-1:-1;;;;;30512:5:0::1;:14;30527:10;9594:7:::0;9621:5;-1:-1:-1;;;;;9621:5:0;;9553:81;30527:10:::1;30512:41;::::0;-1:-1:-1;;;;;;30512:41:0::1;::::0;;;;;;-1:-1:-1;;;;;2942:32:1;;;30512:41:0::1;::::0;::::1;2924:51:1::0;2991:18;;;2984:34;;;2897:18;;30512:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;30575:10:0::1;30568:18;::::0;;;:6:::1;:18;::::0;;;;:21;;30605:13;;30568:18;30587:1;;30568:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:34;;:50:::0;;;;30640:10:::1;30633:18:::0;;;;;;;;:21;;30660:15:::1;::::0;30633:18;30652:1;;30633:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:24;;:42:::0;;;;30697:10:::1;30690:18:::0;;;;;;;;:21;;30720:4:::1;::::0;30690:18;30709:1;;30690:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:27;;:34:::0;;-1:-1:-1;;30690:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;30753:10:::1;30765:18:::0;;;;;;;;:21;;30744:71:::1;::::0;30765:18;30784:1;;30765:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;:28:::1;:21;::::0;;::::1;;:28;::::0;30744:71:::1;::::0;::::1;::::0;30795:13;;30813:1;;6409:25:1;;;6465:2;6450:18;;6443:34;;;;6508:2;6493:18;;6486:34;6551:2;6536:18;;6529:34;6396:3;6381:19;;6170:399;30744:71:0::1;;;;;;;;30313:542;30250:1335;;;30876:17;30896:24;30906:10;30918:1;30896:9;:24::i;:::-;31014:5;::::0;30876:44;;-1:-1:-1;30876:44:0;;-1:-1:-1;;;;;31014:5:0::1;:15;31030:10;9594:7:::0;9621:5;-1:-1:-1;;;;;9621:5:0;;9553:81;31030:10:::1;31014:42;::::0;-1:-1:-1;;;;;;31014:42:0::1;::::0;;;;;;-1:-1:-1;;;;;2291:15:1;;;31014:42:0::1;::::0;::::1;2273:34:1::0;31050:4:0::1;2323:18:1::0;;;2316:43;2208:18;;31014:42:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:55;;:99;;;;-1:-1:-1::0;31073:5:0::1;::::0;31104:9;;-1:-1:-1;;;;;31073:5:0::1;:15;31089:10;9594:7:::0;9621:5;-1:-1:-1;;;;;9621:5:0;;9553:81;31089:10:::1;31073:27;::::0;-1:-1:-1;;;;;;31073:27:0::1;::::0;;;;;;-1:-1:-1;;;;;2017:32:1;;;31073:27:0::1;::::0;::::1;1999:51:1::0;1972:18;;31073:27:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;;31014:99;31010:247;;;31134:5;::::0;-1:-1:-1;;;;;31134:5:0::1;:18;31153:10;9594:7:::0;9621:5;-1:-1:-1;;;;;9621:5:0;;9553:81;31153:10:::1;31134:53;::::0;-1:-1:-1;;;;;;31134:53:0::1;::::0;;;;;;-1:-1:-1;;;;;2628:15:1;;;31134:53:0::1;::::0;::::1;2610:34:1::0;31165:10:0::1;2660:18:1::0;;;2653:43;2712:18;;;2705:34;;;2545:18;;31134:53:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;31010:247;;;-1:-1:-1::0;31240:1:0::1;31010:247;31271:5;::::0;31286:10:::1;31271:5;31298:18:::0;;;:6:::1;:18;::::0;;;;:21;;-1:-1:-1;;;;;31271:5:0;;::::1;::::0;:14:::1;::::0;31286:10;31298:18;31317:1;;31298:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:28:::1;:21;::::0;;::::1;;:28;::::0;31271:56:::1;::::0;-1:-1:-1;;;;;;31271:56:0::1;::::0;;;;;;-1:-1:-1;;;;;2942:32:1;;;31271:56:0::1;::::0;::::1;2924:51:1::0;2991:18;;;2984:34;2897:18;;31271:56:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;31349:10:0::1;31342:18;::::0;;;:6:::1;:18;::::0;;;;:21;;31371:9;;31342:18;31361:1;;31342:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:26;;:38:::0;;;;31402:10:::1;31395:18:::0;;;;;;;;:21;;31422:15:::1;::::0;31395:18;31414:1;;31395:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:24;;:42:::0;;;;31459:10:::1;31452:18:::0;;;;;;;;:21;;31482:4:::1;::::0;31452:18;31471:1;;31452:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:27;;:34:::0;;-1:-1:-1;;31452:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;31515:10:::1;31527:18:::0;;;;;;;;:21;;31506:67:::1;::::0;31527:18;31546:1;;31527:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;31557:1;31560:9;31571:1;31506:67;;;;;;;;6409:25:1::0;;;6465:2;6450:18;;6443:34;;;;6508:2;6493:18;;6486:34;6551:2;6536:18;;6529:34;6396:3;6381:19;;6170:399;31506:67:0::1;;;;;;;;30861:724;30250:1335;-1:-1:-1::0;11248:1:0;12202:22;;30019:1573::o;29050:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29050:42:0;;-1:-1:-1;29050:42:0;;;;;;:::o;29682:329::-;29751:12;;29741:6;:22;;29733:48;;;;-1:-1:-1;;;29733:48:0;;5488:2:1;29733:48:0;;;5470:21:1;5527:2;5507:18;;;5500:30;-1:-1:-1;;;5546:18:1;;;5539:43;5599:18;;29733:48:0;5286:337:1;29733:48:0;29792:5;;:53;;-1:-1:-1;;;29792:53:0;;29811:10;29792:53;;;2610:34:1;29831:4:0;2660:18:1;;;2653:43;2712:18;;;2705:34;;;-1:-1:-1;;;;;29792:5:0;;;;:18;;2545::1;;29792:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;29863:10:0;29856:18;;;;:6;:18;;;;;;;;29880:47;;;;;;;29887:15;29880:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29856:72;;29880:47;29856:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29856:72:0;;;;;;;;;;;29975:18;;;;;;;:25;;29944:59;;29880:47;;29975:27;;29880:47;29975:27;:::i;:::-;29944:59;;;6748:25:1;;;6804:2;6789:18;;6782:34;;;;6721:18;29944:59:0;;;;;;;29682:329;:::o;9329:130::-;9005:5;;-1:-1:-1;;;;;9005:5:0;8991:10;:19;8983:51;;;;-1:-1:-1;;;8983:51:0;;4396:2:1;8983:51:0;;;4378:21:1;4435:2;4415:18;;;4408:30;-1:-1:-1;;;4454:18:1;;;4447:49;4513:18;;8983:51:0;4194:343:1;8983:51:0;9408:5:::1;::::0;;9399:25:::1;::::0;-1:-1:-1;;;;;9399:25:0;;::::1;::::0;9408:5;::::1;::::0;9399:25:::1;::::0;::::1;9435:5;:16:::0;;-1:-1:-1;;;;;;9435:16:0::1;-1:-1:-1::0;;;;;9435:16:0;;;::::1;::::0;;;::::1;::::0;;9329:130::o;31958:381::-;-1:-1:-1;;;;;32103:16:0;;32037:7;32103:16;;;:6;:16;;;;;:29;;32037:7;;32083:55;;32120:11;;32103:29;;;;;;:::i;32083:55::-;32057:81;;32149:21;32173:12;32149:36;;32203:128;32317:13;32203:109;32237:64;32297:3;32237:55;32278:13;;;;;;;;;;;32237:55;;:6;:16;32244:8;-1:-1:-1;;;;;32237:16:0;-1:-1:-1;;;;;32237:16:0;;;;;;;;;;;;32254:11;32237:29;;;;;;;;:::i;:64::-;32203:15;;:19;:109::i;:128::-;32196:135;;;;31958:381;;;;;:::o;31600:294::-;9005:5;;-1:-1:-1;;;;;9005:5:0;8991:10;:19;8983:51;;;;-1:-1:-1;;;8983:51:0;;4396:2:1;8983:51:0;;;4378:21:1;4435:2;4415:18;;;4408:30;-1:-1:-1;;;4454:18:1;;;4447:49;4513:18;;8983:51:0;4194:343:1;8983:51:0;31731:3:::1;31716:13;:18;;;;31708:44;;;::::0;-1:-1:-1;;;31708:44:0;;5488:2:1;31708:44:0::1;::::0;::::1;5470:21:1::0;5527:2;5507:18;;;5500:30;-1:-1:-1;;;5546:18:1;;;5539:43;5599:18;;31708:44:0::1;5286:337:1::0;31708:44:0::1;31763:12;:21:::0;;;;31795:8:::1;:20:::0;;;;-1:-1:-1;31826:21:0;;-1:-1:-1;;;;31826:21:0::1;-1:-1:-1::0;;;31826:21:0::1;::::0;;::::1;;;::::0;;31858:12:::1;:28:::0;;-1:-1:-1;;31858:28:0::1;::::0;;;::::1;;::::0;;31600:294::o;4235:136::-;4293:7;4320:43;4324:1;4327;4320:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4313:50;4235:136;-1:-1:-1;;;4235:136:0:o;5109:471::-;5167:7;5412:6;5408:47;;-1:-1:-1;5442:1:0;5435:8;;5408:47;5467:9;5479:5;5483:1;5479;:5;:::i;:::-;5467:17;-1:-1:-1;5512:1:0;5503:5;5507:1;5467:17;5503:5;:::i;:::-;:10;5495:56;;;;-1:-1:-1;;;5495:56:0;;5086:2:1;5495:56:0;;;5068:21:1;5125:2;5105:18;;;5098:30;5164:34;5144:18;;;5137:62;-1:-1:-1;;;5215:18:1;;;5208:31;5256:19;;5495:56:0;4884:397:1;6048:132:0;6106:7;6133:39;6137:1;6140;6133:39;;;;;;;;;;;;;;;;;:3;:39::i;4666:192::-;4752:7;4788:12;4780:6;;;;4772:29;;;;-1:-1:-1;;;4772:29:0;;;;;;;;:::i;:::-;-1:-1:-1;4812:9:0;4824:5;4828:1;4824;:5;:::i;:::-;4812:17;4666:192;-1:-1:-1;;;;;4666:192:0:o;6668:345::-;6754:7;6856:12;6849:5;6841:28;;;;-1:-1:-1;;;6841:28:0;;;;;;;;:::i;:::-;-1:-1:-1;6880:9:0;6892:5;6896:1;6892;:5;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:156::-;258:20;;318:4;307:16;;297:27;;287:55;;338:1;335;328:12;353:186;412:6;465:2;453:9;444:7;440:23;436:32;433:52;;;481:1;478;471:12;433:52;504:29;523:9;504:29;:::i;544:254::-;612:6;620;673:2;661:9;652:7;648:23;644:32;641:52;;;689:1;686;679:12;641:52;712:29;731:9;712:29;:::i;:::-;702:39;788:2;773:18;;;;760:32;;-1:-1:-1;;;544:254:1:o;803:277::-;870:6;923:2;911:9;902:7;898:23;894:32;891:52;;;939:1;936;929:12;891:52;971:9;965:16;1024:5;1017:13;1010:21;1003:5;1000:32;990:60;;1046:1;1043;1036:12;1085:180;1144:6;1197:2;1185:9;1176:7;1172:23;1168:32;1165:52;;;1213:1;1210;1203:12;1165:52;-1:-1:-1;1236:23:1;;1085:180;-1:-1:-1;1085:180:1:o;1270:184::-;1340:6;1393:2;1381:9;1372:7;1368:23;1364:32;1361:52;;;1409:1;1406;1399:12;1361:52;-1:-1:-1;1432:16:1;;1270:184;-1:-1:-1;1270:184:1:o;1459:389::-;1541:6;1549;1557;1565;1618:3;1606:9;1597:7;1593:23;1589:33;1586:53;;;1635:1;1632;1625:12;1586:53;1671:9;1658:23;1648:33;;1728:2;1717:9;1713:18;1700:32;1690:42;;1751:36;1783:2;1772:9;1768:18;1751:36;:::i;:::-;1741:46;;1806:36;1838:2;1827:9;1823:18;1806:36;:::i;:::-;1796:46;;1459:389;;;;;;;:::o;3250:597::-;3362:4;3391:2;3420;3409:9;3402:21;3452:6;3446:13;3495:6;3490:2;3479:9;3475:18;3468:34;3520:1;3530:140;3544:6;3541:1;3538:13;3530:140;;;3639:14;;;3635:23;;3629:30;3605:17;;;3624:2;3601:26;3594:66;3559:10;;3530:140;;;3688:6;3685:1;3682:13;3679:91;;;3758:1;3753:2;3744:6;3733:9;3729:22;3725:31;3718:42;3679:91;-1:-1:-1;3831:2:1;3810:15;-1:-1:-1;;3806:29:1;3791:45;;;;3838:2;3787:54;;3250:597;-1:-1:-1;;;3250:597:1:o;7970:217::-;8010:1;8036;8026:132;;8080:10;8075:3;8071:20;8068:1;8061:31;8115:4;8112:1;8105:15;8143:4;8140:1;8133:15;8026:132;-1:-1:-1;8172:9:1;;7970:217::o;8192:168::-;8232:7;8298:1;8294;8290:6;8286:14;8283:1;8280:21;8275:1;8268:9;8261:17;8257:45;8254:71;;;8305:18;;:::i;:::-;-1:-1:-1;8345:9:1;;8192:168::o;8365:125::-;8405:4;8433:1;8430;8427:8;8424:34;;;8438:18;;:::i;:::-;-1:-1:-1;8475:9:1;;8365:125::o;8495:127::-;8556:10;8551:3;8547:20;8544:1;8537:31;8587:4;8584:1;8577:15;8611:4;8608:1;8601:15;8627:127;8688:10;8683:3;8679:20;8676:1;8669:31;8719:4;8716:1;8709:15;8743:4;8740:1;8733:15

Swarm Source

ipfs://7f1806e472ea354d55b5eb3d31b8bb6951232bfd69d6960d7948fc6cac1b01e6

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  ]
[ 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.