Overview
ETH Balance
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 278 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 17212031 | 25 hrs ago | IN | 0 ETH | 0.00000269 | ||||
Approve | 17183989 | 42 hrs ago | IN | 0 ETH | 0.00000261 | ||||
Approve | 17161510 | 2 days ago | IN | 0 ETH | 0.00000247 | ||||
Approve | 17161154 | 2 days ago | IN | 0 ETH | 0.00000246 | ||||
Approve | 17159746 | 2 days ago | IN | 0 ETH | 0.0000026 | ||||
Approve | 17153735 | 2 days ago | IN | 0 ETH | 0.00000235 | ||||
Approve | 17151912 | 2 days ago | IN | 0 ETH | 0.00000287 | ||||
Approve | 17144737 | 2 days ago | IN | 0 ETH | 0.0000463 | ||||
Approve | 17138478 | 3 days ago | IN | 0 ETH | 0.00000294 | ||||
Approve | 17036518 | 5 days ago | IN | 0 ETH | 0.00000255 | ||||
Approve | 16972260 | 7 days ago | IN | 0 ETH | 0.00000244 | ||||
Transfer | 16936690 | 8 days ago | IN | 0 ETH | 0.00000224 | ||||
Approve | 16921530 | 8 days ago | IN | 0 ETH | 0.00000247 | ||||
Approve | 16896126 | 9 days ago | IN | 0 ETH | 0.00004601 | ||||
Approve | 16893164 | 9 days ago | IN | 0 ETH | 0.00000289 | ||||
Approve | 16892795 | 9 days ago | IN | 0 ETH | 0.00000275 | ||||
Approve | 16885743 | 9 days ago | IN | 0 ETH | 0.00000235 | ||||
Approve | 16879891 | 9 days ago | IN | 0 ETH | 0.00000262 | ||||
Approve | 16875985 | 9 days ago | IN | 0 ETH | 0.0000026 | ||||
Approve | 16871888 | 9 days ago | IN | 0 ETH | 0.00000248 | ||||
Approve | 16867928 | 9 days ago | IN | 0 ETH | 0.00000282 | ||||
Approve | 16867276 | 9 days ago | IN | 0 ETH | 0.00000284 | ||||
Approve | 16866957 | 9 days ago | IN | 0 ETH | 0.0000026 | ||||
Approve | 16752801 | 12 days ago | IN | 0 ETH | 0.0000026 | ||||
Approve | 16668886 | 15 days ago | IN | 0 ETH | 0.00001574 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17245497 | 2 hrs ago | 0 ETH | ||||
17245497 | 2 hrs ago | 0 ETH | ||||
17245497 | 2 hrs ago | 0 ETH | ||||
17245497 | 2 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245281 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17245268 | 3 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17224724 | 16 hrs ago | 0 ETH | ||||
17212037 | 25 hrs ago | 0 ETH | ||||
17212037 | 25 hrs ago | 0 ETH | ||||
17212037 | 25 hrs ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
XERC20
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; import {IXERC20} from '../interfaces/IXERC20.sol'; import {ERC20} from '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import {ERC20Permit} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol'; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; contract XERC20 is ERC20, Ownable, IXERC20, ERC20Permit { /** * @notice The duration it takes for the limits to fully replenish */ uint256 private constant _DURATION = 1 days; /** * @notice The address of the factory which deployed this contract */ address public immutable FACTORY; /** * @notice The address of the lockbox contract */ address public lockbox; /** * @notice Maps bridge address to bridge configurations */ mapping(address => Bridge) public bridges; /** * @notice Constructs the initial config of the XERC20 * * @param _name The name of the token * @param _symbol The symbol of the token * @param _factory The factory which deployed this contract */ constructor(string memory _name, string memory _symbol, address _factory) ERC20(_name, _symbol) ERC20Permit(_name) { _transferOwnership(_factory); FACTORY = _factory; } /** * @notice Mints tokens for a user * @dev Can only be called by a bridge * @param _user The address of the user who needs tokens minted * @param _amount The amount of tokens being minted */ function mint(address _user, uint256 _amount) public { _mintWithCaller(msg.sender, _user, _amount); } /** * @notice Burns tokens for a user * @dev Can only be called by a bridge * @param _user The address of the user who needs tokens burned * @param _amount The amount of tokens being burned */ function burn(address _user, uint256 _amount) public { if (msg.sender != _user) { _spendAllowance(_user, msg.sender, _amount); } _burnWithCaller(msg.sender, _user, _amount); } /** * @notice Sets the lockbox address * * @param _lockbox The address of the lockbox */ function setLockbox(address _lockbox) public { if (msg.sender != FACTORY) revert IXERC20_NotFactory(); lockbox = _lockbox; emit LockboxSet(_lockbox); } /** * @notice Updates the limits of any bridge * @dev Can only be called by the owner * @param _mintingLimit The updated minting limit we are setting to the bridge * @param _burningLimit The updated burning limit we are setting to the bridge * @param _bridge The address of the bridge we are setting the limits too */ function setLimits(address _bridge, uint256 _mintingLimit, uint256 _burningLimit) external onlyOwner { _changeMinterLimit(_bridge, _mintingLimit); _changeBurnerLimit(_bridge, _burningLimit); emit BridgeLimitsSet(_mintingLimit, _burningLimit, _bridge); } /** * @notice Returns the max limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function mintingMaxLimitOf(address _bridge) public view returns (uint256 _limit) { _limit = bridges[_bridge].minterParams.maxLimit; } /** * @notice Returns the max limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function burningMaxLimitOf(address _bridge) public view returns (uint256 _limit) { _limit = bridges[_bridge].burnerParams.maxLimit; } /** * @notice Returns the current limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function mintingCurrentLimitOf(address _bridge) public view returns (uint256 _limit) { _limit = _getCurrentLimit( bridges[_bridge].minterParams.currentLimit, bridges[_bridge].minterParams.maxLimit, bridges[_bridge].minterParams.timestamp, bridges[_bridge].minterParams.ratePerSecond ); } /** * @notice Returns the current limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function burningCurrentLimitOf(address _bridge) public view returns (uint256 _limit) { _limit = _getCurrentLimit( bridges[_bridge].burnerParams.currentLimit, bridges[_bridge].burnerParams.maxLimit, bridges[_bridge].burnerParams.timestamp, bridges[_bridge].burnerParams.ratePerSecond ); } /** * @notice Uses the limit of any bridge * @param _bridge The address of the bridge who is being changed * @param _change The change in the limit */ function _useMinterLimits(address _bridge, uint256 _change) internal { uint256 _currentLimit = mintingCurrentLimitOf(_bridge); bridges[_bridge].minterParams.timestamp = block.timestamp; bridges[_bridge].minterParams.currentLimit = _currentLimit - _change; } /** * @notice Uses the limit of any bridge * @param _bridge The address of the bridge who is being changed * @param _change The change in the limit */ function _useBurnerLimits(address _bridge, uint256 _change) internal { uint256 _currentLimit = burningCurrentLimitOf(_bridge); bridges[_bridge].burnerParams.timestamp = block.timestamp; bridges[_bridge].burnerParams.currentLimit = _currentLimit - _change; } /** * @notice Updates the limit of any bridge * @dev Can only be called by the owner * @param _bridge The address of the bridge we are setting the limit too * @param _limit The updated limit we are setting to the bridge */ function _changeMinterLimit(address _bridge, uint256 _limit) internal { uint256 _oldLimit = bridges[_bridge].minterParams.maxLimit; uint256 _currentLimit = mintingCurrentLimitOf(_bridge); bridges[_bridge].minterParams.maxLimit = _limit; bridges[_bridge].minterParams.currentLimit = _calculateNewCurrentLimit(_limit, _oldLimit, _currentLimit); bridges[_bridge].minterParams.ratePerSecond = _limit / _DURATION; bridges[_bridge].minterParams.timestamp = block.timestamp; } /** * @notice Updates the limit of any bridge * @dev Can only be called by the owner * @param _bridge The address of the bridge we are setting the limit too * @param _limit The updated limit we are setting to the bridge */ function _changeBurnerLimit(address _bridge, uint256 _limit) internal { uint256 _oldLimit = bridges[_bridge].burnerParams.maxLimit; uint256 _currentLimit = burningCurrentLimitOf(_bridge); bridges[_bridge].burnerParams.maxLimit = _limit; bridges[_bridge].burnerParams.currentLimit = _calculateNewCurrentLimit(_limit, _oldLimit, _currentLimit); bridges[_bridge].burnerParams.ratePerSecond = _limit / _DURATION; bridges[_bridge].burnerParams.timestamp = block.timestamp; } /** * @notice Updates the current limit * * @param _limit The new limit * @param _oldLimit The old limit * @param _currentLimit The current limit * @return _newCurrentLimit The new current limit */ function _calculateNewCurrentLimit( uint256 _limit, uint256 _oldLimit, uint256 _currentLimit ) internal pure returns (uint256 _newCurrentLimit) { uint256 _difference; if (_oldLimit > _limit) { _difference = _oldLimit - _limit; _newCurrentLimit = _currentLimit > _difference ? _currentLimit - _difference : 0; } else { _difference = _limit - _oldLimit; _newCurrentLimit = _currentLimit + _difference; } } /** * @notice Gets the current limit * * @param _currentLimit The current limit * @param _maxLimit The max limit * @param _timestamp The timestamp of the last update * @param _ratePerSecond The rate per second * @return _limit The current limit */ function _getCurrentLimit( uint256 _currentLimit, uint256 _maxLimit, uint256 _timestamp, uint256 _ratePerSecond ) internal view returns (uint256 _limit) { _limit = _currentLimit; if (_limit == _maxLimit) { return _limit; } else if (_timestamp + _DURATION <= block.timestamp) { _limit = _maxLimit; } else if (_timestamp + _DURATION > block.timestamp) { uint256 _timePassed = block.timestamp - _timestamp; uint256 _calculatedLimit = _limit + (_timePassed * _ratePerSecond); _limit = _calculatedLimit > _maxLimit ? _maxLimit : _calculatedLimit; } } /** * @notice Internal function for burning tokens * * @param _caller The caller address * @param _user The user address * @param _amount The amount to burn */ function _burnWithCaller(address _caller, address _user, uint256 _amount) internal { if (_caller != lockbox) { uint256 _currentLimit = burningCurrentLimitOf(_caller); if (_currentLimit < _amount) revert IXERC20_NotHighEnoughLimits(); _useBurnerLimits(_caller, _amount); } _burn(_user, _amount); } /** * @notice Internal function for minting tokens * * @param _caller The caller address * @param _user The user address * @param _amount The amount to mint */ function _mintWithCaller(address _caller, address _user, uint256 _amount) internal { if (_caller != lockbox) { uint256 _currentLimit = mintingCurrentLimitOf(_caller); if (_currentLimit < _amount) revert IXERC20_NotHighEnoughLimits(); _useMinterLimits(_caller, _amount); } _mint(_user, _amount); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; interface IXERC20 { /** * @notice Emits when a lockbox is set * * @param _lockbox The address of the lockbox */ event LockboxSet(address _lockbox); /** * @notice Emits when a limit is set * * @param _mintingLimit The updated minting limit we are setting to the bridge * @param _burningLimit The updated burning limit we are setting to the bridge * @param _bridge The address of the bridge we are setting the limit too */ event BridgeLimitsSet(uint256 _mintingLimit, uint256 _burningLimit, address indexed _bridge); /** * @notice Reverts when a user with too low of a limit tries to call mint/burn */ error IXERC20_NotHighEnoughLimits(); /** * @notice Reverts when caller is not the factory */ error IXERC20_NotFactory(); /** * @notice Contains the full minting and burning data for a particular bridge * * @param minterParams The minting parameters for the bridge * @param burnerParams The burning parameters for the bridge */ struct Bridge { BridgeParameters minterParams; BridgeParameters burnerParams; } /** * @notice Contains the mint or burn parameters for a bridge * * @param timestamp The timestamp of the last mint/burn * @param ratePerSecond The rate per second of the bridge * @param maxLimit The max limit of the bridge * @param currentLimit The current limit of the bridge */ struct BridgeParameters { uint256 timestamp; uint256 ratePerSecond; uint256 maxLimit; uint256 currentLimit; } /** * @notice Sets the lockbox address * * @param _lockbox The address of the lockbox */ function setLockbox(address _lockbox) external; /** * @notice Updates the limits of any bridge * @dev Can only be called by the owner * @param _mintingLimit The updated minting limit we are setting to the bridge * @param _burningLimit The updated burning limit we are setting to the bridge * @param _bridge The address of the bridge we are setting the limits too */ function setLimits(address _bridge, uint256 _mintingLimit, uint256 _burningLimit) external; /** * @notice Returns the max limit of a minter * * @param _minter The minter we are viewing the limits of * @return _limit The limit the minter has */ function mintingMaxLimitOf(address _minter) external view returns (uint256 _limit); /** * @notice Returns the max limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function burningMaxLimitOf(address _bridge) external view returns (uint256 _limit); /** * @notice Returns the current limit of a minter * * @param _minter The minter we are viewing the limits of * @return _limit The limit the minter has */ function mintingCurrentLimitOf(address _minter) external view returns (uint256 _limit); /** * @notice Returns the current limit of a bridge * * @param _bridge the bridge we are viewing the limits of * @return _limit The limit the bridge has */ function burningCurrentLimitOf(address _bridge) external view returns (uint256 _limit); /** * @notice Mints tokens for a user * @dev Can only be called by a minter * @param _user The address of the user who needs tokens minted * @param _amount The amount of tokens being minted */ function mint(address _user, uint256 _amount) external; /** * @notice Burns tokens for a user * @dev Can only be called by a minter * @param _user The address of the user who needs tokens burned * @param _amount The amount of tokens being burned */ function burn(address _user, uint256 _amount) external; }
// 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol) pragma solidity ^0.8.0; import "./IERC20Permit.sol"; import "../ERC20.sol"; import "../../../utils/cryptography/ECDSA.sol"; import "../../../utils/cryptography/EIP712.sol"; import "../../../utils/Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// 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); } }
// 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 v4.4.1 (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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; import "./ECDSA.sol"; import "../ShortStrings.sol"; import "../../interfaces/IERC5267.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; import "./StorageSlot.sol"; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
{ "remappings": [ "ds-test/=lib/ds-test/src/", "prb/test/=lib/prb-test/src/", "forge-std/=lib/forge-std/src/", "isolmate/=lib/isolmate/src/", "@openzeppelin/=lib/openzeppelin-contracts/", "permit2/=lib/permit2/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "prb-test/=lib/prb-test/src/", "solmate/=lib/permit2/lib/solmate/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "evmVersion": "paris", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IXERC20_NotFactory","type":"error"},{"inputs":[],"name":"IXERC20_NotHighEnoughLimits","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","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":false,"internalType":"uint256","name":"_mintingLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_burningLimit","type":"uint256"},{"indexed":true,"internalType":"address","name":"_bridge","type":"address"}],"name":"BridgeLimitsSet","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lockbox","type":"address"}],"name":"LockboxSet","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bridges","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"currentLimit","type":"uint256"}],"internalType":"struct IXERC20.BridgeParameters","name":"minterParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"currentLimit","type":"uint256"}],"internalType":"struct IXERC20.BridgeParameters","name":"burnerParams","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"burningCurrentLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"burningMaxLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockbox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"mintingCurrentLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"mintingMaxLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"uint256","name":"_mintingLimit","type":"uint256"},{"internalType":"uint256","name":"_burningLimit","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lockbox","type":"address"}],"name":"setLockbox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101806040818152346200045d576200279e803803809162000022828662000462565b843982016060838203126200045d5782516001600160401b0392908381116200045d578262000053918601620004ab565b90602092838601518581116200045d57829162000072918801620004ab565b950151926001600160a01b03841684036200045d57815190828201828110878211176200036857835260019283835281830193603160f81b85528551888111620003685760038054918383811c9316801562000452575b868410146200043c57601f92838111620003f1575b5080868482116001146200038a576000916200037e575b5060001982841b1c191690841b1781555b8a51918a8311620003685760049b8c548581811c911680156200035d575b888210146200034857828111620002fd575b5086918411600114620002925793839491849260009562000286575b50501b92600019911b1c19161788555b6200016d3362000506565b62000178856200054f565b936101209485526200018a84620006f7565b95610140968752838151910120938460e0525190209761010098808a524660a0528251938401947f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f86528385015260608401524660808401523060a084015260a0835260c0830197838910908911176200027157508690525190206080523060c052620002178362000506565b610160928352611f4f94856200084f863960805185611916015260a051856119e2015260c051856118e7015260e051856119650152518461198b01525183610b2e01525182610b58015251818181610e0001526110ac0152f35b604190634e487b7160e01b6000525260246000fd5b01519350388062000152565b9190601f198416928d60005284886000209460005b8a89838310620002e55750505010620002ca575b50505050811b01885562000162565b01519060f884600019921b161c1916905538808080620002bb565b868601518955909701969485019488935001620002a7565b8d600052876000208380870160051c8201928a88106200033e575b0160051c019086905b8281106200033157505062000136565b6000815501869062000321565b9250819262000318565b60228e634e487b7160e01b6000525260246000fd5b90607f169062000124565b634e487b7160e01b600052604160045260246000fd5b905089015138620000f5565b60008481528881208794509190601f198416908a8e5b838310620003d9575050508311620003c0575b5050811b01815562000106565b8b015160001983861b60f8161c191690553880620003b3565b840151855589969094019392830192018a8e620003a0565b82600052866000208480840160051c82019289851062000432575b0160051c019085905b82811062000425575050620000de565b6000815501859062000415565b925081926200040c565b634e487b7160e01b600052602260045260246000fd5b92607f1692620000c9565b600080fd5b601f909101601f19168101906001600160401b038211908210176200036857604052565b60005b8381106200049a5750506000910152565b818101518382015260200162000489565b81601f820112156200045d5780516001600160401b038111620003685760405192620004e2601f8301601f19166020018562000462565b818452602082840101116200045d5762000503916020808501910162000486565b90565b600580546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b805160209081811015620005cd5750601f8251116200058b57808251920151908083106200057c57501790565b82600019910360031b1b161790565b604490620005bf9260405193849263305a27a960e01b84528060048501528251928391826024870152868601910162000486565b601f01601f19168101030190fd5b906001600160401b0382116200036857600654926001938481811c91168015620006ec575b838210146200043c57601f8111620006b2575b5081601f84116001146200064657509282939183926000946200063a575b50501b916000199060031b1c19161760065560ff90565b01519250388062000623565b919083601f198116600660005284600020946000905b888383106200069757505050106200067d575b505050811b0160065560ff90565b015160001960f88460031b161c191690553880806200066f565b8587015188559096019594850194879350908101906200065c565b600660005284601f84600020920160051c820191601f860160051c015b828110620006df57505062000605565b60008155018590620006cf565b90607f1690620005f2565b805160209081811015620007245750601f8251116200058b57808251920151908083106200057c57501790565b906001600160401b0382116200036857600754926001938481811c9116801562000843575b838210146200043c57601f811162000809575b5081601f84116001146200079d575092829391839260009462000791575b50501b916000199060031b1c19161760075560ff90565b0151925038806200077a565b919083601f198116600760005284600020946000905b88838310620007ee5750505010620007d4575b505050811b0160075560ff90565b015160001960f88460031b161c19169055388080620007c6565b858701518855909601959485019487935090810190620007b3565b600760005284601f84600020920160051c820191601f860160051c015b828110620008365750506200075c565b6000815501859062000826565b90607f16906200074956fe6080604081815260048036101561001557600080fd5b600092833560e01c90816306fdde031461118c57508063095ea7b3146111625780630c05f82c1461112c57806318160ddd1461110d57806323b872dd146110d05780632dd310001461107f578063313ce567146110635780633644e515146110465780633950935114610fea57806340c10f1914610ea8578063435350b714610dcd578063651fd26814610da757806366cc570214610d7257806370a0823114610d2f578063715018a614610caf5780637ecebe0014610c6b57806384b0196e14610b175780638da5cb5b14610ae257806395d89b41146109d5578063998955d3146109a85780639dc29fac146107ad578063a08d5654146106a7578063a457c2d7146105da578063a9059cbb146105a9578063c1eb713714610562578063ced67f0c146104ba578063d505accf146102bf578063dd62ed3e146102655763f2fde38b1461016257600080fd5b346102615760206003193601126102615761017b6112e0565b90610184611a95565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101f8575050600554827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102bb57806003193601126102bb57806020926102836112e0565b61028b611308565b73ffffffffffffffffffffffffffffffffffffffff91821683526001865283832091168252845220549051908152f35b5080fd5b508290346102bb5760e06003193601126102bb576102db6112e0565b6102e3611308565b906044359260643560843560ff811681036104b6578142116104735773ffffffffffffffffffffffffffffffffffffffff90818516928389526008602052898920908154916001830190558a519060208201927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98452868d840152858a1660608401528a608084015260a083015260c082015260c0815260e0810181811067ffffffffffffffff821117610447578b525190206103ef916103e7916103a66118d0565b908c51917f190100000000000000000000000000000000000000000000000000000000000083526002830152602282015260c43591604260a4359220611d32565b919091611dce565b1603610404575061040193945061150b565b80f35b606490602087519162461bcd60e51b8352820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152fd5b60248b6041897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b60648360208a519162461bcd60e51b8352820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152fd5b8680fd5b509034610261576020600319360112610261578061053a610513610560936101009673ffffffffffffffffffffffffffffffffffffffff6104f96112e0565b168152600b602052209461050c866113b7565b95016113b7565b91518094606080918051845260208101516020850152604081015160408501520151910152565b80516080840152602081015160a0840152604081015160c08401526060015160e0830152565bf35b5050346102bb5760206003193601126102bb5760068160209373ffffffffffffffffffffffffffffffffffffffff6105986112e0565b168152600b85522001549051908152f35b5050346102bb57806003193601126102bb576020906105d36105c96112e0565b602435903361170f565b5160018152f35b5082346106a457826003193601126106a4576105f46112e0565b918360243592338152600160205281812073ffffffffffffffffffffffffffffffffffffffff8616825260205220549082821061063b576020856105d3858503873361150b565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b509034610261576060600319360112610261577f93f3bbfe8cfb354ec059175107653f49f6eb479a8622a7d83866ea015435c944906106e46112e0565b92602435908582604435926106f7611a95565b61078573ffffffffffffffffffffffffffffffffffffffff891680998186528660068a602098600b8a526107758361074e8c60028686200154600b61073b8b611489565b928c8852528d600288882001558d611cf2565b888452600b8d5284842090600382015562015180809c0460018201554281550154956114ca565b958152600b8a5220015586611cf2565b91888a52600b8452868a2092600784015584046005830155429101558351928352820152a280f35b508290346102bb57826003193601126102bb576107c86112e0565b906024359073ffffffffffffffffffffffffffffffffffffffff8084169383853303610996575b5050600a5416330361092b575b82156108c25782845283602052848420549082821061085957508184957fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef936020938688528785520381872055816002540360025551908152a380f35b608490602087519162461bcd60e51b8352820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b608490602086519162461bcd60e51b8352820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b81610935336114ca565b1061096f5761095b82610947336114ca565b338752600b60205242848989200155611a08565b338552600b602052600786862001556107fc565b84517f0b6842aa000000000000000000000000000000000000000000000000000000008152fd5b6109a191339061164c565b86836107ef565b5050346102bb5760206003193601126102bb576020906109ce6109c96112e0565b6114ca565b9051908152f35b50903461026157826003193601126102615780518381949084546109f8816113fa565b9182855260209660019288600182169182600014610a9a575050600114610a3f575b8588610a3b89610a2c848a0385611376565b51928284938452830190611282565b0390f35b815286935091907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610a825750505082010181610a2c610a3b38610a1a565b8054848a018601528895508794909301928101610a68565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168882015294151560051b87019094019450859350610a2c9250610a3b9150389050610a1a565b5050346102bb57816003193601126102bb5760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b509034610261578260031936011261026157610b527f0000000000000000000000000000000000000000000000000000000000000000611afa565b92610b7c7f0000000000000000000000000000000000000000000000000000000000000000611c32565b90825192602092602085019585871067ffffffffffffffff881117610c3f5750926020610bf5838896610be8998b9996528686528151998a997f0f000000000000000000000000000000000000000000000000000000000000008b5260e0868c015260e08b0190611282565b91898303908a0152611282565b924660608801523060808801528460a088015286840360c088015251928381520193925b828110610c2857505050500390f35b835185528695509381019392810192600101610c19565b8360416024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b5050346102bb5760206003193601126102bb578060209273ffffffffffffffffffffffffffffffffffffffff610c9f6112e0565b1681526008845220549051908152f35b83346106a457806003193601126106a457610cc8611a95565b8073ffffffffffffffffffffffffffffffffffffffff6005547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102bb5760206003193601126102bb578060209273ffffffffffffffffffffffffffffffffffffffff610d636112e0565b16815280845220549051908152f35b5050346102bb57816003193601126102bb5760209073ffffffffffffffffffffffffffffffffffffffff600a54169051908152f35b5050346102bb5760206003193601126102bb576020906109ce610dc86112e0565b611489565b503461026157602060031936011261026157610de76112e0565b73ffffffffffffffffffffffffffffffffffffffff91827f0000000000000000000000000000000000000000000000000000000000000000163303610e815750916020917ffa2e15ea41196e438f0593ecdd6036acd83bdfcd39d627b77c17eab43f376a39931690817fffffffffffffffffffffffff0000000000000000000000000000000000000000600a541617600a5551908152a180f35b83517f2029e525000000000000000000000000000000000000000000000000000000008152fd5b509034610261578060031936011261026157610ec26112e0565b906024359173ffffffffffffffffffffffffffffffffffffffff9081600a54163303610f80575b16928315610f3e57506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92610f24879560025461144d565b60025585855284835280852082815401905551908152a380f35b6020606492519162461bcd60e51b8352820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b83610f8a33611489565b10610fc257610fae84610f9c33611489565b338952600b60205242868a2055611a08565b338752600b60205260038488200155610ee9565b8483517f0b6842aa000000000000000000000000000000000000000000000000000000008152fd5b5050346102bb57806003193601126102bb576105d360209261103f61100d6112e0565b913381526001865284812073ffffffffffffffffffffffffffffffffffffffff8416825286528460243591205461144d565b903361150b565b5050346102bb57816003193601126102bb576020906109ce6118d0565b5050346102bb57816003193601126102bb576020905160128152f35b5050346102bb57816003193601126102bb576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b5050346102bb5760606003193601126102bb576020906105d36110f16112e0565b6110f9611308565b6044359161110883338361164c565b61170f565b5050346102bb57816003193601126102bb576020906002549051908152f35b5050346102bb5760206003193601126102bb5760028160209373ffffffffffffffffffffffffffffffffffffffff6105986112e0565b5050346102bb57806003193601126102bb576020906105d36111826112e0565b602435903361150b565b8484346102bb57816003193601126102bb5782826003546111ac816113fa565b908184526020956001918760018216918260001461123d5750506001146111e1575b505050610a3b9291610a2c910385611376565b9190869350600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106112255750505082010181610a2c610a3b6111ce565b8054848a01860152889550879490930192810161120c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168782015293151560051b86019093019350849250610a2c9150610a3b90506111ce565b919082519283825260005b8481106112cc5750507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006020809697860101520116010190565b60208183018101518483018201520161128d565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361130357565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361130357565b6040810190811067ffffffffffffffff82111761134757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761134757604052565b906040516080810181811067ffffffffffffffff821117611347576040526060600382948054845260018101546020850152600281015460408501520154910152565b90600182811c92168015611443575b602083101461141457565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691611409565b9190820180921161145a57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff16600052600b6020526114c7604060002060038101549060028101546001825492015492611a15565b90565b73ffffffffffffffffffffffffffffffffffffffff16600052600b6020526114c7604060002060078101549060068101546005600483015492015492611a15565b73ffffffffffffffffffffffffffffffffffffffff8091169182156115e357169182156115795760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80831660005260016020526040600020908216600052602052604060002054927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84036116b0575b50505050565b8084106116cb576116c293039161150b565b388080806116aa565b606460405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff80911691821561186657169182156117fc5760008281528060205260408120549180831061179257604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b608460405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163014806119df575b15611938577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176113475760405251902090565b507f0000000000000000000000000000000000000000000000000000000000000000461461190f565b9190820391821161145a57565b909193928194838314600014611a2b5750505050565b62015180810180821161145a57421080611a485750929450505050565b611a525750505050565b611a6191929394955042611a08565b81810291818304149015171561145a57611a7a9161144d565b81811115611a8e57505b90388080806116aa565b9050611a84565b73ffffffffffffffffffffffffffffffffffffffff600554163303611ab657565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60ff8114611b505760ff811690601f8211611b265760405191611b1c8361132b565b8252602082015290565b60046040517fb3512b0c000000000000000000000000000000000000000000000000000000008152fd5b50604051600654816000611b63836113fa565b80835292602090600190818116908115611bef5750600114611b8e575b50506114c792500382611376565b91509260066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f936000925b828410611bd757506114c79450505081016020013880611b80565b85548785018301529485019486945092810192611bbc565b9050602093506114c79592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b8201013880611b80565b60ff8114611c545760ff811690601f8211611b265760405191611b1c8361132b565b50604051600754816000611c67836113fa565b80835292602090600190818116908115611bef5750600114611c915750506114c792500382611376565b91509260076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688936000925b828410611cda57506114c79450505081016020013880611b80565b85548785018301529485019486945092810192611cbf565b90919080831115611d1f57611d079192611a08565b80821115611d18576114c791611a08565b5050600090565b6114c792611d2c91611a08565b9061144d565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311611dc25791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15611db557815173ffffffffffffffffffffffffffffffffffffffff811615611daf579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b6005811015611eea5780611ddf5750565b60018103611e2b57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103611e7757606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314611e8057565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212207e8651170a6539260824a3a7c2b8f5a09e1b6b29338d35882fae3442ac5988fc64736f6c63430008170033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b913be186110b1119d5b9582f316f142c908fc250000000000000000000000000000000000000000000000000000000000000008416c6368656d69780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414c435800000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604081815260048036101561001557600080fd5b600092833560e01c90816306fdde031461118c57508063095ea7b3146111625780630c05f82c1461112c57806318160ddd1461110d57806323b872dd146110d05780632dd310001461107f578063313ce567146110635780633644e515146110465780633950935114610fea57806340c10f1914610ea8578063435350b714610dcd578063651fd26814610da757806366cc570214610d7257806370a0823114610d2f578063715018a614610caf5780637ecebe0014610c6b57806384b0196e14610b175780638da5cb5b14610ae257806395d89b41146109d5578063998955d3146109a85780639dc29fac146107ad578063a08d5654146106a7578063a457c2d7146105da578063a9059cbb146105a9578063c1eb713714610562578063ced67f0c146104ba578063d505accf146102bf578063dd62ed3e146102655763f2fde38b1461016257600080fd5b346102615760206003193601126102615761017b6112e0565b90610184611a95565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101f8575050600554827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102bb57806003193601126102bb57806020926102836112e0565b61028b611308565b73ffffffffffffffffffffffffffffffffffffffff91821683526001865283832091168252845220549051908152f35b5080fd5b508290346102bb5760e06003193601126102bb576102db6112e0565b6102e3611308565b906044359260643560843560ff811681036104b6578142116104735773ffffffffffffffffffffffffffffffffffffffff90818516928389526008602052898920908154916001830190558a519060208201927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98452868d840152858a1660608401528a608084015260a083015260c082015260c0815260e0810181811067ffffffffffffffff821117610447578b525190206103ef916103e7916103a66118d0565b908c51917f190100000000000000000000000000000000000000000000000000000000000083526002830152602282015260c43591604260a4359220611d32565b919091611dce565b1603610404575061040193945061150b565b80f35b606490602087519162461bcd60e51b8352820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152fd5b60248b6041897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b60648360208a519162461bcd60e51b8352820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152fd5b8680fd5b509034610261576020600319360112610261578061053a610513610560936101009673ffffffffffffffffffffffffffffffffffffffff6104f96112e0565b168152600b602052209461050c866113b7565b95016113b7565b91518094606080918051845260208101516020850152604081015160408501520151910152565b80516080840152602081015160a0840152604081015160c08401526060015160e0830152565bf35b5050346102bb5760206003193601126102bb5760068160209373ffffffffffffffffffffffffffffffffffffffff6105986112e0565b168152600b85522001549051908152f35b5050346102bb57806003193601126102bb576020906105d36105c96112e0565b602435903361170f565b5160018152f35b5082346106a457826003193601126106a4576105f46112e0565b918360243592338152600160205281812073ffffffffffffffffffffffffffffffffffffffff8616825260205220549082821061063b576020856105d3858503873361150b565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b509034610261576060600319360112610261577f93f3bbfe8cfb354ec059175107653f49f6eb479a8622a7d83866ea015435c944906106e46112e0565b92602435908582604435926106f7611a95565b61078573ffffffffffffffffffffffffffffffffffffffff891680998186528660068a602098600b8a526107758361074e8c60028686200154600b61073b8b611489565b928c8852528d600288882001558d611cf2565b888452600b8d5284842090600382015562015180809c0460018201554281550154956114ca565b958152600b8a5220015586611cf2565b91888a52600b8452868a2092600784015584046005830155429101558351928352820152a280f35b508290346102bb57826003193601126102bb576107c86112e0565b906024359073ffffffffffffffffffffffffffffffffffffffff8084169383853303610996575b5050600a5416330361092b575b82156108c25782845283602052848420549082821061085957508184957fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef936020938688528785520381872055816002540360025551908152a380f35b608490602087519162461bcd60e51b8352820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b608490602086519162461bcd60e51b8352820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b81610935336114ca565b1061096f5761095b82610947336114ca565b338752600b60205242848989200155611a08565b338552600b602052600786862001556107fc565b84517f0b6842aa000000000000000000000000000000000000000000000000000000008152fd5b6109a191339061164c565b86836107ef565b5050346102bb5760206003193601126102bb576020906109ce6109c96112e0565b6114ca565b9051908152f35b50903461026157826003193601126102615780518381949084546109f8816113fa565b9182855260209660019288600182169182600014610a9a575050600114610a3f575b8588610a3b89610a2c848a0385611376565b51928284938452830190611282565b0390f35b815286935091907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610a825750505082010181610a2c610a3b38610a1a565b8054848a018601528895508794909301928101610a68565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168882015294151560051b87019094019450859350610a2c9250610a3b9150389050610a1a565b5050346102bb57816003193601126102bb5760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b509034610261578260031936011261026157610b527f416c6368656d6978000000000000000000000000000000000000000000000008611afa565b92610b7c7f3100000000000000000000000000000000000000000000000000000000000001611c32565b90825192602092602085019585871067ffffffffffffffff881117610c3f5750926020610bf5838896610be8998b9996528686528151998a997f0f000000000000000000000000000000000000000000000000000000000000008b5260e0868c015260e08b0190611282565b91898303908a0152611282565b924660608801523060808801528460a088015286840360c088015251928381520193925b828110610c2857505050500390f35b835185528695509381019392810192600101610c19565b8360416024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b5050346102bb5760206003193601126102bb578060209273ffffffffffffffffffffffffffffffffffffffff610c9f6112e0565b1681526008845220549051908152f35b83346106a457806003193601126106a457610cc8611a95565b8073ffffffffffffffffffffffffffffffffffffffff6005547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102bb5760206003193601126102bb578060209273ffffffffffffffffffffffffffffffffffffffff610d636112e0565b16815280845220549051908152f35b5050346102bb57816003193601126102bb5760209073ffffffffffffffffffffffffffffffffffffffff600a54169051908152f35b5050346102bb5760206003193601126102bb576020906109ce610dc86112e0565b611489565b503461026157602060031936011261026157610de76112e0565b73ffffffffffffffffffffffffffffffffffffffff91827f000000000000000000000000b913be186110b1119d5b9582f316f142c908fc25163303610e815750916020917ffa2e15ea41196e438f0593ecdd6036acd83bdfcd39d627b77c17eab43f376a39931690817fffffffffffffffffffffffff0000000000000000000000000000000000000000600a541617600a5551908152a180f35b83517f2029e525000000000000000000000000000000000000000000000000000000008152fd5b509034610261578060031936011261026157610ec26112e0565b906024359173ffffffffffffffffffffffffffffffffffffffff9081600a54163303610f80575b16928315610f3e57506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92610f24879560025461144d565b60025585855284835280852082815401905551908152a380f35b6020606492519162461bcd60e51b8352820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b83610f8a33611489565b10610fc257610fae84610f9c33611489565b338952600b60205242868a2055611a08565b338752600b60205260038488200155610ee9565b8483517f0b6842aa000000000000000000000000000000000000000000000000000000008152fd5b5050346102bb57806003193601126102bb576105d360209261103f61100d6112e0565b913381526001865284812073ffffffffffffffffffffffffffffffffffffffff8416825286528460243591205461144d565b903361150b565b5050346102bb57816003193601126102bb576020906109ce6118d0565b5050346102bb57816003193601126102bb576020905160128152f35b5050346102bb57816003193601126102bb576020905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000b913be186110b1119d5b9582f316f142c908fc25168152f35b5050346102bb5760606003193601126102bb576020906105d36110f16112e0565b6110f9611308565b6044359161110883338361164c565b61170f565b5050346102bb57816003193601126102bb576020906002549051908152f35b5050346102bb5760206003193601126102bb5760028160209373ffffffffffffffffffffffffffffffffffffffff6105986112e0565b5050346102bb57806003193601126102bb576020906105d36111826112e0565b602435903361150b565b8484346102bb57816003193601126102bb5782826003546111ac816113fa565b908184526020956001918760018216918260001461123d5750506001146111e1575b505050610a3b9291610a2c910385611376565b9190869350600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106112255750505082010181610a2c610a3b6111ce565b8054848a01860152889550879490930192810161120c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168782015293151560051b86019093019350849250610a2c9150610a3b90506111ce565b919082519283825260005b8481106112cc5750507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006020809697860101520116010190565b60208183018101518483018201520161128d565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361130357565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361130357565b6040810190811067ffffffffffffffff82111761134757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761134757604052565b906040516080810181811067ffffffffffffffff821117611347576040526060600382948054845260018101546020850152600281015460408501520154910152565b90600182811c92168015611443575b602083101461141457565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691611409565b9190820180921161145a57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff16600052600b6020526114c7604060002060038101549060028101546001825492015492611a15565b90565b73ffffffffffffffffffffffffffffffffffffffff16600052600b6020526114c7604060002060078101549060068101546005600483015492015492611a15565b73ffffffffffffffffffffffffffffffffffffffff8091169182156115e357169182156115795760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80831660005260016020526040600020908216600052602052604060002054927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84036116b0575b50505050565b8084106116cb576116c293039161150b565b388080806116aa565b606460405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff80911691821561186657169182156117fc5760008281528060205260408120549180831061179257604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b608460405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000303c4f39ea359155c698807168e9dc3aa1df2b95163014806119df575b15611938577f53ca50498199d53dc003a0eabeebb0a7d5e9d0ff7466f9938f3d6387da55283c90565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527fa4b47ce28cdeec0eb62ae380b1d284474f8cf957cc3ba4a2a1c75464ef5e428260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176113475760405251902090565b507f000000000000000000000000000000000000000000000000000000000000e708461461190f565b9190820391821161145a57565b909193928194838314600014611a2b5750505050565b62015180810180821161145a57421080611a485750929450505050565b611a525750505050565b611a6191929394955042611a08565b81810291818304149015171561145a57611a7a9161144d565b81811115611a8e57505b90388080806116aa565b9050611a84565b73ffffffffffffffffffffffffffffffffffffffff600554163303611ab657565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60ff8114611b505760ff811690601f8211611b265760405191611b1c8361132b565b8252602082015290565b60046040517fb3512b0c000000000000000000000000000000000000000000000000000000008152fd5b50604051600654816000611b63836113fa565b80835292602090600190818116908115611bef5750600114611b8e575b50506114c792500382611376565b91509260066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f936000925b828410611bd757506114c79450505081016020013880611b80565b85548785018301529485019486945092810192611bbc565b9050602093506114c79592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b8201013880611b80565b60ff8114611c545760ff811690601f8211611b265760405191611b1c8361132b565b50604051600754816000611c67836113fa565b80835292602090600190818116908115611bef5750600114611c915750506114c792500382611376565b91509260076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688936000925b828410611cda57506114c79450505081016020013880611b80565b85548785018301529485019486945092810192611cbf565b90919080831115611d1f57611d079192611a08565b80821115611d18576114c791611a08565b5050600090565b6114c792611d2c91611a08565b9061144d565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311611dc25791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15611db557815173ffffffffffffffffffffffffffffffffffffffff811615611daf579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b6005811015611eea5780611ddf5750565b60018103611e2b57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103611e7757606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314611e8057565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212207e8651170a6539260824a3a7c2b8f5a09e1b6b29338d35882fae3442ac5988fc64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b913be186110b1119d5b9582f316f142c908fc250000000000000000000000000000000000000000000000000000000000000008416c6368656d69780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414c435800000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Alchemix
Arg [1] : _symbol (string): ALCX
Arg [2] : _factory (address): 0xb913bE186110B1119d5B9582F316f142c908fc25
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000b913be186110b1119d5b9582f316f142c908fc25
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 416c6368656d6978000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 414c435800000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
353:9124:16:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;1063:62:0;;;:::i;:::-;353:9124:16;;;;2162:22:0;;;353:9124:16;;;;2518:6:0;353:9124:16;;;;;;2518:6:0;353:9124:16;;2566:40:0;;;;353:9124:16;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;4102:11:2;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;2146:15:4;;:27;353:9124:16;;;;;;;;;;;3231:7:4;353:9124:16;;;;;;;;;;;;;;;;2249:79:4;353:9124:16;2249:79:4;;353:9124:16;1125:95:4;353:9124:16;;1125:95:4;;;;353:9124:16;;;;;1125:95:4;;353:9124:16;1125:95:4;353:9124:16;1125:95:4;;353:9124:16;;1125:95:4;;353:9124:16;;1125:95:4;;353:9124:16;;2249:79:4;;353:9124:16;;;;;;;;;;;;;;;2239:90:4;;6791:5:12;;6744:25;;4893:20:13;;:::i;:::-;8496:231:12;;;;;;;;;;;;;;;353:9124:16;;;8496:231:12;353:9124:16;;8496:231:12;;6744:25;:::i;:::-;6791:5;;;;:::i;:::-;353:9124:16;2457:15:4;1125:95;;2543:5;;;;;;:::i;:::-;353:9124:16;;1125:95:4;353:9124:16;;;;;1125:95:4;-1:-1:-1;;;1125:95:4;;;;;;353:9124:16;1125:95:4;;353:9124:16;1125:95:4;353:9124:16;;;1125:95:4;;353:9124:16;;;;;;;;;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;818:41;353:9124;;;;;;;:::i;:::-;;;;818:41;353:9124;;;818:41;;;;:::i;:::-;;;;:::i;:::-;353:9124;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;3462:38;353:9124;;;;;;:::i;:::-;;;;3462:7;353:9124;;;3462:38;353:9124;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;3894:6:2;353:9124:16;;:::i;:::-;;;719:10:7;;3894:6:2;:::i;:::-;353:9124:16;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;;;;;719:10:7;;353:9124:16;;;;;;;;;;;;;;;;;6792:35:2;;;;353:9124:16;;;;6928:34:2;353:9124:16;;;;719:10:7;6928:34:2;:::i;353:9124:16:-;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;2820:54;353:9124;;;:::i;:::-;;;;;;;;;1063:62:0;;;:::i;:::-;6671:59:16;353:9124;;;;;;;;;6468:38;353:9124;;;5726:7;353:9124;;6536:30;353:9124;5929:59;353:9124;5726:38;353:9124;;;5726:38;353:9124;5726:7;5794:30;;;:::i;:::-;353:9124;;;;;;5726:38;353:9124;;;5830:38;353:9124;5929:59;;:::i;:::-;353:9124;;;5726:7;353:9124;;;;;5884:42;;;;353:9124;531:6;353:9124;;;;5995:43;;353:9124;6107:15;353:9124;;6468:38;353:9124;6536:30;;:::i;:::-;353:9124;;;5726:7;353:9124;;;6572:38;353:9124;6671:59;;:::i;:::-;353:9124;;;;5726:7;353:9124;;;;;6626:42;;;;353:9124;;;6737:43;;;353:9124;6107:15;6807:29;;353:9124;;;;;;;;;2820:54;353:9124;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;;;;;;;;;1863:10;;;;:19;1859:83;;353:9124;;;8738:7;353:9124;;1863:10;8727:18;8723:208;;353:9124;9458:21:2;;353:9124:16;;;;;;;;;;;;9649:24:2;;;;353:9124:16;;;;;;9931:37:2;353:9124:16;;;;;;;;;;;;;;;9883:22:2;353:9124:16;;9883:22:2;353:9124:16;;;;;9931:37:2;353:9124:16;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;8723:208;1863:10;8779:30;1863:10;8779:30;:::i;:::-;8821:23;8817:65;;5357:23;1863:10;5213:30;1863:10;5213:30;:::i;:::-;1863:10;353:9124;;5249:7;353:9124;;5291:15;353:9124;;;;5249:29;353:9124;5357:23;:::i;:::-;1863:10;353:9124;;5249:7;353:9124;;5312:42;353:9124;;;5312:42;353:9124;8723:208;;8817:65;353:9124;;8853:29;;;;1859:83;1927:7;1863:10;;1927:7;;:::i;:::-;1859:83;;;;353:9124;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;1273:6:0;353:9124:16;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;5427:41:13;:5;:41;:::i;:::-;5482:8;:47;:8;:47;:::i;:::-;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;5543:13:13;;353:9124:16;;;;5578:4:13;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;;:::i;:::-;;;;2712:7:4;353:9124:16;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;1063:62:0;;:::i;:::-;353:9124:16;;2518:6:0;353:9124:16;;;;2518:6:0;353:9124:16;;2566:40:0;;;;353:9124:16;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;721:22;353:9124;;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;;2173:7;;;353:9124;2159:10;:21;2155:54;;353:9124;;;;2245:20;353:9124;;;;;2215:18;353:9124;;;2215:18;353:9124;;;;;2245:20;353:9124;;2155:54;353:9124;;2189:20;;;;353:9124;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;:::i;:::-;;;;;;;;9251:7;353:9124;;1553:10;9240:18;9236:208;;353:9124;;8603:21:2;;;353:9124:16;;;;;8952:37:2;353:9124:16;8731:22:2;353:9124:16;;8731:22:2;353:9124:16;8731:22:2;:::i;:::-;;353:9124:16;;;;;;;;;;;;;;;;;;;;8952:37:2;353:9124:16;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;9236:208;1553:10;9292:30;1553:10;9292:30;:::i;:::-;9334:23;9330:65;;4916:23;1553:10;4772:30;1553:10;4772:30;:::i;:::-;1553:10;353:9124;;4808:7;353:9124;;4850:15;353:9124;;;;4916:23;:::i;:::-;1553:10;353:9124;;4808:7;353:9124;;4871:42;353:9124;;;4871:42;353:9124;9236:208;;9330:65;353:9124;;;9366:29;;;;353:9124;;;;;;;-1:-1:-1;;353:9124:16;;;;;6021:38:2;353:9124:16;;6021:38:2;353:9124:16;;:::i;:::-;719:10:7;;353:9124:16;;;;;;;;;;;;;;;;;;;;;6021:38:2;:::i;:::-;719:10:7;;6021:38:2;:::i;353:9124:16:-;;;;;;;-1:-1:-1;;353:9124:16;;;;;;2953:20:4;;;:::i;353:9124:16:-;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;3186:2:2;353:9124:16;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;;;623:32;353:9124;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;5424:6:2;353:9124:16;;:::i;:::-;;;:::i;:::-;;;719:10:7;5387:6:2;719:10:7;;5387:6:2;;:::i;:::-;5424;:::i;353:9124:16:-;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;3342:12:2;353:9124:16;;;;;;;;;;;;;;-1:-1:-1;;353:9124:16;;;;;3149:38;353:9124;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;4606:6:2;353:9124:16;;:::i;:::-;;;719:10:7;;4606:6:2;:::i;353:9124:16:-;;;;;;;-1:-1:-1;;353:9124:16;;;;;;;2244:5:2;353:9124:16;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;2244:5:2;353:9124:16;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;-1:-1:-1;353:9124:16;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;3683:321;353:9124;;-1:-1:-1;353:9124:16;3807:7;353:9124;;3783:216;353:9124;-1:-1:-1;353:9124:16;3807:42;;;353:9124;3857:38;;;;353:9124;3950:43;353:9124;;3950:43;;353:9124;3783:216;;:::i;:::-;3683:321;:::o;4182:::-;353:9124;;-1:-1:-1;353:9124:16;4306:7;353:9124;;4282:216;353:9124;-1:-1:-1;353:9124:16;4306:42;;;353:9124;4356:38;;;;353:9124;4449:43;4306:29;4402;;353:9124;4449:43;;353:9124;4282:216;;:::i;10457:340:2:-;353:9124:16;;;;10558:19:2;;;353:9124:16;;;10636:21:2;;;353:9124:16;;;10758:32:2;353:9124:16;;10575:1:2;353:9124:16;10707:11:2;353:9124:16;;;10575:1:2;353:9124:16;;10575:1:2;353:9124:16;;;;;10575:1:2;353:9124:16;;;;;;;10758:32:2;10457:340::o;353:9124:16:-;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;11078:411:2;;353:9124:16;;;;-1:-1:-1;353:9124:16;4102:11:2;353:9124:16;;;-1:-1:-1;353:9124:16;;;;-1:-1:-1;353:9124:16;;;;-1:-1:-1;353:9124:16;;11244:37:2;11264:17;11244:37;;11240:243;;11078:411;;;;;:::o;11240:243::-;11305:26;;;353:9124:16;;11432:25:2;353:9124:16;;11432:25:2;;:::i;:::-;11240:243;;;;;;353:9124:16;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;7456:788:2;353:9124:16;;;;7552:18:2;;;353:9124:16;;;7630:16:2;;;353:9124:16;;7568:1:2;353:9124:16;;;;;;;;;;7801:21:2;;;;353:9124:16;;;;;8163:26:2;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;8163:26:2;7456:788::o;353:9124:16:-;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;3695:262:13;353:9124:16;3788:11:13;353:9124:16;3779:4:13;3771:28;:63;;;3695:262;3767:184;;;3857:22;3850:29;:::o;3767:184::-;353:9124:16;;4054:81:13;;;353:9124:16;1929:95:13;353:9124:16;;4077:11:13;353:9124:16;1929:95:13;;353:9124:16;4090:14:13;1929:95;;;353:9124:16;4106:13:13;1929:95;;;353:9124:16;3779:4:13;1929:95;;;353:9124:16;1929:95:13;4054:81;;1929:95;353:9124:16;;;;;;;;;;;;;;4044:92:13;;3910:30;:::o;3771:63::-;3820:14;;3803:13;:31;3771:63;;531:6:16;;;;;;;;;;:::o;7834:615::-;;;;;8011:22;8043:19;;;;8039:406;8043:19;;;8072:13;;;;:::o;8039:406::-;531:6;353:9124;;;;;;;8128:15;-1:-1:-1;;8102:41:16;;-1:-1:-1;8153:18:16;;-1:-1:-1;;;;7834:615:16:o;8098:347::-;8184:261;;8098:347;;;;7834:615::o;8184:261::-;8260:28;8128:15;;;;;;;8260:28;:::i;:::-;531:6;;;;;;;;;;;;;;8323:39;;;:::i;:::-;8379:28;;;;;;:59;;8184:261;;;;;;;8379:59;;;;;1359:130:0;353:9124:16;1273:6:0;353:9124:16;;719:10:7;1422:23:0;353:9124:16;;1359:130:0:o;353:9124:16:-;;;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;3367:268:9;1371:66;3490:47;;1371:66;;;2633:40;;2687:11;2696:2;2687:11;;2683:69;;353:9124:16;;;;;;:::i;:::-;2348:90:9;;2292:2;353:9124:16;;2348:90:9;3553:22;:::o;2683:69::-;2721:20;353:9124:16;;2721:20:9;;;;3486:143;-1:-1:-1;353:9124:16;;5454:13:13;353:9124:16;;-1:-1:-1;353:9124:16;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1371:66:9;;;;;;;;:::i;353:9124:16:-;;;;5454:13:13;-1:-1:-1;353:9124:16;;;-1:-1:-1;353:9124:16;;;;;;;-1:-1:-1;1371:66:9;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;;;;;;;1371:66:9;353:9124:16;;;;;;;;;;;;;;;;;;;;;;3367:268:9;1371:66;3490:47;;1371:66;;;2633:40;;2687:11;2696:2;2687:11;;2683:69;;353:9124:16;;;;;;:::i;3486:143:9:-;-1:-1:-1;353:9124:16;;5512:16:13;353:9124:16;;-1:-1:-1;353:9124:16;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;1371:66:9;;;;;;;;:::i;353:9124:16:-;;;;5512:16:13;-1:-1:-1;353:9124:16;;;-1:-1:-1;353:9124:16;;;;;;;-1:-1:-1;1371:66:9;;-1:-1:-1;;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;353:9124:16;;;;;;7095:460;;;;7289:18;;;;;;7331;;;;:::i;:::-;7376:27;;;;;;7406;;;:::i;7376:61::-;;;-1:-1:-1;3683:321:16;:::o;7285:266::-;7517:27;7472:18;;;;:::i;:::-;7517:27;;:::i;5009:1456:12:-;;;;6021:66;6008:79;;6004:161;;353:9124:16;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6276:24:12;;;;;;;;;;;;;;353:9124:16;;;6314:20:12;6310:101;;6421:37;5009:1456;:::o;6310:101::-;6350:50;6276:24;6350:50;:::o;6276:24::-;353:9124:16;;;;;;;;;;;6004:161:12;6103:51;;;;6119:1;6103:51;6123:30;6103:51;:::o;570:511::-;353:9124:16;;;;;;638:29:12;;;683:7;:::o;634:441::-;353:9124:16;734:38:12;;353:9124:16;;;;;-1:-1:-1;;;788:34:12;;353:9124:16;788:34:12;;;353:9124:16;;;;;;;;;;;788:34:12;730:345;852:35;843:44;;852:35;;353:9124:16;;;-1:-1:-1;;;903:41:12;;353:9124:16;903:41:12;;;353:9124:16;;;;;;;;;;;903:41:12;839:236;974:30;965:39;961:114;;570:511::o;961:114::-;353:9124:16;;;-1:-1:-1;;;1020:44:12;;353:9124:16;1020:44:12;;;353:9124:16;;;;;;;;;;;;;;;;1020:44:12;353:9124:16;;647:20:12;353:9124:16;;;;;647:20:12;353:9124:16
Swarm Source
ipfs://7e8651170a6539260824a3a7c2b8f5a09e1b6b29338d35882fae3442ac5988fc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.