ETH Price: $1,987.00 (-4.21%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake161991932022-12-16 18:56:591167 days ago1671217019IN
0xaE80b767...1294F8A4a
0 ETH0.0048571918.34813986
Add Stake Config161973182022-12-16 12:40:231168 days ago1671194423IN
0xaE80b767...1294F8A4a
0 ETH0.003068816.53644909
Add Stake Config161973172022-12-16 12:40:111168 days ago1671194411IN
0xaE80b767...1294F8A4a
0 ETH0.0030689916.53644909
Add Stake Config161973172022-12-16 12:40:111168 days ago1671194411IN
0xaE80b767...1294F8A4a
0 ETH0.003251516.04463604

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakeForVoucher

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 15 runs

Other Settings:
default evmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "../vouchers/IVouchers.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract StakeForVoucher is Ownable {
    event Staked(address indexed staker, uint256 indexed configIndex);
    event Unstaked(address indexed staker, uint256 indexed configIndex);

    struct StakeConfig{
        address tokenAddress;
        bool isEnabled;
        uint256 requiredAmount;
        uint256 duration;
        uint256 slotsAvailable;
        uint256 slotsMax;
        uint256 voucherTypeId;
        uint256 vouchersAmount;
    }
    mapping(uint256 => StakeConfig) public stakeConfig;
    mapping(uint256 => mapping(address => uint256)) public stakeDate;
    mapping(uint256 => mapping(address => bool)) public unstaked;
    uint256 public stakeConfigIndex;
    IVouchers public vouchers;

    function stakeDates(address adr, uint256 from, uint256 to) external view returns (uint256[] memory){
        require(to >= from, "StakeForVoucher: Sort error");
        require(to <= stakeConfigIndex, "StakeForVoucher: Not existing element");
        uint256[] memory dates = new uint256[](to-from+1);
        for(uint256 i=from; i<=to; i++){
            bool isUnstaked = unstaked[i][adr];
            dates[i-from]= isUnstaked ? 1 : stakeDate[i][adr];
        }
        return dates;
    }

    function stakeConfigs(uint256 from, uint256 to) external view returns (StakeConfig[] memory){
        require(to >= from, "StakeForVoucher: Sort error");
        require(to <= stakeConfigIndex, "StakeForVoucher: Not existing element");
        StakeConfig[] memory sc = new StakeConfig[](to-from+1);
        for(uint256 i=from; i<=to; i++){
            sc[i-from]= stakeConfig[i];
        }
        return sc;
    }

    function addStakeConfig(       
        address tokenAddress,
        bool isEnabled,
        uint256 requiredAmount,
        uint256 duration,
        uint256 slotsAvailable,
        uint256 voucherTypeId,
        uint256 vouchersAmount
    ) external onlyOwner {
        StakeConfig memory newConfig = StakeConfig(tokenAddress, isEnabled, requiredAmount, duration, slotsAvailable, slotsAvailable, voucherTypeId, vouchersAmount);
        stakeConfig[stakeConfigIndex] = newConfig;
        stakeConfigIndex++;
    }

    function editStakeConfig(
        uint256 configIndex,
        bool isEnabled,
        uint256 slotsAvailable
    )  external onlyOwner{
        require(stakeConfig[configIndex].slotsMax >= slotsAvailable, "StakeForVoucher: slotsMax limit");
        stakeConfig[configIndex].isEnabled = isEnabled;
        stakeConfig[configIndex].slotsAvailable = slotsAvailable;
    }

    function stake(uint256 configIndex) external {
        require(stakeDate[configIndex][msg.sender] == 0 && !unstaked[configIndex][msg.sender], "StakeForVoucher: Only one stake per address");
        StakeConfig memory sc = stakeConfig[configIndex];
        require(sc.isEnabled, "StakeForVoucher: Staking is disabled");
        require(sc.slotsAvailable > 0, "StakeForVoucher: No available slots");
        IERC20(sc.tokenAddress).transferFrom(msg.sender, address(this), sc.requiredAmount);
        stakeDate[configIndex][msg.sender] = block.timestamp;
        stakeConfig[configIndex].slotsAvailable--;
        vouchers.mintBatch(msg.sender, sc.voucherTypeId, sc.vouchersAmount);
        emit Staked(msg.sender, configIndex);
    }

    function unstake(uint256 configIndex) external {
        uint256 userStakeDate = stakeDate[configIndex][msg.sender];
        require(userStakeDate != 0 && !unstaked[configIndex][msg.sender], "StakeForVoucher: Stake not found");
        StakeConfig memory sc = stakeConfig[configIndex];
        require(userStakeDate + sc.duration * 1 minutes < block.timestamp, "StakeForVoucher: Withdraw before end of stake period");
        unstaked[configIndex][msg.sender]=true;
        IERC20(sc.tokenAddress).transfer(msg.sender, sc.requiredAmount);
        emit Unstaked(msg.sender, configIndex);
    }

    constructor(IVouchers vouchersAddress){
        vouchers = vouchersAddress;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

interface IVouchers{
    function mintBatch(address to, uint256 num, uint256 tokenType) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IVouchers","name":"vouchersAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint256","name":"configIndex","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint256","name":"configIndex","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint256","name":"requiredAmount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"slotsAvailable","type":"uint256"},{"internalType":"uint256","name":"voucherTypeId","type":"uint256"},{"internalType":"uint256","name":"vouchersAmount","type":"uint256"}],"name":"addStakeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"configIndex","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint256","name":"slotsAvailable","type":"uint256"}],"name":"editStakeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"configIndex","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeConfig","outputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint256","name":"requiredAmount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"slotsAvailable","type":"uint256"},{"internalType":"uint256","name":"slotsMax","type":"uint256"},{"internalType":"uint256","name":"voucherTypeId","type":"uint256"},{"internalType":"uint256","name":"vouchersAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeConfigIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"name":"stakeConfigs","outputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint256","name":"requiredAmount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"slotsAvailable","type":"uint256"},{"internalType":"uint256","name":"slotsMax","type":"uint256"},{"internalType":"uint256","name":"voucherTypeId","type":"uint256"},{"internalType":"uint256","name":"vouchersAmount","type":"uint256"}],"internalType":"struct StakeForVoucher.StakeConfig[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"stakeDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"},{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"name":"stakeDates","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"configIndex","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"unstaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vouchers","outputs":[{"internalType":"contract IVouchers","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516112d93803806112d983398101604081905261002f916100ad565b6100383361005d565b600580546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b6111ed806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100ba5760003560e01c80631aaa7761146100bf57806322b6cb10146101025780632e17de781461013b5780635e262f9614610150578063715018a61461017b57806371e26295146101835780637a0d703b146101a35780638da5cb5b146101ac57806390e93746146101b4578063976d22e7146101c7578063a694fc3a146101da578063b6839805146101ed578063ba892e9d1461020d578063f2fde38b146102ab575b600080fd5b6100ed6100cd366004610e22565b600360209081526000928352604080842090915290825290205460ff1681565b60405190151581526020015b60405180910390f35b61012d610110366004610e22565b600260209081526000928352604080842090915290825290205481565b6040519081526020016100f9565b61014e610149366004610e4e565b6102be565b005b600554610163906001600160a01b031681565b6040516001600160a01b0390911681526020016100f9565b61014e610522565b610196610191366004610e67565b610536565b6040516100f99190610e89565b61012d60045481565b6101636106f1565b61014e6101c2366004610f2f565b610700565b61014e6101d5366004610f8f565b6107d4565b61014e6101e8366004610e4e565b61086c565b6102006101fb366004610fc7565b610b9f565b6040516100f99190610ffa565b61026661021b366004610e4e565b600160208190526000918252604090912080549181015460028201546003830154600484015460058501546006909501546001600160a01b03871696600160a01b900460ff16959088565b604080516001600160a01b0390991689529615156020890152958701949094526060860192909252608085015260a084015260c083015260e0820152610100016100f9565b61014e6102b936600461103e565b610cde565b600081815260026020908152604080832033845290915290205480158015906103015750600082815260036020908152604080832033845290915290205460ff16155b6103525760405162461bcd60e51b815260206004820181905260248201527f5374616b65466f72566f75636865723a205374616b65206e6f7420666f756e6460448201526064015b60405180910390fd5b60008281526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff16151592810192909252918201549281019290925260028101546060830181905260038201546080840152600482015460a0840152600582015460c084015260069091015460e083015242906103db90603c611076565b6103e59084611095565b1061044f5760405162461bcd60e51b815260206004820152603460248201527f5374616b65466f72566f75636865723a205769746864726177206265666f726560448201527308195b99081bd9881cdd185ad9481c195c9a5bd960621b6064820152608401610349565b600083815260036020908152604080832033808552925291829020805460ff19166001179055825183830151925163a9059cbb60e01b8152600481019290925260248201929092526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef91906110ad565b50604051839033907f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7590600090a3505050565b61052a610d57565b6105346000610db6565b565b6060828210156105585760405162461bcd60e51b8152600401610349906110ca565b60045482111561057a5760405162461bcd60e51b8152600401610349906110ff565b60006105868484611144565b610591906001611095565b6001600160401b038111156105a8576105a861115b565b60405190808252806020026020018201604052801561062c57816020015b61061960405180610100016040528060006001600160a01b031681526020016000151581526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b8152602001906001900390816105c65790505b509050835b8381116106e95760008181526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff1615159281019290925291820154928101929092526002810154606083015260038101546080830152600481015460a0830152600581015460c08301526006015460e0820152826106bb8784611144565b815181106106cb576106cb611171565b602002602001018190525080806106e190611187565b915050610631565b509392505050565b6000546001600160a01b031690565b610708610d57565b60408051610100810182526001600160a01b03808a16825288151560208084019182528385018a8152606085018a8152608086018a815260a087018b815260c088018b815260e089018b81526004805460009081526001988990529b8c208b5181549a511515600160a01b026001600160a81b0319909b169b169a909a179890981789559451958801959095559151600287015551600386015551848401559051600584015551600690920191909155805491926107c583611187565b91905055505050505050505050565b6107dc610d57565b60008381526001602052604090206004015481111561083d5760405162461bcd60e51b815260206004820152601f60248201527f5374616b65466f72566f75636865723a20736c6f74734d6178206c696d6974006044820152606401610349565b6000928352600160205260409092208054911515600160a01b0260ff60a01b1990921691909117815560030155565b60008181526002602090815260408083203384529091529020541580156108ad5750600081815260036020908152604080832033845290915290205460ff16155b61090d5760405162461bcd60e51b815260206004820152602b60248201527f5374616b65466f72566f75636865723a204f6e6c79206f6e65207374616b652060448201526a706572206164647265737360a81b6064820152608401610349565b60008181526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff16151592810183905292810154938301939093526002830154606083015260038301546080830152600483015460a0830152600583015460c083015260069092015460e0820152906109df5760405162461bcd60e51b8152602060048201526024808201527f5374616b65466f72566f75636865723a205374616b696e672069732064697361604482015263189b195960e21b6064820152608401610349565b6000816080015111610a3f5760405162461bcd60e51b815260206004820152602360248201527f5374616b65466f72566f75636865723a204e6f20617661696c61626c6520736c6044820152626f747360e81b6064820152608401610349565b805160408083015190516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf91906110ad565b506000828152600260209081526040808320338452825280832042905584835260019091528120600301805491610af5836111a0565b909155505060055460c082015160e0830151604051631740d57560e11b8152336004820152602481019290925260448201526001600160a01b0390911690632e81aaea90606401600060405180830381600087803b158015610b5657600080fd5b505af1158015610b6a573d6000803e3d6000fd5b50506040518492503391507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90600090a35050565b606082821015610bc15760405162461bcd60e51b8152600401610349906110ca565b600454821115610be35760405162461bcd60e51b8152600401610349906110ff565b6000610bef8484611144565b610bfa906001611095565b6001600160401b03811115610c1157610c1161115b565b604051908082528060200260200182016040528015610c3a578160200160208202803683370190505b509050835b838111610cd55760008181526003602090815260408083206001600160a01b038a16845290915290205460ff1680610c995760008281526002602090815260408083206001600160a01b038b168452909152902054610c9c565b60015b83610ca78885611144565b81518110610cb757610cb7611171565b60209081029190910101525080610ccd81611187565b915050610c3f565b50949350505050565b610ce6610d57565b6001600160a01b038116610d4b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610349565b610d5481610db6565b50565b33610d606106f1565b6001600160a01b0316146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610349565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610e1d57600080fd5b919050565b60008060408385031215610e3557600080fd5b82359150610e4560208401610e06565b90509250929050565b600060208284031215610e6057600080fd5b5035919050565b60008060408385031215610e7a57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015610f1457815180516001600160a01b03168552868101511515878601528581015186860152606080820151908601526080808201519086015260a0808201519086015260c0808201519086015260e090810151908501526101009093019290850190600101610ea6565b5091979650505050505050565b8015158114610d5457600080fd5b600080600080600080600060e0888a031215610f4a57600080fd5b610f5388610e06565b96506020880135610f6381610f21565b96999698505050506040850135946060810135946080820135945060a0820135935060c0909101359150565b600080600060608486031215610fa457600080fd5b833592506020840135610fb681610f21565b929592945050506040919091013590565b600080600060608486031215610fdc57600080fd5b610fe584610e06565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b8181101561103257835183529284019291840191600101611016565b50909695505050505050565b60006020828403121561105057600080fd5b61105982610e06565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561109057611090611060565b500290565b600082198211156110a8576110a8611060565b500190565b6000602082840312156110bf57600080fd5b815161105981610f21565b6020808252601b908201527a29ba30b5b2a337b92b37bab1b432b91d1029b7b93a1032b93937b960291b604082015260600190565b60208082526025908201527f5374616b65466f72566f75636865723a204e6f74206578697374696e6720656c604082015264195b595b9d60da1b606082015260800190565b60008282101561115657611156611060565b500390565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006001820161119957611199611060565b5060010190565b6000816111af576111af611060565b50600019019056fea264697066735822122020bddfc792d98975a5bb2a4e08132b0b2a769827e277a3fcfe9ad217b3e989b764736f6c634300080f0033000000000000000000000000b84b93d68b62928641a3a22cdb2707fd1ae6e71c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ba5760003560e01c80631aaa7761146100bf57806322b6cb10146101025780632e17de781461013b5780635e262f9614610150578063715018a61461017b57806371e26295146101835780637a0d703b146101a35780638da5cb5b146101ac57806390e93746146101b4578063976d22e7146101c7578063a694fc3a146101da578063b6839805146101ed578063ba892e9d1461020d578063f2fde38b146102ab575b600080fd5b6100ed6100cd366004610e22565b600360209081526000928352604080842090915290825290205460ff1681565b60405190151581526020015b60405180910390f35b61012d610110366004610e22565b600260209081526000928352604080842090915290825290205481565b6040519081526020016100f9565b61014e610149366004610e4e565b6102be565b005b600554610163906001600160a01b031681565b6040516001600160a01b0390911681526020016100f9565b61014e610522565b610196610191366004610e67565b610536565b6040516100f99190610e89565b61012d60045481565b6101636106f1565b61014e6101c2366004610f2f565b610700565b61014e6101d5366004610f8f565b6107d4565b61014e6101e8366004610e4e565b61086c565b6102006101fb366004610fc7565b610b9f565b6040516100f99190610ffa565b61026661021b366004610e4e565b600160208190526000918252604090912080549181015460028201546003830154600484015460058501546006909501546001600160a01b03871696600160a01b900460ff16959088565b604080516001600160a01b0390991689529615156020890152958701949094526060860192909252608085015260a084015260c083015260e0820152610100016100f9565b61014e6102b936600461103e565b610cde565b600081815260026020908152604080832033845290915290205480158015906103015750600082815260036020908152604080832033845290915290205460ff16155b6103525760405162461bcd60e51b815260206004820181905260248201527f5374616b65466f72566f75636865723a205374616b65206e6f7420666f756e6460448201526064015b60405180910390fd5b60008281526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff16151592810192909252918201549281019290925260028101546060830181905260038201546080840152600482015460a0840152600582015460c084015260069091015460e083015242906103db90603c611076565b6103e59084611095565b1061044f5760405162461bcd60e51b815260206004820152603460248201527f5374616b65466f72566f75636865723a205769746864726177206265666f726560448201527308195b99081bd9881cdd185ad9481c195c9a5bd960621b6064820152608401610349565b600083815260036020908152604080832033808552925291829020805460ff19166001179055825183830151925163a9059cbb60e01b8152600481019290925260248201929092526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef91906110ad565b50604051839033907f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7590600090a3505050565b61052a610d57565b6105346000610db6565b565b6060828210156105585760405162461bcd60e51b8152600401610349906110ca565b60045482111561057a5760405162461bcd60e51b8152600401610349906110ff565b60006105868484611144565b610591906001611095565b6001600160401b038111156105a8576105a861115b565b60405190808252806020026020018201604052801561062c57816020015b61061960405180610100016040528060006001600160a01b031681526020016000151581526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b8152602001906001900390816105c65790505b509050835b8381116106e95760008181526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff1615159281019290925291820154928101929092526002810154606083015260038101546080830152600481015460a0830152600581015460c08301526006015460e0820152826106bb8784611144565b815181106106cb576106cb611171565b602002602001018190525080806106e190611187565b915050610631565b509392505050565b6000546001600160a01b031690565b610708610d57565b60408051610100810182526001600160a01b03808a16825288151560208084019182528385018a8152606085018a8152608086018a815260a087018b815260c088018b815260e089018b81526004805460009081526001988990529b8c208b5181549a511515600160a01b026001600160a81b0319909b169b169a909a179890981789559451958801959095559151600287015551600386015551848401559051600584015551600690920191909155805491926107c583611187565b91905055505050505050505050565b6107dc610d57565b60008381526001602052604090206004015481111561083d5760405162461bcd60e51b815260206004820152601f60248201527f5374616b65466f72566f75636865723a20736c6f74734d6178206c696d6974006044820152606401610349565b6000928352600160205260409092208054911515600160a01b0260ff60a01b1990921691909117815560030155565b60008181526002602090815260408083203384529091529020541580156108ad5750600081815260036020908152604080832033845290915290205460ff16155b61090d5760405162461bcd60e51b815260206004820152602b60248201527f5374616b65466f72566f75636865723a204f6e6c79206f6e65207374616b652060448201526a706572206164647265737360a81b6064820152608401610349565b60008181526001602081815260409283902083516101008101855281546001600160a01b0381168252600160a01b900460ff16151592810183905292810154938301939093526002830154606083015260038301546080830152600483015460a0830152600583015460c083015260069092015460e0820152906109df5760405162461bcd60e51b8152602060048201526024808201527f5374616b65466f72566f75636865723a205374616b696e672069732064697361604482015263189b195960e21b6064820152608401610349565b6000816080015111610a3f5760405162461bcd60e51b815260206004820152602360248201527f5374616b65466f72566f75636865723a204e6f20617661696c61626c6520736c6044820152626f747360e81b6064820152608401610349565b805160408083015190516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf91906110ad565b506000828152600260209081526040808320338452825280832042905584835260019091528120600301805491610af5836111a0565b909155505060055460c082015160e0830151604051631740d57560e11b8152336004820152602481019290925260448201526001600160a01b0390911690632e81aaea90606401600060405180830381600087803b158015610b5657600080fd5b505af1158015610b6a573d6000803e3d6000fd5b50506040518492503391507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90600090a35050565b606082821015610bc15760405162461bcd60e51b8152600401610349906110ca565b600454821115610be35760405162461bcd60e51b8152600401610349906110ff565b6000610bef8484611144565b610bfa906001611095565b6001600160401b03811115610c1157610c1161115b565b604051908082528060200260200182016040528015610c3a578160200160208202803683370190505b509050835b838111610cd55760008181526003602090815260408083206001600160a01b038a16845290915290205460ff1680610c995760008281526002602090815260408083206001600160a01b038b168452909152902054610c9c565b60015b83610ca78885611144565b81518110610cb757610cb7611171565b60209081029190910101525080610ccd81611187565b915050610c3f565b50949350505050565b610ce6610d57565b6001600160a01b038116610d4b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610349565b610d5481610db6565b50565b33610d606106f1565b6001600160a01b0316146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610349565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610e1d57600080fd5b919050565b60008060408385031215610e3557600080fd5b82359150610e4560208401610e06565b90509250929050565b600060208284031215610e6057600080fd5b5035919050565b60008060408385031215610e7a57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015610f1457815180516001600160a01b03168552868101511515878601528581015186860152606080820151908601526080808201519086015260a0808201519086015260c0808201519086015260e090810151908501526101009093019290850190600101610ea6565b5091979650505050505050565b8015158114610d5457600080fd5b600080600080600080600060e0888a031215610f4a57600080fd5b610f5388610e06565b96506020880135610f6381610f21565b96999698505050506040850135946060810135946080820135945060a0820135935060c0909101359150565b600080600060608486031215610fa457600080fd5b833592506020840135610fb681610f21565b929592945050506040919091013590565b600080600060608486031215610fdc57600080fd5b610fe584610e06565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b8181101561103257835183529284019291840191600101611016565b50909695505050505050565b60006020828403121561105057600080fd5b61105982610e06565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561109057611090611060565b500290565b600082198211156110a8576110a8611060565b500190565b6000602082840312156110bf57600080fd5b815161105981610f21565b6020808252601b908201527a29ba30b5b2a337b92b37bab1b432b91d1029b7b93a1032b93937b960291b604082015260600190565b60208082526025908201527f5374616b65466f72566f75636865723a204e6f74206578697374696e6720656c604082015264195b595b9d60da1b606082015260800190565b60008282101561115657611156611060565b500390565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006001820161119957611199611060565b5060010190565b6000816111af576111af611060565b50600019019056fea264697066735822122020bddfc792d98975a5bb2a4e08132b0b2a769827e277a3fcfe9ad217b3e989b764736f6c634300080f0033

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

000000000000000000000000b84b93d68b62928641a3a22cdb2707fd1ae6e71c

-----Decoded View---------------
Arg [0] : vouchersAddress (address): 0xb84B93D68b62928641a3A22CDB2707fD1Ae6E71C

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b84b93d68b62928641a3a22cdb2707fd1ae6e71c


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.