ETH Price: $2,370.47 (-4.09%)

Contract

0x45FAb0965279C779e5d43CBDFE92357Cff2defdF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

Transaction Hash
Method
Block
From
To
Stake208574852024-09-29 16:27:113 days ago1727627231IN
0x45FAb096...Cff2defdF
0 ETH0.0008928211.18949665
Unstake208467102024-09-28 4:21:354 days ago1727497295IN
0x45FAb096...Cff2defdF
0 ETH0.000429767.46454791
Unstake208008652024-09-21 18:52:4711 days ago1726944767IN
0x45FAb096...Cff2defdF
0 ETH0.000753612.62973992
Stake207856392024-09-19 15:48:4713 days ago1726760927IN
0x45FAb096...Cff2defdF
0 ETH0.0020151618.7197579
Stake207367592024-09-12 19:56:2320 days ago1726170983IN
0x45FAb096...Cff2defdF
0 ETH0.000762436.78097872
Unstake207179702024-09-10 4:56:1122 days ago1725944171IN
0x45FAb096...Cff2defdF
0 ETH0.000113641.97387962
Unstake206628502024-09-02 12:21:3530 days ago1725279695IN
0x45FAb096...Cff2defdF
0 ETH0.00022863.82968949
Stake206163092024-08-27 0:21:3536 days ago1724718095IN
0x45FAb096...Cff2defdF
0 ETH0.00005110.68119651
Unstake205706112024-08-20 15:04:5943 days ago1724166299IN
0x45FAb096...Cff2defdF
0 ETH0.000333565.79365426
Stake205580352024-08-18 20:55:1145 days ago1724014511IN
0x45FAb096...Cff2defdF
0 ETH0.000087021.19359619
Stake205313942024-08-15 3:38:1148 days ago1723693091IN
0x45FAb096...Cff2defdF
0 ETH0.000256542.28147051
Unstake205135652024-08-12 15:56:1151 days ago1723478171IN
0x45FAb096...Cff2defdF
0 ETH0.000536169.31657016
Stake204960212024-08-10 5:08:2353 days ago1723266503IN
0x45FAb096...Cff2defdF
0 ETH0.000144921.34601839
Unstake204628322024-08-05 14:02:1158 days ago1722866531IN
0x45FAb096...Cff2defdF
0 ETH0.005295968.96340188
Stake204482542024-08-03 13:16:1160 days ago1722690971IN
0x45FAb096...Cff2defdF
0 ETH0.000188071.74731325
Unstake204481282024-08-03 12:50:5960 days ago1722689459IN
0x45FAb096...Cff2defdF
0 ETH0.000124931.62693538
Unstake204241822024-07-31 4:35:5963 days ago1722400559IN
0x45FAb096...Cff2defdF
0 ETH0.000230552.75631345
Stake204162052024-07-30 1:48:4764 days ago1722304127IN
0x45FAb096...Cff2defdF
0 ETH0.000278022.51990481
Stake204146892024-07-29 20:43:3565 days ago1722285815IN
0x45FAb096...Cff2defdF
0 ETH0.000310572.76187738
Stake203947282024-07-27 1:53:4767 days ago1722045227IN
0x45FAb096...Cff2defdF
0 ETH0.000484544.5001829
Stake203772842024-07-24 15:25:5970 days ago1721834759IN
0x45FAb096...Cff2defdF
0 ETH0.0015785714.66079759
Stake203745282024-07-24 6:11:4770 days ago1721801507IN
0x45FAb096...Cff2defdF
0 ETH0.000295372.74325117
Unstake203737402024-07-24 3:33:4770 days ago1721792027IN
0x45FAb096...Cff2defdF
0 ETH0.000235963.9545542
Stake203715662024-07-23 20:16:5971 days ago1721765819IN
0x45FAb096...Cff2defdF
0 ETH0.000846067.85768652
Stake203553962024-07-21 14:05:2373 days ago1721570723IN
0x45FAb096...Cff2defdF
0 ETH0.000532974.94997348
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.