Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 48 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20075051 | 125 days ago | IN | 0 ETH | 0.00171993 | ||||
Withdraw | 20075021 | 125 days ago | IN | 0 ETH | 0.00176944 | ||||
Withdraw | 20075009 | 125 days ago | IN | 0 ETH | 0.00212604 | ||||
Update Pool | 20074942 | 125 days ago | IN | 0 ETH | 0.00133592 | ||||
Deposit And Lock | 20068083 | 126 days ago | IN | 0 ETH | 0.00070541 | ||||
Deposit And Lock | 20067649 | 126 days ago | IN | 0 ETH | 0.00091647 | ||||
Deposit And Lock | 20067578 | 126 days ago | IN | 0 ETH | 0.00109708 | ||||
Deposit And Lock | 20067569 | 126 days ago | IN | 0 ETH | 0.0016145 | ||||
Update Current P... | 20067109 | 126 days ago | IN | 0 ETH | 0.00023228 | ||||
Create Pool | 20067102 | 126 days ago | IN | 0 ETH | 0.00057467 | ||||
Withdraw | 19961795 | 141 days ago | IN | 0 ETH | 0.00121098 | ||||
Withdraw | 19960747 | 141 days ago | IN | 0 ETH | 0.00075368 | ||||
Withdraw | 19960294 | 141 days ago | IN | 0 ETH | 0.0006869 | ||||
Update Pool | 19960248 | 141 days ago | IN | 0 ETH | 0.00047407 | ||||
Deposit And Lock | 19960187 | 141 days ago | IN | 0 ETH | 0.00110527 | ||||
Deposit And Lock | 19960142 | 141 days ago | IN | 0 ETH | 0.00073513 | ||||
Deposit And Lock | 19960101 | 141 days ago | IN | 0 ETH | 0.00068423 | ||||
Deposit And Lock | 19960079 | 141 days ago | IN | 0 ETH | 0.00060636 | ||||
Deposit And Lock | 19960073 | 141 days ago | IN | 0 ETH | 0.00058537 | ||||
Deposit And Lock | 19960024 | 141 days ago | IN | 0 ETH | 0.00064022 | ||||
Deposit And Lock | 19959758 | 141 days ago | IN | 0 ETH | 0.00059053 | ||||
Deposit And Lock | 19959752 | 141 days ago | IN | 0 ETH | 0.00063732 | ||||
Deposit And Lock | 19959735 | 141 days ago | IN | 0 ETH | 0.00059764 | ||||
Deposit And Lock | 19959692 | 141 days ago | IN | 0 ETH | 0.00092953 | ||||
Deposit And Lock | 19959651 | 141 days ago | IN | 0 ETH | 0.00086184 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StakeManager
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 10000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract StakeManager is Ownable, ReentrancyGuard { IERC20 public maskToken; struct Pool { // pointAccStartBlock and pointAccEndBlock are set for external reading and // do not participate in business logic on contract. uint256 pointAccStartBlock; uint256 pointAccEndBlock; bool unlocked; bool stakingEnabled; } struct UserInfo { uint256 stakedAmount; // uint8 is enought for 256 pools uint8 poolId; } Pool[] public pools; mapping(address => UserInfo) public userInfos; uint8 public currentPoolId = 0; event Staked(address indexed account, uint8 indexed poolId, uint256 stakedAmount); event StakeChanged(address indexed account, uint8 indexed fromPoolId, uint8 indexed toPoolId); event unstaked(address indexed account, uint8 indexed poolId, uint256 unStakedAmount); event PoolCreated( uint8 indexed poolId, uint256 pointAccStartBlock, uint256 pointAccEndBlock, bool unlocked, bool stakingEnabled ); event PoolUpdated( uint8 indexed poolId, uint256 pointAccStartBlock, uint256 pointAccEndBlock, bool unlocked, bool stakingEnabled ); event CurrentPoolIdChanged(uint8 indexed fromPoolId, uint8 indexed toPoolId); constructor(address _maskToken) Ownable() { maskToken = IERC20(_maskToken); } function depositAndLock(uint256 _amount) public nonReentrant { Pool storage pool = pools[currentPoolId]; require(pool.stakingEnabled, "Staking is disabled for this pool"); require(maskToken.transferFrom(msg.sender, address(this), _amount), "Transfer failed"); userInfos[msg.sender].stakedAmount += _amount; // depositAndLock will always stake to currentPoolId // it will init userInfos[msg.sender].poolId for the first time // it will change userInfos[msg.sender].poolId to currntPoolId(which means new pool) when // user deposit after prev pool unlocked userInfos[msg.sender].poolId = currentPoolId; emit Staked(msg.sender, currentPoolId, _amount); } function withdraw(uint256 _amount) public nonReentrant { Pool storage pool = pools[userInfos[msg.sender].poolId]; require(pool.unlocked, "Pool is locked"); require(userInfos[msg.sender].stakedAmount >= _amount, "Insufficient balance"); userInfos[msg.sender].stakedAmount -= _amount; require(maskToken.transfer(msg.sender, _amount), "Transfer failed"); emit unstaked(msg.sender, userInfos[msg.sender].poolId, _amount); } function changePool() public nonReentrant { uint8 fromPoolId = userInfos[msg.sender].poolId; Pool storage fromPool = pools[userInfos[msg.sender].poolId]; Pool storage toPool = pools[currentPoolId]; require(fromPoolId != currentPoolId, "No need to change"); require(toPool.stakingEnabled, "Staking is disabled for this pool"); require(fromPool.unlocked, "From pool is locked"); require(userInfos[msg.sender].stakedAmount > 0, "No staked amount"); userInfos[msg.sender].poolId = currentPoolId; emit StakeChanged(msg.sender, fromPoolId, currentPoolId); } function createPool(Pool calldata _pool) public onlyOwner { pools.push(_pool); emit PoolCreated( uint8(pools.length - 1), _pool.pointAccStartBlock, _pool.pointAccEndBlock, _pool.unlocked, _pool.stakingEnabled ); } function updatePool(uint8 _poolId, Pool calldata _pool) public onlyOwner { Pool storage pool = pools[_poolId]; pool.pointAccStartBlock = _pool.pointAccStartBlock; pool.pointAccEndBlock = _pool.pointAccEndBlock; pool.unlocked = _pool.unlocked; pool.stakingEnabled = _pool.stakingEnabled; emit PoolUpdated( _poolId, _pool.pointAccStartBlock, _pool.pointAccEndBlock, _pool.unlocked, _pool.stakingEnabled ); } function updateCurrentPoolId(uint8 _poolId) public onlyOwner { uint8 fromPoolId = currentPoolId; Pool storage fromPool = pools[fromPoolId]; require(fromPool.unlocked, "From pool is locked"); Pool storage pool = pools[_poolId]; require(pool.stakingEnabled, "Staking is disabled for this pool"); currentPoolId = _poolId; emit CurrentPoolIdChanged(fromPoolId, _poolId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 (last updated v4.9.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. 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 { 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.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "forge-std/=node_modules/forge-std/src/", "ds-test/=node_modules/ds-test/src/", "murky/=lib/murky/src/", "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/", "@ensdomains/=node_modules/@ensdomains/", "@nomiclabs/=node_modules/@nomiclabs/", "@solidity-parser/=node_modules/@solidity-parser/", "erc4626-tests/=lib/murky/lib/openzeppelin-contracts/lib/erc4626-tests/", "eth-gas-reporter/=node_modules/eth-gas-reporter/", "hardhat-deploy/=node_modules/hardhat-deploy/", "hardhat/=node_modules/hardhat/", "openzeppelin-contracts/=lib/murky/lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "none", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_maskToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"fromPoolId","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"toPoolId","type":"uint8"}],"name":"CurrentPoolIdChanged","type":"event"},{"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":"uint8","name":"poolId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"pointAccStartBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pointAccEndBlock","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unlocked","type":"bool"},{"indexed":false,"internalType":"bool","name":"stakingEnabled","type":"bool"}],"name":"PoolCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"poolId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"pointAccStartBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pointAccEndBlock","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unlocked","type":"bool"},{"indexed":false,"internalType":"bool","name":"stakingEnabled","type":"bool"}],"name":"PoolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint8","name":"fromPoolId","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"toPoolId","type":"uint8"}],"name":"StakeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint8","name":"poolId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"stakedAmount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint8","name":"poolId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"unStakedAmount","type":"uint256"}],"name":"unstaked","type":"event"},{"inputs":[],"name":"changePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"pointAccStartBlock","type":"uint256"},{"internalType":"uint256","name":"pointAccEndBlock","type":"uint256"},{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"bool","name":"stakingEnabled","type":"bool"}],"internalType":"struct StakeManager.Pool","name":"_pool","type":"tuple"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPoolId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositAndLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maskToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"uint256","name":"pointAccStartBlock","type":"uint256"},{"internalType":"uint256","name":"pointAccEndBlock","type":"uint256"},{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"bool","name":"stakingEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_poolId","type":"uint8"}],"name":"updateCurrentPoolId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_poolId","type":"uint8"},{"components":[{"internalType":"uint256","name":"pointAccStartBlock","type":"uint256"},{"internalType":"uint256","name":"pointAccEndBlock","type":"uint256"},{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"bool","name":"stakingEnabled","type":"bool"}],"internalType":"struct StakeManager.Pool","name":"_pool","type":"tuple"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint8","name":"poolId","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526005805460ff1916905534801561001a57600080fd5b50604051611293380380611293833981016040819052610039916100bb565b6100423361006b565b60018055600280546001600160a01b0319166001600160a01b03929092169190911790556100eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100cd57600080fd5b81516001600160a01b03811681146100e457600080fd5b9392505050565b611199806100fa6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063c709af3011610066578063c709af301461021a578063ebc5163b14610222578063ee5281a414610241578063f2fde38b1461025457600080fd5b80638da5cb5b14610180578063ac4afa38146101bf578063b3ac80e7146101fa57600080fd5b806343b0215f116100bd57806343b0215f1461011f5780635efbfbc214610165578063715018a61461017857600080fd5b80631a48c59d146100e45780632e1a7d4d146100f957806333e6c5091461010c575b600080fd5b6100f76100f2366004610f72565b610267565b005b6100f7610107366004610f94565b61040d565b6100f761011a366004610f94565b61066d565b61014961012d366004610fad565b6004602052600090815260409020805460019091015460ff1682565b6040805192835260ff9091166020830152015b60405180910390f35b6100f7610173366004610ffb565b6108b2565b6100f761097e565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015c565b6101d26101cd366004610f94565b610992565b604080519485526020850193909352901515918301919091521515606082015260800161015c565b60025461019a9073ffffffffffffffffffffffffffffffffffffffff1681565b6100f76109d1565b60055461022f9060ff1681565b60405160ff909116815260200161015c565b6100f761024f366004611017565b610c4d565b6100f7610262366004610fad565b610d8d565b61026f610e27565b6005546003805460ff9092169160009190839081106102905761029061104b565b60009182526020909120600390910201600281015490915060ff166102fc5760405162461bcd60e51b815260206004820152601360248201527f46726f6d20706f6f6c206973206c6f636b65640000000000000000000000000060448201526064015b60405180910390fd5b600060038460ff16815481106103145761031461104b565b906000526020600020906003020190508060020160019054906101000a900460ff166103a85760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff86811691821790925560405190918516907fcd9e3a9fc5d49a02899028ca214c2a620c29bfd5df0e026f96b53818ee52eebf90600090a350505050565b610415610e8e565b3360009081526004602052604081206001015460038054909160ff169081106104405761044061104b565b60009182526020909120600390910201600281015490915060ff166104a75760405162461bcd60e51b815260206004820152600e60248201527f506f6f6c206973206c6f636b656400000000000000000000000000000000000060448201526064016102f3565b336000908152600460205260409020548211156105065760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e636500000000000000000000000060448201526064016102f3565b33600090815260046020526040812080548492906105259084906110a9565b90915550506002546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810184905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb906044016020604051808303816000875af11580156105a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c591906110d0565b6106115760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c6564000000000000000000000000000000000060448201526064016102f3565b3360008181526004602090815260409182902060010154915185815260ff90921692917fe192c5fc24943f02a0087a1ed4eec88da0528a90594ecc26e65afb58cf9ff77991015b60405180910390a35061066a60018055565b50565b610675610e8e565b6005546003805460009260ff169081106106915761069161104b565b906000526020600020906003020190508060020160019054906101000a900460ff166107255760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b6002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c691906110d0565b6108125760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c6564000000000000000000000000000000000060448201526064016102f3565b33600090815260046020526040812080548492906108319084906110ed565b909155505060058054336000818152600460205260409081902060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff9485161790559254925192909116917f3cf14181ae25669a913d72411736fc5c01f538fa503e963b0b2e56bcefb3edaf906106589086815260200190565b6108ba610e27565b6003805460018101825560008290528291027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016108f88282611100565b5050600354610909906001906110a9565b60ff167f520bb3a01a1e5d9cd018e9a16a76ce00c5f154d89efc7f97841d92576381cb6382356020840135610944606086016040870161116f565b610954608087016060880161116f565b6040805194855260208501939093529015158383015215156060830152519081900360800190a250565b610986610e27565b6109906000610ee7565b565b600381815481106109a257600080fd5b600091825260209091206003909102018054600182015460029092015490925060ff8082169161010090041684565b6109d9610e8e565b336000908152600460205260408120600101546003805460ff909216929183908110610a0757610a0761104b565b600091825260208220600554600380549381029092019450909160ff909116908110610a3557610a3561104b565b60009182526020909120600554600390920201915060ff90811690841603610a9f5760405162461bcd60e51b815260206004820152601160248201527f4e6f206e65656420746f206368616e676500000000000000000000000000000060448201526064016102f3565b6002810154610100900460ff16610b1e5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b600282015460ff16610b725760405162461bcd60e51b815260206004820152601360248201527f46726f6d20706f6f6c206973206c6f636b65640000000000000000000000000060448201526064016102f3565b33600090815260046020526040902054610bce5760405162461bcd60e51b815260206004820152601060248201527f4e6f207374616b656420616d6f756e740000000000000000000000000000000060448201526064016102f3565b600580543360008181526004602052604080822060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff9586161790559354935193831693928716927f5052ba88e599c0b38a89b50d4d4372e8a97cc1a7e6ec9f934c1815dee60794a89190a450505061099060018055565b610c55610e27565b600060038360ff1681548110610c6d57610c6d61104b565b600091825260209182902084356003909202019081559083013560018201559050610c9e606083016040840161116f565b6002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055610cdf608083016060840161116f565b600282018054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90921691909117905560ff83167efe5af32b10cd2d0fad7fed903e0658fed5141084280a27c37519a64e7a3f3f83356020850135610d51606087016040880161116f565b610d61608088016060890161116f565b6040805194855260208501939093529015158383015215156060830152519081900360800190a2505050565b610d95610e27565b73ffffffffffffffffffffffffffffffffffffffff8116610e1e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102f3565b61066a81610ee7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f3565b600260015403610ee05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f3565b6002600155565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803560ff81168114610f6d57600080fd5b919050565b600060208284031215610f8457600080fd5b610f8d82610f5c565b9392505050565b600060208284031215610fa657600080fd5b5035919050565b600060208284031215610fbf57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610f8d57600080fd5b600060808284031215610ff557600080fd5b50919050565b60006080828403121561100d57600080fd5b610f8d8383610fe3565b60008060a0838503121561102a57600080fd5b61103383610f5c565b91506110428460208501610fe3565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156110bc576110bc61107a565b92915050565b801515811461066a57600080fd5b6000602082840312156110e257600080fd5b8151610f8d816110c2565b808201808211156110bc576110bc61107a565b8135815560208201356001820155600281016040830135611120816110c2565b81546060850135611130816110c2565b61ff0081151560081b1660ff841515167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000841617178455505050505050565b60006020828403121561118157600080fd5b8135610f8d816110c256fea164736f6c6343000817000a00000000000000000000000069af81e73a73b40adf4f3d4223cd9b1ece623074
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063c709af3011610066578063c709af301461021a578063ebc5163b14610222578063ee5281a414610241578063f2fde38b1461025457600080fd5b80638da5cb5b14610180578063ac4afa38146101bf578063b3ac80e7146101fa57600080fd5b806343b0215f116100bd57806343b0215f1461011f5780635efbfbc214610165578063715018a61461017857600080fd5b80631a48c59d146100e45780632e1a7d4d146100f957806333e6c5091461010c575b600080fd5b6100f76100f2366004610f72565b610267565b005b6100f7610107366004610f94565b61040d565b6100f761011a366004610f94565b61066d565b61014961012d366004610fad565b6004602052600090815260409020805460019091015460ff1682565b6040805192835260ff9091166020830152015b60405180910390f35b6100f7610173366004610ffb565b6108b2565b6100f761097e565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015c565b6101d26101cd366004610f94565b610992565b604080519485526020850193909352901515918301919091521515606082015260800161015c565b60025461019a9073ffffffffffffffffffffffffffffffffffffffff1681565b6100f76109d1565b60055461022f9060ff1681565b60405160ff909116815260200161015c565b6100f761024f366004611017565b610c4d565b6100f7610262366004610fad565b610d8d565b61026f610e27565b6005546003805460ff9092169160009190839081106102905761029061104b565b60009182526020909120600390910201600281015490915060ff166102fc5760405162461bcd60e51b815260206004820152601360248201527f46726f6d20706f6f6c206973206c6f636b65640000000000000000000000000060448201526064015b60405180910390fd5b600060038460ff16815481106103145761031461104b565b906000526020600020906003020190508060020160019054906101000a900460ff166103a85760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff86811691821790925560405190918516907fcd9e3a9fc5d49a02899028ca214c2a620c29bfd5df0e026f96b53818ee52eebf90600090a350505050565b610415610e8e565b3360009081526004602052604081206001015460038054909160ff169081106104405761044061104b565b60009182526020909120600390910201600281015490915060ff166104a75760405162461bcd60e51b815260206004820152600e60248201527f506f6f6c206973206c6f636b656400000000000000000000000000000000000060448201526064016102f3565b336000908152600460205260409020548211156105065760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e636500000000000000000000000060448201526064016102f3565b33600090815260046020526040812080548492906105259084906110a9565b90915550506002546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810184905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb906044016020604051808303816000875af11580156105a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c591906110d0565b6106115760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c6564000000000000000000000000000000000060448201526064016102f3565b3360008181526004602090815260409182902060010154915185815260ff90921692917fe192c5fc24943f02a0087a1ed4eec88da0528a90594ecc26e65afb58cf9ff77991015b60405180910390a35061066a60018055565b50565b610675610e8e565b6005546003805460009260ff169081106106915761069161104b565b906000526020600020906003020190508060020160019054906101000a900460ff166107255760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b6002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c691906110d0565b6108125760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c6564000000000000000000000000000000000060448201526064016102f3565b33600090815260046020526040812080548492906108319084906110ed565b909155505060058054336000818152600460205260409081902060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff9485161790559254925192909116917f3cf14181ae25669a913d72411736fc5c01f538fa503e963b0b2e56bcefb3edaf906106589086815260200190565b6108ba610e27565b6003805460018101825560008290528291027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016108f88282611100565b5050600354610909906001906110a9565b60ff167f520bb3a01a1e5d9cd018e9a16a76ce00c5f154d89efc7f97841d92576381cb6382356020840135610944606086016040870161116f565b610954608087016060880161116f565b6040805194855260208501939093529015158383015215156060830152519081900360800190a250565b610986610e27565b6109906000610ee7565b565b600381815481106109a257600080fd5b600091825260209091206003909102018054600182015460029092015490925060ff8082169161010090041684565b6109d9610e8e565b336000908152600460205260408120600101546003805460ff909216929183908110610a0757610a0761104b565b600091825260208220600554600380549381029092019450909160ff909116908110610a3557610a3561104b565b60009182526020909120600554600390920201915060ff90811690841603610a9f5760405162461bcd60e51b815260206004820152601160248201527f4e6f206e65656420746f206368616e676500000000000000000000000000000060448201526064016102f3565b6002810154610100900460ff16610b1e5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e672069732064697361626c656420666f72207468697320706f6f60448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084016102f3565b600282015460ff16610b725760405162461bcd60e51b815260206004820152601360248201527f46726f6d20706f6f6c206973206c6f636b65640000000000000000000000000060448201526064016102f3565b33600090815260046020526040902054610bce5760405162461bcd60e51b815260206004820152601060248201527f4e6f207374616b656420616d6f756e740000000000000000000000000000000060448201526064016102f3565b600580543360008181526004602052604080822060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff9586161790559354935193831693928716927f5052ba88e599c0b38a89b50d4d4372e8a97cc1a7e6ec9f934c1815dee60794a89190a450505061099060018055565b610c55610e27565b600060038360ff1681548110610c6d57610c6d61104b565b600091825260209182902084356003909202019081559083013560018201559050610c9e606083016040840161116f565b6002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055610cdf608083016060840161116f565b600282018054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90921691909117905560ff83167efe5af32b10cd2d0fad7fed903e0658fed5141084280a27c37519a64e7a3f3f83356020850135610d51606087016040880161116f565b610d61608088016060890161116f565b6040805194855260208501939093529015158383015215156060830152519081900360800190a2505050565b610d95610e27565b73ffffffffffffffffffffffffffffffffffffffff8116610e1e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102f3565b61066a81610ee7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f3565b600260015403610ee05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f3565b6002600155565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803560ff81168114610f6d57600080fd5b919050565b600060208284031215610f8457600080fd5b610f8d82610f5c565b9392505050565b600060208284031215610fa657600080fd5b5035919050565b600060208284031215610fbf57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610f8d57600080fd5b600060808284031215610ff557600080fd5b50919050565b60006080828403121561100d57600080fd5b610f8d8383610fe3565b60008060a0838503121561102a57600080fd5b61103383610f5c565b91506110428460208501610fe3565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156110bc576110bc61107a565b92915050565b801515811461066a57600080fd5b6000602082840312156110e257600080fd5b8151610f8d816110c2565b808201808211156110bc576110bc61107a565b8135815560208201356001820155600281016040830135611120816110c2565b81546060850135611130816110c2565b61ff0081151560081b1660ff841515167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000841617178455505050505050565b60006020828403121561118157600080fd5b8135610f8d816110c256fea164736f6c6343000817000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000069af81e73a73b40adf4f3d4223cd9b1ece623074
-----Decoded View---------------
Arg [0] : _maskToken (address): 0x69af81e73A73B40adF4f3d4223Cd9b1ECE623074
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000069af81e73a73b40adf4f3d4223cd9b1ece623074
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.