More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 791 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Stake | 19917142 | 15 mins ago | IN | 0 ETH | 0.00065233 | ||||
Stake | 19916537 | 2 hrs ago | IN | 0 ETH | 0.00066578 | ||||
Stake | 19915809 | 4 hrs ago | IN | 0 ETH | 0.00083145 | ||||
Stake | 19912832 | 14 hrs ago | IN | 0 ETH | 0.00132892 | ||||
Stake | 19911168 | 20 hrs ago | IN | 0 ETH | 0.00053203 | ||||
Stake | 19908142 | 30 hrs ago | IN | 0 ETH | 0.00029504 | ||||
Stake | 19907053 | 34 hrs ago | IN | 0 ETH | 0.00023596 | ||||
Stake | 19904008 | 44 hrs ago | IN | 0 ETH | 0.00023963 | ||||
Stake | 19903784 | 45 hrs ago | IN | 0 ETH | 0.00026104 | ||||
Stake | 19902392 | 2 days ago | IN | 0 ETH | 0.0003001 | ||||
Stake | 19901404 | 2 days ago | IN | 0 ETH | 0.0003406 | ||||
Stake | 19899390 | 2 days ago | IN | 0 ETH | 0.00026802 | ||||
Stake | 19899282 | 2 days ago | IN | 0 ETH | 0.00030661 | ||||
Withdraw | 19897730 | 2 days ago | IN | 0 ETH | 0.00038379 | ||||
Stake | 19897474 | 2 days ago | IN | 0 ETH | 0.00040649 | ||||
Stake | 19897403 | 2 days ago | IN | 0 ETH | 0.00031749 | ||||
Withdraw | 19896589 | 2 days ago | IN | 0 ETH | 0.00028636 | ||||
Stake | 19896318 | 2 days ago | IN | 0 ETH | 0.00034704 | ||||
Stake | 19896089 | 2 days ago | IN | 0 ETH | 0.00036362 | ||||
Stake | 19895860 | 2 days ago | IN | 0 ETH | 0.00031677 | ||||
Stake | 19895806 | 2 days ago | IN | 0 ETH | 0.00037272 | ||||
Stake | 19894268 | 3 days ago | IN | 0 ETH | 0.0003786 | ||||
Stake | 19894053 | 3 days ago | IN | 0 ETH | 0.00039335 | ||||
Stake | 19894035 | 3 days ago | IN | 0 ETH | 0.00051486 | ||||
Stake | 19893196 | 3 days ago | IN | 0 ETH | 0.0002146 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingTRSY
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; /// Import from Utils ///// import {Ownable} from "src/utils/Ownable.sol"; /// Import from Interfaces ///// import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol"; ///@title StakingTRSY ///@notice This contract is used to stake TRSY tokens and earn rewards that are queried offchain /// User can at any time withdraw their TRSY tokens /// Each second 1e18 points are earned by the pool and splitted between stakers /// The longer you stake and the bigger your stake is, the more rewards you earn contract StakingTRSY is Ownable { using SafeERC20 for IERC20; /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); /*////////////////////////////////////////////////////////////// ERRORs //////////////////////////////////////////////////////////////*/ error ZeroAmount(); error NotAllowed(); /*////////////////////////////////////////////////////////////// STORAGE VAR //////////////////////////////////////////////////////////////*/ uint256 constant PRECISION = 1e30; /// @notice The per-second rate at which rewardPerToken increases (1e18 is 1 point per second) uint256 public constant REWARD_RATE = 10e18; /// @notice TRSY interface IERC20 public immutable TRSY = IERC20(0x87Cc45fFF5c0933bb6aF6bAe7Fc013b7eC7df2Ee); /// @notice The Unix timestamp (in seconds) at which staking begins uint64 public start_date = 1_705_338_000; /// @notice The Unix timestamp (in seconds) at which the current reward period ends uint64 public period_finish = 1_720_368_000; /// @notice The last Unix timestamp (in seconds) when rewardPerTokenStored was updated uint64 public lastUpdateTime; /// @notice The last stored rewardPerToken value uint256 public rewardPerTokenStored; /// @notice The total tokens staked in the pool uint256 public totalSupply; /// @notice Allow emergency withdraw bool public emergencyWithdrawAllowed; /// @notice The amount of tokens staked by an account mapping(address => uint256) public balanceOf; /// @notice The rewardPerToken value when an account last staked/withdrew mapping(address => uint256) public userRewardPerTokenPaid; /// @notice The earned() value when an account last staked/withdrew mapping(address => uint256) public rewards; /*////////////////////////////////////////////////////////////// USER FUNCTIONS //////////////////////////////////////////////////////////////*/ constructor(address _owner) Ownable(_owner) { lastUpdateTime = uint64(block.timestamp); } function setStartAndEndTime(uint64 _start_date, uint64 _period_finish) external onlyOwner { start_date = _start_date; period_finish = _period_finish; } function setEmergencyWithdraw(bool _allow) external onlyOwner { emergencyWithdrawAllowed = _allow; } /// @notice Stake TRSY tokens /// @param amount The amount of TRSY tokens to stake function stake(uint256 amount) external { if (emergencyWithdrawAllowed) revert NotAllowed(); if (block.timestamp < start_date || block.timestamp > period_finish) revert NotAllowed(); if (amount == 0) revert ZeroAmount(); // We load var uint256 rewardPerTRSY = rewardPerToken(); // Perform state update rewardPerTokenStored = rewardPerTRSY; lastUpdateTime = lastTimeRewardApplicable(); rewards[msg.sender] = earned(msg.sender, balanceOf[msg.sender], rewardPerTRSY, rewards[msg.sender]); userRewardPerTokenPaid[msg.sender] = rewardPerTRSY; totalSupply += amount; balanceOf[msg.sender] += amount; // Transfer TRSY tokens TRSY.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } /// @notice Withdraw TRSY tokens function withdraw(uint256 amount) external { if (emergencyWithdrawAllowed) revert NotAllowed(); if (amount == 0) revert ZeroAmount(); // We load var uint256 rewardPerTRSY = rewardPerToken(); // Perform state update rewardPerTokenStored = rewardPerTRSY; lastUpdateTime = lastTimeRewardApplicable(); rewards[msg.sender] = earned(msg.sender, balanceOf[msg.sender], rewardPerTRSY, rewards[msg.sender]); userRewardPerTokenPaid[msg.sender] = rewardPerTRSY; balanceOf[msg.sender] -= amount; totalSupply -= amount; // Transfer TRSY tokens TRSY.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } ///@notice Force withdraw in case overflow error happens ///@dev If this happens reward will be calculated offchain and disable deposit/withdraw function emergencyWithdraw() external { if (!emergencyWithdrawAllowed) revert NotAllowed(); uint256 amount = balanceOf[msg.sender]; balanceOf[msg.sender] = 0; totalSupply -= amount; TRSY.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } /*////////////////////////////////////////////////////////////// VIEW FUNCTIONS //////////////////////////////////////////////////////////////*/ /// @notice The latest time at which stakers are earning rewards. function lastTimeRewardApplicable() public view returns (uint64) { return block.timestamp < period_finish ? uint64(block.timestamp) : period_finish; } /// @notice The amount of reward tokens each staked token has earned so far function rewardPerToken() public view returns (uint256) { return totalSupply == 0 ? rewardPerTokenStored : rewardPerTokenStored + (PRECISION * (lastTimeRewardApplicable() - lastUpdateTime) * REWARD_RATE / totalSupply); } function earned(address _user, uint256 _userBalance, uint256 _rewardPerToken, uint256 _userReward) public view returns (uint256) { return _userReward + _userBalance * (_rewardPerToken - userRewardPerTokenPaid[_user]) / PRECISION; } function getReward(address user) external view returns (uint256) { return earned(user, balanceOf[user], rewardPerToken(), rewards[user]); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.19; ///@title Ownable contract /// @notice Simple 2step owner authorization combining solmate and OZ implementation abstract contract Ownable { /*////////////////////////////////////////////////////////////// STORAGE //////////////////////////////////////////////////////////////*/ ///@notice Address of the owner address public owner; ///@notice Address of the pending owner address public pendingOwner; /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnershipTransferred(address indexed user, address indexed newOner); event OwnershipTransferStarted(address indexed user, address indexed newOwner); event OwnershipTransferCanceled(address indexed pendingOwner); /*////////////////////////////////////////////////////////////// ERROR //////////////////////////////////////////////////////////////*/ error Unauthorized(); /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnershipTransferred(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ ///@notice Transfer ownership to a new address ///@param newOwner address of the new owner ///@dev newOwner have to acceptOwnership function transferOwnership(address newOwner) external onlyOwner { pendingOwner = newOwner; emit OwnershipTransferStarted(msg.sender, pendingOwner); } ///@notice NewOwner accept the ownership, it transfer the ownership to newOwner function acceptOwnership() external { if (msg.sender != pendingOwner) revert Unauthorized(); address oldOwner = owner; owner = pendingOwner; delete pendingOwner; emit OwnershipTransferred(oldOwner, owner); } ///@notice Cancel the ownership transfer function cancelTransferOwnership() external onlyOwner { emit OwnershipTransferCanceled(pendingOwner); delete pendingOwner; } modifier onlyOwner() { if (msg.sender != owner) revert Unauthorized(); _; } }
// 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.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
{ "remappings": [ "@uniswap/v3-core/=lib/v3-core/", "@uniswap/v3-periphery/=lib/v3-periphery/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "solmate/=lib/solmate/src/", "synthetix-v3/=lib/synthetix-v3/", "v3-core/=lib/v3-core/contracts/", "v3-periphery/=lib/v3-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipTransferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRSY","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_userBalance","type":"uint256"},{"internalType":"uint256","name":"_rewardPerToken","type":"uint256"},{"internalType":"uint256","name":"_userReward","type":"uint256"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdrawAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period_finish","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setEmergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_start_date","type":"uint64"},{"internalType":"uint64","name":"_period_finish","type":"uint64"}],"name":"setStartAndEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start_date","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040527387cc45fff5c0933bb6af6bae7fc013b7ec7df2ee6080526001805463065a564960a41b600160a01b600160e01b0319909116179055600280546001600160401b03191663668abb8017905534801561005c57600080fd5b5060405161115c38038061115c83398101604081905261007b916100f3565b600080546001600160a01b0319166001600160a01b03831690811782556040518392907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505060028054600160401b600160801b03191668010000000000000000426001600160401b031602179055610123565b60006020828403121561010557600080fd5b81516001600160a01b038116811461011c57600080fd5b9392505050565b60805161100961015360003960008181610213015281816104b2015281816107f401526109bf01526110096000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806390710647116100de578063c8f33c9111610097578063df136d6511610071578063df136d651461035a578063e30c397814610363578063e3fd517e14610376578063f2fde38b1461038957600080fd5b8063c8f33c9114610330578063cd3daf9d1461034a578063db2e21bc1461035257600080fd5b806390710647146102bf57806392fede00146102d2578063a694fc3a146102da578063aceda7f9146102ed578063c00007b01461030a578063c7dd6f071461031d57600080fd5b80635997bb37116101305780635997bb371461024d57806370a082311461025c57806379ba50971461027c57806380faa57d146102845780638b8763471461028c5780638da5cb5b146102ac57600080fd5b80630700037d1461017857806318160ddd146101ab57806327d795d7146101b45780632e1a7d4d146101e6578063317b3b7f146101fb57806345e166bd1461020e575b600080fd5b610198610186366004610dbb565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61019860045481565b6001546101ce90600160a01b90046001600160401b031681565b6040516001600160401b0390911681526020016101a2565b6101f96101f4366004610ddd565b61039c565b005b610198610209366004610df6565b610513565b6102357f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101a2565b610198678ac7230489e8000081565b61019861026a366004610dbb565b60066020526000908152604090205481565b6101f961056e565b6101ce6105f2565b61019861029a366004610dbb565b60076020526000908152604090205481565b600054610235906001600160a01b031681565b6002546101ce906001600160401b031681565b6101f961061c565b6101f96102e8366004610ddd565b610690565b6005546102fa9060ff1681565b60405190151581526020016101a2565b610198610318366004610dbb565b61084e565b6101f961032b366004610e40565b610899565b6002546101ce90600160401b90046001600160401b031681565b6101986108d6565b6101f9610961565b61019860035481565b600154610235906001600160a01b031681565b6101f9610384366004610e74565b610a1e565b6101f9610397366004610dbb565b610a86565b60055460ff16156103c057604051631eb49d6d60e11b815260040160405180910390fd5b806000036103e157604051631f2a200560e01b815260040160405180910390fd5b60006103eb6108d6565b600381905590506103fa6105f2565b600280546001600160401b0392909216600160401b0267ffffffffffffffff60401b199092169190911790553360008181526006602090815260408083205460089092529091205461044f9291908490610513565b3360009081526008602090815260408083209390935560078152828220849055600690529081208054849290610486908490610ebd565b92505081905550816004600082825461049f9190610ebd565b909155506104d990506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384610afc565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b6001600160a01b0384166000908152600760205260408120546c0c9f2c9cd04674edea40000000906105459085610ebd565b61054f9086610ed0565b6105599190610ee7565b6105639083610f09565b90505b949350505050565b6001546001600160a01b03163314610598576040516282b42960e81b815260040160405180910390fd5b60008054600180546001600160a01b038082166001600160a01b031980861682178755909216909255604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6002546000906001600160401b0316421061061757506002546001600160401b031690565b504290565b6000546001600160a01b03163314610646576040516282b42960e81b815260040160405180910390fd5b6001546040516001600160a01b03909116907f6ecd4842251bedd053b09547c0fabaab9ec98506ebf24469e8dd5560412ed37f90600090a2600180546001600160a01b0319169055565b60055460ff16156106b457604051631eb49d6d60e11b815260040160405180910390fd5b600154600160a01b90046001600160401b03164210806106de57506002546001600160401b031642115b156106fc57604051631eb49d6d60e11b815260040160405180910390fd5b8060000361071d57604051631f2a200560e01b815260040160405180910390fd5b60006107276108d6565b600381905590506107366105f2565b600280546001600160401b0392909216600160401b0267ffffffffffffffff60401b199092169190911790553360008181526006602090815260408083205460089092529091205461078b9291908490610513565b3360009081526008602090815260408083209390935560079052908120829055600480548492906107bd908490610f09565b909155505033600090815260066020526040812080548492906107e1908490610f09565b9091555061081c90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610b64565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610507565b6001600160a01b0381166000908152600660205260408120546108939083906108756108d6565b6001600160a01b038616600090815260086020526040902054610513565b92915050565b6000546001600160a01b031633146108c3576040516282b42960e81b815260040160405180910390fd5b6005805460ff1916911515919091179055565b600060045460001461095a57600454600254678ac7230489e8000090600160401b90046001600160401b031661090a6105f2565b6109149190610f1c565b610934906001600160401b03166c0c9f2c9cd04674edea40000000610ed0565b61093e9190610ed0565b6109489190610ee7565b6003546109559190610f09565b905090565b5060035490565b60055460ff1661098457604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260066020526040812080549082905560048054919283926109ac908490610ebd565b909155506109e690506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610afc565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a250565b6000546001600160a01b03163314610a48576040516282b42960e81b815260040160405180910390fd5b6001805467ffffffffffffffff60a01b1916600160a01b6001600160401b03948516021790556002805467ffffffffffffffff191691909216179055565b6000546001600160a01b03163314610ab0576040516282b42960e81b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03831690811790915560405133907f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270090600090a350565b6040516001600160a01b038316602482015260448101829052610b5f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ba2565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b9c9085906323b872dd60e01b90608401610b28565b50505050565b6000610bf7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c7c9092919063ffffffff16565b9050805160001480610c18575080806020019051810190610c189190610f43565b610b5f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b6060610566848460008585600080866001600160a01b03168587604051610ca39190610f84565b60006040518083038185875af1925050503d8060008114610ce0576040519150601f19603f3d011682016040523d82523d6000602084013e610ce5565b606091505b5091509150610cf687838387610d01565b979650505050505050565b60608315610d70578251600003610d69576001600160a01b0385163b610d695760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c73565b5081610566565b6105668383815115610d855781518083602001fd5b8060405162461bcd60e51b8152600401610c739190610fa0565b80356001600160a01b0381168114610db657600080fd5b919050565b600060208284031215610dcd57600080fd5b610dd682610d9f565b9392505050565b600060208284031215610def57600080fd5b5035919050565b60008060008060808587031215610e0c57600080fd5b610e1585610d9f565b966020860135965060408601359560600135945092505050565b8015158114610e3d57600080fd5b50565b600060208284031215610e5257600080fd5b8135610dd681610e2f565b80356001600160401b0381168114610db657600080fd5b60008060408385031215610e8757600080fd5b610e9083610e5d565b9150610e9e60208401610e5d565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561089357610893610ea7565b808202811582820484141761089357610893610ea7565b600082610f0457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561089357610893610ea7565b6001600160401b03828116828216039080821115610f3c57610f3c610ea7565b5092915050565b600060208284031215610f5557600080fd5b8151610dd681610e2f565b60005b83811015610f7b578181015183820152602001610f63565b50506000910152565b60008251610f96818460208701610f60565b9190910192915050565b6020815260008251806020840152610fbf816040850160208701610f60565b601f01601f1916919091016040019291505056fea26469706673582212208551e728a01ff3eaec7b959a403ef9afee023ca36ecc3c2f29f267a62227eb1e64736f6c6343000813003300000000000000000000000024b3b50c1b87b549374876d31f919e5e6eeba999
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c806390710647116100de578063c8f33c9111610097578063df136d6511610071578063df136d651461035a578063e30c397814610363578063e3fd517e14610376578063f2fde38b1461038957600080fd5b8063c8f33c9114610330578063cd3daf9d1461034a578063db2e21bc1461035257600080fd5b806390710647146102bf57806392fede00146102d2578063a694fc3a146102da578063aceda7f9146102ed578063c00007b01461030a578063c7dd6f071461031d57600080fd5b80635997bb37116101305780635997bb371461024d57806370a082311461025c57806379ba50971461027c57806380faa57d146102845780638b8763471461028c5780638da5cb5b146102ac57600080fd5b80630700037d1461017857806318160ddd146101ab57806327d795d7146101b45780632e1a7d4d146101e6578063317b3b7f146101fb57806345e166bd1461020e575b600080fd5b610198610186366004610dbb565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61019860045481565b6001546101ce90600160a01b90046001600160401b031681565b6040516001600160401b0390911681526020016101a2565b6101f96101f4366004610ddd565b61039c565b005b610198610209366004610df6565b610513565b6102357f00000000000000000000000087cc45fff5c0933bb6af6bae7fc013b7ec7df2ee81565b6040516001600160a01b0390911681526020016101a2565b610198678ac7230489e8000081565b61019861026a366004610dbb565b60066020526000908152604090205481565b6101f961056e565b6101ce6105f2565b61019861029a366004610dbb565b60076020526000908152604090205481565b600054610235906001600160a01b031681565b6002546101ce906001600160401b031681565b6101f961061c565b6101f96102e8366004610ddd565b610690565b6005546102fa9060ff1681565b60405190151581526020016101a2565b610198610318366004610dbb565b61084e565b6101f961032b366004610e40565b610899565b6002546101ce90600160401b90046001600160401b031681565b6101986108d6565b6101f9610961565b61019860035481565b600154610235906001600160a01b031681565b6101f9610384366004610e74565b610a1e565b6101f9610397366004610dbb565b610a86565b60055460ff16156103c057604051631eb49d6d60e11b815260040160405180910390fd5b806000036103e157604051631f2a200560e01b815260040160405180910390fd5b60006103eb6108d6565b600381905590506103fa6105f2565b600280546001600160401b0392909216600160401b0267ffffffffffffffff60401b199092169190911790553360008181526006602090815260408083205460089092529091205461044f9291908490610513565b3360009081526008602090815260408083209390935560078152828220849055600690529081208054849290610486908490610ebd565b92505081905550816004600082825461049f9190610ebd565b909155506104d990506001600160a01b037f00000000000000000000000087cc45fff5c0933bb6af6bae7fc013b7ec7df2ee163384610afc565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b6001600160a01b0384166000908152600760205260408120546c0c9f2c9cd04674edea40000000906105459085610ebd565b61054f9086610ed0565b6105599190610ee7565b6105639083610f09565b90505b949350505050565b6001546001600160a01b03163314610598576040516282b42960e81b815260040160405180910390fd5b60008054600180546001600160a01b038082166001600160a01b031980861682178755909216909255604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6002546000906001600160401b0316421061061757506002546001600160401b031690565b504290565b6000546001600160a01b03163314610646576040516282b42960e81b815260040160405180910390fd5b6001546040516001600160a01b03909116907f6ecd4842251bedd053b09547c0fabaab9ec98506ebf24469e8dd5560412ed37f90600090a2600180546001600160a01b0319169055565b60055460ff16156106b457604051631eb49d6d60e11b815260040160405180910390fd5b600154600160a01b90046001600160401b03164210806106de57506002546001600160401b031642115b156106fc57604051631eb49d6d60e11b815260040160405180910390fd5b8060000361071d57604051631f2a200560e01b815260040160405180910390fd5b60006107276108d6565b600381905590506107366105f2565b600280546001600160401b0392909216600160401b0267ffffffffffffffff60401b199092169190911790553360008181526006602090815260408083205460089092529091205461078b9291908490610513565b3360009081526008602090815260408083209390935560079052908120829055600480548492906107bd908490610f09565b909155505033600090815260066020526040812080548492906107e1908490610f09565b9091555061081c90506001600160a01b037f00000000000000000000000087cc45fff5c0933bb6af6bae7fc013b7ec7df2ee16333085610b64565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610507565b6001600160a01b0381166000908152600660205260408120546108939083906108756108d6565b6001600160a01b038616600090815260086020526040902054610513565b92915050565b6000546001600160a01b031633146108c3576040516282b42960e81b815260040160405180910390fd5b6005805460ff1916911515919091179055565b600060045460001461095a57600454600254678ac7230489e8000090600160401b90046001600160401b031661090a6105f2565b6109149190610f1c565b610934906001600160401b03166c0c9f2c9cd04674edea40000000610ed0565b61093e9190610ed0565b6109489190610ee7565b6003546109559190610f09565b905090565b5060035490565b60055460ff1661098457604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260066020526040812080549082905560048054919283926109ac908490610ebd565b909155506109e690506001600160a01b037f00000000000000000000000087cc45fff5c0933bb6af6bae7fc013b7ec7df2ee163383610afc565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a250565b6000546001600160a01b03163314610a48576040516282b42960e81b815260040160405180910390fd5b6001805467ffffffffffffffff60a01b1916600160a01b6001600160401b03948516021790556002805467ffffffffffffffff191691909216179055565b6000546001600160a01b03163314610ab0576040516282b42960e81b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03831690811790915560405133907f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270090600090a350565b6040516001600160a01b038316602482015260448101829052610b5f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ba2565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b9c9085906323b872dd60e01b90608401610b28565b50505050565b6000610bf7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c7c9092919063ffffffff16565b9050805160001480610c18575080806020019051810190610c189190610f43565b610b5f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b6060610566848460008585600080866001600160a01b03168587604051610ca39190610f84565b60006040518083038185875af1925050503d8060008114610ce0576040519150601f19603f3d011682016040523d82523d6000602084013e610ce5565b606091505b5091509150610cf687838387610d01565b979650505050505050565b60608315610d70578251600003610d69576001600160a01b0385163b610d695760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c73565b5081610566565b6105668383815115610d855781518083602001fd5b8060405162461bcd60e51b8152600401610c739190610fa0565b80356001600160a01b0381168114610db657600080fd5b919050565b600060208284031215610dcd57600080fd5b610dd682610d9f565b9392505050565b600060208284031215610def57600080fd5b5035919050565b60008060008060808587031215610e0c57600080fd5b610e1585610d9f565b966020860135965060408601359560600135945092505050565b8015158114610e3d57600080fd5b50565b600060208284031215610e5257600080fd5b8135610dd681610e2f565b80356001600160401b0381168114610db657600080fd5b60008060408385031215610e8757600080fd5b610e9083610e5d565b9150610e9e60208401610e5d565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561089357610893610ea7565b808202811582820484141761089357610893610ea7565b600082610f0457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561089357610893610ea7565b6001600160401b03828116828216039080821115610f3c57610f3c610ea7565b5092915050565b600060208284031215610f5557600080fd5b8151610dd681610e2f565b60005b83811015610f7b578181015183820152602001610f63565b50506000910152565b60008251610f96818460208701610f60565b9190910192915050565b6020815260008251806020840152610fbf816040850160208701610f60565b601f01601f1916919091016040019291505056fea26469706673582212208551e728a01ff3eaec7b959a403ef9afee023ca36ecc3c2f29f267a62227eb1e64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000024b3b50c1b87b549374876d31f919e5e6eeba999
-----Decoded View---------------
Arg [0] : _owner (address): 0x24B3B50c1b87B549374876d31f919e5E6eebA999
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000024b3b50c1b87b549374876d31f919e5e6eeba999
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 25 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.