Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FraxGod
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.22;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import {ERC20FlashMint} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol";
contract FraxGod is ERC20, ERC20Burnable, ERC20FlashMint {
constructor() ERC20("Test FraxGod", "tFXG") {
_mint(msg.sender, 10000000000 * 10 ** decimals());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20FlashMint.sol)
pragma solidity ^0.8.20;
import {IERC3156FlashBorrower} from "../../../interfaces/IERC3156FlashBorrower.sol";
import {IERC3156FlashLender} from "../../../interfaces/IERC3156FlashLender.sol";
import {ERC20} from "../ERC20.sol";
/**
* @dev Implementation of the ERC-3156 Flash loans extension, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*
* Adds the {flashLoan} method, which provides flash loan support at the token
* level. By default there is no fee, but this can be changed by overriding {flashFee}.
*
* NOTE: When this extension is used along with the {ERC20Capped} or {ERC20Votes} extensions,
* {maxFlashLoan} will not correctly reflect the maximum that can be flash minted. We recommend
* overriding {maxFlashLoan} so that it correctly reflects the supply cap.
*/
abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender {
bytes32 private constant RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan");
/**
* @dev The loan token is not valid.
*/
error ERC3156UnsupportedToken(address token);
/**
* @dev The requested loan exceeds the max loan value for `token`.
*/
error ERC3156ExceededMaxLoan(uint256 maxLoan);
/**
* @dev The receiver of a flashloan is not a valid {IERC3156FlashBorrower-onFlashLoan} implementer.
*/
error ERC3156InvalidReceiver(address receiver);
/**
* @dev Returns the maximum amount of tokens available for loan.
* @param token The address of the token that is requested.
* @return The amount of token that can be loaned.
*
* NOTE: This function does not consider any form of supply cap, so in case
* it's used in a token with a cap like {ERC20Capped}, make sure to override this
* function to integrate the cap instead of `type(uint256).max`.
*/
function maxFlashLoan(address token) public view virtual returns (uint256) {
return token == address(this) ? type(uint256).max - totalSupply() : 0;
}
/**
* @dev Returns the fee applied when doing flash loans. This function calls
* the {_flashFee} function which returns the fee applied when doing flash
* loans.
* @param token The token to be flash loaned.
* @param value The amount of tokens to be loaned.
* @return The fees applied to the corresponding flash loan.
*/
function flashFee(address token, uint256 value) public view virtual returns (uint256) {
if (token != address(this)) {
revert ERC3156UnsupportedToken(token);
}
return _flashFee(token, value);
}
/**
* @dev Returns the fee applied when doing flash loans. By default this
* implementation has 0 fees. This function can be overloaded to make
* the flash loan mechanism deflationary.
* @param token The token to be flash loaned.
* @param value The amount of tokens to be loaned.
* @return The fees applied to the corresponding flash loan.
*/
function _flashFee(address token, uint256 value) internal view virtual returns (uint256) {
// silence warning about unused variable without the addition of bytecode.
token;
value;
return 0;
}
/**
* @dev Returns the receiver address of the flash fee. By default this
* implementation returns the address(0) which means the fee amount will be burnt.
* This function can be overloaded to change the fee receiver.
* @return The address for which the flash fee will be sent to.
*/
function _flashFeeReceiver() internal view virtual returns (address) {
return address(0);
}
/**
* @dev Performs a flash loan. New tokens are minted and sent to the
* `receiver`, who is required to implement the {IERC3156FlashBorrower}
* interface. By the end of the flash loan, the receiver is expected to own
* value + fee tokens and have them approved back to the token contract itself so
* they can be burned.
* @param receiver The receiver of the flash loan. Should implement the
* {IERC3156FlashBorrower-onFlashLoan} interface.
* @param token The token to be flash loaned. Only `address(this)` is
* supported.
* @param value The amount of tokens to be loaned.
* @param data An arbitrary datafield that is passed to the receiver.
* @return `true` if the flash loan was successful.
*/
// This function can reenter, but it doesn't pose a risk because it always preserves the property that the amount
// minted at the beginning is always recovered and burned at the end, or else the entire function will revert.
// slither-disable-next-line reentrancy-no-eth
function flashLoan(
IERC3156FlashBorrower receiver,
address token,
uint256 value,
bytes calldata data
) public virtual returns (bool) {
uint256 maxLoan = maxFlashLoan(token);
if (value > maxLoan) {
revert ERC3156ExceededMaxLoan(maxLoan);
}
uint256 fee = flashFee(token, value);
_mint(address(receiver), value);
if (receiver.onFlashLoan(_msgSender(), token, value, fee, data) != RETURN_VALUE) {
revert ERC3156InvalidReceiver(address(receiver));
}
address flashFeeReceiver = _flashFeeReceiver();
_spendAllowance(address(receiver), address(this), value + fee);
if (fee == 0 || flashFeeReceiver == address(0)) {
_burn(address(receiver), value + fee);
} else {
_burn(address(receiver), value);
_transfer(address(receiver), flashFeeReceiver, fee);
}
return true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys a `value` amount of tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, deducting from
* the caller's allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `value`.
*/
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.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) (interfaces/IERC3156FlashLender.sol)
pragma solidity ^0.8.20;
import {IERC3156FlashBorrower} from "./IERC3156FlashBorrower.sol";
/**
* @dev Interface of the ERC-3156 FlashLender, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*/
interface IERC3156FlashLender {
/**
* @dev The amount of currency available to be lended.
* @param token The loan currency.
* @return The amount of `token` that can be borrowed.
*/
function maxFlashLoan(address token) external view returns (uint256);
/**
* @dev The fee to be charged for a given loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @return The amount of `token` to be charged for the loan, on top of the returned principal.
*/
function flashFee(address token, uint256 amount) external view returns (uint256);
/**
* @dev Initiate a flash loan.
* @param receiver The receiver of the tokens in the loan, and the receiver of the callback.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @param data Arbitrary data structure, intended to contain user-defined parameters.
*/
function flashLoan(
IERC3156FlashBorrower receiver,
address token,
uint256 amount,
bytes calldata data
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC3156FlashBorrower.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-3156 FlashBorrower, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*/
interface IERC3156FlashBorrower {
/**
* @dev Receive a flash loan.
* @param initiator The initiator of the loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @param fee The additional amount of tokens to repay.
* @param data Arbitrary data structure, intended to contain user-defined parameters.
* @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan"
*/
function onFlashLoan(
address initiator,
address token,
uint256 amount,
uint256 fee,
bytes calldata data
) external returns (bytes32);
}// 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) (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) (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);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxLoan","type":"uint256"}],"name":"ERC3156ExceededMaxLoan","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC3156InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"ERC3156UnsupportedToken","type":"error"},{"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":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":[{"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":"value","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":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b506040518060400160405280600c81526020017f546573742046726178476f6400000000000000000000000000000000000000008152506040518060400160405280600481526020017f7446584700000000000000000000000000000000000000000000000000000000815250816003908161008b91906105bc565b50806004908161009b91906105bc565b5050506100d7336100b06100dc60201b60201c565b600a6100bc91906107f3565b6402540be4006100cc919061083d565b6100e460201b60201c565b610966565b5f6012905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610154575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161014b91906108bd565b60405180910390fd5b6101655f838361016960201b60201c565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036101b9578060025f8282546101ad91906108d6565b92505081905550610287565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610242578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161023993929190610918565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036102ce578060025f8282540392505081905550610318565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610375919061094d565b60405180910390a3505050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806103fd57607f821691505b6020821081036104105761040f6103b9565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026104727fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610437565b61047c8683610437565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6104c06104bb6104b684610494565b61049d565b610494565b9050919050565b5f819050919050565b6104d9836104a6565b6104ed6104e5826104c7565b848454610443565b825550505050565b5f90565b6105016104f5565b61050c8184846104d0565b505050565b5b8181101561052f576105245f826104f9565b600181019050610512565b5050565b601f8211156105745761054581610416565b61054e84610428565b8101602085101561055d578190505b61057161056985610428565b830182610511565b50505b505050565b5f82821c905092915050565b5f6105945f1984600802610579565b1980831691505092915050565b5f6105ac8383610585565b9150826002028217905092915050565b6105c582610382565b67ffffffffffffffff8111156105de576105dd61038c565b5b6105e882546103e6565b6105f3828285610533565b5f60209050601f831160018114610624575f8415610612578287015190505b61061c85826105a1565b865550610683565b601f19841661063286610416565b5f5b8281101561065957848901518255600182019150602085019450602081019050610634565b868310156106765784890151610672601f891682610585565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b600185111561070d578086048111156106e9576106e861068b565b5b60018516156106f85780820291505b8081029050610706856106b8565b94506106cd565b94509492505050565b5f8261072557600190506107e0565b81610732575f90506107e0565b8160018114610748576002811461075257610781565b60019150506107e0565b60ff8411156107645761076361068b565b5b8360020a91508482111561077b5761077a61068b565b5b506107e0565b5060208310610133831016604e8410600b84101617156107b65782820a9050838111156107b1576107b061068b565b5b6107e0565b6107c384848460016106c4565b925090508184048111156107da576107d961068b565b5b81810290505b9392505050565b5f60ff82169050919050565b5f6107fd82610494565b9150610808836107e7565b92506108357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610716565b905092915050565b5f61084782610494565b915061085283610494565b925082820261086081610494565b915082820484148315176108775761087661068b565b5b5092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6108a78261087e565b9050919050565b6108b78161089d565b82525050565b5f6020820190506108d05f8301846108ae565b92915050565b5f6108e082610494565b91506108eb83610494565b92508282019050808211156109035761090261068b565b5b92915050565b61091281610494565b82525050565b5f60608201905061092b5f8301866108ae565b6109386020830185610909565b6109456040830184610909565b949350505050565b5f6020820190506109605f830184610909565b92915050565b6115ae806109735f395ff3fe608060405234801561000f575f80fd5b50600436106100e8575f3560e01c8063613255ab1161008a57806395d89b411161006457806395d89b411461026e578063a9059cbb1461028c578063d9d98ce4146102bc578063dd62ed3e146102ec576100e8565b8063613255ab146101f257806370a082311461022257806379cc679014610252576100e8565b806323b872dd116100c657806323b872dd14610158578063313ce5671461018857806342966c68146101a65780635cffe9de146101c2576100e8565b806306fdde03146100ec578063095ea7b31461010a57806318160ddd1461013a575b5f80fd5b6100f461031c565b6040516101019190610fa3565b60405180910390f35b610124600480360381019061011f9190611058565b6103ac565b60405161013191906110b0565b60405180910390f35b6101426103ce565b60405161014f91906110d8565b60405180910390f35b610172600480360381019061016d91906110f1565b6103d7565b60405161017f91906110b0565b60405180910390f35b610190610405565b60405161019d919061115c565b60405180910390f35b6101c060048036038101906101bb9190611175565b61040d565b005b6101dc60048036038101906101d7919061123c565b610421565b6040516101e991906110b0565b60405180910390f35b61020c600480360381019061020791906112c0565b610616565b60405161021991906110d8565b60405180910390f35b61023c600480360381019061023791906112c0565b61068b565b60405161024991906110d8565b60405180910390f35b61026c60048036038101906102679190611058565b6106d0565b005b6102766106f0565b6040516102839190610fa3565b60405180910390f35b6102a660048036038101906102a19190611058565b610780565b6040516102b391906110b0565b60405180910390f35b6102d660048036038101906102d19190611058565b6107a2565b6040516102e391906110d8565b60405180910390f35b610306600480360381019061030191906112eb565b610825565b60405161031391906110d8565b60405180910390f35b60606003805461032b90611356565b80601f016020809104026020016040519081016040528092919081815260200182805461035790611356565b80156103a25780601f10610379576101008083540402835291602001916103a2565b820191905f5260205f20905b81548152906001019060200180831161038557829003601f168201915b5050505050905090565b5f806103b66108a7565b90506103c38185856108ae565b600191505092915050565b5f600254905090565b5f806103e16108a7565b90506103ee8582856108c0565b6103f9858585610952565b60019150509392505050565b5f6012905090565b61041e6104186108a7565b82610a42565b50565b5f8061042c86610616565b90508085111561047357806040517ffd9a760900000000000000000000000000000000000000000000000000000000815260040161046a91906110d8565b60405180910390fd5b5f61047e87876107a2565b905061048a8887610ac1565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd98873ffffffffffffffffffffffffffffffffffffffff166323e30c8b6104cf6108a7565b8a8a868b8b6040518763ffffffff1660e01b81526004016104f5969594939291906113df565b6020604051808303815f875af1158015610511573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610535919061146c565b1461057757876040517f678c5b0000000000000000000000000000000000000000000000000000000000815260040161056e9190611497565b60405180910390fd5b5f610580610b40565b90506105988930848a61059391906114dd565b6108c0565b5f8214806105d157505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156105f0576105eb8983896105e691906114dd565b610a42565b610606565b6105fa8988610a42565b610605898284610952565b5b6001935050505095945050505050565b5f3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610650575f610684565b6106586103ce565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106839190611510565b5b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6106e2826106dc6108a7565b836108c0565b6106ec8282610a42565b5050565b6060600480546106ff90611356565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90611356565b80156107765780601f1061074d57610100808354040283529160200191610776565b820191905f5260205f20905b81548152906001019060200180831161075957829003601f168201915b5050505050905090565b5f8061078a6108a7565b9050610797818585610952565b600191505092915050565b5f3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461081357826040517fb5a7db9200000000000000000000000000000000000000000000000000000000815260040161080a9190611497565b60405180910390fd5b61081d8383610b44565b905092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b6108bb8383836001610b4b565b505050565b5f6108cb8484610825565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461094c578181101561093d578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161093493929190611543565b60405180910390fd5b61094b84848484035f610b4b565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109c2575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016109b99190611497565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a32575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610a299190611497565b60405180910390fd5b610a3d838383610d1a565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ab2575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610aa99190611497565b60405180910390fd5b610abd825f83610d1a565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b31575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b289190611497565b60405180910390fd5b610b3c5f8383610d1a565b5050565b5f90565b5f92915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610bbb575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bb29190611497565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c2b575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c229190611497565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610d14578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d0b91906110d8565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d6a578060025f828254610d5e91906114dd565b92505081905550610e38565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610df3578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610dea93929190611543565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7f578060025f8282540392505081905550610ec9565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f2691906110d8565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610f7582610f33565b610f7f8185610f3d565b9350610f8f818560208601610f4d565b610f9881610f5b565b840191505092915050565b5f6020820190508181035f830152610fbb8184610f6b565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610ff482610fcb565b9050919050565b61100481610fea565b811461100e575f80fd5b50565b5f8135905061101f81610ffb565b92915050565b5f819050919050565b61103781611025565b8114611041575f80fd5b50565b5f813590506110528161102e565b92915050565b5f806040838503121561106e5761106d610fc3565b5b5f61107b85828601611011565b925050602061108c85828601611044565b9150509250929050565b5f8115159050919050565b6110aa81611096565b82525050565b5f6020820190506110c35f8301846110a1565b92915050565b6110d281611025565b82525050565b5f6020820190506110eb5f8301846110c9565b92915050565b5f805f6060848603121561110857611107610fc3565b5b5f61111586828701611011565b935050602061112686828701611011565b925050604061113786828701611044565b9150509250925092565b5f60ff82169050919050565b61115681611141565b82525050565b5f60208201905061116f5f83018461114d565b92915050565b5f6020828403121561118a57611189610fc3565b5b5f61119784828501611044565b91505092915050565b5f6111aa82610fea565b9050919050565b6111ba816111a0565b81146111c4575f80fd5b50565b5f813590506111d5816111b1565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126111fc576111fb6111db565b5b8235905067ffffffffffffffff811115611219576112186111df565b5b602083019150836001820283011115611235576112346111e3565b5b9250929050565b5f805f805f6080868803121561125557611254610fc3565b5b5f611262888289016111c7565b955050602061127388828901611011565b945050604061128488828901611044565b935050606086013567ffffffffffffffff8111156112a5576112a4610fc7565b5b6112b1888289016111e7565b92509250509295509295909350565b5f602082840312156112d5576112d4610fc3565b5b5f6112e284828501611011565b91505092915050565b5f806040838503121561130157611300610fc3565b5b5f61130e85828601611011565b925050602061131f85828601611011565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061136d57607f821691505b6020821081036113805761137f611329565b5b50919050565b61138f81610fea565b82525050565b5f82825260208201905092915050565b828183375f83830152505050565b5f6113be8385611395565b93506113cb8385846113a5565b6113d483610f5b565b840190509392505050565b5f60a0820190506113f25f830189611386565b6113ff6020830188611386565b61140c60408301876110c9565b61141960608301866110c9565b818103608083015261142c8184866113b3565b9050979650505050505050565b5f819050919050565b61144b81611439565b8114611455575f80fd5b50565b5f8151905061146681611442565b92915050565b5f6020828403121561148157611480610fc3565b5b5f61148e84828501611458565b91505092915050565b5f6020820190506114aa5f830184611386565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6114e782611025565b91506114f283611025565b925082820190508082111561150a576115096114b0565b5b92915050565b5f61151a82611025565b915061152583611025565b925082820390508181111561153d5761153c6114b0565b5b92915050565b5f6060820190506115565f830186611386565b61156360208301856110c9565b61157060408301846110c9565b94935050505056fea2646970667358221220dff1af444ee9e15e34a79f8ee976a92c8cbbe36400db4da4b218b34abe04ac2d64736f6c634300081a0033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100e8575f3560e01c8063613255ab1161008a57806395d89b411161006457806395d89b411461026e578063a9059cbb1461028c578063d9d98ce4146102bc578063dd62ed3e146102ec576100e8565b8063613255ab146101f257806370a082311461022257806379cc679014610252576100e8565b806323b872dd116100c657806323b872dd14610158578063313ce5671461018857806342966c68146101a65780635cffe9de146101c2576100e8565b806306fdde03146100ec578063095ea7b31461010a57806318160ddd1461013a575b5f80fd5b6100f461031c565b6040516101019190610fa3565b60405180910390f35b610124600480360381019061011f9190611058565b6103ac565b60405161013191906110b0565b60405180910390f35b6101426103ce565b60405161014f91906110d8565b60405180910390f35b610172600480360381019061016d91906110f1565b6103d7565b60405161017f91906110b0565b60405180910390f35b610190610405565b60405161019d919061115c565b60405180910390f35b6101c060048036038101906101bb9190611175565b61040d565b005b6101dc60048036038101906101d7919061123c565b610421565b6040516101e991906110b0565b60405180910390f35b61020c600480360381019061020791906112c0565b610616565b60405161021991906110d8565b60405180910390f35b61023c600480360381019061023791906112c0565b61068b565b60405161024991906110d8565b60405180910390f35b61026c60048036038101906102679190611058565b6106d0565b005b6102766106f0565b6040516102839190610fa3565b60405180910390f35b6102a660048036038101906102a19190611058565b610780565b6040516102b391906110b0565b60405180910390f35b6102d660048036038101906102d19190611058565b6107a2565b6040516102e391906110d8565b60405180910390f35b610306600480360381019061030191906112eb565b610825565b60405161031391906110d8565b60405180910390f35b60606003805461032b90611356565b80601f016020809104026020016040519081016040528092919081815260200182805461035790611356565b80156103a25780601f10610379576101008083540402835291602001916103a2565b820191905f5260205f20905b81548152906001019060200180831161038557829003601f168201915b5050505050905090565b5f806103b66108a7565b90506103c38185856108ae565b600191505092915050565b5f600254905090565b5f806103e16108a7565b90506103ee8582856108c0565b6103f9858585610952565b60019150509392505050565b5f6012905090565b61041e6104186108a7565b82610a42565b50565b5f8061042c86610616565b90508085111561047357806040517ffd9a760900000000000000000000000000000000000000000000000000000000815260040161046a91906110d8565b60405180910390fd5b5f61047e87876107a2565b905061048a8887610ac1565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd98873ffffffffffffffffffffffffffffffffffffffff166323e30c8b6104cf6108a7565b8a8a868b8b6040518763ffffffff1660e01b81526004016104f5969594939291906113df565b6020604051808303815f875af1158015610511573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610535919061146c565b1461057757876040517f678c5b0000000000000000000000000000000000000000000000000000000000815260040161056e9190611497565b60405180910390fd5b5f610580610b40565b90506105988930848a61059391906114dd565b6108c0565b5f8214806105d157505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156105f0576105eb8983896105e691906114dd565b610a42565b610606565b6105fa8988610a42565b610605898284610952565b5b6001935050505095945050505050565b5f3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610650575f610684565b6106586103ce565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106839190611510565b5b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6106e2826106dc6108a7565b836108c0565b6106ec8282610a42565b5050565b6060600480546106ff90611356565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90611356565b80156107765780601f1061074d57610100808354040283529160200191610776565b820191905f5260205f20905b81548152906001019060200180831161075957829003601f168201915b5050505050905090565b5f8061078a6108a7565b9050610797818585610952565b600191505092915050565b5f3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461081357826040517fb5a7db9200000000000000000000000000000000000000000000000000000000815260040161080a9190611497565b60405180910390fd5b61081d8383610b44565b905092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b6108bb8383836001610b4b565b505050565b5f6108cb8484610825565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461094c578181101561093d578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161093493929190611543565b60405180910390fd5b61094b84848484035f610b4b565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109c2575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016109b99190611497565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a32575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610a299190611497565b60405180910390fd5b610a3d838383610d1a565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ab2575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610aa99190611497565b60405180910390fd5b610abd825f83610d1a565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b31575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b289190611497565b60405180910390fd5b610b3c5f8383610d1a565b5050565b5f90565b5f92915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610bbb575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bb29190611497565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c2b575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c229190611497565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610d14578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d0b91906110d8565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d6a578060025f828254610d5e91906114dd565b92505081905550610e38565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610df3578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610dea93929190611543565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7f578060025f8282540392505081905550610ec9565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f2691906110d8565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610f7582610f33565b610f7f8185610f3d565b9350610f8f818560208601610f4d565b610f9881610f5b565b840191505092915050565b5f6020820190508181035f830152610fbb8184610f6b565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610ff482610fcb565b9050919050565b61100481610fea565b811461100e575f80fd5b50565b5f8135905061101f81610ffb565b92915050565b5f819050919050565b61103781611025565b8114611041575f80fd5b50565b5f813590506110528161102e565b92915050565b5f806040838503121561106e5761106d610fc3565b5b5f61107b85828601611011565b925050602061108c85828601611044565b9150509250929050565b5f8115159050919050565b6110aa81611096565b82525050565b5f6020820190506110c35f8301846110a1565b92915050565b6110d281611025565b82525050565b5f6020820190506110eb5f8301846110c9565b92915050565b5f805f6060848603121561110857611107610fc3565b5b5f61111586828701611011565b935050602061112686828701611011565b925050604061113786828701611044565b9150509250925092565b5f60ff82169050919050565b61115681611141565b82525050565b5f60208201905061116f5f83018461114d565b92915050565b5f6020828403121561118a57611189610fc3565b5b5f61119784828501611044565b91505092915050565b5f6111aa82610fea565b9050919050565b6111ba816111a0565b81146111c4575f80fd5b50565b5f813590506111d5816111b1565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126111fc576111fb6111db565b5b8235905067ffffffffffffffff811115611219576112186111df565b5b602083019150836001820283011115611235576112346111e3565b5b9250929050565b5f805f805f6080868803121561125557611254610fc3565b5b5f611262888289016111c7565b955050602061127388828901611011565b945050604061128488828901611044565b935050606086013567ffffffffffffffff8111156112a5576112a4610fc7565b5b6112b1888289016111e7565b92509250509295509295909350565b5f602082840312156112d5576112d4610fc3565b5b5f6112e284828501611011565b91505092915050565b5f806040838503121561130157611300610fc3565b5b5f61130e85828601611011565b925050602061131f85828601611011565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061136d57607f821691505b6020821081036113805761137f611329565b5b50919050565b61138f81610fea565b82525050565b5f82825260208201905092915050565b828183375f83830152505050565b5f6113be8385611395565b93506113cb8385846113a5565b6113d483610f5b565b840190509392505050565b5f60a0820190506113f25f830189611386565b6113ff6020830188611386565b61140c60408301876110c9565b61141960608301866110c9565b818103608083015261142c8184866113b3565b9050979650505050505050565b5f819050919050565b61144b81611439565b8114611455575f80fd5b50565b5f8151905061146681611442565b92915050565b5f6020828403121561148157611480610fc3565b5b5f61148e84828501611458565b91505092915050565b5f6020820190506114aa5f830184611386565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6114e782611025565b91506114f283611025565b925082820190508082111561150a576115096114b0565b5b92915050565b5f61151a82611025565b915061152583611025565b925082820390508181111561153d5761153c6114b0565b5b92915050565b5f6060820190506115565f830186611386565b61156360208301856110c9565b61157060408301846110c9565b94935050505056fea2646970667358221220dff1af444ee9e15e34a79f8ee976a92c8cbbe36400db4da4b218b34abe04ac2d64736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.