Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 182 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Perform Bulk Tra... | 22628404 | 41 days ago | IN | 0 ETH | 0.00712199 | ||||
Perform Bulk Tra... | 22628403 | 41 days ago | IN | 0 ETH | 0.06680055 | ||||
Perform Bulk Tra... | 22628400 | 41 days ago | IN | 0 ETH | 0.06680061 | ||||
Perform Bulk Tra... | 22628399 | 41 days ago | IN | 0 ETH | 0.06680012 | ||||
Perform Bulk Tra... | 22628396 | 41 days ago | IN | 0 ETH | 0.06680044 | ||||
Perform Bulk Tra... | 22628394 | 41 days ago | IN | 0 ETH | 0.06672314 | ||||
Perform Bulk Tra... | 22628393 | 41 days ago | IN | 0 ETH | 0.06680055 | ||||
Perform Bulk Tra... | 22628392 | 41 days ago | IN | 0 ETH | 0.06504716 | ||||
Perform Bulk Tra... | 22628391 | 41 days ago | IN | 0 ETH | 0.06223287 | ||||
Perform Bulk Tra... | 22628390 | 41 days ago | IN | 0 ETH | 0.05995297 | ||||
Perform Bulk Tra... | 22628389 | 41 days ago | IN | 0 ETH | 0.05725766 | ||||
Perform Bulk Tra... | 22628388 | 41 days ago | IN | 0 ETH | 0.05508472 | ||||
Perform Bulk Tra... | 22628387 | 41 days ago | IN | 0 ETH | 0.05277826 | ||||
Perform Bulk Tra... | 22628386 | 41 days ago | IN | 0 ETH | 0.05124803 | ||||
Perform Bulk Tra... | 22628385 | 41 days ago | IN | 0 ETH | 0.04803091 | ||||
Perform Bulk Tra... | 22628383 | 41 days ago | IN | 0 ETH | 0.04882761 | ||||
Perform Bulk Tra... | 22628381 | 41 days ago | IN | 0 ETH | 0.05200304 | ||||
Perform Bulk Tra... | 22628380 | 41 days ago | IN | 0 ETH | 0.04875328 | ||||
Perform Bulk Tra... | 22628379 | 41 days ago | IN | 0 ETH | 0.04609037 | ||||
Perform Bulk Tra... | 22628377 | 41 days ago | IN | 0 ETH | 0.04718014 | ||||
Perform Bulk Tra... | 22628375 | 41 days ago | IN | 0 ETH | 0.04819203 | ||||
Perform Bulk Tra... | 22628374 | 41 days ago | IN | 0 ETH | 0.04582957 | ||||
Perform Bulk Tra... | 22628363 | 41 days ago | IN | 0 ETH | 0.06648083 | ||||
Perform Bulk Tra... | 22628360 | 41 days ago | IN | 0 ETH | 0.06680012 | ||||
Perform Bulk Tra... | 22628359 | 41 days ago | IN | 0 ETH | 0.06680061 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
0x60806040 | 22617657 | 43 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BulkTransfer
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {WhitelistAgent} from "./WhitelistAgent.sol"; contract BulkTransfer is WhitelistAgent { using SafeERC20 for IERC20; // ================================================== // ===================== Errors ===================== // ================================================== error InvalidBulkTransferNonce(bytes32 _transferHash, uint256 _expectedNonce); error InvalidBulkTransferParams(); error InvalidToken(); error InvalidTransfer(); error InvalidTotalAmount(); error AlreadyExecutedBulkTransfer(bytes32 _transferHashForNonce); // ================================================== // ===================== Events ===================== // ================================================== event BulkTransferExecuted(bytes32 indexed _transferHash, uint256 _nonce, bytes32 _transferHashForNonce); // ================================================== // ===================== Fields ===================== // ================================================== mapping(address => mapping (bytes32 => uint256)) private _tokenToTransferHashToNonceMap; mapping(address => mapping (bytes32 => bytes32)) private _tokenToTransferHashToTransferMap; // ================================================== // =============== External Functions =============== // ================================================== function performBulkTransfer( address _token, bytes32 _transferHash, uint256 _nonce, uint256 _totalAmount, address[] calldata _recipients, uint256[] calldata _amounts ) external onlyWorldLibertyOwnerOrWhitelist(msg.sender) { if (_token == address(0)) { revert InvalidToken(); } if (_recipients.length != _amounts.length) { revert InvalidBulkTransferParams(); } uint256 currentNonce = getCurrentNonceByTokenAndTransferHash(_token, _transferHash); if (currentNonce != _nonce) { revert InvalidBulkTransferNonce(_transferHash, currentNonce); } bytes32 transferHashForNonce = keccak256(abi.encode(_recipients, _amounts)); if (_tokenToTransferHashToTransferMap[_token][_transferHash] == transferHashForNonce) { revert AlreadyExecutedBulkTransfer(transferHashForNonce); } _tokenToTransferHashToTransferMap[_token][_transferHash] = transferHashForNonce; IERC20(_token).safeTransferFrom(msg.sender, address(this), _totalAmount); uint256 runningTotal = 0; for (uint256 i; i < _recipients.length; ++i) { if (_recipients[i] == address(0) || _amounts[i] == 0) { revert InvalidTransfer(); } runningTotal += _amounts[i]; IERC20(_token).safeTransfer(_recipients[i], _amounts[i]); } if (runningTotal != _totalAmount) { revert InvalidTotalAmount(); } _tokenToTransferHashToNonceMap[_token][_transferHash] = currentNonce + 1; emit BulkTransferExecuted(_transferHash, _nonce, transferHashForNonce); } // ================================================== // ================ Public Functions ================ // ================================================== function getCurrentNonceByTokenAndTransferHash( address _token, bytes32 _transferHash ) public view returns (uint256) { return _tokenToTransferHashToNonceMap[_token][_transferHash]; } function geNonceHashByTokenAndTransferHash( address _token, bytes32 _transferHash ) public view returns (bytes32) { return _tokenToTransferHashToTransferMap[_token][_transferHash]; } }
// 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.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance < type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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.2.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 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 { /** * @dev An operation with an ERC-20 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. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ 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. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ 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. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ 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 Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { 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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { 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 silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// 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: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; abstract contract IWLFI is IERC20, Ownable {}
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {WorldLibertyOwnable} from "./WorldLibertyOwnable.sol"; abstract contract WhitelistAgent is WorldLibertyOwnable { // ================================================== // ===================== Errors ===================== // ================================================== error NotWhitelisted(address _user); // ================================================== // ===================== Events ===================== // ================================================== event SetWhitelisted(address indexed _user, bool _isEnabled); // ================================================== // =================== Modifiers ==================== // ================================================== modifier onlyWorldLibertyOwnerOrWhitelist(address _user) { if (_user != owner() && !getWhitelistStatus(_user)) { revert NotWhitelisted(_user); } _; } // ================================================== // ===================== Fields ===================== // ================================================== mapping (address => bool) private _whitelistStatus; // ================================================== // =============== External Functions =============== // ================================================== constructor() { _ownerSetUserWhitelist(/* _user = */ msg.sender, /* _isWhitelisted = */ true); } /** * @notice Sets a user's whitelist status for transferring while this contract is disabled. Can only be invoked * once by `owner()`. * * @param _user The address whose whitelist status will change * @param _isWhitelisted True if the `_user` is whitelisted or false if not. */ function ownerSetWhitelistStatus( address _user, bool _isWhitelisted ) external onlyWorldLibertyOwner(msg.sender) { _ownerSetUserWhitelist(_user, _isWhitelisted); } // ================================================== // ================ Public Functions ================ // ================================================== /** * @notice Checks if the provider `_user` can transfer tokens if the contract state is still disabled. * * @param _user The user whose initial whitelist status should be checked */ function getWhitelistStatus(address _user) public view returns (bool) { return _whitelistStatus[_user]; } // ================================================== // =============== Internal Functions =============== // ================================================== function _ownerSetUserWhitelist(address _user, bool _isWhitelisted) internal { _whitelistStatus[_user] = _isWhitelisted; emit SetWhitelisted(_user, _isWhitelisted); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {IWLFI} from "./interfaces/IWLFI.sol"; abstract contract WorldLibertyOwnable { // ================================================== // ===================== Errors ===================== // ================================================== error OwnableUnauthorizedAccount(address _account); // ================================================== // =================== Modifiers ==================== // ================================================== modifier onlyWorldLibertyOwner(address _sender) { if (_sender != owner()) { revert OwnableUnauthorizedAccount(_sender); } _; } // ================================================== // ===================== Fields ===================== // ================================================== IWLFI public constant WLFI = IWLFI(0xdA5e1988097297dCdc1f90D4dFE7909e847CBeF6); // ================================================== // ================ Public Functions ================ // ================================================== function owner() public view returns (address) { return WLFI.owner(); } }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"bytes32","name":"_transferHashForNonce","type":"bytes32"}],"name":"AlreadyExecutedBulkTransfer","type":"error"},{"inputs":[{"internalType":"bytes32","name":"_transferHash","type":"bytes32"},{"internalType":"uint256","name":"_expectedNonce","type":"uint256"}],"name":"InvalidBulkTransferNonce","type":"error"},{"inputs":[],"name":"InvalidBulkTransferParams","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"InvalidTotalAmount","type":"error"},{"inputs":[],"name":"InvalidTransfer","type":"error"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"NotWhitelisted","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":"bytes32","name":"_transferHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_nonce","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_transferHashForNonce","type":"bytes32"}],"name":"BulkTransferExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"SetWhitelisted","type":"event"},{"inputs":[],"name":"WLFI","outputs":[{"internalType":"contract IWLFI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_transferHash","type":"bytes32"}],"name":"geNonceHashByTokenAndTransferHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_transferHash","type":"bytes32"}],"name":"getCurrentNonceByTokenAndTransferHash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getWhitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_isWhitelisted","type":"bool"}],"name":"ownerSetWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_transferHash","type":"bytes32"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint256","name":"_totalAmount","type":"uint256"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"performBulkTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001c336001610021565b610085565b6001600160a01b03821660008181526020819052604090819020805460ff1916841515179055517f26742d25b283cf51a0e3c4183d934871ed96d1bd33cf40706f87a94f29f686ac9061007990841515815260200190565b60405180910390a25050565b610b46806100946000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063930286961161005b57806393028696146100e8578063d9ba32fc146100fd578063f9b6fae214610136578063fd8d0cdf1461016c57600080fd5b8063076b7c2a146100825780635e787f19146100ab5780638da5cb5b146100d3575b600080fd5b610095610090366004610737565b61017f565b6040516100a2919061077c565b60405180910390f35b6100c673da5e1988097297dcdc1f90d4dfe7909e847cbef681565b6040516100a291906107a9565b6100db6101aa565b6040516100a291906107c0565b6100fb6100f63660046107e1565b610227565b005b61012961010b366004610814565b6001600160a01b031660009081526020819052604090205460ff1690565b6040516100a29190610845565b610095610144366004610737565b6001600160a01b03919091166000908152600260209081526040808320938352929052205490565b6100fb61017a3660046108a5565b61027b565b6001600160a01b03821660009081526001602090815260408083208484529091529020545b92915050565b600073da5e1988097297dcdc1f90d4dfe7909e847cbef66001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610222919061097a565b905090565b336102306101aa565b6001600160a01b0316816001600160a01b03161461026c578060405163118cdaa760e01b815260040161026391906107c0565b60405180910390fd5b61027683836105a5565b505050565b336102846101aa565b6001600160a01b0316816001600160a01b0316141580156102be57506001600160a01b03811660009081526020819052604090205460ff16155b156102de5780604051636f8bf18b60e11b815260040161026391906107c0565b6001600160a01b0389166103055760405163c1ab6dc160e01b815260040160405180910390fd5b83821461032557604051634612e85b60e01b815260040160405180910390fd5b60006103318a8a61017f565b90508781146103575788816040516319b66f5f60e01b815260040161026392919061099b565b6000868686866040516020016103709493929190610a6a565b60408051601f1981840301815291815281516020928301206001600160a01b038e166000908152600284528281208e82529093529120549091508190036103cc5780604051633928c31b60e21b8152600401610263919061077c565b6001600160a01b038b1660008181526002602090815260408083208e845290915290208290556103fe9033308b610605565b6000805b8781101561050857600089898381811061041e5761041e610a9b565b90506020020160208101906104339190610814565b6001600160a01b03161480610460575086868281811061045557610455610a9b565b905060200201356000145b1561047e57604051632f35253160e01b815260040160405180910390fd5b86868281811061049057610490610a9b565b90506020020135826104a29190610ac7565b91506105008989838181106104b9576104b9610a9b565b90506020020160208101906104ce9190610814565b8888848181106104e0576104e0610a9b565b905060200201358f6001600160a01b03166106659092919063ffffffff16565b600101610402565b50888114610529576040516324204a3560e21b815260040160405180910390fd5b610534836001610ac7565b6001600160a01b038d1660009081526001602090815260408083208f84529091529081902091909155518b907f473267f382bf16e0fea1b17e6f0fdeb6d1a96085215b48465638635037d2afcf9061058f908d90869061099b565b60405180910390a2505050505050505050505050565b6001600160a01b03821660008181526020819052604090819020805460ff1916841515179055517f26742d25b283cf51a0e3c4183d934871ed96d1bd33cf40706f87a94f29f686ac906105f9908490610845565b60405180910390a25050565b61065f84856001600160a01b03166323b872dd86868660405160240161062d93929190610ada565b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061068b565b50505050565b61027683846001600160a01b031663a9059cbb858560405160240161062d929190610b02565b600080602060008451602086016000885af1806106ae576040513d6000823e3d81fd5b50506000513d915081156106c65780600114156106d3565b6001600160a01b0384163b155b1561065f5783604051635274afe760e01b815260040161026391906107c0565b60006001600160a01b0382166101a4565b61070d816106f3565b811461071857600080fd5b50565b80356101a481610704565b8061070d565b80356101a481610726565b6000806040838503121561074d5761074d600080fd5b6000610759858561071b565b925050602061076a8582860161072c565b9150509250929050565b805b82525050565b602081016101a48284610774565b60006101a4826106f3565b60006101a48261078a565b61077681610795565b602081016101a482846107a0565b610776816106f3565b602081016101a482846107b7565b80151561070d565b80356101a4816107ce565b600080604083850312156107f7576107f7600080fd5b6000610803858561071b565b925050602061076a858286016107d6565b60006020828403121561082957610829600080fd5b6000610835848461071b565b949350505050565b801515610776565b602081016101a4828461083d565b60008083601f84011261086857610868600080fd5b50813567ffffffffffffffff81111561088357610883600080fd5b60208301915083602082028301111561089e5761089e600080fd5b9250929050565b60008060008060008060008060c0898b0312156108c4576108c4600080fd5b60006108d08b8b61071b565b98505060206108e18b828c0161072c565b97505060406108f28b828c0161072c565b96505060606109038b828c0161072c565b955050608089013567ffffffffffffffff81111561092357610923600080fd5b61092f8b828c01610853565b945094505060a089013567ffffffffffffffff81111561095157610951600080fd5b61095d8b828c01610853565b92509250509295985092959890939650565b80516101a481610704565b60006020828403121561098f5761098f600080fd5b6000610835848461096f565b604081016109a98285610774565b6109b66020830184610774565b9392505050565b60006109c983836107b7565b505060200190565b60006109b6602084018461071b565b8183526000602084019350818060005b85811015610a1d57610a0282846109d1565b610a0c88826109bd565b9750602083019250506001016109f0565b509495945050505050565b82818337505050565b81835260006020840193506001600160fb1b03831115610a5357610a53600080fd5b602083029250610a64838584610a28565b50500190565b60408082528101610a7c8186886109e0565b90508181036020830152610a91818486610a31565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156101a4576101a4610ab1565b60608101610ae882866107b7565b610af560208301856107b7565b6108356040830184610774565b604081016109a982856107b756fea26469706673582212203c11e400778cc7214db20cc2922d1393cb4f93681a254356bc1c0a60e0ebd37964736f6c63430008180033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063930286961161005b57806393028696146100e8578063d9ba32fc146100fd578063f9b6fae214610136578063fd8d0cdf1461016c57600080fd5b8063076b7c2a146100825780635e787f19146100ab5780638da5cb5b146100d3575b600080fd5b610095610090366004610737565b61017f565b6040516100a2919061077c565b60405180910390f35b6100c673da5e1988097297dcdc1f90d4dfe7909e847cbef681565b6040516100a291906107a9565b6100db6101aa565b6040516100a291906107c0565b6100fb6100f63660046107e1565b610227565b005b61012961010b366004610814565b6001600160a01b031660009081526020819052604090205460ff1690565b6040516100a29190610845565b610095610144366004610737565b6001600160a01b03919091166000908152600260209081526040808320938352929052205490565b6100fb61017a3660046108a5565b61027b565b6001600160a01b03821660009081526001602090815260408083208484529091529020545b92915050565b600073da5e1988097297dcdc1f90d4dfe7909e847cbef66001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610222919061097a565b905090565b336102306101aa565b6001600160a01b0316816001600160a01b03161461026c578060405163118cdaa760e01b815260040161026391906107c0565b60405180910390fd5b61027683836105a5565b505050565b336102846101aa565b6001600160a01b0316816001600160a01b0316141580156102be57506001600160a01b03811660009081526020819052604090205460ff16155b156102de5780604051636f8bf18b60e11b815260040161026391906107c0565b6001600160a01b0389166103055760405163c1ab6dc160e01b815260040160405180910390fd5b83821461032557604051634612e85b60e01b815260040160405180910390fd5b60006103318a8a61017f565b90508781146103575788816040516319b66f5f60e01b815260040161026392919061099b565b6000868686866040516020016103709493929190610a6a565b60408051601f1981840301815291815281516020928301206001600160a01b038e166000908152600284528281208e82529093529120549091508190036103cc5780604051633928c31b60e21b8152600401610263919061077c565b6001600160a01b038b1660008181526002602090815260408083208e845290915290208290556103fe9033308b610605565b6000805b8781101561050857600089898381811061041e5761041e610a9b565b90506020020160208101906104339190610814565b6001600160a01b03161480610460575086868281811061045557610455610a9b565b905060200201356000145b1561047e57604051632f35253160e01b815260040160405180910390fd5b86868281811061049057610490610a9b565b90506020020135826104a29190610ac7565b91506105008989838181106104b9576104b9610a9b565b90506020020160208101906104ce9190610814565b8888848181106104e0576104e0610a9b565b905060200201358f6001600160a01b03166106659092919063ffffffff16565b600101610402565b50888114610529576040516324204a3560e21b815260040160405180910390fd5b610534836001610ac7565b6001600160a01b038d1660009081526001602090815260408083208f84529091529081902091909155518b907f473267f382bf16e0fea1b17e6f0fdeb6d1a96085215b48465638635037d2afcf9061058f908d90869061099b565b60405180910390a2505050505050505050505050565b6001600160a01b03821660008181526020819052604090819020805460ff1916841515179055517f26742d25b283cf51a0e3c4183d934871ed96d1bd33cf40706f87a94f29f686ac906105f9908490610845565b60405180910390a25050565b61065f84856001600160a01b03166323b872dd86868660405160240161062d93929190610ada565b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061068b565b50505050565b61027683846001600160a01b031663a9059cbb858560405160240161062d929190610b02565b600080602060008451602086016000885af1806106ae576040513d6000823e3d81fd5b50506000513d915081156106c65780600114156106d3565b6001600160a01b0384163b155b1561065f5783604051635274afe760e01b815260040161026391906107c0565b60006001600160a01b0382166101a4565b61070d816106f3565b811461071857600080fd5b50565b80356101a481610704565b8061070d565b80356101a481610726565b6000806040838503121561074d5761074d600080fd5b6000610759858561071b565b925050602061076a8582860161072c565b9150509250929050565b805b82525050565b602081016101a48284610774565b60006101a4826106f3565b60006101a48261078a565b61077681610795565b602081016101a482846107a0565b610776816106f3565b602081016101a482846107b7565b80151561070d565b80356101a4816107ce565b600080604083850312156107f7576107f7600080fd5b6000610803858561071b565b925050602061076a858286016107d6565b60006020828403121561082957610829600080fd5b6000610835848461071b565b949350505050565b801515610776565b602081016101a4828461083d565b60008083601f84011261086857610868600080fd5b50813567ffffffffffffffff81111561088357610883600080fd5b60208301915083602082028301111561089e5761089e600080fd5b9250929050565b60008060008060008060008060c0898b0312156108c4576108c4600080fd5b60006108d08b8b61071b565b98505060206108e18b828c0161072c565b97505060406108f28b828c0161072c565b96505060606109038b828c0161072c565b955050608089013567ffffffffffffffff81111561092357610923600080fd5b61092f8b828c01610853565b945094505060a089013567ffffffffffffffff81111561095157610951600080fd5b61095d8b828c01610853565b92509250509295985092959890939650565b80516101a481610704565b60006020828403121561098f5761098f600080fd5b6000610835848461096f565b604081016109a98285610774565b6109b66020830184610774565b9392505050565b60006109c983836107b7565b505060200190565b60006109b6602084018461071b565b8183526000602084019350818060005b85811015610a1d57610a0282846109d1565b610a0c88826109bd565b9750602083019250506001016109f0565b509495945050505050565b82818337505050565b81835260006020840193506001600160fb1b03831115610a5357610a53600080fd5b602083029250610a64838584610a28565b50500190565b60408082528101610a7c8186886109e0565b90508181036020830152610a91818486610a31565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156101a4576101a4610ab1565b60608101610ae882866107b7565b610af560208301856107b7565b6108356040830184610774565b604081016109a982856107b756fea26469706673582212203c11e400778cc7214db20cc2922d1393cb4f93681a254356bc1c0a60e0ebd37964736f6c63430008180033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $3,077.92 | 0.000001 | $0.003078 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.