More Info
Private Name Tags
ContractCreator
Multichain Info
Latest 25 from a total of 160 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 20857485 | 3 days ago | IN | 0 ETH | 0.00089282 | ||||
Unstake | 20846710 | 4 days ago | IN | 0 ETH | 0.00042976 | ||||
Unstake | 20800865 | 11 days ago | IN | 0 ETH | 0.0007536 | ||||
Stake | 20785639 | 13 days ago | IN | 0 ETH | 0.00201516 | ||||
Stake | 20736759 | 20 days ago | IN | 0 ETH | 0.00076243 | ||||
Unstake | 20717970 | 22 days ago | IN | 0 ETH | 0.00011364 | ||||
Unstake | 20662850 | 30 days ago | IN | 0 ETH | 0.0002286 | ||||
Stake | 20616309 | 36 days ago | IN | 0 ETH | 0.0000511 | ||||
Unstake | 20570611 | 43 days ago | IN | 0 ETH | 0.00033356 | ||||
Stake | 20558035 | 45 days ago | IN | 0 ETH | 0.00008702 | ||||
Stake | 20531394 | 48 days ago | IN | 0 ETH | 0.00025654 | ||||
Unstake | 20513565 | 51 days ago | IN | 0 ETH | 0.00053616 | ||||
Stake | 20496021 | 53 days ago | IN | 0 ETH | 0.00014492 | ||||
Unstake | 20462832 | 58 days ago | IN | 0 ETH | 0.0052959 | ||||
Stake | 20448254 | 60 days ago | IN | 0 ETH | 0.00018807 | ||||
Unstake | 20448128 | 60 days ago | IN | 0 ETH | 0.00012493 | ||||
Unstake | 20424182 | 63 days ago | IN | 0 ETH | 0.00023055 | ||||
Stake | 20416205 | 64 days ago | IN | 0 ETH | 0.00027802 | ||||
Stake | 20414689 | 65 days ago | IN | 0 ETH | 0.00031057 | ||||
Stake | 20394728 | 67 days ago | IN | 0 ETH | 0.00048454 | ||||
Stake | 20377284 | 70 days ago | IN | 0 ETH | 0.00157857 | ||||
Stake | 20374528 | 70 days ago | IN | 0 ETH | 0.00029537 | ||||
Unstake | 20373740 | 70 days ago | IN | 0 ETH | 0.00023596 | ||||
Stake | 20371566 | 71 days ago | IN | 0 ETH | 0.00084606 | ||||
Stake | 20355396 | 73 days ago | IN | 0 ETH | 0.00053297 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Staking
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
// 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); } }
// 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); }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
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.