ETH Price: $3,357.85 (-2.76%)
Gas: 4 Gwei

Contract

0x45FAb0965279C779e5d43CBDFE92357Cff2defdF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Unstake202190532024-07-02 13:12:4714 hrs ago1719925967IN
0x45FAb096...Cff2defdF
0 ETH0.000385885.79861715
Unstake202064522024-06-30 19:00:232 days ago1719774023IN
0x45FAb096...Cff2defdF
0 ETH0.000330394.05310147
Unstake201802132024-06-27 3:03:356 days ago1719457415IN
0x45FAb096...Cff2defdF
0 ETH0.000495915.92956343
Unstake201588182024-06-24 3:19:359 days ago1719199175IN
0x45FAb096...Cff2defdF
0 ETH0.000259153.0986838
Unstake201585412024-06-24 2:23:239 days ago1719195803IN
0x45FAb096...Cff2defdF
0 ETH0.000195242.33454137
Unstake201584532024-06-24 2:05:479 days ago1719194747IN
0x45FAb096...Cff2defdF
0 ETH0.000185492.21790526
Stake201409042024-06-21 15:10:3511 days ago1718982635IN
0x45FAb096...Cff2defdF
0 ETH0.000866258.04704335
Stake201303262024-06-20 3:41:3513 days ago1718854895IN
0x45FAb096...Cff2defdF
0 ETH0.000546535.07703426
Stake200931012024-06-14 22:42:2318 days ago1718404943IN
0x45FAb096...Cff2defdF
0 ETH0.000612635.689787
Stake200929102024-06-14 22:03:4718 days ago1718402627IN
0x45FAb096...Cff2defdF
0 ETH0.000582567.76474011
Stake200842032024-06-13 16:50:2319 days ago1718297423IN
0x45FAb096...Cff2defdF
0 ETH0.0018524718.00739394
Unstake200786052024-06-12 22:02:5920 days ago1718229779IN
0x45FAb096...Cff2defdF
0 ETH0.0010990713.13945836
Unstake200732742024-06-12 4:10:3520 days ago1718165435IN
0x45FAb096...Cff2defdF
0 ETH0.000529746.33309102
Unstake200702002024-06-11 17:52:4721 days ago1718128367IN
0x45FAb096...Cff2defdF
0 ETH0.0011986114.32530958
Unstake200658292024-06-11 3:13:3522 days ago1718075615IN
0x45FAb096...Cff2defdF
0 ETH0.000675468.07634894
Stake200632122024-06-10 18:26:5922 days ago1718044019IN
0x45FAb096...Cff2defdF
0 ETH0.0017152316.67911762
Stake200626292024-06-10 16:29:3522 days ago1718036975IN
0x45FAb096...Cff2defdF
0 ETH0.0015179414.75550876
Stake200367472024-06-07 1:44:5926 days ago1717724699IN
0x45FAb096...Cff2defdF
0 ETH0.000663058.83749992
Unstake200332252024-06-06 13:56:4726 days ago1717682207IN
0x45FAb096...Cff2defdF
0 ETH0.0020522325.17587268
Stake200263982024-06-05 15:03:1127 days ago1717599791IN
0x45FAb096...Cff2defdF
0 ETH0.0020925528.70134471
Stake200187992024-06-04 13:37:1128 days ago1717508231IN
0x45FAb096...Cff2defdF
0 ETH0.0010478610.1884021
Stake200176262024-06-04 9:41:2328 days ago1717494083IN
0x45FAb096...Cff2defdF
0 ETH0.000949558.44429164
Stake200112622024-06-03 12:21:3529 days ago1717417295IN
0x45FAb096...Cff2defdF
0 ETH0.0011334110.52645825
Unstake199920902024-05-31 20:06:3532 days ago1717185995IN
0x45FAb096...Cff2defdF
0 ETH0.000740188.8501842
Stake199912392024-05-31 17:15:1132 days ago1717175711IN
0x45FAb096...Cff2defdF
0 ETH0.0012117116.15036095
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Staking

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : Staking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

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

/**
 * @title Staking
 * @dev A contract for staking ERC20 tokens for a specific duration.
 */
contract Staking is Ownable {
    struct Stake {
        uint256 amount;
        uint256 unlocksAt;
    }

    event Staked(
        address staker,
        uint256 amount
    );
    event Unstaked(
        address staker,
        uint256 amount
    );

	IERC20 public token;
    uint256 public minStakingAmount;
    uint256 public stakingDuration;

    mapping(address => Stake) public stakes;

    /**
     * @dev Initializes the contract with the specified token address.
     * @param _tokenAddress The address of the ERC20 token to be staked.
     */
    constructor(address _tokenAddress) Ownable(msg.sender) {
        token = IERC20(_tokenAddress);
        minStakingAmount = 0;
        stakingDuration = 0;
    }

    /**
     * @notice Sets the staking parameters.
     * @dev Only the contract owner can call this function.
     * @param _amount The amount of tokens to be staked.
     * @param _duration The duration for which the tokens will be locked in seconds.
     */
    function setStakingParameters(
        uint256 _amount,
        uint256 _duration
    ) external onlyOwner {
        require(_amount > 0, "Amount must be greater than 0");
        require(_duration > 0, "Duration must be greater than 0");

        minStakingAmount = _amount;
        stakingDuration = _duration;
    }

    /**
     * @notice Stakes the specified amount of tokens for the specified duration.
     * @dev The staker must have approved the contract to transfer the specified amount of tokens.
	 * @param _amount The total amount of tokens to be staked.
     */
    function stake(uint256 _amount) external {
        require(minStakingAmount > 0, "Staking amount not set");
        require(stakingDuration > 0, "Staking duration not set");
		require(_amount >= minStakingAmount, "Amount must be greater than or equal to the minimum staking amount");

		Stake memory existingStake = stakes[msg.sender];

		if (existingStake.amount > 0) {
			require(block.timestamp >= existingStake.unlocksAt, "Existing stake has not expired");
			stakes[msg.sender] = Stake({
				amount: _amount,
				unlocksAt: block.timestamp + stakingDuration
			});
			if (_amount > existingStake.amount) {
				token.transferFrom(msg.sender, address(this), _amount - existingStake.amount);
			} else {
				token.transfer(msg.sender, existingStake.amount - _amount);
			}
			emit Unstaked(msg.sender, existingStake.amount);
		} else {
			stakes[msg.sender] = Stake({
				amount: _amount,
				unlocksAt: block.timestamp + stakingDuration
			});
			token.transferFrom(msg.sender, address(this), _amount);
		}

		emit Staked(msg.sender, _amount);
    }

	/**
	 * @notice Unstakes the specified stake.
	 * @dev Only the staker can call this function.
	 * @param _amount The amount of tokens to be unstaked.
	 */
	function unstake(uint256 _amount) external {
		require(stakes[msg.sender].unlocksAt <= block.timestamp, "Stake has not expired");
		require(stakes[msg.sender].amount > 0, "Stake does not exist");
		require(stakes[msg.sender].amount >= _amount, "Amount must be less than or equal to the stake amount");

		if (stakes[msg.sender].amount == _amount) {
			delete stakes[msg.sender];
		} else {
			stakes[msg.sender].amount -= _amount;
		}
		token.transfer(msg.sender, _amount);

		emit Unstaked(msg.sender, _amount);
	}
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 3 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"minStakingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_amount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setStakingParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlocksAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b50604051610b96380380610b9683398101604081905261002e916100da565b338061005357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61005c8161008b565b50600180546001600160a01b0319166001600160a01b03929092169190911790555f6002819055600355610107565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100ea575f80fd5b81516001600160a01b0381168114610100575f80fd5b9392505050565b610a82806101145f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c80638005a7de116100635780638005a7de146101265780638da5cb5b1461012f578063a694fc3a14610153578063f2fde38b14610166578063fc0c546a14610179575f80fd5b806316934fc41461009f57806325c065b1146100df5780632e17de78146100f65780634bc72e2d1461010b578063715018a61461011e575b5f80fd5b6100c56100ad366004610989565b60046020525f90815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b6100e860025481565b6040519081526020016100d6565b6101096101043660046109b6565b61018c565b005b6101096101193660046109cd565b6103bb565b61010961046c565b6100e860035481565b5f546001600160a01b03165b6040516001600160a01b0390911681526020016100d6565b6101096101613660046109b6565b61047f565b610109610174366004610989565b6108d1565b60015461013b906001600160a01b031681565b335f908152600460205260409020600101544210156101ea5760405162461bcd60e51b815260206004820152601560248201527414dd185ad9481a185cc81b9bdd08195e1c1a5c9959605a1b60448201526064015b60405180910390fd5b335f9081526004602052604090205461023c5760405162461bcd60e51b815260206004820152601460248201527314dd185ad948191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016101e1565b335f908152600460205260409020548111156102b85760405162461bcd60e51b815260206004820152603560248201527f416d6f756e74206d757374206265206c657373207468616e206f7220657175616044820152741b081d1bc81d1a19481cdd185ad948185b5bdd5b9d605a1b60648201526084016101e1565b335f908152600460205260409020548190036102e857335f9081526004602052604081208181556001015561030c565b335f9081526004602052604081208054839290610306908490610a01565b90915550505b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303815f875af115801561035a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061037e9190610a1a565b5060408051338152602081018390527f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75910160405180910390a150565b6103c361090e565b5f82116104125760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064016101e1565b5f81116104615760405162461bcd60e51b815260206004820152601f60248201527f4475726174696f6e206d7573742062652067726561746572207468616e20300060448201526064016101e1565b600291909155600355565b61047461090e565b61047d5f61093a565b565b5f600254116104c95760405162461bcd60e51b815260206004820152601660248201527514dd185ada5b99c8185b5bdd5b9d081b9bdd081cd95d60521b60448201526064016101e1565b5f6003541161051a5760405162461bcd60e51b815260206004820152601860248201527f5374616b696e67206475726174696f6e206e6f7420736574000000000000000060448201526064016101e1565b60025481101561059d5760405162461bcd60e51b815260206004820152604260248201527f416d6f756e74206d7573742062652067726561746572207468616e206f72206560448201527f7175616c20746f20746865206d696e696d756d207374616b696e6720616d6f756064820152611b9d60f21b608482015260a4016101e1565b335f908152600460209081526040918290208251808401909352805480845260019091015491830191909152156107dd5780602001514210156106225760405162461bcd60e51b815260206004820152601e60248201527f4578697374696e67207374616b6520686173206e6f742065787069726564000060448201526064016101e1565b6040518060400160405280838152602001600354426106419190610a39565b9052335f90815260046020908152604090912082518155910151600190910155805182111561070a5760015481516001600160a01b03909116906323b872dd903390309061068f9087610a01565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303815f875af11580156106e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107049190610a1a565b5061079c565b60015481516001600160a01b039091169063a9059cbb90339061072e908690610a01565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610776573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061079a9190610a1a565b505b80516040805133815260208101929092527f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75910160405180910390a1610894565b6040518060400160405280838152602001600354426107fc9190610a39565b9052335f8181526004602081815260409283902085518155940151600194850155925490516323b872dd60e01b815292830191909152306024830152604482018490526001600160a01b0316906323b872dd906064016020604051808303815f875af115801561086e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108929190610a1a565b505b60408051338152602081018490527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d910160405180910390a15050565b6108d961090e565b6001600160a01b03811661090257604051631e4fbdf760e01b81525f60048201526024016101e1565b61090b8161093a565b50565b5f546001600160a01b0316331461047d5760405163118cdaa760e01b81523360048201526024016101e1565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610999575f80fd5b81356001600160a01b03811681146109af575f80fd5b9392505050565b5f602082840312156109c6575f80fd5b5035919050565b5f80604083850312156109de575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610a1457610a146109ed565b92915050565b5f60208284031215610a2a575f80fd5b815180151581146109af575f80fd5b80820180821115610a1457610a146109ed56fea2646970667358221220dc59ec1bfcc27ab354fcf703f67ce3552dbd2cbe2a724f2f3c8abf8ce956a2d164736f6c63430008140033000000000000000000000000508b27902c6c14972a10a4e413b9cfa449e9cedb

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061009b575f3560e01c80638005a7de116100635780638005a7de146101265780638da5cb5b1461012f578063a694fc3a14610153578063f2fde38b14610166578063fc0c546a14610179575f80fd5b806316934fc41461009f57806325c065b1146100df5780632e17de78146100f65780634bc72e2d1461010b578063715018a61461011e575b5f80fd5b6100c56100ad366004610989565b60046020525f90815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b6100e860025481565b6040519081526020016100d6565b6101096101043660046109b6565b61018c565b005b6101096101193660046109cd565b6103bb565b61010961046c565b6100e860035481565b5f546001600160a01b03165b6040516001600160a01b0390911681526020016100d6565b6101096101613660046109b6565b61047f565b610109610174366004610989565b6108d1565b60015461013b906001600160a01b031681565b335f908152600460205260409020600101544210156101ea5760405162461bcd60e51b815260206004820152601560248201527414dd185ad9481a185cc81b9bdd08195e1c1a5c9959605a1b60448201526064015b60405180910390fd5b335f9081526004602052604090205461023c5760405162461bcd60e51b815260206004820152601460248201527314dd185ad948191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016101e1565b335f908152600460205260409020548111156102b85760405162461bcd60e51b815260206004820152603560248201527f416d6f756e74206d757374206265206c657373207468616e206f7220657175616044820152741b081d1bc81d1a19481cdd185ad948185b5bdd5b9d605a1b60648201526084016101e1565b335f908152600460205260409020548190036102e857335f9081526004602052604081208181556001015561030c565b335f9081526004602052604081208054839290610306908490610a01565b90915550505b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303815f875af115801561035a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061037e9190610a1a565b5060408051338152602081018390527f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75910160405180910390a150565b6103c361090e565b5f82116104125760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064016101e1565b5f81116104615760405162461bcd60e51b815260206004820152601f60248201527f4475726174696f6e206d7573742062652067726561746572207468616e20300060448201526064016101e1565b600291909155600355565b61047461090e565b61047d5f61093a565b565b5f600254116104c95760405162461bcd60e51b815260206004820152601660248201527514dd185ada5b99c8185b5bdd5b9d081b9bdd081cd95d60521b60448201526064016101e1565b5f6003541161051a5760405162461bcd60e51b815260206004820152601860248201527f5374616b696e67206475726174696f6e206e6f7420736574000000000000000060448201526064016101e1565b60025481101561059d5760405162461bcd60e51b815260206004820152604260248201527f416d6f756e74206d7573742062652067726561746572207468616e206f72206560448201527f7175616c20746f20746865206d696e696d756d207374616b696e6720616d6f756064820152611b9d60f21b608482015260a4016101e1565b335f908152600460209081526040918290208251808401909352805480845260019091015491830191909152156107dd5780602001514210156106225760405162461bcd60e51b815260206004820152601e60248201527f4578697374696e67207374616b6520686173206e6f742065787069726564000060448201526064016101e1565b6040518060400160405280838152602001600354426106419190610a39565b9052335f90815260046020908152604090912082518155910151600190910155805182111561070a5760015481516001600160a01b03909116906323b872dd903390309061068f9087610a01565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303815f875af11580156106e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107049190610a1a565b5061079c565b60015481516001600160a01b039091169063a9059cbb90339061072e908690610a01565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610776573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061079a9190610a1a565b505b80516040805133815260208101929092527f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75910160405180910390a1610894565b6040518060400160405280838152602001600354426107fc9190610a39565b9052335f8181526004602081815260409283902085518155940151600194850155925490516323b872dd60e01b815292830191909152306024830152604482018490526001600160a01b0316906323b872dd906064016020604051808303815f875af115801561086e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108929190610a1a565b505b60408051338152602081018490527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d910160405180910390a15050565b6108d961090e565b6001600160a01b03811661090257604051631e4fbdf760e01b81525f60048201526024016101e1565b61090b8161093a565b50565b5f546001600160a01b0316331461047d5760405163118cdaa760e01b81523360048201526024016101e1565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610999575f80fd5b81356001600160a01b03811681146109af575f80fd5b9392505050565b5f602082840312156109c6575f80fd5b5035919050565b5f80604083850312156109de575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610a1457610a146109ed565b92915050565b5f60208284031215610a2a575f80fd5b815180151581146109af575f80fd5b80820180821115610a1457610a146109ed56fea2646970667358221220dc59ec1bfcc27ab354fcf703f67ce3552dbd2cbe2a724f2f3c8abf8ce956a2d164736f6c63430008140033

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

000000000000000000000000508b27902c6c14972a10a4e413b9cfa449e9cedb

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x508B27902C6c14972a10a4e413B9cFA449e9ceDB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000508b27902c6c14972a10a4e413b9cfa449e9cedb


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.