More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 890 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 22280898 | 5 days ago | IN | 0 ETH | 0.00003778 | ||||
Claim | 22280897 | 5 days ago | IN | 0 ETH | 0.00008833 | ||||
Claim | 22280717 | 5 days ago | IN | 0 ETH | 0.00008998 | ||||
Claim | 22280707 | 5 days ago | IN | 0 ETH | 0.00009134 | ||||
Claim | 22280174 | 6 days ago | IN | 0 ETH | 0.0000917 | ||||
Claim | 22280015 | 6 days ago | IN | 0 ETH | 0.00009325 | ||||
Claim | 22279959 | 6 days ago | IN | 0 ETH | 0.00008151 | ||||
Claim | 22254310 | 9 days ago | IN | 0 ETH | 0.00018722 | ||||
Claim | 22230175 | 12 days ago | IN | 0 ETH | 0.00011707 | ||||
Claim | 22230120 | 13 days ago | IN | 0 ETH | 0.00009757 | ||||
Claim | 22230075 | 13 days ago | IN | 0 ETH | 0.00010142 | ||||
Claim | 22067281 | 35 days ago | IN | 0 ETH | 0.00011697 | ||||
Claim | 22067228 | 35 days ago | IN | 0 ETH | 0.00012035 | ||||
Claim | 21975343 | 48 days ago | IN | 0 ETH | 0.00014991 | ||||
Claim | 21894119 | 59 days ago | IN | 0 ETH | 0.0001224 | ||||
Claim | 21880810 | 61 days ago | IN | 0 ETH | 0.00019556 | ||||
Claim | 21851324 | 65 days ago | IN | 0 ETH | 0.00013246 | ||||
Claim | 21835348 | 68 days ago | IN | 0 ETH | 0.00008716 | ||||
Claim | 21835329 | 68 days ago | IN | 0 ETH | 0.00008552 | ||||
Claim | 21835301 | 68 days ago | IN | 0 ETH | 0.00008739 | ||||
Claim | 21835290 | 68 days ago | IN | 0 ETH | 0.00009105 | ||||
Claim | 21835274 | 68 days ago | IN | 0 ETH | 0.00009051 | ||||
Claim | 21835263 | 68 days ago | IN | 0 ETH | 0.00008445 | ||||
Claim | 21835148 | 68 days ago | IN | 0 ETH | 0.00008453 | ||||
Claim | 21834482 | 68 days ago | IN | 0 ETH | 0.00011875 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
FameLocker
Compiler Version
v0.8.22+commit.4fc1097e
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.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { uncheckedInc } from "./utils/Unchecked.sol"; // import { console } from "forge-std/Script.sol"; /** * Lock FMC tokens and vesting */ contract FameLocker is Ownable { using SafeERC20 for IERC20; IERC20 public token; struct Pool { uint256 startReleaseTime; // start time to release uint256 lockInterval; // time interval of each step // initial lock bps at start time eg. 9500 = 5% release from start time to start time + lock time interval uint256 initLockBps; uint256 bpsStep; //the lock bps decreases by each step uint256 cap; // total amount distribute in this pool uint256 distributed; // amount that users has logged for bool active; // is the pool active } struct UserInfo { uint256 totalAmount; // total amount user is entitiled for uint256 releasedAmount; // total amount released to user } Pool[] public pools; mapping(uint256 => mapping(address => UserInfo)) public userInfos; error Expired(); error AlreadyLogged(); error NoPool(); error Cap(); error NotYet(); error NoShares(); error NotActivePool(); event LogShare(address indexed to, uint256 value, uint256 pid); event AddLockerPool( uint256 indexed pid, uint256 startReleaseTime, uint256 lockInterval, uint256 initLockBps, uint256 bpsStep, uint256 cap ); event ModifyPoolStartDate(uint256 indexed pid, uint256 newStartTime); event RemovePool(uint256 indexed pid); event Claim(address indexed to, uint256 amt, uint256 pid); constructor(address _token) Ownable(msg.sender) { token = IERC20(_token); } /** Add a new pool. Owner needs to transfer cap amount of token. */ function addPool( uint256 lockInterval, uint256 startTime, uint256 initialLockBps, uint256 bpsStep, uint256 cap ) external onlyOwner { if(startTime <= block.timestamp) revert Expired(); pools.push( Pool( startTime, lockInterval, initialLockBps, bpsStep, cap, 0, true ) ); token.safeTransferFrom(msg.sender, address(this), cap); emit AddLockerPool( pools.length - 1, startTime, initialLockBps, lockInterval, bpsStep, cap ); } /** Allow to modify Pool Start date provided that start date has not bee started. */ function modifyPoolStartDate( uint256 pid, uint256 startReleaseTime ) external onlyOwner { Pool storage pool = pools[pid]; if(!pool.active) revert NotActivePool(); if(pool.startReleaseTime < block.timestamp) revert Expired(); pool.startReleaseTime = startReleaseTime; emit ModifyPoolStartDate(pid, startReleaseTime); } /** Allow to remove Pool Start date provided that: - start date has not bee started. - pool is active. Able to get the cap amount of tokens back. */ function removePool( uint256 pid ) external onlyOwner { Pool storage pool = pools[pid]; if(!pool.active) revert NotActivePool(); if(pool.startReleaseTime < block.timestamp) revert Expired(); pool.active = false; token.safeTransfer(msg.sender, pool.cap); emit RemovePool(pid); } function poolLength() external view returns (uint256) { return pools.length; } /// @dev lock in the tokens for users function _logSingleShare( address _user, uint256 _amount, uint256 pid ) internal onlyOwner { uint256 remaining = pools[pid].cap - pools[pid].distributed; if(remaining < _amount) revert Cap(); pools[pid].distributed += _amount; UserInfo storage info = userInfos[pid][_user]; //one user can only have their amont locked once. Cannot add more amount later. if(info.totalAmount != 0) revert AlreadyLogged(); info.totalAmount = info.totalAmount + _amount; emit LogShare(_user, _amount, pid); } /// log shares in batch function logShares (address[] memory users, uint[] memory shares, uint pid) external onlyOwner { if(pools.length <= pid) revert NoPool(); if(!pools[pid].active) revert NotActivePool(); Pool memory pool = pools[pid]; if(pool.startReleaseTime < block.timestamp) revert Expired(); for(uint i = 0; i < users.length; i = uncheckedInc(i)) { _logSingleShare(users[i], shares[i], pid); } } /// @dev release amount for user if any pending function claim( uint256 pid ) external { if(!pools[pid].active) revert NotActivePool(); uint256 lockBps = getCurrentLockBps(pid); address _user = msg.sender; if (lockBps == 10000) revert NotYet(); UserInfo storage info = userInfos[pid][_user]; if(info.totalAmount == 0) revert NoShares(); uint256 availAmt; if (lockBps == 0) { availAmt = info.totalAmount - (info.releasedAmount); } else { availAmt = info.totalAmount * (10000 - lockBps) / 10000 - info.releasedAmount; } if (availAmt > 0) { info.releasedAmount = info.releasedAmount + (availAmt); token.safeTransfer(_user, availAmt); emit Claim(_user, availAmt, pid); } } /// @dev to view current lockBps for a pool function getCurrentLockBps(uint256 pid) public view returns (uint256) { Pool memory pool = pools[pid]; if (block.timestamp < pool.startReleaseTime) return 10000; if(pool.lockInterval == 0) return 0; uint256 multiplier = (block.timestamp - pool.startReleaseTime) / pool.lockInterval; if (multiplier * pool.bpsStep >= pool.initLockBps) return 0; else return pool.initLockBps - (multiplier * pool.bpsStep); } /// @dev to view pending tokens in a pool for a user function pendingClaim( uint256 pid, address user ) public view returns (uint256) { UserInfo memory info = userInfos[pid][user]; return info.totalAmount * (10000 - getCurrentLockBps(pid)) / 10000 - (info.releasedAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @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. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ 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]. * * CAUTION: See Security Considerations above. */ 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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../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 An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity =0.8.22; function uncheckedInc(uint256 i) pure returns (uint256) { unchecked { return i + 1; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "remappings": [ "forge-std/=lib/forge-std/src/", "script/=script/", "test/=contracts/test/", "ds-test/=lib/forge-std/lib/ds-test/src/" ], "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AlreadyLogged","type":"error"},{"inputs":[],"name":"Cap","type":"error"},{"inputs":[],"name":"Expired","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"NoPool","type":"error"},{"inputs":[],"name":"NoShares","type":"error"},{"inputs":[],"name":"NotActivePool","type":"error"},{"inputs":[],"name":"NotYet","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startReleaseTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"initLockBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bpsStep","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"}],"name":"AddLockerPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"LogShare","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"ModifyPoolStartDate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"RemovePool","type":"event"},{"inputs":[{"internalType":"uint256","name":"lockInterval","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"initialLockBps","type":"uint256"},{"internalType":"uint256","name":"bpsStep","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getCurrentLockBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"logShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"startReleaseTime","type":"uint256"}],"name":"modifyPoolStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"pendingClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"uint256","name":"startReleaseTime","type":"uint256"},{"internalType":"uint256","name":"lockInterval","type":"uint256"},{"internalType":"uint256","name":"initLockBps","type":"uint256"},{"internalType":"uint256","name":"bpsStep","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"distributed","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"removePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"releasedAmount","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516113c53803806113c583398101604081905261002f916100d4565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610084565b50600180546001600160a01b0319166001600160a01b0392909216919091179055610104565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e657600080fd5b81516001600160a01b03811681146100fd57600080fd5b9392505050565b6112b2806101136000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806377d869b51161008c578063a38dcbd011610066578063a38dcbd0146101ee578063ac4afa3814610201578063f2fde38b1461024b578063fc0c546a1461025e57600080fd5b806377d869b51461016f57806387370846146101825780638da5cb5b146101c957600080fd5b8063379607f5116100c8578063379607f51461012e57806341a2738c1461014157806347bbd65b14610154578063715018a61461016757600080fd5b8063081e3eda146100ef57806311b6aa1514610106578063180d512114610119575b600080fd5b6002545b6040519081526020015b60405180910390f35b6100f3610114366004610f24565b610271565b61012c610127366004610f3d565b610380565b005b61012c61013c366004610f24565b610587565b61012c61014f36600461106e565b610716565b6100f3610162366004611137565b610875565b61012c6108f0565b61012c61017d366004611163565b610904565b6101b4610190366004611137565b60036020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016100fd565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100fd565b61012c6101fc366004610f24565b6109b8565b61021461020f366004610f24565b610a89565b604080519788526020880196909652948601939093526060850191909152608084015260a0830152151560c082015260e0016100fd565b61012c610259366004611185565b610adb565b6001546101d6906001600160a01b031681565b60008060028381548110610287576102876111a0565b60009182526020918290206040805160e081018252600790930290910180548084526001820154948401949094526002810154918301919091526003810154606083015260048101546080830152600581015460a08301526006015460ff16151560c08201529150421015610300575061271092915050565b80602001516000036103155750600092915050565b602081015181516000919061032a90426111cc565b61033491906111df565b9050816040015182606001518261034b9190611201565b1061035a575060009392505050565b60608201516103699082611201565b826040015161037891906111cc565b949350505050565b610388610b1e565b4284116103a857604051630407b05b60e31b815260040160405180910390fd5b6040805160e081018252858152602081018781529181018581526060820185815260808301858152600060a08501818152600160c08701818152600280548084018255945296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60079094029384015596517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad1830155517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad282015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad382015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad4909101805460ff191691151591909117905554610521906001600160a01b0316333084610b4b565b600254610530906001906111cc565b604080518681526020810186905290810187905260608101849052608081018390527f5a6831b5f0fb47d911506eb168c4bc7a677acee8bc217f2891705ee59a6d2da59060a0015b60405180910390a25050505050565b6002818154811061059a5761059a6111a0565b600091825260209091206006600790920201015460ff166105ce5760405163bf94dd6160e01b815260040160405180910390fd5b60006105d982610271565b9050336127108290036105ff5760405163069fbbbb60e11b815260040160405180910390fd5b60008381526003602090815260408083206001600160a01b0385168452909152812080549091036106435760405163b317087b60e01b815260040160405180910390fd5b600083600003610665576001820154825461065e91906111cc565b905061069a565b600182015461271061067786826111cc565b84546106839190611201565b61068d91906111df565b61069791906111cc565b90505b801561070f578082600101546106b09190611218565b600180840191909155546106ce906001600160a01b03168483610bb8565b60408051828152602081018790526001600160a01b038516917f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79101610578565b5050505050565b61071e610b1e565b60025481106107405760405163f591b27760e01b815260040160405180910390fd5b60028181548110610753576107536111a0565b600091825260209091206006600790920201015460ff166107875760405163bf94dd6160e01b815260040160405180910390fd5b60006002828154811061079c5761079c6111a0565b60009182526020918290206040805160e081018252600790930290910180548084526001820154948401949094526002810154918301919091526003810154606083015260048101546080830152600581015460a08301526006015460ff16151560c0820152915042111561082457604051630407b05b60e31b815260040160405180910390fd5b60005b845181101561070f5761086d858281518110610845576108456111a0565b602002602001015185838151811061085f5761085f6111a0565b602002602001015185610bee565b600101610827565b60008281526003602090815260408083206001600160a01b0385168452825280832081518083019092528054825260010154918101829052906127106108ba86610271565b6108c6906127106111cc565b83516108d29190611201565b6108dc91906111df565b6108e691906111cc565b9150505b92915050565b6108f8610b1e565b6109026000610d3a565b565b61090c610b1e565b600060028381548110610921576109216111a0565b60009182526020909120600790910201600681015490915060ff166109595760405163bf94dd6160e01b815260040160405180910390fd5b805442111561097b57604051630407b05b60e31b815260040160405180910390fd5b81815560405182815283907f3698dd4c097ed3956bb4e7e827691e05ae3b1a5120ed8dd486dfdfa7997d86229060200160405180910390a2505050565b6109c0610b1e565b6000600282815481106109d5576109d56111a0565b60009182526020909120600790910201600681015490915060ff16610a0d5760405163bf94dd6160e01b815260040160405180910390fd5b8054421115610a2f57604051630407b05b60e31b815260040160405180910390fd5b60068101805460ff191690556004810154600154610a5a916001600160a01b03909116903390610bb8565b60405182907fa9c049090afebc2cec22912b6f0ef390f83d83a5d7f08faee82317e03baea62590600090a25050565b60028181548110610a9957600080fd5b60009182526020909120600790910201805460018201546002830154600384015460048501546005860154600690960154949650929491939092919060ff1687565b610ae3610b1e565b6001600160a01b038116610b1257604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610b1b81610d3a565b50565b6000546001600160a01b031633146109025760405163118cdaa760e01b8152336004820152602401610b09565b6040516001600160a01b038481166024830152838116604483015260648201839052610bb29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610d8a565b50505050565b6040516001600160a01b03838116602483015260448201839052610be991859182169063a9059cbb90606401610b80565b505050565b610bf6610b1e565b600060028281548110610c0b57610c0b6111a0565b90600052602060002090600702016005015460028381548110610c3057610c306111a0565b906000526020600020906007020160040154610c4c91906111cc565b905082811015610c6f57604051631d3fde9360e31b815260040160405180910390fd5b8260028381548110610c8357610c836111a0565b90600052602060002090600702016005016000828254610ca39190611218565b909155505060008281526003602090815260408083206001600160a01b03881684529091529020805415610cea57604051637f61439760e01b815260040160405180910390fd5b8054610cf7908590611218565b815560408051858152602081018590526001600160a01b038716917f6e7afbffffc7b8847b0133ddf7515d6bd6aae2666486226f0f2e9a88076ca29d9101610578565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610d9f6001600160a01b03841683610ded565b90508051600014158015610dc4575080806020019051810190610dc2919061122b565b155b15610be957604051635274afe760e01b81526001600160a01b0384166004820152602401610b09565b6060610dfb83836000610e02565b9392505050565b606081471015610e275760405163cd78605960e01b8152306004820152602401610b09565b600080856001600160a01b03168486604051610e43919061124d565b60006040518083038185875af1925050503d8060008114610e80576040519150601f19603f3d011682016040523d82523d6000602084013e610e85565b606091505b5091509150610e95868383610e9f565b9695505050505050565b606082610eb457610eaf82610efb565b610dfb565b8151158015610ecb57506001600160a01b0384163b155b15610ef457604051639996b31560e01b81526001600160a01b0385166004820152602401610b09565b5080610dfb565b805115610f0b5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610f3657600080fd5b5035919050565b600080600080600060a08688031215610f5557600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610fb757610fb7610f78565b604052919050565b600067ffffffffffffffff821115610fd957610fd9610f78565b5060051b60200190565b80356001600160a01b0381168114610ffa57600080fd5b919050565b600082601f83011261101057600080fd5b8135602061102561102083610fbf565b610f8e565b8083825260208201915060208460051b87010193508684111561104757600080fd5b602086015b84811015611063578035835291830191830161104c565b509695505050505050565b60008060006060848603121561108357600080fd5b833567ffffffffffffffff8082111561109b57600080fd5b818601915086601f8301126110af57600080fd5b813560206110bf61102083610fbf565b82815260059290921b8401810191818101908a8411156110de57600080fd5b948201945b83861015611103576110f486610fe3565b825294820194908201906110e3565b9750508701359250508082111561111957600080fd5b5061112686828701610fff565b925050604084013590509250925092565b6000806040838503121561114a57600080fd5b8235915061115a60208401610fe3565b90509250929050565b6000806040838503121561117657600080fd5b50508035926020909101359150565b60006020828403121561119757600080fd5b610dfb82610fe3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156108ea576108ea6111b6565b6000826111fc57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176108ea576108ea6111b6565b808201808211156108ea576108ea6111b6565b60006020828403121561123d57600080fd5b81518015158114610dfb57600080fd5b6000825160005b8181101561126e5760208186018101518583015201611254565b50600092019182525091905056fea2646970667358221220ee52c49ff9416a619bdb2e3abcb32546a0220c62d5a4f4f0bf2ac03a1702fed664736f6c634300081600330000000000000000000000006bfdb6f4e65ead27118592a41eb927cea6956198
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806377d869b51161008c578063a38dcbd011610066578063a38dcbd0146101ee578063ac4afa3814610201578063f2fde38b1461024b578063fc0c546a1461025e57600080fd5b806377d869b51461016f57806387370846146101825780638da5cb5b146101c957600080fd5b8063379607f5116100c8578063379607f51461012e57806341a2738c1461014157806347bbd65b14610154578063715018a61461016757600080fd5b8063081e3eda146100ef57806311b6aa1514610106578063180d512114610119575b600080fd5b6002545b6040519081526020015b60405180910390f35b6100f3610114366004610f24565b610271565b61012c610127366004610f3d565b610380565b005b61012c61013c366004610f24565b610587565b61012c61014f36600461106e565b610716565b6100f3610162366004611137565b610875565b61012c6108f0565b61012c61017d366004611163565b610904565b6101b4610190366004611137565b60036020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016100fd565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100fd565b61012c6101fc366004610f24565b6109b8565b61021461020f366004610f24565b610a89565b604080519788526020880196909652948601939093526060850191909152608084015260a0830152151560c082015260e0016100fd565b61012c610259366004611185565b610adb565b6001546101d6906001600160a01b031681565b60008060028381548110610287576102876111a0565b60009182526020918290206040805160e081018252600790930290910180548084526001820154948401949094526002810154918301919091526003810154606083015260048101546080830152600581015460a08301526006015460ff16151560c08201529150421015610300575061271092915050565b80602001516000036103155750600092915050565b602081015181516000919061032a90426111cc565b61033491906111df565b9050816040015182606001518261034b9190611201565b1061035a575060009392505050565b60608201516103699082611201565b826040015161037891906111cc565b949350505050565b610388610b1e565b4284116103a857604051630407b05b60e31b815260040160405180910390fd5b6040805160e081018252858152602081018781529181018581526060820185815260808301858152600060a08501818152600160c08701818152600280548084018255945296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60079094029384015596517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad1830155517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad282015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad382015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad4909101805460ff191691151591909117905554610521906001600160a01b0316333084610b4b565b600254610530906001906111cc565b604080518681526020810186905290810187905260608101849052608081018390527f5a6831b5f0fb47d911506eb168c4bc7a677acee8bc217f2891705ee59a6d2da59060a0015b60405180910390a25050505050565b6002818154811061059a5761059a6111a0565b600091825260209091206006600790920201015460ff166105ce5760405163bf94dd6160e01b815260040160405180910390fd5b60006105d982610271565b9050336127108290036105ff5760405163069fbbbb60e11b815260040160405180910390fd5b60008381526003602090815260408083206001600160a01b0385168452909152812080549091036106435760405163b317087b60e01b815260040160405180910390fd5b600083600003610665576001820154825461065e91906111cc565b905061069a565b600182015461271061067786826111cc565b84546106839190611201565b61068d91906111df565b61069791906111cc565b90505b801561070f578082600101546106b09190611218565b600180840191909155546106ce906001600160a01b03168483610bb8565b60408051828152602081018790526001600160a01b038516917f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79101610578565b5050505050565b61071e610b1e565b60025481106107405760405163f591b27760e01b815260040160405180910390fd5b60028181548110610753576107536111a0565b600091825260209091206006600790920201015460ff166107875760405163bf94dd6160e01b815260040160405180910390fd5b60006002828154811061079c5761079c6111a0565b60009182526020918290206040805160e081018252600790930290910180548084526001820154948401949094526002810154918301919091526003810154606083015260048101546080830152600581015460a08301526006015460ff16151560c0820152915042111561082457604051630407b05b60e31b815260040160405180910390fd5b60005b845181101561070f5761086d858281518110610845576108456111a0565b602002602001015185838151811061085f5761085f6111a0565b602002602001015185610bee565b600101610827565b60008281526003602090815260408083206001600160a01b0385168452825280832081518083019092528054825260010154918101829052906127106108ba86610271565b6108c6906127106111cc565b83516108d29190611201565b6108dc91906111df565b6108e691906111cc565b9150505b92915050565b6108f8610b1e565b6109026000610d3a565b565b61090c610b1e565b600060028381548110610921576109216111a0565b60009182526020909120600790910201600681015490915060ff166109595760405163bf94dd6160e01b815260040160405180910390fd5b805442111561097b57604051630407b05b60e31b815260040160405180910390fd5b81815560405182815283907f3698dd4c097ed3956bb4e7e827691e05ae3b1a5120ed8dd486dfdfa7997d86229060200160405180910390a2505050565b6109c0610b1e565b6000600282815481106109d5576109d56111a0565b60009182526020909120600790910201600681015490915060ff16610a0d5760405163bf94dd6160e01b815260040160405180910390fd5b8054421115610a2f57604051630407b05b60e31b815260040160405180910390fd5b60068101805460ff191690556004810154600154610a5a916001600160a01b03909116903390610bb8565b60405182907fa9c049090afebc2cec22912b6f0ef390f83d83a5d7f08faee82317e03baea62590600090a25050565b60028181548110610a9957600080fd5b60009182526020909120600790910201805460018201546002830154600384015460048501546005860154600690960154949650929491939092919060ff1687565b610ae3610b1e565b6001600160a01b038116610b1257604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610b1b81610d3a565b50565b6000546001600160a01b031633146109025760405163118cdaa760e01b8152336004820152602401610b09565b6040516001600160a01b038481166024830152838116604483015260648201839052610bb29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610d8a565b50505050565b6040516001600160a01b03838116602483015260448201839052610be991859182169063a9059cbb90606401610b80565b505050565b610bf6610b1e565b600060028281548110610c0b57610c0b6111a0565b90600052602060002090600702016005015460028381548110610c3057610c306111a0565b906000526020600020906007020160040154610c4c91906111cc565b905082811015610c6f57604051631d3fde9360e31b815260040160405180910390fd5b8260028381548110610c8357610c836111a0565b90600052602060002090600702016005016000828254610ca39190611218565b909155505060008281526003602090815260408083206001600160a01b03881684529091529020805415610cea57604051637f61439760e01b815260040160405180910390fd5b8054610cf7908590611218565b815560408051858152602081018590526001600160a01b038716917f6e7afbffffc7b8847b0133ddf7515d6bd6aae2666486226f0f2e9a88076ca29d9101610578565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610d9f6001600160a01b03841683610ded565b90508051600014158015610dc4575080806020019051810190610dc2919061122b565b155b15610be957604051635274afe760e01b81526001600160a01b0384166004820152602401610b09565b6060610dfb83836000610e02565b9392505050565b606081471015610e275760405163cd78605960e01b8152306004820152602401610b09565b600080856001600160a01b03168486604051610e43919061124d565b60006040518083038185875af1925050503d8060008114610e80576040519150601f19603f3d011682016040523d82523d6000602084013e610e85565b606091505b5091509150610e95868383610e9f565b9695505050505050565b606082610eb457610eaf82610efb565b610dfb565b8151158015610ecb57506001600160a01b0384163b155b15610ef457604051639996b31560e01b81526001600160a01b0385166004820152602401610b09565b5080610dfb565b805115610f0b5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610f3657600080fd5b5035919050565b600080600080600060a08688031215610f5557600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610fb757610fb7610f78565b604052919050565b600067ffffffffffffffff821115610fd957610fd9610f78565b5060051b60200190565b80356001600160a01b0381168114610ffa57600080fd5b919050565b600082601f83011261101057600080fd5b8135602061102561102083610fbf565b610f8e565b8083825260208201915060208460051b87010193508684111561104757600080fd5b602086015b84811015611063578035835291830191830161104c565b509695505050505050565b60008060006060848603121561108357600080fd5b833567ffffffffffffffff8082111561109b57600080fd5b818601915086601f8301126110af57600080fd5b813560206110bf61102083610fbf565b82815260059290921b8401810191818101908a8411156110de57600080fd5b948201945b83861015611103576110f486610fe3565b825294820194908201906110e3565b9750508701359250508082111561111957600080fd5b5061112686828701610fff565b925050604084013590509250925092565b6000806040838503121561114a57600080fd5b8235915061115a60208401610fe3565b90509250929050565b6000806040838503121561117657600080fd5b50508035926020909101359150565b60006020828403121561119757600080fd5b610dfb82610fe3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156108ea576108ea6111b6565b6000826111fc57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176108ea576108ea6111b6565b808201808211156108ea576108ea6111b6565b60006020828403121561123d57600080fd5b81518015158114610dfb57600080fd5b6000825160005b8181101561126e5760208186018101518583015201611254565b50600092019182525091905056fea2646970667358221220ee52c49ff9416a619bdb2e3abcb32546a0220c62d5a4f4f0bf2ac03a1702fed664736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006bfdb6f4e65ead27118592a41eb927cea6956198
-----Decoded View---------------
Arg [0] : _token (address): 0x6bfDB6f4E65Ead27118592A41eB927cEa6956198
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006bfdb6f4e65ead27118592a41eb927cea6956198
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000358 | 41,529,324.3975 | $14,869.16 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.