Overview
FRAX Balance | FXTL Balance
FRAX Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Controller | 3635454 | 642 days ago | IN | 0 FRAX | 0.00000084 |
Latest 10 internal transactions
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ |
// | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ |
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ===================== FNS ReverseRegistrar =========================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance
// Primary Author(s)
// Amirnader Aghayeghazvini: https://github.com/amirnader-ghazvini
// Reviewer(s) / Contributor(s)
import { ENS } from "ens-contracts/contracts/registry/ENS.sol";
import { ReverseRegistrar } from "ens-contracts/contracts/reverseRegistrar/ReverseRegistrar.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract FNSReverseRegistrar is ReverseRegistrar {
bytes32 private constant FRAX_NODE =
0x323752ac646b7763acccb86343b9898c911d0ef2f83fd5707e526976b8eaea1c;
ERC20 public constant FXS = ERC20(0xFc00000000000000000000000000000000000002);
ERC20 public constant FRAX = ERC20(0xFc00000000000000000000000000000000000001);
string public constant name = "FNS Registry";
constructor(ENS _ens, address delegationRegistry, address initialDelegate) ReverseRegistrar(_ens) {
delegationRegistry.call(abi.encodeWithSignature("setDelegationForSelf(address)", initialDelegate));
delegationRegistry.call(abi.encodeWithSignature("disableSelfManagingDelegations()"));
delegationRegistry.call(abi.encodeWithSignature("disableDelegationManagement()"));
}
}pragma solidity >=0.8.4;
interface ENS {
// Logged when the owner of a node assigns a new owner to a subnode.
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
// Logged when the owner of a node transfers ownership to a new account.
event Transfer(bytes32 indexed node, address owner);
// Logged when the resolver for a node changes.
event NewResolver(bytes32 indexed node, address resolver);
// Logged when the TTL of a node changes
event NewTTL(bytes32 indexed node, uint64 ttl);
// Logged when an operator is added or removed.
event ApprovalForAll(
address indexed owner,
address indexed operator,
bool approved
);
function setRecord(
bytes32 node,
address owner,
address resolver,
uint64 ttl
) external;
function setSubnodeRecord(
bytes32 node,
bytes32 label,
address owner,
address resolver,
uint64 ttl
) external;
function setSubnodeOwner(
bytes32 node,
bytes32 label,
address owner
) external returns (bytes32);
function setResolver(bytes32 node, address resolver) external;
function setOwner(bytes32 node, address owner) external;
function setTTL(bytes32 node, uint64 ttl) external;
function setApprovalForAll(address operator, bool approved) external;
function owner(bytes32 node) external view returns (address);
function resolver(bytes32 node) external view returns (address);
function ttl(bytes32 node) external view returns (uint64);
function recordExists(bytes32 node) external view returns (bool);
function isApprovedForAll(
address owner,
address operator
) external view returns (bool);
}pragma solidity >=0.8.4;
import "../registry/ENS.sol";
import "./IReverseRegistrar.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../root/Controllable.sol";
abstract contract NameResolver {
function setName(bytes32 node, string memory name) public virtual;
}
bytes32 constant lookup = 0x3031323334353637383961626364656600000000000000000000000000000000;
bytes32 constant ADDR_REVERSE_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// namehash('addr.reverse')
contract ReverseRegistrar is Ownable, Controllable, IReverseRegistrar {
ENS public immutable ens;
NameResolver public defaultResolver;
event ReverseClaimed(address indexed addr, bytes32 indexed node);
event DefaultResolverChanged(NameResolver indexed resolver);
/**
* @dev Constructor
* @param ensAddr The address of the ENS registry.
*/
constructor(ENS ensAddr) {
ens = ensAddr;
// Assign ownership of the reverse record to our deployer
ReverseRegistrar oldRegistrar = ReverseRegistrar(
ensAddr.owner(ADDR_REVERSE_NODE)
);
if (address(oldRegistrar) != address(0x0)) {
oldRegistrar.claim(msg.sender);
}
}
modifier authorised(address addr) {
require(
addr == msg.sender ||
controllers[msg.sender] ||
ens.isApprovedForAll(addr, msg.sender) ||
ownsContract(addr),
"ReverseRegistrar: Caller is not a controller or authorised by address or the address itself"
);
_;
}
function setDefaultResolver(address resolver) public override onlyOwner {
require(
address(resolver) != address(0),
"ReverseRegistrar: Resolver address must not be 0"
);
defaultResolver = NameResolver(resolver);
emit DefaultResolverChanged(NameResolver(resolver));
}
/**
* @dev Transfers ownership of the reverse ENS record associated with the
* calling account.
* @param owner The address to set as the owner of the reverse record in ENS.
* @return The ENS node hash of the reverse record.
*/
function claim(address owner) public override returns (bytes32) {
return claimForAddr(msg.sender, owner, address(defaultResolver));
}
/**
* @dev Transfers ownership of the reverse ENS record associated with the
* calling account.
* @param addr The reverse record to set
* @param owner The address to set as the owner of the reverse record in ENS.
* @param resolver The resolver of the reverse node
* @return The ENS node hash of the reverse record.
*/
function claimForAddr(
address addr,
address owner,
address resolver
) public override authorised(addr) returns (bytes32) {
bytes32 labelHash = sha3HexAddress(addr);
bytes32 reverseNode = keccak256(
abi.encodePacked(ADDR_REVERSE_NODE, labelHash)
);
emit ReverseClaimed(addr, reverseNode);
ens.setSubnodeRecord(ADDR_REVERSE_NODE, labelHash, owner, resolver, 0);
return reverseNode;
}
/**
* @dev Transfers ownership of the reverse ENS record associated with the
* calling account.
* @param owner The address to set as the owner of the reverse record in ENS.
* @param resolver The address of the resolver to set; 0 to leave unchanged.
* @return The ENS node hash of the reverse record.
*/
function claimWithResolver(
address owner,
address resolver
) public override returns (bytes32) {
return claimForAddr(msg.sender, owner, resolver);
}
/**
* @dev Sets the `name()` record for the reverse ENS record associated with
* the calling account. First updates the resolver to the default reverse
* resolver if necessary.
* @param name The name to set for this address.
* @return The ENS node hash of the reverse record.
*/
function setName(string memory name) public override returns (bytes32) {
return
setNameForAddr(
msg.sender,
msg.sender,
address(defaultResolver),
name
);
}
/**
* @dev Sets the `name()` record for the reverse ENS record associated with
* the account provided. Updates the resolver to a designated resolver
* Only callable by controllers and authorised users
* @param addr The reverse record to set
* @param owner The owner of the reverse node
* @param resolver The resolver of the reverse node
* @param name The name to set for this address.
* @return The ENS node hash of the reverse record.
*/
function setNameForAddr(
address addr,
address owner,
address resolver,
string memory name
) public override returns (bytes32) {
bytes32 node = claimForAddr(addr, owner, resolver);
NameResolver(resolver).setName(node, name);
return node;
}
/**
* @dev Returns the node hash for a given account's reverse records.
* @param addr The address to hash
* @return The ENS node hash.
*/
function node(address addr) public pure override returns (bytes32) {
return
keccak256(
abi.encodePacked(ADDR_REVERSE_NODE, sha3HexAddress(addr))
);
}
/**
* @dev An optimised function to compute the sha3 of the lower-case
* hexadecimal representation of an Ethereum address.
* @param addr The address to hash
* @return ret The SHA3 hash of the lower-case hexadecimal encoding of the
* input address.
*/
function sha3HexAddress(address addr) private pure returns (bytes32 ret) {
assembly {
for {
let i := 40
} gt(i, 0) {
} {
i := sub(i, 1)
mstore8(i, byte(and(addr, 0xf), lookup))
addr := div(addr, 0x10)
i := sub(i, 1)
mstore8(i, byte(and(addr, 0xf), lookup))
addr := div(addr, 0x10)
}
ret := keccak256(0, 40)
}
}
function ownsContract(address addr) internal view returns (bool) {
try Ownable(addr).owner() returns (address owner) {
return owner == msg.sender;
} catch {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
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}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* 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.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(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);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}pragma solidity >=0.8.4;
interface IReverseRegistrar {
function setDefaultResolver(address resolver) external;
function claim(address owner) external returns (bytes32);
function claimForAddr(
address addr,
address owner,
address resolver
) external returns (bytes32);
function claimWithResolver(
address owner,
address resolver
) external returns (bytes32);
function setName(string memory name) external returns (bytes32);
function setNameForAddr(
address addr,
address owner,
address resolver,
string memory name
) external returns (bytes32);
function node(address addr) external pure returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
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() {
_transferOwnership(_msgSender());
}
/**
* @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);
}
}pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
contract Controllable is Ownable {
mapping(address => bool) public controllers;
event ControllerChanged(address indexed controller, bool enabled);
modifier onlyController() {
require(
controllers[msg.sender],
"Controllable: Caller is not a controller"
);
_;
}
function setController(address controller, bool enabled) public onlyOwner {
controllers[controller] = enabled;
emit ControllerChanged(controller, enabled);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}{
"remappings": [
"@openzeppelin/=node_modules/ens-contracts/node_modules/@openzeppelin/",
"frax-std/=node_modules/frax-standard-solidity/src/",
"@prb/test/=node_modules/@prb/test/",
"forge-std/=node_modules/forge-std/src/",
"ds-test/=node_modules/ds-test/src/",
"@chainlink/=node_modules/@chainlink/",
"@ensdomains/=node_modules/@ensdomains/",
"@eth-optimism/=node_modules/@eth-optimism/",
"ens-contracts/=node_modules/ens-contracts/",
"frax-standard-solidity/=node_modules/frax-standard-solidity/",
"solidity-bytes-utils/=node_modules/solidity-bytes-utils/"
],
"optimizer": {
"enabled": false,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": false
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ENS","name":"_ens","type":"address"},{"internalType":"address","name":"delegationRegistry","type":"address"},{"internalType":"address","name":"initialDelegate","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"controller","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ControllerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract NameResolver","name":"resolver","type":"address"}],"name":"DefaultResolverChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"ReverseClaimed","type":"event"},{"inputs":[],"name":"FRAX","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FXS","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"claim","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"resolver","type":"address"}],"name":"claimForAddr","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"resolver","type":"address"}],"name":"claimWithResolver","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"controllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultResolver","outputs":[{"internalType":"contract NameResolver","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ens","outputs":[{"internalType":"contract ENS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"node","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"resolver","type":"address"}],"name":"setDefaultResolver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"resolver","type":"address"},{"internalType":"string","name":"name","type":"string"}],"name":"setNameForAddr","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001fc538038062001fc583398181016040528101906200003791906200064d565b82620000586200004c620004d260201b60201c565b620004da60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505060008173ffffffffffffffffffffffffffffffffffffffff166302571be37f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b6040518263ffffffff1660e01b8152600401620000ec9190620006c4565b602060405180830381865afa1580156200010a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001309190620006e1565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614620001ea578073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401620001a2919062000724565b6020604051808303816000875af1158015620001c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001e8919062000772565b505b50508173ffffffffffffffffffffffffffffffffffffffff168160405160240162000216919062000724565b6040516020818303038152906040527f02b8a21d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051620002a291906200081d565b6000604051808303816000865af19150503d8060008114620002e1576040519150601f19603f3d011682016040523d82523d6000602084013e620002e6565b606091505b5050508173ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f25ce9a37000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516200039291906200081d565b6000604051808303816000865af19150503d8060008114620003d1576040519150601f19603f3d011682016040523d82523d6000602084013e620003d6565b606091505b5050508173ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527fa7e68146000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516200048291906200081d565b6000604051808303816000865af19150503d8060008114620004c1576040519150601f19603f3d011682016040523d82523d6000602084013e620004c6565b606091505b50505050505062000836565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005d082620005a3565b9050919050565b6000620005e482620005c3565b9050919050565b620005f681620005d7565b81146200060257600080fd5b50565b6000815190506200061681620005eb565b92915050565b6200062781620005c3565b81146200063357600080fd5b50565b60008151905062000647816200061c565b92915050565b6000806000606084860312156200066957620006686200059e565b5b6000620006798682870162000605565b93505060206200068c8682870162000636565b92505060406200069f8682870162000636565b9150509250925092565b6000819050919050565b620006be81620006a9565b82525050565b6000602082019050620006db6000830184620006b3565b92915050565b600060208284031215620006fa57620006f96200059e565b5b60006200070a8482850162000636565b91505092915050565b6200071e81620005c3565b82525050565b60006020820190506200073b600083018462000713565b92915050565b6200074c81620006a9565b81146200075857600080fd5b50565b6000815190506200076c8162000741565b92915050565b6000602082840312156200078b576200078a6200059e565b5b60006200079b848285016200075b565b91505092915050565b600081519050919050565b600081905092915050565b60005b83811015620007da578082015181840152602081019050620007bd565b60008484015250505050565b6000620007f382620007a4565b620007ff8185620007af565b935062000811818560208601620007ba565b80840191505092915050565b60006200082b8284620007e6565b915081905092915050565b6080516117656200086060003960008181610410015281816104c0015261064d01526117656000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063828eab0e116100a2578063c47f002711610071578063c47f0027146102be578063c66485b2146102ee578063da8c229e1461030a578063e0dba60f1461033a578063f2fde38b146103565761010b565b8063828eab0e146102345780638da5cb5b14610252578063b0e4556f14610270578063bffbe61c1461028e5761010b565b80633f15457f116100de5780633f15457f146101ac57806365669631146101ca578063715018a6146101fa5780637a806d6b146102045761010b565b806306fdde03146101105780630f5a54661461012e5780631e83409a1461015e578063200ea2221461018e575b600080fd5b610118610372565b6040516101259190610e0a565b60405180910390f35b61014860048036038101906101439190610e9e565b6103ab565b6040516101559190610ef7565b60405180910390f35b61017860048036038101906101739190610f12565b6103c0565b6040516101859190610ef7565b60405180910390f35b6101966103f6565b6040516101a39190610f9e565b60405180910390f35b6101b461040e565b6040516101c19190610fda565b60405180910390f35b6101e460048036038101906101df9190610ff5565b610432565b6040516101f19190610ef7565b60405180910390f35b61020261070f565b005b61021e6004803603810190610219919061117d565b610723565b60405161022b9190610ef7565b60405180910390f35b61023c6107ac565b6040516102499190611221565b60405180910390f35b61025a6107d2565b604051610267919061124b565b60405180910390f35b6102786107fb565b6040516102859190610f9e565b60405180910390f35b6102a860048036038101906102a39190610f12565b610813565b6040516102b59190610ef7565b60405180910390f35b6102d860048036038101906102d39190611266565b610870565b6040516102e59190610ef7565b60405180910390f35b61030860048036038101906103039190610f12565b6108a7565b005b610324600480360381019061031f9190610f12565b6109a5565b60405161033191906112ca565b60405180910390f35b610354600480360381019061034f9190611311565b6109c5565b005b610370600480360381019061036b9190610f12565b610a76565b005b6040518060400160405280600c81526020017f464e53205265676973747279000000000000000000000000000000000000000081525081565b60006103b8338484610432565b905092915050565b60006103ef3383600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610432565b9050919050565b73fc0000000000000000000000000000000000000281565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806104b85750600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b8061055b57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e985e9c582336040518363ffffffff1660e01b8152600401610519929190611351565b602060405180830381865afa158015610536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055a919061138f565b5b8061056b575061056a81610af9565b5b6105aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a190611454565b60405180910390fd5b60006105b586610ba8565b905060007f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b826040516020016105ef929190611495565b604051602081830303815290604052805190602001209050808773ffffffffffffffffffffffffffffffffffffffff167f6ada868dd3058cf77a48a74489fd7963688e5464b2b0fa957ace976243270e9260405160405180910390a37f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635ef2c7f07f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b84898960006040518663ffffffff1660e01b81526004016106d0959493929190611510565b600060405180830381600087803b1580156106ea57600080fd5b505af11580156106fe573d6000803e3d6000fd5b505050508093505050509392505050565b610717610c30565b6107216000610cae565b565b600080610731868686610432565b90508373ffffffffffffffffffffffffffffffffffffffff16637737221382856040518363ffffffff1660e01b815260040161076e929190611563565b600060405180830381600087803b15801561078857600080fd5b505af115801561079c573d6000803e3d6000fd5b5050505080915050949350505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b73fc0000000000000000000000000000000000000181565b60007f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b61084283610ba8565b604051602001610853929190611495565b604051602081830303815290604052805190602001209050919050565b60006108a03333600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685610723565b9050919050565b6108af610c30565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361091e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091590611605565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167feae17a84d9eb83d8c8eb317f9e7d64857bc363fa51674d996c023f4340c577cf60405160405180910390a250565b60016020528060005260406000206000915054906101000a900460ff1681565b6109cd610c30565b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4c97694570a07277810af7e5669ffd5f6a2d6b74b6e9a274b8b870fd5114cf8782604051610a6a91906112ca565b60405180910390a25050565b610a7e610c30565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae490611697565b60405180910390fd5b610af681610cae565b50565b60008173ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b6357506040513d601f19601f82011682018060405250810190610b6091906116cc565b60015b610b705760009050610ba3565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16149150505b919050565b600060285b6000811115610c23576001810390507f3031323334353637383961626364656600000000000000000000000000000000600f84161a81536010830492506001810390507f3031323334353637383961626364656600000000000000000000000000000000600f84161a8153601083049250610bad565b5060286000209050919050565b610c38610d72565b73ffffffffffffffffffffffffffffffffffffffff16610c566107d2565b73ffffffffffffffffffffffffffffffffffffffff1614610cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca390611745565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600081519050919050565b600082825260208201905092915050565b60005b83811015610db4578082015181840152602081019050610d99565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ddc82610d7a565b610de68185610d85565b9350610df6818560208601610d96565b610dff81610dc0565b840191505092915050565b60006020820190508181036000830152610e248184610dd1565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e6b82610e40565b9050919050565b610e7b81610e60565b8114610e8657600080fd5b50565b600081359050610e9881610e72565b92915050565b60008060408385031215610eb557610eb4610e36565b5b6000610ec385828601610e89565b9250506020610ed485828601610e89565b9150509250929050565b6000819050919050565b610ef181610ede565b82525050565b6000602082019050610f0c6000830184610ee8565b92915050565b600060208284031215610f2857610f27610e36565b5b6000610f3684828501610e89565b91505092915050565b6000819050919050565b6000610f64610f5f610f5a84610e40565b610f3f565b610e40565b9050919050565b6000610f7682610f49565b9050919050565b6000610f8882610f6b565b9050919050565b610f9881610f7d565b82525050565b6000602082019050610fb36000830184610f8f565b92915050565b6000610fc482610f6b565b9050919050565b610fd481610fb9565b82525050565b6000602082019050610fef6000830184610fcb565b92915050565b60008060006060848603121561100e5761100d610e36565b5b600061101c86828701610e89565b935050602061102d86828701610e89565b925050604061103e86828701610e89565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61108a82610dc0565b810181811067ffffffffffffffff821117156110a9576110a8611052565b5b80604052505050565b60006110bc610e2c565b90506110c88282611081565b919050565b600067ffffffffffffffff8211156110e8576110e7611052565b5b6110f182610dc0565b9050602081019050919050565b82818337600083830152505050565b600061112061111b846110cd565b6110b2565b90508281526020810184848401111561113c5761113b61104d565b5b6111478482856110fe565b509392505050565b600082601f83011261116457611163611048565b5b813561117484826020860161110d565b91505092915050565b6000806000806080858703121561119757611196610e36565b5b60006111a587828801610e89565b94505060206111b687828801610e89565b93505060406111c787828801610e89565b925050606085013567ffffffffffffffff8111156111e8576111e7610e3b565b5b6111f48782880161114f565b91505092959194509250565b600061120b82610f6b565b9050919050565b61121b81611200565b82525050565b60006020820190506112366000830184611212565b92915050565b61124581610e60565b82525050565b6000602082019050611260600083018461123c565b92915050565b60006020828403121561127c5761127b610e36565b5b600082013567ffffffffffffffff81111561129a57611299610e3b565b5b6112a68482850161114f565b91505092915050565b60008115159050919050565b6112c4816112af565b82525050565b60006020820190506112df60008301846112bb565b92915050565b6112ee816112af565b81146112f957600080fd5b50565b60008135905061130b816112e5565b92915050565b6000806040838503121561132857611327610e36565b5b600061133685828601610e89565b9250506020611347858286016112fc565b9150509250929050565b6000604082019050611366600083018561123c565b611373602083018461123c565b9392505050565b600081519050611389816112e5565b92915050565b6000602082840312156113a5576113a4610e36565b5b60006113b38482850161137a565b91505092915050565b7f526576657273655265676973747261723a2043616c6c6572206973206e6f742060008201527f6120636f6e74726f6c6c6572206f7220617574686f726973656420627920616460208201527f6472657373206f7220746865206164647265737320697473656c660000000000604082015250565b600061143e605b83610d85565b9150611449826113bc565b606082019050919050565b6000602082019050818103600083015261146d81611431565b9050919050565b6000819050919050565b61148f61148a82610ede565b611474565b82525050565b60006114a1828561147e565b6020820191506114b1828461147e565b6020820191508190509392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006114fa6114f56114f0846114c1565b610f3f565b6114cb565b9050919050565b61150a816114df565b82525050565b600060a0820190506115256000830188610ee8565b6115326020830187610ee8565b61153f604083018661123c565b61154c606083018561123c565b6115596080830184611501565b9695505050505050565b60006040820190506115786000830185610ee8565b818103602083015261158a8184610dd1565b90509392505050565b7f526576657273655265676973747261723a205265736f6c76657220616464726560008201527f7373206d757374206e6f74206265203000000000000000000000000000000000602082015250565b60006115ef603083610d85565b91506115fa82611593565b604082019050919050565b6000602082019050818103600083015261161e816115e2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611681602683610d85565b915061168c82611625565b604082019050919050565b600060208201905081810360008301526116b081611674565b9050919050565b6000815190506116c681610e72565b92915050565b6000602082840312156116e2576116e1610e36565b5b60006116f0848285016116b7565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061172f602083610d85565b915061173a826116f9565b602082019050919050565b6000602082019050818103600083015261175e81611722565b905091905056000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c98342000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a0000000000000000000000006e74053a3798e0fc9a9775f7995316b27f21c4d2
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063828eab0e116100a2578063c47f002711610071578063c47f0027146102be578063c66485b2146102ee578063da8c229e1461030a578063e0dba60f1461033a578063f2fde38b146103565761010b565b8063828eab0e146102345780638da5cb5b14610252578063b0e4556f14610270578063bffbe61c1461028e5761010b565b80633f15457f116100de5780633f15457f146101ac57806365669631146101ca578063715018a6146101fa5780637a806d6b146102045761010b565b806306fdde03146101105780630f5a54661461012e5780631e83409a1461015e578063200ea2221461018e575b600080fd5b610118610372565b6040516101259190610e0a565b60405180910390f35b61014860048036038101906101439190610e9e565b6103ab565b6040516101559190610ef7565b60405180910390f35b61017860048036038101906101739190610f12565b6103c0565b6040516101859190610ef7565b60405180910390f35b6101966103f6565b6040516101a39190610f9e565b60405180910390f35b6101b461040e565b6040516101c19190610fda565b60405180910390f35b6101e460048036038101906101df9190610ff5565b610432565b6040516101f19190610ef7565b60405180910390f35b61020261070f565b005b61021e6004803603810190610219919061117d565b610723565b60405161022b9190610ef7565b60405180910390f35b61023c6107ac565b6040516102499190611221565b60405180910390f35b61025a6107d2565b604051610267919061124b565b60405180910390f35b6102786107fb565b6040516102859190610f9e565b60405180910390f35b6102a860048036038101906102a39190610f12565b610813565b6040516102b59190610ef7565b60405180910390f35b6102d860048036038101906102d39190611266565b610870565b6040516102e59190610ef7565b60405180910390f35b61030860048036038101906103039190610f12565b6108a7565b005b610324600480360381019061031f9190610f12565b6109a5565b60405161033191906112ca565b60405180910390f35b610354600480360381019061034f9190611311565b6109c5565b005b610370600480360381019061036b9190610f12565b610a76565b005b6040518060400160405280600c81526020017f464e53205265676973747279000000000000000000000000000000000000000081525081565b60006103b8338484610432565b905092915050565b60006103ef3383600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610432565b9050919050565b73fc0000000000000000000000000000000000000281565b7f000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c9834281565b6000833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806104b85750600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b8061055b57507f000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c9834273ffffffffffffffffffffffffffffffffffffffff1663e985e9c582336040518363ffffffff1660e01b8152600401610519929190611351565b602060405180830381865afa158015610536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055a919061138f565b5b8061056b575061056a81610af9565b5b6105aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a190611454565b60405180910390fd5b60006105b586610ba8565b905060007f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b826040516020016105ef929190611495565b604051602081830303815290604052805190602001209050808773ffffffffffffffffffffffffffffffffffffffff167f6ada868dd3058cf77a48a74489fd7963688e5464b2b0fa957ace976243270e9260405160405180910390a37f000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c9834273ffffffffffffffffffffffffffffffffffffffff16635ef2c7f07f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b84898960006040518663ffffffff1660e01b81526004016106d0959493929190611510565b600060405180830381600087803b1580156106ea57600080fd5b505af11580156106fe573d6000803e3d6000fd5b505050508093505050509392505050565b610717610c30565b6107216000610cae565b565b600080610731868686610432565b90508373ffffffffffffffffffffffffffffffffffffffff16637737221382856040518363ffffffff1660e01b815260040161076e929190611563565b600060405180830381600087803b15801561078857600080fd5b505af115801561079c573d6000803e3d6000fd5b5050505080915050949350505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b73fc0000000000000000000000000000000000000181565b60007f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b61084283610ba8565b604051602001610853929190611495565b604051602081830303815290604052805190602001209050919050565b60006108a03333600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685610723565b9050919050565b6108af610c30565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361091e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091590611605565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167feae17a84d9eb83d8c8eb317f9e7d64857bc363fa51674d996c023f4340c577cf60405160405180910390a250565b60016020528060005260406000206000915054906101000a900460ff1681565b6109cd610c30565b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4c97694570a07277810af7e5669ffd5f6a2d6b74b6e9a274b8b870fd5114cf8782604051610a6a91906112ca565b60405180910390a25050565b610a7e610c30565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae490611697565b60405180910390fd5b610af681610cae565b50565b60008173ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b6357506040513d601f19601f82011682018060405250810190610b6091906116cc565b60015b610b705760009050610ba3565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16149150505b919050565b600060285b6000811115610c23576001810390507f3031323334353637383961626364656600000000000000000000000000000000600f84161a81536010830492506001810390507f3031323334353637383961626364656600000000000000000000000000000000600f84161a8153601083049250610bad565b5060286000209050919050565b610c38610d72565b73ffffffffffffffffffffffffffffffffffffffff16610c566107d2565b73ffffffffffffffffffffffffffffffffffffffff1614610cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca390611745565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600081519050919050565b600082825260208201905092915050565b60005b83811015610db4578082015181840152602081019050610d99565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ddc82610d7a565b610de68185610d85565b9350610df6818560208601610d96565b610dff81610dc0565b840191505092915050565b60006020820190508181036000830152610e248184610dd1565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e6b82610e40565b9050919050565b610e7b81610e60565b8114610e8657600080fd5b50565b600081359050610e9881610e72565b92915050565b60008060408385031215610eb557610eb4610e36565b5b6000610ec385828601610e89565b9250506020610ed485828601610e89565b9150509250929050565b6000819050919050565b610ef181610ede565b82525050565b6000602082019050610f0c6000830184610ee8565b92915050565b600060208284031215610f2857610f27610e36565b5b6000610f3684828501610e89565b91505092915050565b6000819050919050565b6000610f64610f5f610f5a84610e40565b610f3f565b610e40565b9050919050565b6000610f7682610f49565b9050919050565b6000610f8882610f6b565b9050919050565b610f9881610f7d565b82525050565b6000602082019050610fb36000830184610f8f565b92915050565b6000610fc482610f6b565b9050919050565b610fd481610fb9565b82525050565b6000602082019050610fef6000830184610fcb565b92915050565b60008060006060848603121561100e5761100d610e36565b5b600061101c86828701610e89565b935050602061102d86828701610e89565b925050604061103e86828701610e89565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61108a82610dc0565b810181811067ffffffffffffffff821117156110a9576110a8611052565b5b80604052505050565b60006110bc610e2c565b90506110c88282611081565b919050565b600067ffffffffffffffff8211156110e8576110e7611052565b5b6110f182610dc0565b9050602081019050919050565b82818337600083830152505050565b600061112061111b846110cd565b6110b2565b90508281526020810184848401111561113c5761113b61104d565b5b6111478482856110fe565b509392505050565b600082601f83011261116457611163611048565b5b813561117484826020860161110d565b91505092915050565b6000806000806080858703121561119757611196610e36565b5b60006111a587828801610e89565b94505060206111b687828801610e89565b93505060406111c787828801610e89565b925050606085013567ffffffffffffffff8111156111e8576111e7610e3b565b5b6111f48782880161114f565b91505092959194509250565b600061120b82610f6b565b9050919050565b61121b81611200565b82525050565b60006020820190506112366000830184611212565b92915050565b61124581610e60565b82525050565b6000602082019050611260600083018461123c565b92915050565b60006020828403121561127c5761127b610e36565b5b600082013567ffffffffffffffff81111561129a57611299610e3b565b5b6112a68482850161114f565b91505092915050565b60008115159050919050565b6112c4816112af565b82525050565b60006020820190506112df60008301846112bb565b92915050565b6112ee816112af565b81146112f957600080fd5b50565b60008135905061130b816112e5565b92915050565b6000806040838503121561132857611327610e36565b5b600061133685828601610e89565b9250506020611347858286016112fc565b9150509250929050565b6000604082019050611366600083018561123c565b611373602083018461123c565b9392505050565b600081519050611389816112e5565b92915050565b6000602082840312156113a5576113a4610e36565b5b60006113b38482850161137a565b91505092915050565b7f526576657273655265676973747261723a2043616c6c6572206973206e6f742060008201527f6120636f6e74726f6c6c6572206f7220617574686f726973656420627920616460208201527f6472657373206f7220746865206164647265737320697473656c660000000000604082015250565b600061143e605b83610d85565b9150611449826113bc565b606082019050919050565b6000602082019050818103600083015261146d81611431565b9050919050565b6000819050919050565b61148f61148a82610ede565b611474565b82525050565b60006114a1828561147e565b6020820191506114b1828461147e565b6020820191508190509392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006114fa6114f56114f0846114c1565b610f3f565b6114cb565b9050919050565b61150a816114df565b82525050565b600060a0820190506115256000830188610ee8565b6115326020830187610ee8565b61153f604083018661123c565b61154c606083018561123c565b6115596080830184611501565b9695505050505050565b60006040820190506115786000830185610ee8565b818103602083015261158a8184610dd1565b90509392505050565b7f526576657273655265676973747261723a205265736f6c76657220616464726560008201527f7373206d757374206e6f74206265203000000000000000000000000000000000602082015250565b60006115ef603083610d85565b91506115fa82611593565b604082019050919050565b6000602082019050818103600083015261161e816115e2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611681602683610d85565b915061168c82611625565b604082019050919050565b600060208201905081810360008301526116b081611674565b9050919050565b6000815190506116c681610e72565b92915050565b6000602082840312156116e2576116e1610e36565b5b60006116f0848285016116b7565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061172f602083610d85565b915061173a826116f9565b602082019050919050565b6000602082019050818103600083015261175e81611722565b905091905056
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c98342000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a0000000000000000000000006e74053a3798e0fc9a9775f7995316b27f21c4d2
-----Decoded View---------------
Arg [0] : _ens (address): 0xfAb1706A7F5Fa750c076Cd73fD6Ad9f3d7c98342
Arg [1] : delegationRegistry (address): 0xF5cA906f05cafa944c27c6881bed3DFd3a785b6A
Arg [2] : initialDelegate (address): 0x6e74053a3798e0fC9a9775F7995316b27f21c4D2
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fab1706a7f5fa750c076cd73fd6ad9f3d7c98342
Arg [1] : 000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a
Arg [2] : 0000000000000000000000006e74053a3798e0fc9a9775f7995316b27f21c4d2
Net Worth in USD
Net Worth in FRAX
Token Allocations
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.170976 | 0.7448 | $0.1273 |
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.