Verified contractExactMIT
QuoteRegistry
Address0xe1b39f9f62bb4bd1f51e064d0be362fd3bb52c06
- Balance
0 ETH
- Transactions
18
- Compiler
solc 0.8.30
- Same code
Only this contract
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,085,048
- Creation transaction
- 0xd2958b53ce…785a41bbd0
8 files
- src/QuoteRegistry.solmain11.56 KB
- lib/openzeppelin-contracts/contracts/access/Ownable.sol3.1 KB
- lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol2.48 KB
- lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol2.78 KB
- lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol684 B
- lib/openzeppelin-contracts/contracts/utils/Context.sol963 B
- src/interfaces/AggregatorV3Interface.sol550 B
- src/interfaces/IQuoteRegistry.sol2.33 KB
src/QuoteRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
import {Ownable2Step, Ownable} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {IQuoteRegistry} from "./interfaces/IQuoteRegistry.sol";
import {AggregatorV3Interface} from "./interfaces/AggregatorV3Interface.sol";
/// @title QuoteRegistry
/// @notice Allow-list of quote assets (WETH, tokenized stocks, stables) with per-asset leverage caps,
/// a minimum opening reserve, and an *optional* USD oracle. Launches never need a price
/// on-chain: the creator sets each pool's opening reserve and USD conversion happens
/// off-chain. Oracles, where a free Chainlink feed exists, only serve on-chain USD views.
///
/// Kind and decimals are fixed at first registration; re-registering an asset can only
/// change its oracle, heartbeat, leverage cap, minimum opening reserve and symbol, and never
/// re-enables a disabled asset.
contract QuoteRegistry is IQuoteRegistry, Ownable2Step {
uint256 internal constant WAD = 1e18;
uint8 public constant MAX_DECIMALS = 30;
uint32 public constant MAX_HEARTBEAT = 30 days;
address public immutable override weth;
mapping(address => QuoteAsset) internal _assets;
address[] internal _list;
address public customQuoteVerifier;
uint64 public customVerifierEpoch;
uint64 public constant MAX_CUSTOM_VALIDITY = 5 minutes;
struct CustomAdmission {
uint64 validUntil;
uint64 epoch;
bytes32 codeHash;
}
mapping(address => CustomAdmission) private _customAdmissions;
event CustomQuoteVerifierSet(address indexed verifier, uint64 epoch);
event CustomQuoteAdmitted(address indexed asset, uint64 validUntil, bytes32 codeHash);
error InvalidCustomAdmission();
/// A dedicated verifier can admit only Other assets, at 1x, on Ethereum.
/// Rotating or disabling it invalidates all previous admissions immediately.
function setCustomQuoteVerifier(address verifier) external onlyOwner {
customQuoteVerifier = verifier;
++customVerifierEpoch;
emit CustomQuoteVerifierSet(verifier, customVerifierEpoch);
}
function admitCustomQuote(address asset, uint64 validUntil, bytes32 codeHash) external {
if (
msg.sender != customQuoteVerifier || customQuoteVerifier == address(0) || block.chainid != 1
|| validUntil <= block.timestamp || validUntil > block.timestamp + MAX_CUSTOM_VALIDITY
|| asset.code.length == 0 || codeHash != asset.codehash
) revert InvalidCustomAdmission();
QuoteAsset storage a = _assets[asset];
if (
a.kind != Kind.None
&& (a.kind != Kind.Other
|| !a.enabled
|| a.maxLeverageX100 != 100
|| IERC20Metadata(asset).decimals() != a.decimals)
) revert InvalidCustomAdmission();
if (a.kind == Kind.None) {
string memory symbol = IERC20Metadata(asset).symbol();
if (bytes(symbol).length == 0 || bytes(symbol).length > 64 || IERC20Metadata(asset).decimals() > 18) {
revert InvalidCustomAdmission();
}
_set(asset, Kind.Other, address(0), 0, 100, 1, symbol);
}
_customAdmissions[asset] = CustomAdmission(validUntil, customVerifierEpoch, codeHash);
emit CustomQuoteAdmitted(asset, validUntil, codeHash);
}
function customQuoteValidUntil(address asset) public view override returns (uint64) {
CustomAdmission memory a = _customAdmissions[asset];
if (
!_assets[asset].enabled || _assets[asset].kind != Kind.Other || customQuoteVerifier == address(0)
|| a.epoch != customVerifierEpoch || a.codeHash != asset.codehash
) return 0;
return a.validUntil;
}
error CustomQuoteScope(address quote);
error CustomQuoteExpired(address quote);
function validateCustomQuoteScope(address[] calldata quotes, bool multichain) external view override {
uint256 customCount;
for (uint256 i; i < quotes.length; ++i) {
if (_assets[quotes[i]].kind == Kind.Other) {
if (block.chainid != 1 || multichain || ++customCount > 1) revert CustomQuoteScope(quotes[i]);
if (customQuoteValidUntil(quotes[i]) <= block.timestamp) revert CustomQuoteExpired(quotes[i]);
}
}
}
event QuoteAssetSet(
address indexed asset,
Kind kind,
address oracle,
uint32 heartbeat,
uint16 maxLeverageX100,
uint256 minOpeningQuote,
string symbol
);
event QuoteAssetEnabled(address indexed asset, bool enabled);
error ZeroAddress();
error BadLeverage();
error BadOracle();
error BadKind();
error BadDecimals();
error NotRegistered(address asset);
error NoOracle(address asset);
error StalePrice(address asset);
error InvalidPrice(address asset);
constructor(address owner_, address weth_, address ethUsdFeed, uint32 ethHeartbeat, uint256 ethMinOpeningQuote)
Ownable(owner_)
{
if (weth_ == address(0)) revert ZeroAddress();
weth = weth_;
_set(weth_, Kind.Ether, ethUsdFeed, ethHeartbeat, 500, ethMinOpeningQuote, "ETH");
}
// ---------------------------------------------------------------- admin
/// @notice Register or update a quote asset. Kind is fixed at first registration.
/// @param oracle Optional AggregatorV3 USD feed (address(0) = unpriced on-chain); probed here.
/// @param maxLeverageX100_ Max liquidity leverage for pools quoted in this asset (100 = 1x).
/// Stocks are capped at 3x and everything at 5x, enforced here as hard bounds.
/// @param minOpeningQuote_ Smallest opening reserve a native pool may open with, raw units.
function setQuoteAsset(
address asset,
Kind kind,
address oracle,
uint32 heartbeat,
uint16 maxLeverageX100_,
uint256 minOpeningQuote_,
string calldata symbol
) external onlyOwner {
_set(asset, kind, oracle, heartbeat, maxLeverageX100_, minOpeningQuote_, symbol);
}
/// @notice Register or update many quote assets in one transaction (atomic).
function setQuoteAssets(QuoteAssetInput[] calldata inputs) external onlyOwner {
for (uint256 i; i < inputs.length; ++i) {
QuoteAssetInput calldata q = inputs[i];
_set(q.asset, q.kind, q.oracle, q.heartbeat, q.maxLeverageX100, q.minOpeningQuote, q.symbol);
}
}
function setEnabled(address asset, bool enabled) external onlyOwner {
if (_assets[asset].kind == Kind.None) revert NotRegistered(asset);
_assets[asset].enabled = enabled;
if (!enabled) delete _customAdmissions[asset];
emit QuoteAssetEnabled(asset, enabled);
}
function setMinOpeningQuote(address asset, uint256 minOpeningQuote_) external onlyOwner {
if (_assets[asset].kind == Kind.None) revert NotRegistered(asset);
_assets[asset].minOpeningQuote = minOpeningQuote_;
QuoteAsset storage a = _assets[asset];
emit QuoteAssetSet(asset, a.kind, a.oracle, a.heartbeat, a.maxLeverageX100, minOpeningQuote_, a.symbol);
}
function _set(
address asset,
Kind kind,
address oracle,
uint32 heartbeat,
uint16 maxLeverageX100_,
uint256 minOpeningQuote_,
string memory symbol
) internal {
if (asset == address(0)) revert ZeroAddress();
if (kind == Kind.None) revert BadKind();
if ((kind == Kind.Ether) != (asset == weth)) revert BadKind();
if (maxLeverageX100_ < 100) revert BadLeverage();
if (kind == Kind.Stock && maxLeverageX100_ > 300) revert BadLeverage();
if (maxLeverageX100_ > 500) revert BadLeverage();
if (oracle != address(0)) {
if (heartbeat == 0 || heartbeat > MAX_HEARTBEAT) revert BadOracle();
_probeOracle(oracle);
} else if (heartbeat != 0) {
revert BadOracle();
}
QuoteAsset storage a = _assets[asset];
if (a.kind == Kind.None) {
uint8 dec = IERC20Metadata(asset).decimals();
if (dec > MAX_DECIMALS) revert BadDecimals();
a.kind = kind;
a.decimals = dec;
a.enabled = true;
_list.push(asset);
emit QuoteAssetEnabled(asset, true);
} else if (a.kind != kind) {
revert BadKind();
}
a.maxLeverageX100 = maxLeverageX100_;
a.heartbeat = heartbeat;
a.oracle = oracle;
a.minOpeningQuote = minOpeningQuote_;
a.symbol = symbol;
if (kind == Kind.Other) delete _customAdmissions[asset];
emit QuoteAssetSet(asset, kind, oracle, heartbeat, maxLeverageX100_, minOpeningQuote_, symbol);
}
/// @dev A mistyped oracle address must fail loudly at registration, not as a silent `unpriced`.
function _probeOracle(address oracle) internal view {
AggregatorV3Interface feed = AggregatorV3Interface(oracle);
(, int256 answer,,,) = feed.latestRoundData();
if (answer <= 0) revert BadOracle();
feed.decimals();
}
// ---------------------------------------------------------------- views
function get(address asset) external view override returns (QuoteAsset memory) {
return _assets[asset];
}
function isEnabled(address asset) public view override returns (bool) {
return _assets[asset].enabled;
}
function hasOracle(address asset) external view override returns (bool) {
return _assets[asset].oracle != address(0);
}
function maxLeverageX100(address asset) external view override returns (uint16) {
return _assets[asset].maxLeverageX100;
}
function minOpeningQuote(address asset) external view override returns (uint256) {
return _assets[asset].minOpeningQuote;
}
function allAssets() external view override returns (address[] memory) {
return _list;
}
/// @inheritdoc IQuoteRegistry
function priceUsd(address asset) public view override returns (uint256 price) {
QuoteAsset storage a = _assets[asset];
if (a.kind == Kind.None) revert NotRegistered(asset);
if (a.oracle == address(0)) revert NoOracle(asset);
AggregatorV3Interface feed = AggregatorV3Interface(a.oracle);
(, int256 answer,, uint256 updatedAt,) = feed.latestRoundData();
if (answer <= 0) revert InvalidPrice(asset);
if (block.timestamp > updatedAt + a.heartbeat) revert StalePrice(asset);
uint8 fd = feed.decimals();
// forge-lint: disable-start(unsafe-typecast) answer > 0 checked above
price = fd <= 18 ? uint256(answer) * (10 ** (18 - fd)) : uint256(answer) / (10 ** (fd - 18));
// forge-lint: disable-end(unsafe-typecast)
if (price == 0) revert InvalidPrice(asset);
}
/// @inheritdoc IQuoteRegistry
function valueUsd(address asset, uint256 amount) external view override returns (uint256) {
return amount * priceUsd(asset) / (10 ** _assets[asset].decimals);
}
/// @inheritdoc IQuoteRegistry
function amountForUsd(address asset, uint256 usd) external view override returns (uint256) {
return usd * (10 ** _assets[asset].decimals) / priceUsd(asset);
}
}
lib/openzeppelin-contracts/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
* ownership, where the new owner must call {acceptOwnership} in order to replace the
* old one. This can help prevent common mistakes, such as transfers of ownership to
* incorrect accounts, or to contracts that are unable to interact with the
* permission system.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*
* Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}
lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity >=0.6.2;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
lib/openzeppelin-contracts/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
src/interfaces/AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
/// @notice Minimal Chainlink-compatible price feed interface. Stock-token issuers on Ethereum
/// (Ondo Global Markets, Backed, Dinari) either expose Chainlink feeds or NAV oracles that are
/// trivially wrapped into this shape.
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
src/interfaces/IQuoteRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
/// @notice Registry of assets a launch may use as quote liquidity: WETH, tokenized stocks, stables.
interface IQuoteRegistry {
enum Kind {
None,
Ether, // WETH
Stock, // tokenized equity / ETF (Ondo GM, Backed xStocks, Dinari dShares ...)
Other // stables or any other ERC20
}
struct QuoteAsset {
bool enabled;
Kind kind; // fixed at first registration
uint8 decimals; // read from the token at first registration
uint16 maxLeverageX100; // 100 = 1x, 300 = 3x, 500 = 5x
uint32 heartbeat; // max oracle staleness in seconds (0 when no oracle)
address oracle; // optional AggregatorV3Interface, USD-denominated; address(0) = unpriced on-chain
uint256 minOpeningQuote; // smallest opening reserve a native pool may open with (raw units)
string symbol; // display symbol, e.g. "TSLA"
}
struct QuoteAssetInput {
address asset;
Kind kind;
address oracle;
uint32 heartbeat;
uint16 maxLeverageX100;
uint256 minOpeningQuote;
string symbol;
}
function validateCustomQuoteScope(address[] calldata quotes, bool multichain) external view;
function customQuoteValidUntil(address asset) external view returns (uint64);
function weth() external view returns (address);
function get(address asset) external view returns (QuoteAsset memory);
function isEnabled(address asset) external view returns (bool);
function hasOracle(address asset) external view returns (bool);
function maxLeverageX100(address asset) external view returns (uint16);
function minOpeningQuote(address asset) external view returns (uint256);
/// @return price USD per 1 whole unit of `asset`, 18 decimals; reverts NoOracle/StalePrice
function priceUsd(address asset) external view returns (uint256 price);
/// @return usd value (18 decimals) of `amount` raw units of `asset`
function valueUsd(address asset, uint256 amount) external view returns (uint256 usd);
/// @return amount raw units of `asset` worth `usd` (18 decimals)
function amountForUsd(address asset, uint256 usd) external view returns (uint256 amount);
function allAssets() external view returns (address[] memory);
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"forge-std/=lib/forge-std/src/",
"@prb/math/=lib/prb-math/src/",
"v4-core/=lib/v4-core/",
"@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/",
"@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/",
"@layerzerolabs/test-devtools-evm-foundry/=lib/devtools/packages/test-devtools-evm-foundry/",
"@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/",
"@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/",
"@layerzerolabs/lz-evm-v1-0.7/=lib/LayerZero-v1/",
"solidity-bytes-utils/=lib/solidity-bytes-utils/",
"@ensdomains/=lib/v4-core/node_modules/@ensdomains/",
"LayerZero-v1/=lib/LayerZero-v1/contracts/",
"LayerZero-v2/=lib/LayerZero-v2/",
"devtools/=lib/devtools/",
"ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"hardhat/=lib/v4-core/node_modules/hardhat/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"prb-math/=lib/prb-math/src/",
"solmate/=lib/v4-core/lib/solmate/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.