Verified contractExactMIT
Router
Address0x1cc22db69aa3b4f05098f1acee6cbdfd65ca03ea
- Balance
0 ETH
- Transactions
8
- Compiler
solc 0.8.20
- Same code
1 more contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- EVM version
- shanghai
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,299,996
- Creation transaction
- 0x87c4d16033…7ee3bd6745
6 files
- src/Router.solmain13.22 KB
- lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol2.78 KB
- src/interfaces/IFactory.sol1.15 KB
- src/interfaces/IPair.sol2.94 KB
- src/interfaces/IRouter.sol5.72 KB
- src/interfaces/IWETH.sol1.06 KB
src/Router.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "./interfaces/IWETH.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IFactory.sol";
import "./interfaces/IPair.sol";
/// @title Router is used to swap on Antfarm Protocol without having to own ATF tokens
/// @notice This Version only supports ETH swaps and relies on the ATF/ETH Oracle
contract Router is IRouter {
address public immutable factory;
address public immutable antfarmToken;
address public immutable weth;
address public immutable oraclePair;
mapping(address => uint256) public userDeposits;
uint256 public totalDeposits;
constructor(address _factory, address _weth) {
factory = _factory;
antfarmToken = IFactory(factory).protocolToken();
weth = _weth;
oraclePair = IFactory(factory).getPair(antfarmToken, weth, uint16(10));
}
modifier ensure(uint256 deadline) {
if (deadline < block.timestamp) revert Router__Expired();
_;
}
receive() external payable {}
/// @inheritdoc IRouter
function swapExactETHForTokens(
address _output,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountOutMin
) external payable ensure(_deadline) returns (uint256 _amountOut) {
IWETH(weth).deposit{value: msg.value}();
uint256[] memory amounts = getAmountsOut(msg.value, weth, _output, _fee);
address pair = IFactory(factory).getPair(weth, _output, _fee);
(,, uint256 feeToPay) = _getFeeToPay(amounts, weth, _output, pair);
// Use 'amounts' to store the required WETH to swap for fee ATF tokens
amounts = _getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
amounts = getAmountsOut(
(msg.value * msg.value) / (msg.value + amounts[0]),
weth,
_output,
_fee
);
// Checks that the intermediary calculation is already enough
if (amounts[1] < _amountOutMin) {
revert Router__InsufficientOutputAmount();
}
(uint256 amount0Out, uint256 amount1Out, uint256 finalFeeToPay) =
_getFeeToPay(amounts, weth, _output, pair);
_amountOut = amount0Out + amount1Out;
IERC20(weth).transfer(oraclePair, msg.value - amounts[0]);
IPair(oraclePair).swap(finalFeeToPay, 0, pair);
IERC20(weth).transfer(pair, amounts[0]);
IPair(pair).swap(amount0Out, amount1Out, _to);
emit SwapExecuted(_to, weth, _output, msg.value, _amountOut);
}
/// @inheritdoc IRouter
function swapExactTokensForETH(
address _input,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountIn,
uint256 _amountOutMin
) external ensure(_deadline) returns (uint256 _amountOut) {
uint256[] memory amounts = getAmountsOut(_amountIn, _input, weth, _fee);
uint256 standardAmountOut = amounts[1];
address pair = IFactory(factory).getPair(_input, weth, _fee);
(uint256 amount0Out, uint256 amount1Out, uint256 feeToPay) =
_getFeeToPay(amounts, _input, weth, pair);
if (feeToPay > totalDeposits) {
revert Router__InsufficientATFBalance();
}
amounts = _getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
if (standardAmountOut - amounts[0] < _amountOutMin) {
revert Router__InsufficientOutputAmount();
}
IERC20(antfarmToken).transfer(pair, feeToPay);
IERC20(_input).transferFrom(msg.sender, pair, _amountIn);
IPair(pair).swap(amount0Out, amount1Out, address(this));
_amountOut = standardAmountOut - amounts[0];
IERC20(weth).transfer(oraclePair, amounts[0]);
IPair(oraclePair).swap(feeToPay, 0, address(this));
IWETH(weth).withdraw(standardAmountOut - amounts[0]);
_safeTransferETH(_to, standardAmountOut - amounts[0]);
emit SwapExecuted(_to, _input, weth, _amountIn, _amountOut);
}
/// @inheritdoc IRouter
function swapETHForExactTokens(
address _output,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountOut
) external payable ensure(_deadline) returns (uint256 _amountIn) {
// Wrap all received ETH into WETH.
IWETH(weth).deposit{value: msg.value}();
uint256[] memory amounts =
_getAmountsIn(_amountOut, weth, _output, _fee);
address pair = IFactory(factory).getPair(weth, _output, _fee);
(uint256 amount0Out, uint256 amount1Out, uint256 feeToPay) =
_getFeeToPay(amounts, weth, _output, pair);
_amountIn = amounts[0]; // Temporary storage for the amount of WETH used for main swap
amounts = _getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
if (_amountIn + amounts[0] > msg.value) {
revert Router__InsufficientInputAmount();
}
IERC20(weth).transfer(oraclePair, amounts[0]);
IPair(oraclePair).swap(feeToPay, 0, pair);
IERC20(weth).transfer(pair, _amountIn);
IPair(pair).swap(amount0Out, amount1Out, _to);
_amountIn += amounts[0];
uint256 refund = msg.value - _amountIn;
if (refund > 0) {
IWETH(weth).withdraw(refund);
_safeTransferETH(msg.sender, refund);
}
emit SwapExecuted(_to, weth, _output, _amountIn, _amountOut);
}
/// @inheritdoc IRouter
function estimateExactETHForTokens(
address _output,
uint16 _fee,
uint256 _amountIn
) external view returns (uint256 estimatedOut) {
uint256[] memory amounts = getAmountsOut(_amountIn, weth, _output, _fee);
address pair = IFactory(factory).getPair(weth, _output, _fee);
(,, uint256 feeToPay) = _getFeeToPay(amounts, weth, _output, pair);
uint256[] memory feeInAmounts =
_getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
feeInAmounts = getAmountsOut(
(_amountIn * _amountIn) / (_amountIn + feeInAmounts[0]),
weth,
_output,
_fee
);
return feeInAmounts[1];
}
/// @inheritdoc IRouter
function estimateExactTokensForETH(
address _input,
uint16 _fee,
uint256 _amountIn
) external view returns (uint256 estimatedOut) {
uint256[] memory amounts = getAmountsOut(_amountIn, _input, weth, _fee);
uint256 standardAmountOut = amounts[1];
address pair = IFactory(factory).getPair(_input, weth, _fee);
(,, uint256 feeToPay) = _getFeeToPay(amounts, _input, weth, pair);
amounts = _getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
return standardAmountOut - amounts[0];
}
/// @inheritdoc IRouter
function estimateETHForExactTokens(
address _output,
uint16 _fee,
uint256 _amountOut
) external view returns (uint256 estimatedIn) {
uint256[] memory amounts =
_getAmountsIn(_amountOut, weth, _output, _fee);
address pair = IFactory(factory).getPair(weth, _output, _fee);
(,, uint256 feeToPay) = _getFeeToPay(amounts, weth, _output, pair);
// Calculate WETH needed to pay for ATF fees
uint256[] memory feeInAmounts =
_getAmountsIn(feeToPay, weth, antfarmToken, uint16(10));
// Total ETH needed is the amount for the swap plus the amount needed for fees
return amounts[0] + feeInAmounts[0];
}
function getAmountsOut(
uint256 amountIn,
address tokenIn,
address tokenOut,
uint16 fee
) internal view returns (uint256[] memory) {
uint256[] memory amounts = new uint256[](2);
amounts[0] = amountIn;
(uint256 reserveIn, uint256 reserveOut) =
_getReserves(tokenIn, tokenOut, fee);
if (tokenIn == antfarmToken) {
amounts[1] = _getAmountOut(
(amountIn * 1000) / (1000 + 10), reserveIn, reserveOut
);
} else if (tokenOut == antfarmToken) {
amounts[1] = (_getAmountOut(amountIn, reserveIn, reserveOut) * 1000)
/ (1000 + 10);
} else {
amounts[1] = _getAmountOut(amountIn, reserveIn, reserveOut);
}
return amounts;
}
function _getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) internal pure returns (uint256) {
if (amountIn == 0) revert Router__InsufficientInputAmount();
if (reserveIn == 0 || reserveOut == 0) {
revert Router__InsufficientLiquidity();
}
uint256 numerator = amountIn * reserveOut;
uint256 denominator = reserveIn + amountIn;
return numerator / denominator;
}
function _getAmountsIn(
uint256 amountOut,
address tokenIn,
address tokenOut,
uint16 fee
) internal view returns (uint256[] memory) {
uint256[] memory amounts = new uint256[](2);
amounts[1] = amountOut;
(uint256 reserveIn, uint256 reserveOut) =
_getReserves(tokenIn, tokenOut, fee);
if (tokenIn == antfarmToken) {
amounts[0] = (
_getAmountIn(amountOut, reserveIn, reserveOut) * (1000 + 10)
) / 1000;
} else if (tokenOut == antfarmToken) {
amounts[0] = _getAmountIn(
(amountOut * (1000 + 10)) / 1000, reserveIn, reserveOut
);
} else {
amounts[0] = _getAmountIn(amountOut, reserveIn, reserveOut);
}
return amounts;
}
function _getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) internal pure returns (uint256) {
if (amountOut == 0) revert Router__InsufficientOutputAmount();
if (reserveIn == 0 || reserveOut == 0 || amountOut >= reserveOut) {
revert Router__InsufficientLiquidity();
}
uint256 numerator = reserveIn * amountOut;
uint256 denominator = reserveOut - amountOut;
return (numerator / denominator) + 1;
}
function _getFeeToPay(
uint256[] memory amounts,
address tokenIn,
address tokenOut,
address pair
)
internal
view
returns (uint256 amount0Out, uint256 amount1Out, uint256 feeToPay)
{
// Original fee calculation for non-ATF pairs
(address token0,) = _sortTokens(tokenIn, tokenOut);
(amount0Out, amount1Out) = tokenIn == token0
? (uint256(0), amounts[1])
: (amounts[1], uint256(0));
uint256 amountIn = amounts[0];
feeToPay = IPair(pair).getFees(
amount0Out,
tokenIn == token0 ? amountIn : uint256(0),
amount1Out,
tokenIn == token0 ? uint256(0) : amountIn
);
}
function _getReserves(address tokenA, address tokenB, uint16 fee)
internal
view
returns (uint256 reserveA, uint256 reserveB)
{
(address token0,) = _sortTokens(tokenA, tokenB);
(uint256 reserve0, uint256 reserve1,) =
IPair(IFactory(factory).getPair(tokenA, tokenB, fee)).getReserves();
(reserveA, reserveB) =
tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
}
function _sortTokens(address tokenA, address tokenB)
internal
view
returns (address token0, address token1)
{
if (tokenA == tokenB) revert Router__IdenticalAddresses();
if (tokenA == antfarmToken || tokenB == antfarmToken) {
(token0, token1) = tokenA == antfarmToken
? (antfarmToken, tokenB)
: (antfarmToken, tokenA);
if (token1 == address(0)) revert Router__AddressZero();
} else {
(token0, token1) =
tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
if (token0 == address(0)) revert Router__AddressZero();
}
}
function _safeTransferETH(address to, uint256 value) internal {
(bool success,) = to.call{value: value}("");
if (!success) revert Router__ETHTransferFailed();
}
function depositATF(uint256 amount) external {
if (amount == 0) revert Router__ZeroAmount();
userDeposits[msg.sender] += amount;
totalDeposits += amount;
if (
!IERC20(antfarmToken).transferFrom(msg.sender, address(this), amount)
) {
revert Router__TransferFailed();
}
}
function withdrawATF(uint256 amount) external {
if (amount == 0) revert Router__ZeroAmount();
if (amount > userDeposits[msg.sender]) {
revert Router__InsufficientBalance();
}
userDeposits[msg.sender] -= amount;
totalDeposits -= amount;
if (!IERC20(antfarmToken).transfer(msg.sender, amount)) {
revert Router__TransferFailed();
}
}
function getDeposit(address user) external view returns (uint256) {
return userDeposits[user];
}
}
lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
src/interfaces/IFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IFactory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint16 fee,
uint256 allPairsLength
);
function possibleFees(uint256) external view returns (uint16);
function allPairs(uint256) external view returns (address);
function protocolToken() external view returns (address);
function getPairs(uint256 startIndex, uint256 numOfPairs)
external
view
returns (address[] memory, uint256);
function getPair(address tokenA, address tokenB, uint16 fee)
external
view
returns (address pair);
function feesForPair(address tokenA, address tokenB, uint256)
external
view
returns (uint16);
function getFeesForPair(address tokenA, address tokenB)
external
view
returns (uint16[8] memory fees);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB, uint16 fee)
external
returns (address pair);
}
src/interfaces/IPair.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IPair {
error BalanceOverflow();
error InsufficientFee();
error InsufficientInputAmount();
error InsufficientLiquidity();
error InsufficientLiquidityBurned();
error InsufficientLiquidityMinted();
error InsufficientOutputAmount();
error InvalidReceiver();
error K();
error NoBetterOracle();
error NoOracleFound();
error SenderNotFactory();
error SwapAmountTooLow();
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function antfarmOracle() external view returns (address);
function antfarmToken() external view returns (address);
function antfarmTokenReserve() external view returns (uint256);
function burn(address to, uint256 positionId, uint256 liquidity)
external
returns (uint256, uint256);
function claimDividend(address to, uint256 positionId)
external
returns (uint256 claimAmount);
function claimableDividends(address operator, uint256 positionId)
external
view
returns (uint256 amount);
function factory() external view returns (address);
function fee() external view returns (uint16);
function getFees(
uint256 amount0Out,
uint256 amount0In,
uint256 amount1Out,
uint256 amount1In
) external view returns (uint256 feeToPay);
function getPositionLP(address operator, uint256 positionId)
external
view
returns (uint128);
function getReserves()
external
view
returns (
uint112 _reserve0,
uint112 _reserve1,
uint32 _blockTimestampLast
);
function initialize(
address _token0,
address _token1,
uint16 _fee,
address _antfarmToken
) external;
function mint(address to, uint256 positionId) external returns (uint256);
function positions(address, uint256)
external
view
returns (uint128 lp, uint256 dividend, uint256 lastDividendPoints);
function scanOracles(uint112 maxReserve)
external
view
returns (address bestOracle);
function skim(address to) external;
function swap(uint256 amount0Out, uint256 amount1Out, address to)
external;
function sync() external;
function token0() external view returns (address);
function token1() external view returns (address);
function totalSupply() external view returns (uint256);
function updateOracle() external;
}
src/interfaces/IRouter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @title Router Interface for Antfarm Protocol
/// @notice Interface for handling token swaps with ETH on Antfarm Protocol
/// @dev Implements core swap functionality and estimation methods
interface IRouter {
error Router__Expired();
error Router__IdenticalAddresses();
error Router__AddressZero();
error Router__ZeroAmount();
error Router__InsufficientLiquidity();
error Router__InsufficientInputAmount();
error Router__InsufficientOutputAmount();
error Router__ETHTransferFailed();
error Router__InsufficientBalance();
error Router__InsufficientATFBalance();
error Router__TransferFailed();
event SwapExecuted(
address indexed sender,
address indexed tokenIn,
address indexed tokenOut,
uint256 amountIn,
uint256 amountOut
);
/// @notice Returns the factory contract address
/// @return Address of the factory contract
function factory() external view returns (address);
/// @notice Returns the Antfarm token address
/// @return Address of the Antfarm token
function antfarmToken() external view returns (address);
/// @notice Returns the WETH token address
/// @return Address of the WETH token
function weth() external view returns (address);
/// @notice Returns the oracle pair address
/// @return Address of the oracle pair
function oraclePair() external view returns (address);
/// @notice Allows the contract to receive ETH
receive() external payable;
/// @notice Swaps an exact amount of ETH for tokens
/// @param _output The token address to receive
/// @param _fee The fee tier of the pool
/// @param _to The recipient address for the output tokens
/// @param _deadline The timestamp by which the transaction must be executed
/// @param _amountOutMin The minimum amount of output tokens to receive
/// @return _amountOut The actual amount of output tokens received
function swapExactETHForTokens(
address _output,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountOutMin
) external payable returns (uint256 _amountOut);
/// @notice Swaps an exact amount of tokens for ETH
/// @param _input The token address to spend
/// @param _fee The fee tier of the pool
/// @param _to The recipient address for the ETH
/// @param _deadline The timestamp by which the transaction must be executed
/// @param _amountIn The amount of input tokens to spend
/// @param _amountOutMin The minimum amount of ETH to receive
/// @return _amountOut The actual amount of ETH received
function swapExactTokensForETH(
address _input,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountIn,
uint256 _amountOutMin
) external returns (uint256 _amountOut);
/// @notice Swaps ETH for an exact amount of tokens
/// @dev Refunds excess ETH if too much is sent
/// @param _output The token address to receive
/// @param _fee The fee tier of the pool
/// @param _to The recipient address for the tokens
/// @param _deadline The timestamp by which the transaction must be executed
/// @param _amountOut The exact amount of output tokens to receive
/// @return _amountIn The amount of ETH spent
function swapETHForExactTokens(
address _output,
uint16 _fee,
address _to,
uint256 _deadline,
uint256 _amountOut
) external payable returns (uint256 _amountIn);
/// @notice Estimates the output amount of tokens for an exact ETH input
/// @param _output The token address to receive
/// @param _fee The fee tier of the pool
/// @param _amountIn The amount of ETH to swap
/// @return estimatedOut The estimated amount of output tokens
function estimateExactETHForTokens(
address _output,
uint16 _fee,
uint256 _amountIn
) external view returns (uint256 estimatedOut);
/// @notice Estimates the output amount of ETH for an exact token input
/// @param _input The token address to spend
/// @param _fee The fee tier of the pool
/// @param _amountIn The amount of input tokens
/// @return estimatedOut The estimated amount of ETH
function estimateExactTokensForETH(
address _input,
uint16 _fee,
uint256 _amountIn
) external view returns (uint256 estimatedOut);
/// @notice Estimates the input amount of ETH needed for an exact token output
/// @param _output The token address to receive
/// @param _fee The fee tier of the pool
/// @param _amountOut The exact amount of output tokens desired
/// @return estimatedIn The estimated amount of ETH needed
function estimateETHForExactTokens(
address _output,
uint16 _fee,
uint256 _amountOut
) external view returns (uint256 estimatedIn);
/// @notice Deposits ATF tokens
/// @param amount The amount of ATF tokens to deposit
function depositATF(uint256 amount) external;
/// @notice Withdraws ATF tokens
/// @param amount The amount of ATF tokens to withdraw
function withdrawATF(uint256 amount) external;
/// @notice Gets the deposit amount for a user
/// @param user The address of the user
/// @return The deposit amount for the user
function getDeposit(address user) external view returns (uint256);
/// @notice Returns the deposit amount for a user
/// @param user The address of the user
/// @return The deposit amount for the user
function userDeposits(address user) external view returns (uint256);
}
src/interfaces/IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IWETH {
// ERC20-like functions
function deposit() external payable;
function withdraw(uint256) external;
// Standard ERC20 functions
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount)
external
returns (bool);
// Events
event Deposit(address indexed dst, uint256 wad);
event Withdrawal(address indexed src, uint256 wad);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(
address indexed owner, address indexed spender, uint256 value
);
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "shanghai",
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.