More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,024 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19363500 | 239 days ago | IN | 0 ETH | 0.01219862 | ||||
Withdraw | 19258336 | 254 days ago | IN | 0 ETH | 0.00159875 | ||||
Withdraw | 19258329 | 254 days ago | IN | 0 ETH | 0.00176631 | ||||
Withdraw | 16938966 | 579 days ago | IN | 0 ETH | 0.00262993 | ||||
Withdraw | 16291144 | 670 days ago | IN | 0 ETH | 0.00138841 | ||||
Withdraw | 16291135 | 670 days ago | IN | 0 ETH | 0.00133279 | ||||
Withdraw | 16291127 | 670 days ago | IN | 0 ETH | 0.00141529 | ||||
Withdraw | 16236932 | 678 days ago | IN | 0 ETH | 0.00122947 | ||||
Withdraw | 15974778 | 714 days ago | IN | 0 ETH | 0.00139532 | ||||
Withdraw | 15880677 | 727 days ago | IN | 0 ETH | 0.0009297 | ||||
Withdraw | 15835922 | 734 days ago | IN | 0 ETH | 0.0009297 | ||||
Withdraw | 15813036 | 737 days ago | IN | 0 ETH | 0.0010119 | ||||
Withdraw | 15774126 | 742 days ago | IN | 0 ETH | 0.00144975 | ||||
Withdraw | 15718548 | 750 days ago | IN | 0 ETH | 0.00254664 | ||||
Withdraw | 15718542 | 750 days ago | IN | 0 ETH | 0.00239446 | ||||
Withdraw | 15711838 | 751 days ago | IN | 0 ETH | 0.0015495 | ||||
Withdraw | 15702844 | 752 days ago | IN | 0 ETH | 0.0006198 | ||||
Withdraw | 15702377 | 752 days ago | IN | 0 ETH | 0.00066202 | ||||
Withdraw | 15695187 | 753 days ago | IN | 0 ETH | 0.00023608 | ||||
Withdraw | 15695185 | 753 days ago | IN | 0 ETH | 0.00046423 | ||||
Withdraw | 15695025 | 753 days ago | IN | 0 ETH | 0.00037467 | ||||
Withdraw | 15694969 | 753 days ago | IN | 0 ETH | 0.00042256 | ||||
Withdraw | 15634310 | 762 days ago | IN | 0 ETH | 0.00080798 | ||||
Withdraw | 15634291 | 762 days ago | IN | 0 ETH | 0.00102347 | ||||
Withdraw | 15620888 | 764 days ago | IN | 0 ETH | 0.00077475 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LatticeStakingPool
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 300 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.11; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract LatticeStakingPool is ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; struct StakingPool { uint256 maxStakingAmountPerUser; uint256 totalAmountStaked; address[] usersStaked; } struct Project { string name; uint256 totalAmountStaked; uint256 numberOfPools; uint256 startTimestamp; uint256 endTimestamp; } struct UserInfo { address userAddress; uint256 poolId; uint256 percentageOfTokensStakedInPool; uint256 amountOfTokensStakedInPool; } IERC20 public stakingToken; address private owner; Project[] public projects; /// @notice ProjectID => Pool ID => User Address => amountStaked mapping(uint256 => mapping(uint256 => mapping(address => uint256))) public userStakedAmount; /// @notice ProjectID => Pool ID => User Address => didUserWithdrawFunds mapping(uint256 => mapping(uint256 => mapping(address => bool))) public didUserWithdrawFunds; /// @notice ProjectID => Pool ID => StakingPool mapping(uint256 => mapping(uint256 => StakingPool)) public stakingPoolInfo; /// @notice ProjectName => isProjectNameTaken mapping(string => bool) public isProjectNameTaken; /// @notice ProjectName => ProjectID mapping(string => uint256) public projectNameToProjectId; event Deposit( address indexed _user, uint256 indexed _projectId, uint256 indexed _poolId, uint256 _amount ); event Withdraw( address indexed _user, uint256 indexed _projectId, uint256 indexed _poolId, uint256 _amount ); event PoolAdded(uint256 indexed _projectId, uint256 indexed _poolId); event ProjectDisabled(uint256 indexed _projectId); event ProjectAdded(uint256 indexed _projectId, string _projectName); constructor(IERC20 _stakingToken) { require( address(_stakingToken) != address(0), "constructor: _stakingToken must not be zero address" ); owner = msg.sender; stakingToken = _stakingToken; } function addProject( string memory _name, uint256 _startTimestamp, uint256 _endTimestamp ) external { require(msg.sender == owner, "addNewProject: Caller is not the owner"); require( bytes(_name).length > 0, "addNewProject: Project name cannot be empty string." ); require( _startTimestamp >= block.timestamp, "addNewProject: startTimestamp is less than the current block timestamp." ); require( _startTimestamp < _endTimestamp, "addNewProject: startTimestamp is greater than or equal to the endTimestamp." ); require( !isProjectNameTaken[_name], "addNewProject: project name already taken." ); Project memory project; project.name = _name; project.startTimestamp = _startTimestamp; project.endTimestamp = _endTimestamp; project.numberOfPools = 0; project.totalAmountStaked = 0; uint256 projectsLength = projects.length; projects.push(project); projectNameToProjectId[_name] = projectsLength; isProjectNameTaken[_name] = true; emit ProjectAdded(projectsLength, _name); } function addStakingPool( uint256 _projectId, uint256 _maxStakingAmountPerUser ) external { require( msg.sender == owner, "addStakingPool: Caller is not the owner." ); require( _projectId < projects.length, "addStakingPool: Invalid project ID." ); StakingPool memory stakingPool; stakingPool.maxStakingAmountPerUser = _maxStakingAmountPerUser; stakingPool.totalAmountStaked = 0; uint256 numberOfPoolsInProject = projects[_projectId].numberOfPools; stakingPoolInfo[_projectId][numberOfPoolsInProject] = stakingPool; projects[_projectId].numberOfPools = projects[_projectId].numberOfPools + 1; emit PoolAdded(_projectId, projects[_projectId].numberOfPools); } function disableProject(uint256 _projectId) external { require(msg.sender == owner, "disableProject: Caller is not the owner"); require( _projectId < projects.length, "disableProject: Invalid project ID." ); projects[_projectId].endTimestamp = block.timestamp; emit ProjectDisabled(_projectId); } function deposit( uint256 _projectId, uint256 _poolId, uint256 _amount ) external nonReentrant { require(_amount > 0, "deposit: Amount not specified."); require(_projectId < projects.length, "deposit: Invalid project ID."); require( _poolId < projects[_projectId].numberOfPools, "deposit: Invalid pool ID." ); require( block.timestamp <= projects[_projectId].endTimestamp, "deposit: Staking no longer permitted for this project." ); require( block.timestamp >= projects[_projectId].startTimestamp, "deposit: Staking is not yet permitted for this project." ); uint256 _userStakedAmount = userStakedAmount[_projectId][_poolId][ msg.sender ]; if (stakingPoolInfo[_projectId][_poolId].maxStakingAmountPerUser > 0) { require( _userStakedAmount.add(_amount) <= stakingPoolInfo[_projectId][_poolId] .maxStakingAmountPerUser, "deposit: Cannot exceed max staking amount per user." ); } if (userStakedAmount[_projectId][_poolId][msg.sender] == 0) { stakingPoolInfo[_projectId][_poolId].usersStaked.push(msg.sender); } projects[_projectId].totalAmountStaked = projects[_projectId] .totalAmountStaked .add(_amount); stakingPoolInfo[_projectId][_poolId] .totalAmountStaked = stakingPoolInfo[_projectId][_poolId] .totalAmountStaked .add(_amount); userStakedAmount[_projectId][_poolId][msg.sender] = userStakedAmount[ _projectId ][_poolId][msg.sender].add(_amount); stakingToken.safeTransferFrom( address(msg.sender), address(this), _amount ); emit Deposit(msg.sender, _projectId, _poolId, _amount); } function withdraw(uint256 _projectId, uint256 _poolId) external nonReentrant { require(_projectId < projects.length, "withdraw: Invalid project ID."); require( _poolId < projects[_projectId].numberOfPools, "withdraw: Invalid pool ID." ); require( block.timestamp > projects[_projectId].endTimestamp, "withdraw: Not yet permitted." ); require( !didUserWithdrawFunds[_projectId][_poolId][msg.sender], "withdraw: User has already withdrawn funds for this pool." ); uint256 _userStakedAmount = userStakedAmount[_projectId][_poolId][ msg.sender ]; require(_userStakedAmount > 0, "withdraw: No stake to withdraw."); didUserWithdrawFunds[_projectId][_poolId][msg.sender] = true; stakingToken.safeTransfer(msg.sender, _userStakedAmount); emit Withdraw(msg.sender, _projectId, _poolId, _userStakedAmount); } function getTotalStakingInfoForProjectPerPool( uint256 _projectId, uint256 _poolId, uint256 _pageNumber, uint256 _pageSize ) external view returns (UserInfo[] memory) { require( msg.sender == owner, "getTotalStakingInfoForProjectPerPool: Caller is not the owner." ); require( _projectId < projects.length, "getTotalStakingInfoForProjectPerPool: Invalid project ID." ); require( _poolId < projects[_projectId].numberOfPools, "getTotalStakingInfoForProjectPerPool: Invalid pool ID." ); uint256 _usersStakedInPool = stakingPoolInfo[_projectId][_poolId] .usersStaked .length; require( _usersStakedInPool > 0, "getTotalStakingInfoForProjectPerPool: Nobody staked in this pool." ); require( _pageSize > 0, "getTotalStakingInfoForProjectPerPool: Invalid page size." ); require( _pageNumber > 0, "getTotalStakingInfoForProjectPerPool: Invalid page number." ); uint256 _startIndex = _pageNumber.sub(1).mul(_pageSize); if (_pageNumber > 1) { require( _startIndex < _usersStakedInPool, "getTotalStakingInfoForProjectPerPool: Specified parameters exceed number of users in the pool." ); } uint256 _endIndex = _pageNumber.mul(_pageSize); if (_endIndex > _usersStakedInPool) { _endIndex = _usersStakedInPool; } UserInfo[] memory _result = new UserInfo[](_endIndex.sub(_startIndex)); uint256 _resultIndex = 0; for (uint256 i = _startIndex; i < _endIndex; i++) { UserInfo memory _userInfo; _userInfo.userAddress = stakingPoolInfo[_projectId][_poolId] .usersStaked[i]; _userInfo.poolId = _poolId; _userInfo .percentageOfTokensStakedInPool = getPercentageAmountStakedByUserInPool( _projectId, _poolId, _userInfo.userAddress ); _userInfo.amountOfTokensStakedInPool = getAmountStakedByUserInPool( _projectId, _poolId, _userInfo.userAddress ); _result[_resultIndex] = _userInfo; _resultIndex = _resultIndex + 1; } return _result; } function numberOfProjects() external view returns (uint256) { return projects.length; } function numberOfPools(uint256 _projectId) external view returns (uint256) { require( _projectId < projects.length, "numberOfPools: Invalid project ID." ); return projects[_projectId].numberOfPools; } function getTotalAmountStakedInProject(uint256 _projectId) external view returns (uint256) { require( _projectId < projects.length, "getTotalAmountStakedInProject: Invalid project ID." ); return projects[_projectId].totalAmountStaked; } function getTotalAmountStakedInPool(uint256 _projectId, uint256 _poolId) external view returns (uint256) { require( _projectId < projects.length, "getTotalAmountStakedInPool: Invalid project ID." ); require( _poolId < projects[_projectId].numberOfPools, "getTotalAmountStakedInPool: Invalid pool ID." ); return stakingPoolInfo[_projectId][_poolId].totalAmountStaked; } function getAmountStakedByUserInPool( uint256 _projectId, uint256 _poolId, address _address ) public view returns (uint256) { require( _projectId < projects.length, "getAmountStakedByUserInPool: Invalid project ID." ); require( _poolId < projects[_projectId].numberOfPools, "getAmountStakedByUserInPool: Invalid pool ID." ); return userStakedAmount[_projectId][_poolId][_address]; } function getPercentageAmountStakedByUserInPool( uint256 _projectId, uint256 _poolId, address _address ) public view returns (uint256) { require( _projectId < projects.length, "getPercentageAmountStakedByUserInPool: Invalid project ID." ); require( _poolId < projects[_projectId].numberOfPools, "getPercentageAmountStakedByUserInPool: Invalid pool ID." ); return userStakedAmount[_projectId][_poolId][_address].mul(1e8).div( stakingPoolInfo[_projectId][_poolId].totalAmountStaked ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 300 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_projectName","type":"string"}],"name":"ProjectAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"ProjectDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxStakingAmountPerUser","type":"uint256"}],"name":"addStakingPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"didUserWithdrawFunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"disableProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getAmountStakedByUserInPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getPercentageAmountStakedByUserInPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"getTotalAmountStakedInPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getTotalAmountStakedInProject","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_pageNumber","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"}],"name":"getTotalStakingInfoForProjectPerPool","outputs":[{"components":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint256","name":"poolId","type":"uint256"},{"internalType":"uint256","name":"percentageOfTokensStakedInPool","type":"uint256"},{"internalType":"uint256","name":"amountOfTokensStakedInPool","type":"uint256"}],"internalType":"struct LatticeStakingPool.UserInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"isProjectNameTaken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"numberOfPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfProjects","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"projectNameToProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projects","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"totalAmountStaked","type":"uint256"},{"internalType":"uint256","name":"numberOfPools","type":"uint256"},{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"endTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingPoolInfo","outputs":[{"internalType":"uint256","name":"maxStakingAmountPerUser","type":"uint256"},{"internalType":"uint256","name":"totalAmountStaked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620026e0380380620026e08339810160408190526200003491620000ee565b60016000556001600160a01b038116620000ba5760405162461bcd60e51b815260206004820152603360248201527f636f6e7374727563746f723a205f7374616b696e67546f6b656e206d7573742060448201527f6e6f74206265207a65726f206164647265737300000000000000000000000000606482015260840160405180910390fd5b60028054336001600160a01b031991821617909155600180549091166001600160a01b039290921691909117905562000120565b6000602082840312156200010157600080fd5b81516001600160a01b03811681146200011957600080fd5b9392505050565b6125b080620001306000396000f3fe608060405234801561001057600080fd5b50600436106101205760003560e01c806368daaa02116100ad578063a4760f9811610071578063a4760f9814610330578063aaeca4e814610343578063d5a8ef2f14610356578063db5e4c7f14610369578063f1ac7ffc1461037157600080fd5b806368daaa021461024257806372f702f31461026d578063851a133414610298578063a02c2f90146102c9578063a13a7c731461031057600080fd5b8063107046bd116100f4578063107046bd146101b75780633ae10ec1146101db578063426d3a8a146101ee578063441a3e701461021c578063620e97551461022f57600080fd5b8062aeef8a1461012557806306e638601461013a5780630dd64841146101835780630e02d665146101a4575b600080fd5b61013861013336600461210f565b610384565b005b61016e61014836600461213b565b600560209081526000938452604080852082529284528284209052825290205460ff1681565b60405190151581526020015b60405180910390f35b61019661019136600461213b565b6108a5565b60405190815260200161017a565b6101966101b2366004612180565b610a1d565b6101ca6101c53660046121a2565b610b32565b60405161017a959493929190612213565b6101386101e93660046122ed565b610c00565b61016e6101fc36600461233b565b805160208183018101805160078252928201919093012091525460ff1681565b61013861022a366004612180565b610fc4565b61019661023d3660046121a2565b6112f1565b61019661025036600461233b565b805160208183018101805160088252928201919093012091525481565b600154610280906001600160a01b031681565b6040516001600160a01b03909116815260200161017a565b6101966102a636600461213b565b600460209081526000938452604080852082529284528284209052825290205481565b6102fb6102d7366004612180565b60066020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161017a565b61032361031e366004612378565b61137c565b60405161017a91906123aa565b61019661033e3660046121a2565b61187d565b61019661035136600461213b565b611918565b610138610364366004612180565b611a3e565b600354610196565b61013861037f3660046121a2565b611c52565b600260005414156103dc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000558061042e5760405162461bcd60e51b815260206004820152601e60248201527f6465706f7369743a20416d6f756e74206e6f74207370656369666965642e000060448201526064016103d3565b600354831061047f5760405162461bcd60e51b815260206004820152601c60248201527f6465706f7369743a20496e76616c69642070726f6a6563742049442e0000000060448201526064016103d3565b6003838154811061049257610492612417565b90600052602060002090600502016002015482106104f25760405162461bcd60e51b815260206004820152601960248201527f6465706f7369743a20496e76616c696420706f6f6c2049442e0000000000000060448201526064016103d3565b6003838154811061050557610505612417565b90600052602060002090600502016004015442111561058c5760405162461bcd60e51b815260206004820152603660248201527f6465706f7369743a205374616b696e67206e6f206c6f6e676572207065726d6960448201527f7474656420666f7220746869732070726f6a6563742e0000000000000000000060648201526084016103d3565b6003838154811061059f5761059f612417565b9060005260206000209060050201600301544210156106265760405162461bcd60e51b815260206004820152603760248201527f6465706f7369743a205374616b696e67206973206e6f7420796574207065726d60448201527f697474656420666f7220746869732070726f6a6563742e00000000000000000060648201526084016103d3565b600083815260046020908152604080832085845282528083203384528252808320548684526006835281842086855290925290912054156106ef5760008481526006602090815260408083208684529091529020546106858284611d6e565b11156106ef5760405162461bcd60e51b815260206004820152603360248201527f6465706f7369743a2043616e6e6f7420657863656564206d6178207374616b6960448201527237339030b6b7bab73a103832b9103ab9b2b91760691b60648201526084016103d3565b6000848152600460209081526040808320868452825280832033845290915290205461074f57600084815260066020908152604080832086845282528220600201805460018101825590835291200180546001600160a01b031916331790555b610786826003868154811061076657610766612417565b906000526020600020906005020160010154611d6e90919063ffffffff16565b6003858154811061079957610799612417565b60009182526020808320600160059093020182019390935586825260068352604080832087845290935291902001546107d29083611d6e565b6000858152600660209081526040808320878452825280832060010193909355868252600481528282208683528152828220338352905220546108159083611d6e565b6000858152600460209081526040808320878452825280832033808552925290912091909155600154610855916001600160a01b03909116903085611d7a565b8284336001600160a01b03167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e8560405161089291815260200190565b60405180910390a4505060016000555050565b600354600090841061091f5760405162461bcd60e51b815260206004820152603a60248201527f67657450657263656e74616765416d6f756e745374616b65644279557365724960448201527f6e506f6f6c3a20496e76616c69642070726f6a6563742049442e00000000000060648201526084016103d3565b6003848154811061093257610932612417565b90600052602060002090600502016002015483106109b85760405162461bcd60e51b815260206004820152603760248201527f67657450657263656e74616765416d6f756e745374616b65644279557365724960448201527f6e506f6f6c3a20496e76616c696420706f6f6c2049442e00000000000000000060648201526084016103d3565b60008481526006602090815260408083208684528252808320600101548784526004835281842087855283528184206001600160a01b038716855290925290912054610a139190610a0d906305f5e100611deb565b90611df7565b90505b9392505050565b6003546000908310610a895760405162461bcd60e51b815260206004820152602f60248201527f676574546f74616c416d6f756e745374616b6564496e506f6f6c3a20496e766160448201526e3634b210383937b532b1ba1024a21760891b60648201526084016103d3565b60038381548110610a9c57610a9c612417565b9060005260206000209060050201600201548210610b115760405162461bcd60e51b815260206004820152602c60248201527f676574546f74616c416d6f756e745374616b6564496e506f6f6c3a20496e766160448201526b3634b2103837b7b61024a21760a11b60648201526084016103d3565b50600091825260066020908152604080842092845291905290206001015490565b60038181548110610b4257600080fd5b9060005260206000209060050201600091509050806000018054610b659061242d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b919061242d565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050908060010154908060020154908060030154908060040154905085565b6002546001600160a01b03163314610c695760405162461bcd60e51b815260206004820152602660248201527f6164644e657750726f6a6563743a2043616c6c6572206973206e6f74207468656044820152651037bbb732b960d11b60648201526084016103d3565b6000835111610cd65760405162461bcd60e51b815260206004820152603360248201527f6164644e657750726f6a6563743a2050726f6a656374206e616d652063616e6e60448201527237ba1031329032b6b83a3c9039ba3934b7339760691b60648201526084016103d3565b42821015610d5c5760405162461bcd60e51b815260206004820152604760248201527f6164644e657750726f6a6563743a20737461727454696d657374616d7020697360448201527f206c657373207468616e207468652063757272656e7420626c6f636b2074696d60648201526632b9ba30b6b81760c91b608482015260a4016103d3565b808210610de55760405162461bcd60e51b815260206004820152604b60248201527f6164644e657750726f6a6563743a20737461727454696d657374616d7020697360448201527f2067726561746572207468616e206f7220657175616c20746f2074686520656e60648201526a322a34b6b2b9ba30b6b81760a91b608482015260a4016103d3565b600783604051610df59190612468565b9081526040519081900360200190205460ff1615610e685760405162461bcd60e51b815260206004820152602a60248201527f6164644e657750726f6a6563743a2070726f6a656374206e616d6520616c726560448201526930b23c903a30b5b2b71760b11b60648201526084016103d3565b610e9a6040518060a0016040528060608152602001600081526020016000815260200160008152602001600081525090565b83815260608101839052608081018290526000604082018190526020808301829052600380546001810182559252825180518492600585027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0192610f059284929190910190612021565b5060208201518160010155604082015181600201556060820151816003015560808201518160040155505080600886604051610f419190612468565b9081526020016040518091039020819055506001600786604051610f659190612468565b908152604051908190036020018120805492151560ff199093169290921790915581907f0855be7ab46e0ae9e0d9c2f3567377c0a577a8c726b7c88615644d282a1fc29190610fb5908890612484565b60405180910390a25050505050565b600260005414156110175760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103d3565b6002600055600354821061106d5760405162461bcd60e51b815260206004820152601d60248201527f77697468647261773a20496e76616c69642070726f6a6563742049442e00000060448201526064016103d3565b6003828154811061108057611080612417565b90600052602060002090600502016002015481106110e05760405162461bcd60e51b815260206004820152601a60248201527f77697468647261773a20496e76616c696420706f6f6c2049442e00000000000060448201526064016103d3565b600382815481106110f3576110f3612417565b90600052602060002090600502016004015442116111535760405162461bcd60e51b815260206004820152601c60248201527f77697468647261773a204e6f7420796574207065726d69747465642e0000000060448201526064016103d3565b6000828152600560209081526040808320848452825280832033845290915290205460ff16156111eb5760405162461bcd60e51b815260206004820152603960248201527f77697468647261773a20557365722068617320616c726561647920776974686460448201527f7261776e2066756e647320666f72207468697320706f6f6c2e0000000000000060648201526084016103d3565b600082815260046020908152604080832084845282528083203384529091529020548061125a5760405162461bcd60e51b815260206004820152601f60248201527f77697468647261773a204e6f207374616b6520746f2077697468647261772e0060448201526064016103d3565b60008381526005602090815260408083208584528252808320338085529252909120805460ff19166001908117909155546112a2916001600160a01b03919091169083611e03565b8183336001600160a01b03167f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94846040516112df91815260200190565b60405180910390a45050600160005550565b60035460009082106113505760405162461bcd60e51b815260206004820152602260248201527f6e756d6265724f66506f6f6c733a20496e76616c69642070726f6a6563742049604482015261221760f11b60648201526084016103d3565b6003828154811061136357611363612417565b9060005260206000209060050201600201549050919050565b6002546060906001600160a01b031633146113ed5760405162461bcd60e51b815260206004820152603e602482015260008051602061255b83398151915260448201527f506f6f6c3a2043616c6c6572206973206e6f7420746865206f776e65722e000060648201526084016103d3565b60035485106114525760405162461bcd60e51b8152602060048201526039602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c69642070726f6a6563742049442e0000000000000060648201526084016103d3565b6003858154811061146557611465612417565b90600052602060002090600502016002015484106114d95760405162461bcd60e51b8152602060048201526036602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c696420706f6f6c2049442e0000000000000000000060648201526084016103d3565b6000858152600660209081526040808320878452909152902060020154806115615760405162461bcd60e51b8152602060048201526041602482015260008051602061255b83398151915260448201527f506f6f6c3a204e6f626f6479207374616b656420696e207468697320706f6f6c6064820152601760f91b608482015260a4016103d3565b600083116115c55760405162461bcd60e51b8152602060048201526038602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c696420706167652073697a652e000000000000000060648201526084016103d3565b600084116116295760405162461bcd60e51b815260206004820152603a602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c69642070616765206e756d6265722e00000000000060648201526084016103d3565b60006116408461163a876001611e38565b90611deb565b905060018511156116d4578181106116d45760405162461bcd60e51b815260206004820152605e602482015260008051602061255b83398151915260448201527f506f6f6c3a2053706563696669656420706172616d657465727320657863656560648201527f64206e756d626572206f6620757365727320696e2074686520706f6f6c2e0000608482015260a4016103d3565b60006116e08686611deb565b9050828111156116ed5750815b60006116f98284611e38565b67ffffffffffffffff8111156117115761171161224a565b60405190808252806020026020018201604052801561177657816020015b611763604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b81526020019060019003908161172f5790505b5090506000835b8381101561186e576117b9604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b60008c81526006602090815260408083208e845290915290206002018054839081106117e7576117e7612417565b600091825260209182902001546001600160a01b03168083529082018c9052611813908d908d906108a5565b60408201528051611827908d908d90611918565b60608201528351819085908590811061184257611842612417565b60209081029190910101526118588360016124ad565b9250508080611866906124c5565b91505061177d565b50909998505050505050505050565b60035460009082106118ec5760405162461bcd60e51b815260206004820152603260248201527f676574546f74616c416d6f756e745374616b6564496e50726f6a6563743a2049604482015271373b30b634b210383937b532b1ba1024a21760711b60648201526084016103d3565b600382815481106118ff576118ff612417565b9060005260206000209060050201600101549050919050565b60035460009084106119855760405162461bcd60e51b815260206004820152603060248201527f676574416d6f756e745374616b6564427955736572496e506f6f6c3a20496e7660448201526f30b634b210383937b532b1ba1024a21760811b60648201526084016103d3565b6003848154811061199857611998612417565b9060005260206000209060050201600201548310611a0e5760405162461bcd60e51b815260206004820152602d60248201527f676574416d6f756e745374616b6564427955736572496e506f6f6c3a20496e7660448201526c30b634b2103837b7b61024a21760991b60648201526084016103d3565b5060009283526004602090815260408085209385529281528284206001600160a01b039290921684525290205490565b6002546001600160a01b03163314611aa95760405162461bcd60e51b815260206004820152602860248201527f6164645374616b696e67506f6f6c3a2043616c6c6572206973206e6f74207468604482015267329037bbb732b91760c11b60648201526084016103d3565b6003548210611b065760405162461bcd60e51b815260206004820152602360248201527f6164645374616b696e67506f6f6c3a20496e76616c69642070726f6a6563742060448201526224a21760e91b60648201526084016103d3565b611b2a60405180606001604052806000815260200160008152602001606081525090565b8181526000602082018190526003805485908110611b4a57611b4a612417565b60009182526020808320600260059093020182015487845260068252604080852082865283529384902086518155868301516001820155938601518051919550869493611b9d93908501929101906120a5565b5090505060038481548110611bb457611bb4612417565b9060005260206000209060050201600201546001611bd291906124ad565b60038581548110611be557611be5612417565b90600052602060002090600502016002018190555060038481548110611c0d57611c0d612417565b906000526020600020906005020160020154847f901eb85ad066ced1d2fb2ae0a5a9e7a4e08a8183e432d4f3586c921023641aa960405160405180910390a350505050565b6002546001600160a01b03163314611cbc5760405162461bcd60e51b815260206004820152602760248201527f64697361626c6550726f6a6563743a2043616c6c6572206973206e6f74207468604482015266329037bbb732b960c91b60648201526084016103d3565b6003548110611d195760405162461bcd60e51b815260206004820152602360248201527f64697361626c6550726f6a6563743a20496e76616c69642070726f6a6563742060448201526224a21760e91b60648201526084016103d3565b4260038281548110611d2d57611d2d612417565b6000918252602082206004600590920201019190915560405182917f76c9cfddbba13d3a193d5446c47e923231635cfc185af13f63c78f23f78219fe91a250565b6000610a1682846124ad565b6040516001600160a01b0380851660248301528316604482015260648101829052611de59085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611e44565b50505050565b6000610a1682846124e0565b6000610a1682846124ff565b6040516001600160a01b038316602482015260448101829052611e3390849063a9059cbb60e01b90606401611dae565b505050565b6000610a168284612521565b6000611e99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f169092919063ffffffff16565b805190915015611e335780806020019051810190611eb79190612538565b611e335760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d3565b6060610a13848460008585843b611f6f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d3565b600080866001600160a01b03168587604051611f8b9190612468565b60006040518083038185875af1925050503d8060008114611fc8576040519150601f19603f3d011682016040523d82523d6000602084013e611fcd565b606091505b5091509150611fdd828286611fe8565b979650505050505050565b60608315611ff7575081610a16565b8251156120075782518084602001fd5b8160405162461bcd60e51b81526004016103d39190612484565b82805461202d9061242d565b90600052602060002090601f01602090048101928261204f5760008555612095565b82601f1061206857805160ff1916838001178555612095565b82800160010185558215612095579182015b8281111561209557825182559160200191906001019061207a565b506120a19291506120fa565b5090565b828054828255906000526020600020908101928215612095579160200282015b8281111561209557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906120c5565b5b808211156120a157600081556001016120fb565b60008060006060848603121561212457600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561215057600080fd5b833592506020840135915060408401356001600160a01b038116811461217557600080fd5b809150509250925092565b6000806040838503121561219357600080fd5b50508035926020909101359150565b6000602082840312156121b457600080fd5b5035919050565b60005b838110156121d65781810151838201526020016121be565b83811115611de55750506000910152565b600081518084526121ff8160208601602086016121bb565b601f01601f19169290920160200192915050565b60a08152600061222660a08301886121e7565b90508560208301528460408301528360608301528260808301529695505050505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261227157600080fd5b813567ffffffffffffffff8082111561228c5761228c61224a565b604051601f8301601f19908116603f011681019082821181831017156122b4576122b461224a565b816040528381528660208588010111156122cd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561230257600080fd5b833567ffffffffffffffff81111561231957600080fd5b61232586828701612260565b9660208601359650604090950135949350505050565b60006020828403121561234d57600080fd5b813567ffffffffffffffff81111561236457600080fd5b61237084828501612260565b949350505050565b6000806000806080858703121561238e57600080fd5b5050823594602084013594506040840135936060013592509050565b602080825282518282018190526000919060409081850190868401855b8281101561240a57815180516001600160a01b031685528681015187860152858101518686015260609081015190850152608090930192908501906001016123c7565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061244157607f821691505b6020821081141561246257634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161247a8184602087016121bb565b9190910192915050565b602081526000610a1660208301846121e7565b634e487b7160e01b600052601160045260246000fd5b600082198211156124c0576124c0612497565b500190565b60006000198214156124d9576124d9612497565b5060010190565b60008160001904831182151516156124fa576124fa612497565b500290565b60008261251c57634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561253357612533612497565b500390565b60006020828403121561254a57600080fd5b81518015158114610a1657600080fdfe676574546f74616c5374616b696e67496e666f466f7250726f6a656374506572a2646970667358221220c8ab0774044f9a123d8fdbaec1acb7f8ad1dff82d555ed9a9dd9ed248b7ad48064736f6c634300080b0033000000000000000000000000a393473d64d2f9f026b60b6df7859a689715d092
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101205760003560e01c806368daaa02116100ad578063a4760f9811610071578063a4760f9814610330578063aaeca4e814610343578063d5a8ef2f14610356578063db5e4c7f14610369578063f1ac7ffc1461037157600080fd5b806368daaa021461024257806372f702f31461026d578063851a133414610298578063a02c2f90146102c9578063a13a7c731461031057600080fd5b8063107046bd116100f4578063107046bd146101b75780633ae10ec1146101db578063426d3a8a146101ee578063441a3e701461021c578063620e97551461022f57600080fd5b8062aeef8a1461012557806306e638601461013a5780630dd64841146101835780630e02d665146101a4575b600080fd5b61013861013336600461210f565b610384565b005b61016e61014836600461213b565b600560209081526000938452604080852082529284528284209052825290205460ff1681565b60405190151581526020015b60405180910390f35b61019661019136600461213b565b6108a5565b60405190815260200161017a565b6101966101b2366004612180565b610a1d565b6101ca6101c53660046121a2565b610b32565b60405161017a959493929190612213565b6101386101e93660046122ed565b610c00565b61016e6101fc36600461233b565b805160208183018101805160078252928201919093012091525460ff1681565b61013861022a366004612180565b610fc4565b61019661023d3660046121a2565b6112f1565b61019661025036600461233b565b805160208183018101805160088252928201919093012091525481565b600154610280906001600160a01b031681565b6040516001600160a01b03909116815260200161017a565b6101966102a636600461213b565b600460209081526000938452604080852082529284528284209052825290205481565b6102fb6102d7366004612180565b60066020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161017a565b61032361031e366004612378565b61137c565b60405161017a91906123aa565b61019661033e3660046121a2565b61187d565b61019661035136600461213b565b611918565b610138610364366004612180565b611a3e565b600354610196565b61013861037f3660046121a2565b611c52565b600260005414156103dc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000558061042e5760405162461bcd60e51b815260206004820152601e60248201527f6465706f7369743a20416d6f756e74206e6f74207370656369666965642e000060448201526064016103d3565b600354831061047f5760405162461bcd60e51b815260206004820152601c60248201527f6465706f7369743a20496e76616c69642070726f6a6563742049442e0000000060448201526064016103d3565b6003838154811061049257610492612417565b90600052602060002090600502016002015482106104f25760405162461bcd60e51b815260206004820152601960248201527f6465706f7369743a20496e76616c696420706f6f6c2049442e0000000000000060448201526064016103d3565b6003838154811061050557610505612417565b90600052602060002090600502016004015442111561058c5760405162461bcd60e51b815260206004820152603660248201527f6465706f7369743a205374616b696e67206e6f206c6f6e676572207065726d6960448201527f7474656420666f7220746869732070726f6a6563742e0000000000000000000060648201526084016103d3565b6003838154811061059f5761059f612417565b9060005260206000209060050201600301544210156106265760405162461bcd60e51b815260206004820152603760248201527f6465706f7369743a205374616b696e67206973206e6f7420796574207065726d60448201527f697474656420666f7220746869732070726f6a6563742e00000000000000000060648201526084016103d3565b600083815260046020908152604080832085845282528083203384528252808320548684526006835281842086855290925290912054156106ef5760008481526006602090815260408083208684529091529020546106858284611d6e565b11156106ef5760405162461bcd60e51b815260206004820152603360248201527f6465706f7369743a2043616e6e6f7420657863656564206d6178207374616b6960448201527237339030b6b7bab73a103832b9103ab9b2b91760691b60648201526084016103d3565b6000848152600460209081526040808320868452825280832033845290915290205461074f57600084815260066020908152604080832086845282528220600201805460018101825590835291200180546001600160a01b031916331790555b610786826003868154811061076657610766612417565b906000526020600020906005020160010154611d6e90919063ffffffff16565b6003858154811061079957610799612417565b60009182526020808320600160059093020182019390935586825260068352604080832087845290935291902001546107d29083611d6e565b6000858152600660209081526040808320878452825280832060010193909355868252600481528282208683528152828220338352905220546108159083611d6e565b6000858152600460209081526040808320878452825280832033808552925290912091909155600154610855916001600160a01b03909116903085611d7a565b8284336001600160a01b03167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e8560405161089291815260200190565b60405180910390a4505060016000555050565b600354600090841061091f5760405162461bcd60e51b815260206004820152603a60248201527f67657450657263656e74616765416d6f756e745374616b65644279557365724960448201527f6e506f6f6c3a20496e76616c69642070726f6a6563742049442e00000000000060648201526084016103d3565b6003848154811061093257610932612417565b90600052602060002090600502016002015483106109b85760405162461bcd60e51b815260206004820152603760248201527f67657450657263656e74616765416d6f756e745374616b65644279557365724960448201527f6e506f6f6c3a20496e76616c696420706f6f6c2049442e00000000000000000060648201526084016103d3565b60008481526006602090815260408083208684528252808320600101548784526004835281842087855283528184206001600160a01b038716855290925290912054610a139190610a0d906305f5e100611deb565b90611df7565b90505b9392505050565b6003546000908310610a895760405162461bcd60e51b815260206004820152602f60248201527f676574546f74616c416d6f756e745374616b6564496e506f6f6c3a20496e766160448201526e3634b210383937b532b1ba1024a21760891b60648201526084016103d3565b60038381548110610a9c57610a9c612417565b9060005260206000209060050201600201548210610b115760405162461bcd60e51b815260206004820152602c60248201527f676574546f74616c416d6f756e745374616b6564496e506f6f6c3a20496e766160448201526b3634b2103837b7b61024a21760a11b60648201526084016103d3565b50600091825260066020908152604080842092845291905290206001015490565b60038181548110610b4257600080fd5b9060005260206000209060050201600091509050806000018054610b659061242d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b919061242d565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050908060010154908060020154908060030154908060040154905085565b6002546001600160a01b03163314610c695760405162461bcd60e51b815260206004820152602660248201527f6164644e657750726f6a6563743a2043616c6c6572206973206e6f74207468656044820152651037bbb732b960d11b60648201526084016103d3565b6000835111610cd65760405162461bcd60e51b815260206004820152603360248201527f6164644e657750726f6a6563743a2050726f6a656374206e616d652063616e6e60448201527237ba1031329032b6b83a3c9039ba3934b7339760691b60648201526084016103d3565b42821015610d5c5760405162461bcd60e51b815260206004820152604760248201527f6164644e657750726f6a6563743a20737461727454696d657374616d7020697360448201527f206c657373207468616e207468652063757272656e7420626c6f636b2074696d60648201526632b9ba30b6b81760c91b608482015260a4016103d3565b808210610de55760405162461bcd60e51b815260206004820152604b60248201527f6164644e657750726f6a6563743a20737461727454696d657374616d7020697360448201527f2067726561746572207468616e206f7220657175616c20746f2074686520656e60648201526a322a34b6b2b9ba30b6b81760a91b608482015260a4016103d3565b600783604051610df59190612468565b9081526040519081900360200190205460ff1615610e685760405162461bcd60e51b815260206004820152602a60248201527f6164644e657750726f6a6563743a2070726f6a656374206e616d6520616c726560448201526930b23c903a30b5b2b71760b11b60648201526084016103d3565b610e9a6040518060a0016040528060608152602001600081526020016000815260200160008152602001600081525090565b83815260608101839052608081018290526000604082018190526020808301829052600380546001810182559252825180518492600585027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0192610f059284929190910190612021565b5060208201518160010155604082015181600201556060820151816003015560808201518160040155505080600886604051610f419190612468565b9081526020016040518091039020819055506001600786604051610f659190612468565b908152604051908190036020018120805492151560ff199093169290921790915581907f0855be7ab46e0ae9e0d9c2f3567377c0a577a8c726b7c88615644d282a1fc29190610fb5908890612484565b60405180910390a25050505050565b600260005414156110175760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103d3565b6002600055600354821061106d5760405162461bcd60e51b815260206004820152601d60248201527f77697468647261773a20496e76616c69642070726f6a6563742049442e00000060448201526064016103d3565b6003828154811061108057611080612417565b90600052602060002090600502016002015481106110e05760405162461bcd60e51b815260206004820152601a60248201527f77697468647261773a20496e76616c696420706f6f6c2049442e00000000000060448201526064016103d3565b600382815481106110f3576110f3612417565b90600052602060002090600502016004015442116111535760405162461bcd60e51b815260206004820152601c60248201527f77697468647261773a204e6f7420796574207065726d69747465642e0000000060448201526064016103d3565b6000828152600560209081526040808320848452825280832033845290915290205460ff16156111eb5760405162461bcd60e51b815260206004820152603960248201527f77697468647261773a20557365722068617320616c726561647920776974686460448201527f7261776e2066756e647320666f72207468697320706f6f6c2e0000000000000060648201526084016103d3565b600082815260046020908152604080832084845282528083203384529091529020548061125a5760405162461bcd60e51b815260206004820152601f60248201527f77697468647261773a204e6f207374616b6520746f2077697468647261772e0060448201526064016103d3565b60008381526005602090815260408083208584528252808320338085529252909120805460ff19166001908117909155546112a2916001600160a01b03919091169083611e03565b8183336001600160a01b03167f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94846040516112df91815260200190565b60405180910390a45050600160005550565b60035460009082106113505760405162461bcd60e51b815260206004820152602260248201527f6e756d6265724f66506f6f6c733a20496e76616c69642070726f6a6563742049604482015261221760f11b60648201526084016103d3565b6003828154811061136357611363612417565b9060005260206000209060050201600201549050919050565b6002546060906001600160a01b031633146113ed5760405162461bcd60e51b815260206004820152603e602482015260008051602061255b83398151915260448201527f506f6f6c3a2043616c6c6572206973206e6f7420746865206f776e65722e000060648201526084016103d3565b60035485106114525760405162461bcd60e51b8152602060048201526039602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c69642070726f6a6563742049442e0000000000000060648201526084016103d3565b6003858154811061146557611465612417565b90600052602060002090600502016002015484106114d95760405162461bcd60e51b8152602060048201526036602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c696420706f6f6c2049442e0000000000000000000060648201526084016103d3565b6000858152600660209081526040808320878452909152902060020154806115615760405162461bcd60e51b8152602060048201526041602482015260008051602061255b83398151915260448201527f506f6f6c3a204e6f626f6479207374616b656420696e207468697320706f6f6c6064820152601760f91b608482015260a4016103d3565b600083116115c55760405162461bcd60e51b8152602060048201526038602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c696420706167652073697a652e000000000000000060648201526084016103d3565b600084116116295760405162461bcd60e51b815260206004820152603a602482015260008051602061255b83398151915260448201527f506f6f6c3a20496e76616c69642070616765206e756d6265722e00000000000060648201526084016103d3565b60006116408461163a876001611e38565b90611deb565b905060018511156116d4578181106116d45760405162461bcd60e51b815260206004820152605e602482015260008051602061255b83398151915260448201527f506f6f6c3a2053706563696669656420706172616d657465727320657863656560648201527f64206e756d626572206f6620757365727320696e2074686520706f6f6c2e0000608482015260a4016103d3565b60006116e08686611deb565b9050828111156116ed5750815b60006116f98284611e38565b67ffffffffffffffff8111156117115761171161224a565b60405190808252806020026020018201604052801561177657816020015b611763604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b81526020019060019003908161172f5790505b5090506000835b8381101561186e576117b9604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b60008c81526006602090815260408083208e845290915290206002018054839081106117e7576117e7612417565b600091825260209182902001546001600160a01b03168083529082018c9052611813908d908d906108a5565b60408201528051611827908d908d90611918565b60608201528351819085908590811061184257611842612417565b60209081029190910101526118588360016124ad565b9250508080611866906124c5565b91505061177d565b50909998505050505050505050565b60035460009082106118ec5760405162461bcd60e51b815260206004820152603260248201527f676574546f74616c416d6f756e745374616b6564496e50726f6a6563743a2049604482015271373b30b634b210383937b532b1ba1024a21760711b60648201526084016103d3565b600382815481106118ff576118ff612417565b9060005260206000209060050201600101549050919050565b60035460009084106119855760405162461bcd60e51b815260206004820152603060248201527f676574416d6f756e745374616b6564427955736572496e506f6f6c3a20496e7660448201526f30b634b210383937b532b1ba1024a21760811b60648201526084016103d3565b6003848154811061199857611998612417565b9060005260206000209060050201600201548310611a0e5760405162461bcd60e51b815260206004820152602d60248201527f676574416d6f756e745374616b6564427955736572496e506f6f6c3a20496e7660448201526c30b634b2103837b7b61024a21760991b60648201526084016103d3565b5060009283526004602090815260408085209385529281528284206001600160a01b039290921684525290205490565b6002546001600160a01b03163314611aa95760405162461bcd60e51b815260206004820152602860248201527f6164645374616b696e67506f6f6c3a2043616c6c6572206973206e6f74207468604482015267329037bbb732b91760c11b60648201526084016103d3565b6003548210611b065760405162461bcd60e51b815260206004820152602360248201527f6164645374616b696e67506f6f6c3a20496e76616c69642070726f6a6563742060448201526224a21760e91b60648201526084016103d3565b611b2a60405180606001604052806000815260200160008152602001606081525090565b8181526000602082018190526003805485908110611b4a57611b4a612417565b60009182526020808320600260059093020182015487845260068252604080852082865283529384902086518155868301516001820155938601518051919550869493611b9d93908501929101906120a5565b5090505060038481548110611bb457611bb4612417565b9060005260206000209060050201600201546001611bd291906124ad565b60038581548110611be557611be5612417565b90600052602060002090600502016002018190555060038481548110611c0d57611c0d612417565b906000526020600020906005020160020154847f901eb85ad066ced1d2fb2ae0a5a9e7a4e08a8183e432d4f3586c921023641aa960405160405180910390a350505050565b6002546001600160a01b03163314611cbc5760405162461bcd60e51b815260206004820152602760248201527f64697361626c6550726f6a6563743a2043616c6c6572206973206e6f74207468604482015266329037bbb732b960c91b60648201526084016103d3565b6003548110611d195760405162461bcd60e51b815260206004820152602360248201527f64697361626c6550726f6a6563743a20496e76616c69642070726f6a6563742060448201526224a21760e91b60648201526084016103d3565b4260038281548110611d2d57611d2d612417565b6000918252602082206004600590920201019190915560405182917f76c9cfddbba13d3a193d5446c47e923231635cfc185af13f63c78f23f78219fe91a250565b6000610a1682846124ad565b6040516001600160a01b0380851660248301528316604482015260648101829052611de59085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611e44565b50505050565b6000610a1682846124e0565b6000610a1682846124ff565b6040516001600160a01b038316602482015260448101829052611e3390849063a9059cbb60e01b90606401611dae565b505050565b6000610a168284612521565b6000611e99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f169092919063ffffffff16565b805190915015611e335780806020019051810190611eb79190612538565b611e335760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d3565b6060610a13848460008585843b611f6f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d3565b600080866001600160a01b03168587604051611f8b9190612468565b60006040518083038185875af1925050503d8060008114611fc8576040519150601f19603f3d011682016040523d82523d6000602084013e611fcd565b606091505b5091509150611fdd828286611fe8565b979650505050505050565b60608315611ff7575081610a16565b8251156120075782518084602001fd5b8160405162461bcd60e51b81526004016103d39190612484565b82805461202d9061242d565b90600052602060002090601f01602090048101928261204f5760008555612095565b82601f1061206857805160ff1916838001178555612095565b82800160010185558215612095579182015b8281111561209557825182559160200191906001019061207a565b506120a19291506120fa565b5090565b828054828255906000526020600020908101928215612095579160200282015b8281111561209557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906120c5565b5b808211156120a157600081556001016120fb565b60008060006060848603121561212457600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561215057600080fd5b833592506020840135915060408401356001600160a01b038116811461217557600080fd5b809150509250925092565b6000806040838503121561219357600080fd5b50508035926020909101359150565b6000602082840312156121b457600080fd5b5035919050565b60005b838110156121d65781810151838201526020016121be565b83811115611de55750506000910152565b600081518084526121ff8160208601602086016121bb565b601f01601f19169290920160200192915050565b60a08152600061222660a08301886121e7565b90508560208301528460408301528360608301528260808301529695505050505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261227157600080fd5b813567ffffffffffffffff8082111561228c5761228c61224a565b604051601f8301601f19908116603f011681019082821181831017156122b4576122b461224a565b816040528381528660208588010111156122cd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561230257600080fd5b833567ffffffffffffffff81111561231957600080fd5b61232586828701612260565b9660208601359650604090950135949350505050565b60006020828403121561234d57600080fd5b813567ffffffffffffffff81111561236457600080fd5b61237084828501612260565b949350505050565b6000806000806080858703121561238e57600080fd5b5050823594602084013594506040840135936060013592509050565b602080825282518282018190526000919060409081850190868401855b8281101561240a57815180516001600160a01b031685528681015187860152858101518686015260609081015190850152608090930192908501906001016123c7565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061244157607f821691505b6020821081141561246257634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161247a8184602087016121bb565b9190910192915050565b602081526000610a1660208301846121e7565b634e487b7160e01b600052601160045260246000fd5b600082198211156124c0576124c0612497565b500190565b60006000198214156124d9576124d9612497565b5060010190565b60008160001904831182151516156124fa576124fa612497565b500290565b60008261251c57634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561253357612533612497565b500390565b60006020828403121561254a57600080fd5b81518015158114610a1657600080fdfe676574546f74616c5374616b696e67496e666f466f7250726f6a656374506572a2646970667358221220c8ab0774044f9a123d8fdbaec1acb7f8ad1dff82d555ed9a9dd9ed248b7ad48064736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a393473d64d2f9f026b60b6df7859a689715d092
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0xa393473d64d2F9F026B60b6Df7859A689715d092
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a393473d64d2f9f026b60b6df7859a689715d092
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.07012 | 92,024 | $6,452.72 |
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.