ETH Price: $2,593.27 (+2.50%)

Contract

0x01a0684cc91F5Ae19a7d08a362b23b71504c38A7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040164257352023-01-17 9:50:47636 days ago1673949047IN
 Contract Creation
0 ETH0.0273273515.98686636

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x0Aa1f924...F4AD897Be
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TokenStakes

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-01-17
*/

// SPDX-License-Identifier: MIT
// Author: @TonyBoyDeFi
// Alpha Genesis staking contract for Ethereum chain. Compatible with rewards paying tokens like BUSD,USDT & other ERC20/BEP20 tokens.

pragma solidity 0.8.13;

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

    function withdrawToken(address _tokenContract, uint256 _amount) external { 
    require(msg.sender == owner, "Caller is not owner"); 
    IERC20 tokenContract = IERC20(_tokenContract);
    tokenContract.transfer(msg.sender, _amount);
    
    }

}

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

// Using consensys implementation of ERC-20, because of decimals

// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md

abstract contract EIP20Interface {
    
    /* This is a slight change to the EIP20 base standard.
    function totalSupply() constant returns (uint256 supply);
    is replaced with:
    uint256 public totalSupply;
    This automatically creates a getter function for the totalSupply.
    This is moved to the base contract since public getter functions are not
    currently recognised as an implementation of the matching abstract
    function by the compiler.
    */
    /// total amount of tokens
    uint256 public totalSupply;

    /// @param _owner The address from which the balance will be retrieved
    /// @return balance The balance
    function balanceOf(address _owner) virtual public view returns (uint256 balance);

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return success Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) virtual public returns (bool success);

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return success Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) virtual public returns (bool success);

    /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of tokens to be approved for transfer
    /// @return success Whether the approval was successful or not
    function approve(address _spender, uint256 _value) virtual public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return remaining Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) virtual public view returns (uint256 remaining);
    

    // solhint-disable-next-line no-simple-event-func-name
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

interface IERC20 {
    function transfer(address _to, uint256 _amount) external returns (bool);
}

/*
Implements EIP20 token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
*/

contract EIP20 is EIP20Interface {
    
    uint256 constant private MAX_UINT256 = 2**256 - 1;
    mapping (address => uint256) public balances;
    mapping (address => mapping (address => uint256)) public allowed;
    /*
    NOTE:
    The following variables are OPTIONAL vanities. One does not have to include them.
    They allow one to customise the token contract & in no way influences the core functionality.
    Some wallets/interfaces might not even bother to look at this information.
    */
    string public name;                   //Name:
    uint8 public decimals;                //How many decimals to show
    string public symbol;                 //An identifier:

    constructor(
        uint256 _initialAmount,
        string memory _tokenName,
        uint8 _decimalUnits,
        string memory _tokenSymbol
    ) {
        balances[msg.sender] = _initialAmount;               // Give the creator all initial tokens
        totalSupply = _initialAmount;                        // Update total supply
        name = _tokenName;                                   // Set the name for display purposes
        decimals = _decimalUnits;                            // Amount of decimals for display purposes
        symbol = _tokenSymbol;                               // Set the symbol for display purposes
    }
    

    function transfer(address _to, uint256 _value) override public returns (bool success) {
        require(balances[msg.sender] >= _value);
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        emit Transfer(msg.sender, _to, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) override public returns (bool success) {
        uint256 the_allowance = allowed[_from][msg.sender];
        require(balances[_from] >= _value && the_allowance >= _value);
        balances[_to] += _value;
        balances[_from] -= _value;
        if (the_allowance < MAX_UINT256) {
            allowed[_from][msg.sender] -= _value;
        }
        emit Transfer(_from, _to, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

    function balanceOf(address _owner) override public view returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) override public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

    function allowance(address _owner, address _spender) override public view returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

}

/**
 * 
 * TokenStakes is an interest gain contract for ERC20 & BEP20 tokens. Compatible in all EVM chains.
 * 
 * asset is the ERC20 token to deposit (default)
 * asset2 is the ERC2020 token to get interest (optional)
 * interest_rate: percentage rate of token1 (default)
 * interest_rate2: percentage rate of token2 (optional for paying out in different ERC20/BEP20 token as intrest)
 * maturity is the time in seconds after which is safe to end the stake (remember to add value in seconds: example: 30 days = 2592000 <- seconds)
 * penalization for ending a stake before maturity time
 * lower_amount is the minimum amount for creating a stake
 * higher_amount is the maximum amount for creating a stake
 * 
 */
contract TokenStakes is Owner, ReentrancyGuard {
    

    using SafeMath for uint256;

    // token to deposit
    EIP20 public asset;

    // token to pay interest
    EIP20 public asset2;

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

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

    // conversion ratio for token1 and token2
    // 1:10 ratio will be: 
    // ratio1 = 1 
    // ratio2 = 10
    uint256 public ratio1;
    uint256 public ratio2;

    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(
        EIP20 _erc20, EIP20 _erc20_2, address _owner, uint8 _rate, uint8 _rate2, uint256 _maturity,
        uint8 _penalization, uint256 _lower, uint256 _higher, uint256 _ratio1, uint256 _ratio2) Owner(_owner) {
        require(_penalization<=100, "Penalty has to be an integer between 0 and 100");
        asset = _erc20;
        asset2 = _erc20_2;
        ratio1 = _ratio1;
        ratio2 = _ratio2;
        interest_rate = _rate;
        interest_rate2 = _rate2;
        maturity = _maturity;
        penalization = _penalization;
        lower_amount = _lower;
        higher_amount = _higher;
        
        
    }
    
    
    function start(uint256 _value) external {
        require(_value >= lower_amount, "Invalid value");
        require(_value <= higher_amount, "Invalid value");
        asset.transferFrom(msg.sender, address(this), _value);
        ledger[msg.sender].push(Record(block.timestamp, _value, 0, 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 {
            
            // interest is calculated in asset2
            uint256 _interest = get_gains(msg.sender, i);

            // check that the owner can pay interest before trying to pay, token 1
            if (_interest>0 && asset.allowance(getOwner(), address(this)) >= _interest && asset.balanceOf(getOwner()) >= _interest) {
                asset.transferFrom(getOwner(), msg.sender, _interest);
            } else {
                _interest = 0;
            }

            // interest is calculated in asset2
            uint256 _interest2 = get_gains2(msg.sender, i);

            // check that the owner can pay interest before trying to pay, token 1
            if (_interest2>0 && asset2.allowance(getOwner(), address(this)) >= _interest2 && asset2.balanceOf(getOwner()) >= _interest2) {
                asset2.transferFrom(getOwner(), msg.sender, _interest2);
            } else {
                _interest2 = 0;
            }

            // the original asset is returned to the investor
            asset.transfer(msg.sender, ledger[msg.sender][i].amount);
            ledger[msg.sender][i].gain = _interest;
            ledger[msg.sender][i].gain2 = _interest2;
            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(EIP20 _erc20, EIP20 _erc20_2, uint256 _lower, uint256 _higher, uint256 _maturity, uint8 _rate, uint8 _rate2, uint8 _penalization, uint256 _ratio1, uint256 _ratio2) public isOwner {
        require(_penalization<=100, "Invalid value");
        asset = _erc20;
        asset2 = _erc20_2;
        ratio1 = _ratio1;
        ratio2 = _ratio2;
        lower_amount = _lower;
        higher_amount = _higher;
        maturity = _maturity;
        interest_rate = _rate;
        interest_rate2 = _rate2;
        penalization = _penalization;
        
    }

    // calculate interest of the token 1 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);
    }

    // calculate interest to the current date time
    function get_gains2(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;
        // now we calculate the value of the transforming the staked asset (asset) into the asset2
        // first we calculate the ratio
        uint256 value_in_asset2 = ledger[_address][_rec_number].amount.mul(ratio2).div(ratio1);
        // now we transform into decimals of the asset2
        value_in_asset2 = value_in_asset2.mul(10**asset2.decimals()).div(10**asset.decimals());
        uint256 interest = _record_seconds.mul(
            value_in_asset2.mul(interest_rate2).div(100)
        ).div(_year_seconds);
        // now lets calculate the interest rate based on the converted value in asset 2
        return interest;
    }

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

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract EIP20","name":"_erc20","type":"address"},{"internalType":"contract EIP20","name":"_erc20_2","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint8","name":"_rate","type":"uint8"},{"internalType":"uint8","name":"_rate2","type":"uint8"},{"internalType":"uint256","name":"_maturity","type":"uint256"},{"internalType":"uint8","name":"_penalization","type":"uint8"},{"internalType":"uint256","name":"_lower","type":"uint256"},{"internalType":"uint256","name":"_higher","type":"uint256"},{"internalType":"uint256","name":"_ratio1","type":"uint256"},{"internalType":"uint256","name":"_ratio2","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 EIP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"asset2","outputs":[{"internalType":"contract EIP20","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":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_rec_number","type":"uint256"}],"name":"get_gains2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"higher_amount","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":[],"name":"interest_rate2","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":"gain2","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":[],"name":"ratio1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratio2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract EIP20","name":"_erc20","type":"address"},{"internalType":"contract EIP20","name":"_erc20_2","type":"address"},{"internalType":"uint256","name":"_lower","type":"uint256"},{"internalType":"uint256","name":"_higher","type":"uint256"},{"internalType":"uint256","name":"_maturity","type":"uint256"},{"internalType":"uint8","name":"_rate","type":"uint8"},{"internalType":"uint8","name":"_rate2","type":"uint8"},{"internalType":"uint8","name":"_penalization","type":"uint8"},{"internalType":"uint256","name":"_ratio1","type":"uint256"},{"internalType":"uint256","name":"_ratio2","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80639665e82a116100ad578063cbb3d80811610071578063cbb3d808146102aa578063d36a1b86146102be578063e9423bf2146102d2578063f44c0a64146102e5578063f803261d146102f857600080fd5b80639665e82a1461023f5780639e281a9814610248578063a6f9dae11461025b578063aa4c0dd91461026e578063b7f8f9ea1461029757600080fd5b80634a5064a9116100f45780634a5064a9146101a957806357ca8740146101b257806374f1ca3a146101d1578063893d20e81461021b57806395805dad1461022c57600080fd5b80630ad24528146101315780630c98c9c11461014657806320088f1e14610162578063204f83f91461017557806338d52e0f1461017e575b600080fd5b61014461013f3660046115db565b610301565b005b61014f60065481565b6040519081526020015b60405180910390f35b61014461017036600461161b565b610dec565b61014f60045481565b600254610191906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61014f60095481565b6005546101bf9060ff1681565b60405160ff9091168152602001610159565b6101e46101df3660046116be565b610ec5565b604080519788526020880196909652948601939093526060850191909152608084015260a0830152151560c082015260e001610159565b6000546001600160a01b0316610191565b61014461023a3660046115db565b610f22565b61014f60085481565b6101446102563660046116be565b6110cb565b6101446102693660046116ea565b61116e565b61014f61027c3660046116ea565b6001600160a01b03166000908152600a602052604090205490565b61014f6102a53660046116be565b6111f3565b6003546101bf90600160a01b900460ff1681565b6003546101bf90600160a81b900460ff1681565b600354610191906001600160a01b031681565b61014f6102f33660046116be565b611298565b61014f60075481565b6002600154036103585760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155336000908152600a602052604090205481106103ab5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b604482015260640161034f565b336000908152600a602052604090208054829081106103cc576103cc611707565b600091825260209091206006600790920201015460ff16156104205760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964207374616b6560981b604482015260640161034f565b600454336000908152600a60205260409020805461046191908490811061044957610449611707565b60009182526020909120600790910201544290611466565b101561079357600554336000908152600a60205260408120805491926104c2926064926104bc9260ff16918790811061049c5761049c611707565b9060005260206000209060070201600101546114af90919063ffffffff16565b90611531565b600254336000818152600a6020526040902080549394506001600160a01b039092169263a9059cbb92610522918691908890811061050257610502611707565b90600052602060002090600702016001015461146690919063ffffffff16565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561056d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610591919061171d565b506002546001600160a01b031663a9059cbb6105b56000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610602573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610626919061171d565b50336000908152600a6020526040902080548291908490811061064b5761064b611707565b90600052602060002090600702016004018190555042600a6000336001600160a01b03166001600160a01b03168152602001908152602001600020838154811061069757610697611707565b9060005260206000209060070201600501819055506001600a6000336001600160a01b03166001600160a01b0316815260200190815260200160002083815481106106e4576106e4611707565b60009182526020808320600792909202909101600601805460ff19169315159390931790925533808252600a9092526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a91908590811061074c5761074c611707565b60009182526020822060016007909202010154604051610785928691889093845260208401929092526040830152606082015260800190565b60405180910390a250610de5565b600061079f33836111f3565b9050600081118015610842575060025481906001600160a01b031663dd62ed3e6107d16000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa15801561081b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083f919061173f565b10155b80156108d9575060025481906001600160a01b03166370a0823161086e6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156108b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d6919061173f565b10155b1561097e576002546001600160a01b03166323b872dd6109016000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152336024820152604481018490526064016020604051808303816000875af1158015610954573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610978919061171d565b50610982565b5060005b600061098e3384611298565b9050600081118015610a31575060035481906001600160a01b031663dd62ed3e6109c06000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2e919061173f565b10155b8015610ac8575060035481906001600160a01b03166370a08231610a5d6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac5919061173f565b10155b15610b6d576003546001600160a01b03166323b872dd610af06000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152336024820152604481018490526064016020604051808303816000875af1158015610b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b67919061171d565b50610b71565b5060005b600254336000818152600a6020526040902080546001600160a01b039093169263a9059cbb92919087908110610ba957610ba9611707565b60009182526020909120600160079092020101546040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2c919061171d565b50336000908152600a60205260409020805483919085908110610c5157610c51611707565b90600052602060002090600702016002018190555080600a6000336001600160a01b03166001600160a01b031681526020019081526020016000208481548110610c9d57610c9d611707565b90600052602060002090600702016003018190555042600a6000336001600160a01b03166001600160a01b031681526020019081526020016000208481548110610ce957610ce9611707565b9060005260206000209060070201600501819055506001600a6000336001600160a01b03166001600160a01b031681526020019081526020016000208481548110610d3657610d36611707565b60009182526020808320600792909202909101600601805460ff19169315159390931790925533808252600a9092526040902080547f1deb31f039e2645a4e97af07659090228d39e7f992bfaf37af3838ad9665e23a919086908110610d9e57610d9e611707565b90600052602060002090600702016001015460008587604051610dda949392919093845260208401929092526040830152606082015260800190565b60405180910390a250505b5060018055565b6000546001600160a01b03163314610e165760405162461bcd60e51b815260040161034f90611758565b60648360ff161115610e3a5760405162461bcd60e51b815260040161034f90611785565b600280546001600160a01b0319166001600160a01b039b8c1617905560038054600893909355600991909155600697909755600795909555600493909355949095166001600160a81b031990921691909117600160a01b60ff958616021760ff60a81b1916600160a81b938516939093029290921790556005805460ff191692909116919091179055565b600a6020528160005260406000208181548110610ee157600080fd5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006909601549497509295509093909260ff1687565b600654811015610f445760405162461bcd60e51b815260040161034f90611785565b600754811115610f665760405162461bcd60e51b815260040161034f90611785565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe1919061171d565b50336000818152600a60208181526040808420815160e081018352428152808401888152928101868152606082018781526080830188815260a0840189815260c085018a8152865460018082018955888d528a8d20975160079092029097019081559751888701559351600288015591516003870155516004860155516005850155516006909301805460ff1916931515939093179092559385905291905290547f01030a23696d25d6138e45b2944d465c807d48422a2700ae29527f92b6cb439c9184916110b091906117c2565b6040805192835260208301919091520160405180910390a250565b6000546001600160a01b031633146110f55760405162461bcd60e51b815260040161034f90611758565b60405163a9059cbb60e01b81523360048201526024810182905282906001600160a01b0382169063a9059cbb906044016020604051808303816000875af1158015611144573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611168919061171d565b50505050565b6000546001600160a01b031633146111985760405162461bcd60e51b815260040161034f90611758565b600080546040516001600160a01b03808516939216917f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73591a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382166000908152600a6020526040812080548291611223918590811061044957610449611707565b905060006301e13380905061128d816104bc61128660646104bc600360149054906101000a900460ff1660ff16600a60008d6001600160a01b03166001600160a01b031681526020019081526020016000208b8154811061049c5761049c611707565b85906114af565b925050505b92915050565b6001600160a01b0382166000908152600a60205260408120805482916112c8918590811061044957610449611707565b905060006301e13380905060006113176008546104bc600954600a60008b6001600160a01b03166001600160a01b03168152602001908152602001600020898154811061049c5761049c611707565b905061141f600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139391906117d9565b61139e90600a6118da565b6003546040805163313ce56760e01b815290516104bc926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156113e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140d91906117d9565b61141890600a6118da565b84906114af565b9050600061145b836104bc61145460646104bc600360159054906101000a900460ff1660ff16886114af90919063ffffffff16565b87906114af565b979650505050505050565b60006114a883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611573565b9392505050565b6000826000036114c157506000611292565b60006114cd83856118e9565b9050826114da8583611908565b146114a85760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161034f565b60006114a883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506115ad565b600081848411156115975760405162461bcd60e51b815260040161034f919061192a565b5060006115a484866117c2565b95945050505050565b600081836115ce5760405162461bcd60e51b815260040161034f919061192a565b5060006115a48486611908565b6000602082840312156115ed57600080fd5b5035919050565b6001600160a01b038116811461160957600080fd5b50565b60ff8116811461160957600080fd5b6000806000806000806000806000806101408b8d03121561163b57600080fd5b8a35611646816115f4565b995060208b0135611656816115f4565b985060408b0135975060608b0135965060808b0135955060a08b013561167b8161160c565b945060c08b013561168b8161160c565b935060e08b013561169b8161160c565b809350506101008b013591506101208b013590509295989b9194979a5092959850565b600080604083850312156116d157600080fd5b82356116dc816115f4565b946020939093013593505050565b6000602082840312156116fc57600080fd5b81356114a8816115f4565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561172f57600080fd5b815180151581146114a857600080fd5b60006020828403121561175157600080fd5b5051919050565b60208082526013908201527221b0b63632b91034b9903737ba1037bbb732b960691b604082015260600190565b6020808252600d908201526c496e76616c69642076616c756560981b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156117d4576117d46117ac565b500390565b6000602082840312156117eb57600080fd5b81516114a88161160c565b600181815b80851115611831578160001904821115611817576118176117ac565b8085161561182457918102915b93841c93908002906117fb565b509250929050565b60008261184857506001611292565b8161185557506000611292565b816001811461186b576002811461187557611891565b6001915050611292565b60ff841115611886576118866117ac565b50506001821b611292565b5060208310610133831016604e8410600b84101617156118b4575081810a611292565b6118be83836117f6565b80600019048211156118d2576118d26117ac565b029392505050565b60006114a860ff841683611839565b6000816000190483118215151615611903576119036117ac565b500290565b60008261192557634e487b7160e01b600052601260045260246000fd5b500490565b600060208083528351808285015260005b818110156119575785810183015185820160400152820161193b565b81811115611969576000604083870101525b50601f01601f191692909201604001939250505056fea264697066735822122017aa50ac45153aa2b0a719b94b331e8a7c85854a5bf553961db4fc0b61f5bc1c64736f6c634300080d0033

Deployed Bytecode Sourcemap

16214:6537:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18351:2272;;;;;;:::i;:::-;;:::i;:::-;;16799:27;;;;;;;;;345:25:1;;;333:2;318:18;16799:27:0;;;;;;;;20631:574;;;;;;:::i;:::-;;:::i;16737:23::-;;;;;;16336:18;;;;;-1:-1:-1;;;;;16336:18:0;;;;;;-1:-1:-1;;;;;2011:32:1;;;1993:51;;1981:2;1966:18;16336::0;1834:216:1;17014:21:0;;;;;;16767:25;;;;;;;;;;;;2227:4:1;2215:17;;;2197:36;;2185:2;2170:18;16767:25:0;2055:184:1;17044:42:0;;;;;;:::i;:::-;;:::i;:::-;;;;2880:25:1;;;2936:2;2921:18;;2914:34;;;;2964:18;;;2957:34;;;;3022:2;3007:18;;3000:34;;;;3065:3;3050:19;;3043:35;3109:3;3094:19;;3087:35;3166:14;3159:22;3153:3;3138:19;;3131:51;2867:3;2852:19;17044:42:0;2571:617:1;6837:81:0;6878:7;6905:5;-1:-1:-1;;;;;6905:5:0;6837:81;;17951:392;;;;;;:::i;:::-;;:::i;16986:21::-;;;;;;6926:249;;;;;;:::i;:::-;;:::i;6613:130::-;;;;;;:::i;:::-;;:::i;22610:::-;;;;;;:::i;:::-;-1:-1:-1;;;;;22709:16:0;22682:7;22709:16;;;:6;:16;;;;;:23;;22610:130;21280:381;;;;;;:::i;:::-;;:::i;16670:26::-;;;;;-1:-1:-1;;;16670:26:0;;;;;;16703:27;;;;;-1:-1:-1;;;16703:27:0;;;;;;16393:19;;;;;-1:-1:-1;;;;;16393:19:0;;;21721:881;;;;;;:::i;:::-;;:::i;16833:28::-;;;;;;18351:2272;8835:1;9433:7;;:19;9425:63;;;;-1:-1:-1;;;9425:63:0;;3862:2:1;9425:63:0;;;3844:21:1;3901:2;3881:18;;;3874:30;3940:33;3920:18;;;3913:61;3991:18;;9425:63:0;;;;;;;;;8835:1;9566:7;:18;18429:10:::1;18422:18;::::0;;;:6:::1;:18;::::0;;;;:25;18418:29;::::1;18410:55;;;::::0;-1:-1:-1;;;18410:55:0;;4222:2:1;18410:55:0::1;::::0;::::1;4204:21:1::0;4261:2;4241:18;;;4234:30;-1:-1:-1;;;4280:18:1;;;4273:43;4333:18;;18410:55:0::1;4020:337:1::0;18410:55:0::1;18491:10;18484:18;::::0;;;:6:::1;:18;::::0;;;;:21;;18503:1;;18484:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:27:::1;:21;::::0;;::::1;;:27;::::0;::::1;;:34;18476:60;;;::::0;-1:-1:-1;;;18476:60:0;;4696:2:1;18476:60:0::1;::::0;::::1;4678:21:1::0;4735:2;4715:18;;;4708:30;-1:-1:-1;;;4754:18:1;;;4747:43;4807:18;;18476:60:0::1;4494:337:1::0;18476:60:0::1;18635:8;::::0;18612:10:::1;18605:18;::::0;;;:6:::1;:18;::::0;;;;:21;;18585:47:::1;::::0;18605:18;18624:1;;18605:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:26:::0;18585:15:::1;::::0;:19:::1;:47::i;:::-;:58;18582:2032;;;18719:12;::::0;18693:10:::1;18662:21;18686:18:::0;;;:6:::1;:18;::::0;;;;:21;;18662;;18686:55:::1;::::0;18737:3:::1;::::0;18686:46:::1;::::0;18719:12:::1;;::::0;18705:1;;18686:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;:32;;:46;;;;:::i;:::-;:50:::0;::::1;:55::i;:::-;18756:5;::::0;18771:10:::1;18756:5;18783:18:::0;;;:6:::1;:18;::::0;;;;:21;;18662:79;;-1:-1:-1;;;;;;18756:5:0;;::::1;::::0;:14:::1;::::0;18783:47:::1;::::0;18662:79;;18783:18;18802:1;;18783:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;:32;;:47;;;;:::i;:::-;18756:75;::::0;-1:-1:-1;;;;;;18756:75:0::1;::::0;;;;;;-1:-1:-1;;;;;5028:32:1;;;18756:75:0::1;::::0;::::1;5010:51:1::0;5077:18;;;5070:34;4983:18;;18756:75:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;18846:5:0::1;::::0;-1:-1:-1;;;;;18846:5:0::1;:14;18861:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;18861:10:::1;18846:41;::::0;-1:-1:-1;;;;;;18846:41:0::1;::::0;;;;;;-1:-1:-1;;;;;5028:32:1;;;18846:41:0::1;::::0;::::1;5010:51:1::0;5077:18;;;5070:34;;;4983:18;;18846:41:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;18909:10:0::1;18902:18;::::0;;;:6:::1;:18;::::0;;;;:21;;18939:13;;18902:18;18921:1;;18902:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:34;;:50;;;;18994:15;18967:6;:18;18974:10;-1:-1:-1::0;;;;;18967:18:0::1;-1:-1:-1::0;;;;;18967:18:0::1;;;;;;;;;;;;18986:1;18967:21;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;:42;;;;19054:4;19024:6;:18;19031:10;-1:-1:-1::0;;;;;19024:18:0::1;-1:-1:-1::0;;;;;19024:18:0::1;;;;;;;;;;;;19043:1;19024:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;:27;;:34:::0;;-1:-1:-1;;19024:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;19087:10:::1;19099:18:::0;;;:6:::1;:18:::0;;;;;;:21;;19078:71:::1;::::0;19099:18;19118:1;;19099:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;:28:::1;:21;::::0;;::::1;;:28;::::0;19078:71:::1;::::0;::::1;::::0;19129:13;;19147:1;;5636:25:1;;;5692:2;5677:18;;5670:34;;;;5735:2;5720:18;;5713:34;5778:2;5763:18;;5756:34;5623:3;5608:19;;5397:399;19078:71:0::1;;;;;;;;18645:546;18582:2032;;;19275:17;19295:24;19305:10;19317:1;19295:9;:24::i;:::-;19275:44;;19434:1;19424:9;:11;:70;;;;-1:-1:-1::0;19439:5:0::1;::::0;19485:9;;-1:-1:-1;;;;;19439:5:0::1;:15;19455:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;19455:10:::1;19439:42;::::0;-1:-1:-1;;;;;;19439:42:0::1;::::0;;;;;;-1:-1:-1;;;;;6031:15:1;;;19439:42:0::1;::::0;::::1;6013:34:1::0;19475:4:0::1;6063:18:1::0;;;6056:43;5948:18;;19439:42:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:55;;19424:70;:114;;;;-1:-1:-1::0;19498:5:0::1;::::0;19529:9;;-1:-1:-1;;;;;19498:5:0::1;:15;19514:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;19514:10:::1;19498:27;::::0;-1:-1:-1;;;;;;19498:27:0::1;::::0;;;;;;-1:-1:-1;;;;;2011:32:1;;;19498:27:0::1;::::0;::::1;1993:51:1::0;1966:18;;19498:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;;19424:114;19420:262;;;19559:5;::::0;-1:-1:-1;;;;;19559:5:0::1;:18;19578:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;19578:10:::1;19559:53;::::0;-1:-1:-1;;;;;;19559:53:0::1;::::0;;;;;;-1:-1:-1;;;;;6557:15:1;;;19559:53:0::1;::::0;::::1;6539:34:1::0;19590:10:0::1;6589:18:1::0;;;6582:43;6641:18;;;6634:34;;;6474:18;;19559:53:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19420:262;;;-1:-1:-1::0;19665:1:0::1;19420:262;19747:18;19768:25;19779:10;19791:1;19768:10;:25::i;:::-;19747:46;;19909:1;19898:10;:12;:73;;;;-1:-1:-1::0;19914:6:0::1;::::0;19961:10;;-1:-1:-1;;;;;19914:6:0::1;:16;19931:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;19931:10:::1;19914:43;::::0;-1:-1:-1;;;;;;19914:43:0::1;::::0;;;;;;-1:-1:-1;;;;;6031:15:1;;;19914:43:0::1;::::0;::::1;6013:34:1::0;19951:4:0::1;6063:18:1::0;;;6056:43;5948:18;;19914:43:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:57;;19898:73;:119;;;;-1:-1:-1::0;19975:6:0::1;::::0;20007:10;;-1:-1:-1;;;;;19975:6:0::1;:16;19992:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;19992:10:::1;19975:28;::::0;-1:-1:-1;;;;;;19975:28:0::1;::::0;;;;;;-1:-1:-1;;;;;2011:32:1;;;19975:28:0::1;::::0;::::1;1993:51:1::0;1966:18;;19975:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;19898:119;19894:270;;;20038:6;::::0;-1:-1:-1;;;;;20038:6:0::1;:19;20058:10;6878:7:::0;6905:5;-1:-1:-1;;;;;6905:5:0;;6837:81;20058:10:::1;20038:55;::::0;-1:-1:-1;;;;;;20038:55:0::1;::::0;;;;;;-1:-1:-1;;;;;6557:15:1;;;20038:55:0::1;::::0;::::1;6539:34:1::0;20070:10:0::1;6589:18:1::0;;;6582:43;6641:18;;;6634:34;;;6474:18;;20038:55:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19894:270;;;-1:-1:-1::0;20147:1:0::1;19894:270;20243:5;::::0;20258:10:::1;20243:5;20270:18:::0;;;:6:::1;:18;::::0;;;;:21;;-1:-1:-1;;;;;20243:5:0;;::::1;::::0;:14:::1;::::0;20258:10;20270:18;20289:1;;20270:21;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:28:::1;:21;::::0;;::::1;;:28;::::0;20243:56:::1;::::0;-1:-1:-1;;;;;;20243:56:0::1;::::0;;;;;;-1:-1:-1;;;;;5028:32:1;;;20243:56:0::1;::::0;::::1;5010:51:1::0;5077:18;;;5070:34;4983:18;;20243:56:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;20321:10:0::1;20314:18;::::0;;;:6:::1;:18;::::0;;;;:21;;20343:9;;20314:18;20333:1;;20314:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:26;;:38;;;;20397:10;20367:6;:18;20374:10;-1:-1:-1::0;;;;;20367:18:0::1;-1:-1:-1::0;;;;;20367:18:0::1;;;;;;;;;;;;20386:1;20367:21;;;;;;;;:::i;:::-;;;;;;;;;;;:27;;:40;;;;20449:15;20422:6;:18;20429:10;-1:-1:-1::0;;;;;20422:18:0::1;-1:-1:-1::0;;;;;20422:18:0::1;;;;;;;;;;;;20441:1;20422:21;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;:42;;;;20509:4;20479:6;:18;20486:10;-1:-1:-1::0;;;;;20479:18:0::1;-1:-1:-1::0;;;;;20479:18:0::1;;;;;;;;;;;;20498:1;20479:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;:27;;:34:::0;;-1:-1:-1;;20479:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;20542:10:::1;20554:18:::0;;;:6:::1;:18:::0;;;;;;:21;;20533:67:::1;::::0;20554:18;20573:1;;20554:21;::::1;;;;;:::i;:::-;;;;;;;;;;;:28;;;20584:1;20587:9;20598:1;20533:67;;;;;;;;5636:25:1::0;;;5692:2;5677:18;;5670:34;;;;5735:2;5720:18;;5713:34;5778:2;5763:18;;5756:34;5623:3;5608:19;;5397:399;20533:67:0::1;;;;;;;;19197:1417;;18582:2032;-1:-1:-1::0;8791:1:0;9745:22;;18351:2272::o;20631:574::-;6283:5;;-1:-1:-1;;;;;6283:5:0;6269:10;:19;6261:51;;;;-1:-1:-1;;;6261:51:0;;;;;;;:::i;:::-;20857:3:::1;20842:13;:18;;;;20834:44;;;;-1:-1:-1::0;;;20834:44:0::1;;;;;;;:::i;:::-;20889:5;:14:::0;;-1:-1:-1;;;;;;20889:14:0::1;-1:-1:-1::0;;;;;20889:14:0;;::::1;;::::0;;20914:6:::1;:17:::0;;20942:6:::1;:16:::0;;;;20969:6:::1;:16:::0;;;;20996:12:::1;:21:::0;;;;21028:13:::1;:23:::0;;;;21062:8:::1;:20:::0;;;;20914:17;;;::::1;-1:-1:-1::0;;;;;;21093:21:0;;;;;;;-1:-1:-1;;;21093:21:0::1;::::0;;::::1;;;-1:-1:-1::0;;;;21125:23:0::1;-1:-1:-1::0;;;21125:23:0;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;21159:28:0;;-1:-1:-1;;21159:28:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;20631:574::o;17044:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17044:42:0;;-1:-1:-1;17044:42:0;;;;;;;:::o;17951:392::-;18020:12;;18010:6;:22;;18002:48;;;;-1:-1:-1;;;18002:48:0;;;;;;;:::i;:::-;18079:13;;18069:6;:23;;18061:49;;;;-1:-1:-1;;;18061:49:0;;;;;;;:::i;:::-;18121:5;;:53;;-1:-1:-1;;;18121:53:0;;18140:10;18121:53;;;6539:34:1;18160:4:0;6589:18:1;;;6582:43;6641:18;;;6634:34;;;-1:-1:-1;;;;;18121:5:0;;;;:18;;6474::1;;18121:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;18192:10:0;18185:18;;;;:6;:18;;;;;;;;18209:50;;;;;;;18216:15;18209:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18185:75;;18209:50;18185:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18185:75:0;;;;;;;;;;;18307:18;;;;;;;:25;;18276:59;;18209:50;;18307:27;;18209:50;18307:27;:::i;:::-;18276:59;;;8209:25:1;;;8265:2;8250:18;;8243:34;;;;8182:18;18276:59:0;;;;;;;17951:392;:::o;6926:249::-;7029:5;;-1:-1:-1;;;;;7029:5:0;7015:10;:19;7007:51;;;;-1:-1:-1;;;7007:51:0;;;;;;;:::i;:::-;7118:43;;-1:-1:-1;;;7118:43:0;;7141:10;7118:43;;;5010:51:1;5077:18;;;5070:34;;;7096:14:0;;-1:-1:-1;;;;;7118:22:0;;;;;4983:18:1;;7118:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;6999:176;6926:249;;:::o;6613:130::-;6283:5;;-1:-1:-1;;;;;6283:5:0;6269:10;:19;6261:51;;;;-1:-1:-1;;;6261:51:0;;;;;;;:::i;:::-;6692:5:::1;::::0;;6683:25:::1;::::0;-1:-1:-1;;;;;6683:25:0;;::::1;::::0;6692:5;::::1;::::0;6683:25:::1;::::0;::::1;6719:5;:16:::0;;-1:-1:-1;;;;;;6719:16:0::1;-1:-1:-1::0;;;;;6719:16:0;;;::::1;::::0;;;::::1;::::0;;6613:130::o;21280:381::-;-1:-1:-1;;;;;21425:16:0;;21359:7;21425:16;;;:6;:16;;;;;:29;;21359:7;;21405:55;;21442:11;;21425:29;;;;;;:::i;21405:55::-;21379:81;;21471:21;21495:12;21471:36;;21525:128;21639:13;21525:109;21559:64;21619:3;21559:55;21600:13;;;;;;;;;;;21559:55;;:6;:16;21566:8;-1:-1:-1;;;;;21559:16:0;-1:-1:-1;;;;;21559:16:0;;;;;;;;;;;;21576:11;21559:29;;;;;;;;:::i;:64::-;21525:15;;:19;:109::i;:128::-;21518:135;;;;21280:381;;;;;:::o;21721:881::-;-1:-1:-1;;;;;21867:16:0;;21801:7;21867:16;;;:6;:16;;;;;:29;;21801:7;;21847:55;;21884:11;;21867:29;;;;;;:::i;21847:55::-;21821:81;;21913:21;21937:12;21913:36;;22101:23;22127:60;22180:6;;22127:48;22168:6;;22127;:16;22134:8;-1:-1:-1;;;;;22127:16:0;-1:-1:-1;;;;;22127:16:0;;;;;;;;;;;;22144:11;22127:29;;;;;;;;:::i;:60::-;22101:86;;22273:68;22324:5;;;;;;;;;-1:-1:-1;;;;;22324:5:0;-1:-1:-1;;;;;22324:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22320:20;;:2;:20;:::i;:::-;22297:6;;:17;;;-1:-1:-1;;;22297:17:0;;;;22273:42;;-1:-1:-1;;;;;22297:6:0;;:15;;:17;;;;;;;;;;;;;;:6;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22293:21;;:2;:21;:::i;:::-;22273:15;;:19;:42::i;:68::-;22255:86;;22352:16;22371:108;22465:13;22371:89;22405:44;22445:3;22405:35;22425:14;;;;;;;;;;;22405:35;;:15;:19;;:35;;;;:::i;:44::-;22371:15;;:19;:89::i;:108::-;22352:127;21721:881;-1:-1:-1;;;;;;;21721:881:0:o;1513:136::-;1571:7;1598:43;1602:1;1605;1598:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1591:50;1513:136;-1:-1:-1;;;1513:136:0:o;2387:471::-;2445:7;2690:1;2695;2690:6;2686:47;;-1:-1:-1;2720:1:0;2713:8;;2686:47;2745:9;2757:5;2761:1;2757;:5;:::i;:::-;2745:17;-1:-1:-1;2790:1:0;2781:5;2785:1;2745:17;2781:5;:::i;:::-;:10;2773:56;;;;-1:-1:-1;;;2773:56:0;;10520:2:1;2773:56:0;;;10502:21:1;10559:2;10539:18;;;10532:30;10598:34;10578:18;;;10571:62;-1:-1:-1;;;10649:18:1;;;10642:31;10690:19;;2773:56:0;10318:397:1;3326:132:0;3384:7;3411:39;3415:1;3418;3411:39;;;;;;;;;;;;;;;;;:3;:39::i;1944:192::-;2030:7;2066:12;2058:6;;;;2050:29;;;;-1:-1:-1;;;2050:29:0;;;;;;;;:::i;:::-;-1:-1:-1;2090:9:0;2102:5;2106:1;2102;:5;:::i;:::-;2090:17;1944:192;-1:-1:-1;;;;;1944:192:0:o;3946:345::-;4032:7;4134:12;4127:5;4119:28;;;;-1:-1:-1;;;4119:28:0;;;;;;;;:::i;:::-;-1:-1:-1;4158:9:0;4170:5;4174:1;4170;:5;:::i;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;381:138::-;-1:-1:-1;;;;;463:31:1;;453:42;;443:70;;509:1;506;499:12;443:70;381:138;:::o;524:114::-;608:4;601:5;597:16;590:5;587:27;577:55;;628:1;625;618:12;643:1186;803:6;811;819;827;835;843;851;859;867;875;928:3;916:9;907:7;903:23;899:33;896:53;;;945:1;942;935:12;896:53;984:9;971:23;1003:38;1035:5;1003:38;:::i;:::-;1060:5;-1:-1:-1;1117:2:1;1102:18;;1089:32;1130:40;1089:32;1130:40;:::i;:::-;1189:7;-1:-1:-1;1243:2:1;1228:18;;1215:32;;-1:-1:-1;1294:2:1;1279:18;;1266:32;;-1:-1:-1;1345:3:1;1330:19;;1317:33;;-1:-1:-1;1402:3:1;1387:19;;1374:33;1416:31;1374:33;1416:31;:::i;:::-;1466:7;-1:-1:-1;1525:3:1;1510:19;;1497:33;1539:31;1497:33;1539:31;:::i;:::-;1589:7;-1:-1:-1;1648:3:1;1633:19;;1620:33;1662:31;1620:33;1662:31;:::i;:::-;1712:7;1702:17;;;1766:3;1755:9;1751:19;1738:33;1728:43;;1818:3;1807:9;1803:19;1790:33;1780:43;;643:1186;;;;;;;;;;;;;:::o;2244:322::-;2312:6;2320;2373:2;2361:9;2352:7;2348:23;2344:32;2341:52;;;2389:1;2386;2379:12;2341:52;2428:9;2415:23;2447:38;2479:5;2447:38;:::i;:::-;2504:5;2556:2;2541:18;;;;2528:32;;-1:-1:-1;;;2244:322:1:o;3401:254::-;3460:6;3513:2;3501:9;3492:7;3488:23;3484:32;3481:52;;;3529:1;3526;3519:12;3481:52;3568:9;3555:23;3587:38;3619:5;3587:38;:::i;4362:127::-;4423:10;4418:3;4414:20;4411:1;4404:31;4454:4;4451:1;4444:15;4478:4;4475:1;4468:15;5115:277;5182:6;5235:2;5223:9;5214:7;5210:23;5206:32;5203:52;;;5251:1;5248;5241:12;5203:52;5283:9;5277:16;5336:5;5329:13;5322:21;5315:5;5312:32;5302:60;;5358:1;5355;5348:12;6110:184;6180:6;6233:2;6221:9;6212:7;6208:23;6204:32;6201:52;;;6249:1;6246;6239:12;6201:52;-1:-1:-1;6272:16:1;;6110:184;-1:-1:-1;6110:184:1:o;7083:343::-;7285:2;7267:21;;;7324:2;7304:18;;;7297:30;-1:-1:-1;;;7358:2:1;7343:18;;7336:49;7417:2;7402:18;;7083:343::o;7431:337::-;7633:2;7615:21;;;7672:2;7652:18;;;7645:30;-1:-1:-1;;;7706:2:1;7691:18;;7684:43;7759:2;7744:18;;7431:337::o;7773:127::-;7834:10;7829:3;7825:20;7822:1;7815:31;7865:4;7862:1;7855:15;7889:4;7886:1;7879:15;7905:125;7945:4;7973:1;7970;7967:8;7964:34;;;7978:18;;:::i;:::-;-1:-1:-1;8015:9:1;;7905:125::o;8288:247::-;8356:6;8409:2;8397:9;8388:7;8384:23;8380:32;8377:52;;;8425:1;8422;8415:12;8377:52;8457:9;8451:16;8476:29;8499:5;8476:29;:::i;8540:422::-;8629:1;8672:5;8629:1;8686:270;8707:7;8697:8;8694:21;8686:270;;;8766:4;8762:1;8758:6;8754:17;8748:4;8745:27;8742:53;;;8775:18;;:::i;:::-;8825:7;8815:8;8811:22;8808:55;;;8845:16;;;;8808:55;8924:22;;;;8884:15;;;;8686:270;;;8690:3;8540:422;;;;;:::o;8967:806::-;9016:5;9046:8;9036:80;;-1:-1:-1;9087:1:1;9101:5;;9036:80;9135:4;9125:76;;-1:-1:-1;9172:1:1;9186:5;;9125:76;9217:4;9235:1;9230:59;;;;9303:1;9298:130;;;;9210:218;;9230:59;9260:1;9251:10;;9274:5;;;9298:130;9335:3;9325:8;9322:17;9319:43;;;9342:18;;:::i;:::-;-1:-1:-1;;9398:1:1;9384:16;;9413:5;;9210:218;;9512:2;9502:8;9499:16;9493:3;9487:4;9484:13;9480:36;9474:2;9464:8;9461:16;9456:2;9450:4;9447:12;9443:35;9440:77;9437:159;;;-1:-1:-1;9549:19:1;;;9581:5;;9437:159;9628:34;9653:8;9647:4;9628:34;:::i;:::-;9698:6;9694:1;9690:6;9686:19;9677:7;9674:32;9671:58;;;9709:18;;:::i;:::-;9747:20;;8967:806;-1:-1:-1;;;8967:806:1:o;9778:140::-;9836:5;9865:47;9906:4;9896:8;9892:19;9886:4;9865:47;:::i;9923:168::-;9963:7;10029:1;10025;10021:6;10017:14;10014:1;10011:21;10006:1;9999:9;9992:17;9988:45;9985:71;;;10036:18;;:::i;:::-;-1:-1:-1;10076:9:1;;9923:168::o;10096:217::-;10136:1;10162;10152:132;;10206:10;10201:3;10197:20;10194:1;10187:31;10241:4;10238:1;10231:15;10269:4;10266:1;10259:15;10152:132;-1:-1:-1;10298:9:1;;10096:217::o;10720:597::-;10832:4;10861:2;10890;10879:9;10872:21;10922:6;10916:13;10965:6;10960:2;10949:9;10945:18;10938:34;10990:1;11000:140;11014:6;11011:1;11008:13;11000:140;;;11109:14;;;11105:23;;11099:30;11075:17;;;11094:2;11071:26;11064:66;11029:10;;11000:140;;;11158:6;11155:1;11152:13;11149:91;;;11228:1;11223:2;11214:6;11203:9;11199:22;11195:31;11188:42;11149:91;-1:-1:-1;11301:2:1;11280:15;-1:-1:-1;;11276:29:1;11261:45;;;;11308:2;11257:54;;10720:597;-1:-1:-1;;;10720:597:1:o

Swarm Source

ipfs://17aa50ac45153aa2b0a719b94b331e8a7c85854a5bf553961db4fc0b61f5bc1c

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.