Overview
ETH Balance
0 ETH
Eth Value
$0.00Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x3f96da20edf7c9528fb0cf7e17a2dba6d64f18867f15185389c3e8ccd1a78793 | Approve | (pending) | 18 days ago | IN | 0 ETH | (Pending) | |||
Transfer | 21246598 | 31 secs ago | IN | 0 ETH | 0.00078993 | ||||
Transfer | 21246588 | 2 mins ago | IN | 0 ETH | 0.00042936 | ||||
Transfer | 21246577 | 4 mins ago | IN | 0 ETH | 0.00064135 | ||||
Transfer | 21246569 | 6 mins ago | IN | 0 ETH | 0.00075362 | ||||
Transfer | 21246565 | 7 mins ago | IN | 0 ETH | 0.00039471 | ||||
Transfer | 21246546 | 10 mins ago | IN | 0 ETH | 0.00073485 | ||||
Transfer | 21246538 | 12 mins ago | IN | 0 ETH | 0.00077615 | ||||
Transfer | 21246528 | 14 mins ago | IN | 0 ETH | 0.00050022 | ||||
Transfer | 21246513 | 17 mins ago | IN | 0 ETH | 0.00045324 | ||||
Approve | 21246498 | 20 mins ago | IN | 0 ETH | 0.00064316 | ||||
Transfer | 21246451 | 30 mins ago | IN | 0 ETH | 0.00086077 | ||||
Transfer | 21246434 | 33 mins ago | IN | 0 ETH | 0.00042494 | ||||
Transfer | 21246426 | 35 mins ago | IN | 0 ETH | 0.00083554 | ||||
Transfer | 21246404 | 39 mins ago | IN | 0 ETH | 0.00045123 | ||||
Transfer | 21246388 | 42 mins ago | IN | 0 ETH | 0.00049439 | ||||
Transfer | 21246367 | 46 mins ago | IN | 0 ETH | 0.00055586 | ||||
Transfer | 21246359 | 48 mins ago | IN | 0 ETH | 0.00045478 | ||||
Transfer | 21246335 | 53 mins ago | IN | 0 ETH | 0.00061565 | ||||
Approve | 21246311 | 58 mins ago | IN | 0 ETH | 0.0009092 | ||||
Transfer | 21246302 | 1 hrs ago | IN | 0 ETH | 0.00100451 | ||||
Transfer | 21246297 | 1 hr ago | IN | 0 ETH | 0.00056046 | ||||
Transfer | 21246295 | 1 hr ago | IN | 0 ETH | 0.00081215 | ||||
Approve | 21246286 | 1 hr ago | IN | 0 ETH | 0.00076044 | ||||
Approve | 21246274 | 1 hr ago | IN | 0 ETH | 0.00083887 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19811609 | 200 days ago | 0.03212867 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xE3ed8ca9...B4221af21 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
WLD
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {Ownable} from "openzeppelin/access/Ownable.sol"; import {Ownable2Step} from "openzeppelin/access/Ownable2Step.sol"; import {ERC20} from "openzeppelin/token/ERC20/ERC20.sol"; /// @title WLD token /// @notice Contract for Worldcoin's ERC20 WLD token. /// /// It updates from the previous token contract, which is now deprecated. At /// deployment all existing balances are reinstated. /// /// After deployment, the owner can do a one-time mint of new tokens up to the /// `INITIAL_SUPPLY_CAP` of 10 billion. /// /// After `inflationUnlockTime` the owner can set the minter address, which can /// mint new tokens up to the inflation cap. The inflation cap is fixed /// percentage per period. From this it follows a maximum inflation rate per /// year. Whether or not to allow inflation can be goverened by the owner through /// the minter address. /// /// @author Worldcoin contract WLD is ERC20, Ownable2Step { ///////////////////////////////////////////////////////////////////////// /// PARAMETERS /// ///////////////////////////////////////////////////////////////////////// uint256 constant public INITIAL_SUPPLY_CAP = 10_000_000_000 * (10**18); uint256 constant public WAD_ONE = 10**18; /// @notice Has the initial mint been done? bool public initialMintDone; /// @notice The address of the inflation minter address public minter; /// @notice Inflation parameters, formula in _mint @dev description uint256 immutable public inflationUnlockTime; uint256 immutable public inflationCapPeriod; uint256 immutable public inflationCapWad; /// @notice Inflation cap state variables uint256 public currentPeriodEnd; uint256 public currentPeriodSupplyCap; ///////////////////////////////////////////////////////////////////////// /// EVENTS /// ///////////////////////////////////////////////////////////////////////// /// @notice Emitted when constructing the contract event TokenUpdated( address newToken, string name, string symbol, address[] existingHolders, uint256[] existingsAmounts, uint256 inflationCapPeriod, uint256 inflationCapWad, uint256 inflationLockPeriod ); /// @notice Emitted when minting tokens. Can be emited only once. event TokensMinted( address minter, address[] newHolders, uint256[] newAmounts ); /// @notice Emitted when inflation tokens are minted, after the initial mint. event InflationTokensMinted( address minter, address to, uint256 amount ); ///////////////////////////////////////////////////////////////////////// /// CONSTRUCTOR /// ///////////////////////////////////////////////////////////////////////// /// @notice Deploy a new token contract that replaces an existing one. constructor( address[] memory existingHolders, uint256[] memory existingAmounts, string memory name_, string memory symbol_, uint256 inflationCapPeriod_, uint256 inflationCapWad_, uint256 inflationLockPeriod_ ) ERC20(name_, symbol_) Ownable(msg.sender) { // Validate input. require(existingAmounts.length == existingHolders.length); require(inflationCapPeriod_ != 0); // Allow one initial mint initialMintDone = false; // Set the inflation cap parameters minter = address(0); inflationCapPeriod = inflationCapPeriod_; inflationCapWad = inflationCapWad_; inflationUnlockTime = inflationLockPeriod_ + block.timestamp; // Make sure a new inflation period starts on first call to mint. currentPeriodEnd = 0; currentPeriodSupplyCap = 0; // Reinstate balances for (uint256 i = 0; i < existingHolders.length; i++) { _update(address(0), existingHolders[i], existingAmounts[i]); } // Make sure the initial supply cap is maintained. require(totalSupply() <= INITIAL_SUPPLY_CAP); // Emit event. emit TokenUpdated( address(this), name_, symbol_, existingHolders, existingAmounts, inflationCapPeriod_, inflationCapWad_, inflationLockPeriod_ ); } ///////////////////////////////////////////////////////////////////////// /// OWNER ACTIONS /// ///////////////////////////////////////////////////////////////////////// /// @notice Mint new tokens. function mintOnce( address[] memory newHolders, uint256[] memory newAmounts ) external onlyOwner { // This must be the only time we allow this. require(initialMintDone == false); // Validate input. require(newHolders.length == newAmounts.length); // Mark initial mint as done. initialMintDone = true; // Mint tokens. for (uint256 i = 0; i < newHolders.length; i++) { _mint(newHolders[i], newAmounts[i]); } // Make sure the initial supply cap is maintained. require(totalSupply() <= INITIAL_SUPPLY_CAP); emit TokensMinted( msg.sender, newHolders, newAmounts ); } /// @notice Updates minter /// @dev onlyOwner /// @param minter_ new Minter address function setMinter(address minter_) external onlyOwner { minter = minter_; } /// @notice Prevents the owner from renouncing ownership /// @dev onlyOwner function renounceOwnership() public view override onlyOwner { revert(); } /////////////////////////////////////////////////////////////////// /// MINTER ACTIONS /// /////////////////////////////////////////////////////////////////// /// @notice Mints new tokens and assigns them to the target address. /// @dev This function performs inflation checks. Their semantics is as follows: /// * It is impossible to mint any tokens during the first `inflationLockPeriod_` seconds. // The end of the lock period is stored in `inflationUnlockTime`. /// * T inflation cap is in effect. /// The inflation cap is enforced as follows: /// 1. If the current time is after the end of the current inflation period, /// it is possible to raise the supply up to (current total supply) * (1 + inflation cap) /// between now and (now + inflation period length), without any additional constraints; /// 2. If the current time is before the end of the current inflation period, /// that period's supply is still controlled. /// NB: The logic outlined here means that it is possible for period over period inflation /// to reach up to (1 + inflation cap)^2 - 1, for some choices of period boundaries. /// The actual guarantees of this system are: /// 1. For any timestamp t0 and a natural number k, inflation measured between t0 and /// t0 + k * inflation period does not exceed (1 + inflation cap)^(k + 1) - 1. In other words, /// there is at most "one too many" inflation periods over any period of time. /// 2. For any timestamp t there exists a period tc < inflation period, /// such that inflation measured between (t + tc) and (t + tc + inflation period) /// does not exceed the inflation cap. In other words, period over period inflation is /// bounded by the inflation cap at least for some amount of time during each period. function mintInflation(address to, uint256 amount) external { // Validate input require(to != address(0)); require(amount != 0); // Must be minter require(msg.sender == minter); // Requires that the current time is after the mint lock-in period require(block.timestamp >= inflationUnlockTime); // Stars a new inflation period if the previous one ended if (block.timestamp > currentPeriodEnd) { // Update inflation period end currentPeriodEnd = block.timestamp + inflationCapPeriod; // Compute maximum supply for this period uint256 initialSupply = totalSupply(); uint256 mintable = (initialSupply * inflationCapWad) / WAD_ONE; currentPeriodSupplyCap = initialSupply + mintable; } // Mint inflation tokens _mint(to, amount); // Check amount against inflation cap for this period require(totalSupply() <= currentPeriodSupplyCap); // Emit event emit InflationTokensMinted(msg.sender, to, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.19; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor(address initialOwner) { _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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol) pragma solidity ^0.8.19; import "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner"); _transferOwnership(sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.19; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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 ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override 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 `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` 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 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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 `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `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 amount) internal { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _update(from, to, amount); } /** * @dev Transfers `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 amount) internal virtual { if (from == address(0)) { _totalSupply += amount; } else { uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { // Overflow not possible: amount <= fromBalance <= totalSupply. _balances[from] = fromBalance - amount; } } if (to == address(0)) { unchecked { // Overflow not possible: amount <= totalSupply or amount <= fromBalance <= totalSupply. _totalSupply -= amount; } } else { unchecked { // Overflow not possible: balance + amount is at most totalSupply, which we know fits into a uint256. _balances[to] += amount; } } emit Transfer(from, to, amount); } /** * @dev Creates `amount` 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 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _update(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, by transferring it to address(0). * 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 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _update(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.19; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.19; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.19; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"existingHolders","type":"address[]"},{"internalType":"uint256[]","name":"existingAmounts","type":"uint256[]"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"inflationCapPeriod_","type":"uint256"},{"internalType":"uint256","name":"inflationCapWad_","type":"uint256"},{"internalType":"uint256","name":"inflationLockPeriod_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InflationTokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"newToken","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"address[]","name":"existingHolders","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"existingsAmounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"inflationCapPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"inflationCapWad","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"inflationLockPeriod","type":"uint256"}],"name":"TokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address[]","name":"newHolders","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"newAmounts","type":"uint256[]"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"INITIAL_SUPPLY_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WAD_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPeriodEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPeriodSupplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"inflationCapPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inflationCapWad","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inflationUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialMintDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintInflation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"newHolders","type":"address[]"},{"internalType":"uint256[]","name":"newAmounts","type":"uint256[]"}],"name":"mintOnce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter_","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c35760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103d8578063e30c3978146103eb578063f2fde38b146103fc578063fca3b5aa1461040f57600080fd5b8063a9059cbb146103a3578063be5ddb99146103b6578063cee8d013146103c957600080fd5b80638da5cb5b116100d35780638da5cb5b1461036e57806395d89b411461037f57806395dba44c14610387578063a457c2d71461039057600080fd5b8063715018a61461034b57806379ba509714610353578063883c3a631461035b57600080fd5b8063313ce5671161016657806341e65e0b1161014057806341e65e0b146102cb57806358794456146102f25780635915b17e146102fb57806370a082311461032257600080fd5b8063313ce5671461029557806336c545ca146102a457806339509351146102b857600080fd5b8063085624ed116101a2578063085624ed14610242578063095ea7b31461025757806318160ddd1461027a57806323b872dd1461028257600080fd5b806216d010146101c857806306fdde03146102025780630754617214610217575b600080fd5b6101ef7f000000000000000000000000000000000000000000000000000469206254fc2481565b6040519081526020015b60405180910390f35b61020a610422565b6040516101f99190610e32565b60075461022a906001600160a01b031681565b6040516001600160a01b0390911681526020016101f9565b610255610250366004610f72565b6104b4565b005b61026a610265366004611032565b6105af565b60405190151581526020016101f9565b6002546101ef565b61026a61029036600461105c565b6105c9565b604051601281526020016101f9565b60065461026a90600160a01b900460ff1681565b61026a6102c6366004611032565b6105ed565b6101ef7f00000000000000000000000000000000000000000000000000000000002819a081565b6101ef60085481565b6101ef7f0000000000000000000000000000000000000000000000000000000080f541c181565b6101ef610330366004611098565b6001600160a01b031660009081526020819052604090205490565b61025561060f565b610255610617565b6101ef6b204fce5e3e2502611000000081565b6005546001600160a01b031661022a565b61020a610696565b6101ef60095481565b61026a61039e366004611032565b6106a5565b61026a6103b1366004611032565b610720565b6102556103c4366004611032565b61072e565b6101ef670de0b6b3a764000081565b6101ef6103e63660046110ba565b610888565b6006546001600160a01b031661022a565b61025561040a366004611098565b6108b3565b61025561041d366004611098565b610924565b606060038054610431906110ed565b80601f016020809104026020016040519081016040528092919081815260200182805461045d906110ed565b80156104aa5780601f1061047f576101008083540402835291602001916104aa565b820191906000526020600020905b81548152906001019060200180831161048d57829003601f168201915b5050505050905090565b6104bc61094e565b600654600160a01b900460ff16156104d357600080fd5b80518251146104e157600080fd5b6006805460ff60a01b1916600160a01b17905560005b825181101561054e5761053c83828151811061051557610515611127565b602002602001015183838151811061052f5761052f611127565b60200260200101516109aa565b8061054681611153565b9150506104f7565b506b204fce5e3e2502611000000061056560025490565b111561057057600080fd5b7f0436dcb8b7b3be78d785be7ea8f04f241ce5d275057aea7f7fd4b6e4dfda3aa43383836040516105a39392919061116c565b60405180910390a15050565b6000336105bd818585610a10565b60019150505b92915050565b6000336105d7858285610b35565b6105e2858585610baf565b506001949350505050565b6000336105bd8185856106008383610888565b61060a9190611200565b610a10565b6101c361094e565b60065433906001600160a01b0316811461068a5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b61069381610c85565b50565b606060048054610431906110ed565b600033816106b38286610888565b9050838110156107135760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610681565b6105e28286868403610a10565b6000336105bd818585610baf565b6001600160a01b03821661074157600080fd5b8060000361074e57600080fd5b6007546001600160a01b0316331461076557600080fd5b7f0000000000000000000000000000000000000000000000000000000080f541c142101561079257600080fd5b600854421115610827576107c67f00000000000000000000000000000000000000000000000000000000002819a042611200565b60085560006107d460025490565b90506000670de0b6b3a764000061080b7f000000000000000000000000000000000000000000000000000469206254fc2484611213565b610815919061122a565b90506108218183611200565b60095550505b61083182826109aa565b600954600254111561084257600080fd5b604080513381526001600160a01b03841660208201529081018290527f0188e46dffface414ae6c071b6f739093e36d85d0f016e3d159dffe68c1b08cf906060016105a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6108bb61094e565b600680546001600160a01b0383166001600160a01b031990911681179091556108ec6005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61092c61094e565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146109a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610681565b565b6001600160a01b038216610a005760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610681565b610a0c60008383610c9e565b5050565b6001600160a01b038316610a725760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610681565b6001600160a01b038216610ad35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610681565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610b418484610888565b90506000198114610ba95781811015610b9c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610681565b610ba98484848403610a10565b50505050565b6001600160a01b038316610c135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610681565b6001600160a01b038216610c755760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610681565b610c80838383610c9e565b505050565b600680546001600160a01b031916905561069381610de0565b6001600160a01b038316610cc9578060026000828254610cbe9190611200565b90915550610d609050565b6001600160a01b03831660009081526020819052604090205481811015610d415760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610681565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610d7c57600280548290039055610d9b565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b2891815260200190565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b81811015610e5f57858101830151858201604001528201610e43565b506000604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610ebf57610ebf610e80565b604052919050565b600067ffffffffffffffff821115610ee157610ee1610e80565b5060051b60200190565b80356001600160a01b0381168114610f0257600080fd5b919050565b600082601f830112610f1857600080fd5b81356020610f2d610f2883610ec7565b610e96565b82815260059290921b84018101918181019086841115610f4c57600080fd5b8286015b84811015610f675780358352918301918301610f50565b509695505050505050565b60008060408385031215610f8557600080fd5b823567ffffffffffffffff80821115610f9d57600080fd5b818501915085601f830112610fb157600080fd5b81356020610fc1610f2883610ec7565b82815260059290921b84018101918181019089841115610fe057600080fd5b948201945b8386101561100557610ff686610eeb565b82529482019490820190610fe5565b9650508601359250508082111561101b57600080fd5b5061102885828601610f07565b9150509250929050565b6000806040838503121561104557600080fd5b61104e83610eeb565b946020939093013593505050565b60008060006060848603121561107157600080fd5b61107a84610eeb565b925061108860208501610eeb565b9150604084013590509250925092565b6000602082840312156110aa57600080fd5b6110b382610eeb565b9392505050565b600080604083850312156110cd57600080fd5b6110d683610eeb565b91506110e460208401610eeb565b90509250929050565b600181811c9082168061110157607f821691505b60208210810361112157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016111655761116561113d565b5060010190565b6001600160a01b038481168252606060208084018290528551918401829052600092868201929091906080860190855b818110156111ba57855185168352948301949183019160010161119c565b5050858103604087015286518082529082019350915080860160005b838110156111f2578151855293820193908201906001016111d6565b509298975050505050505050565b808201808211156105c3576105c361113d565b80820281158282048414176105c3576105c361113d565b60008261124757634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212208f25c13949d038c74acf5c2d39f639b1fa265ad4e1765ff96ee0c4f504ba27a864736f6c63430008130033
Loading...
Loading
Loading...
Loading
OVERVIEW
The Worldcoin system revolves around World ID, a privacy-preserving global identity network. World ID enables users to verify their humanness online ("Proof of Personhood") while maintaining their privacy through zero-knowledge proofs.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 53.44% | $2.21 | 25,925.3014 | $57,294.92 | |
ETH | 36.36% | $0.000445 | 87,584,152.0981 | $38,986.33 | |
ETH | 3.08% | $1.01 | 3,273.3898 | $3,299.58 | |
ETH | 0.10% | $0.083144 | 1,300 | $108.09 | |
ETH | 0.02% | $0.359732 | 64.1525 | $23.08 | |
ETH | 0.02% | $0.999984 | 18.8357 | $18.84 | |
ETH | <0.01% | $0.449588 | 4.3051 | $1.94 | |
OP | 4.10% | $2.21 | 1,985.6844 | $4,393.19 | |
OP | 1.47% | $0.999953 | 1,571.5363 | $1,571.46 | |
OP | <0.01% | $3,318.53 | 0.00255765 | $8.49 | |
OP | <0.01% | $98,357 | 0.00000741 | $0.7288 | |
WORLD | 0.93% | $2.2 | 454.2174 | $999.28 | |
WORLD | 0.21% | $1 | 226.7628 | $226.76 | |
WORLD | <0.01% | $3,318.18 | 0.00053582 | $1.78 | |
BSC | 0.16% | $1 | 170.386 | $170.56 | |
BSC | 0.07% | $1.98 | 37.0082 | $73.28 | |
BSC | 0.03% | $0.225501 | 135.33 | $30.52 | |
BSC | <0.01% | $98,827.9 | 0.00002289 | $2.26 | |
BSC | <0.01% | $632.71 | 0.0000001 | $0.000063 | |
POL | <0.01% | $16.14 | 0.1002 | $1.62 |
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.