Verified contractPartialMIT
PeddlesFeeForwarder
Address0xfe9563b7952feb2091816133a22a4d62171fd77e
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- Via IR
- yes
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,374,086
- Creation transaction
- 0x8204890e1a…f144e6a203
src/PeddlesFeeForwarder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
/*
_______ _______ ______ ______ _ _______
( ____ )( ____ \( __ \ ( __ \ ( \ ( ____ \( ____ \
| ( )|| ( \/| ( \ )| ( \ )| ( | ( \/| ( \/
| (____)|| (__ | | ) || | ) || | | (__ | (_____
| _____)| __) | | | || | | || | | __) (_____ )
| ( | ( | | ) || | ) || | | ( ) |
| ) | (____/\| (__/ )| (__/ )| (____/\| (____/\/\____) |
|/ (_______/(______/ (______/ (_______/(_______/\_______)
THE STOCK-PAIRED LAUNCHPAD
Launch tokens and NFTs paired against tokenised stocks.
100% of supply goes to liquidity, locked from block zero.
Holders earn the stock you are paired to.
Website https://peddles.xyz
X https://x.com/PeddlesX
Telegram https://t.me/peddlesnews
*/
interface IFwdERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
function balanceOf(address owner) external view returns (uint256);
}
/// @dev Layout-identical to `RoutePoolKey` / `PathHop` in `PeddlesRouteSwapRouter`. ABI encoding is
/// by layout, so the route router's selectors are the same whatever these structs are called.
struct FwdPoolKey {
address currency0;
address currency1;
uint24 fee;
int24 tickSpacing;
address hooks;
}
struct FwdPathHop {
FwdPoolKey key;
bool zeroForOne;
}
/// @dev Layout-identical to `PancakeHop` in `PeddlesRouteSwapRouter`.
struct FwdPancakeHop {
address tokenIn;
address tokenOut;
uint24 fee;
}
/// @dev `PeddlesV4SwapRouter`: a WETH-paired launch, native in and out.
interface IFwdV4SwapRouter {
function buy(address token, uint256 minOut, address to) external payable returns (uint256);
function sell(address token, uint256 amountInGross, uint256 minOut, address to) external returns (uint256);
}
/// @dev `PeddlesRouteSwapRouter`: every launch type (and, externally, any v4 token), native in and out.
interface IFwdRouteSwapRouter {
function v4SwapRouter() external view returns (address);
function buyWithNative(address token, FwdPathHop[] calldata hops, uint256 minTokensOut, address to, uint256 deadline)
external
payable
returns (uint256);
function sellForNative(
address token,
uint256 amountIn,
FwdPathHop[] calldata hops,
uint256 minNativeOut,
address to,
uint256 deadline
) external returns (uint256);
function buyExternalWithNative(
address token,
FwdPathHop[] calldata hops,
uint256 minTokensOut,
address to,
uint256 deadline
) external payable returns (uint256);
function sellExternalForNative(
address token,
uint256 amountIn,
FwdPathHop[] calldata hops,
uint256 minNativeOut,
address to,
uint256 deadline
) external returns (uint256);
function buyWithNativePancake(
address token,
FwdPancakeHop[] calldata hops,
uint256 minTokensOut,
address to,
uint256 deadline
) external payable returns (uint256);
function sellForNativePancake(
address token,
uint256 amountIn,
FwdPancakeHop[] calldata hops,
uint256 minNativeOut,
address to,
uint256 deadline
) external returns (uint256);
}
/// @title PeddlesFeeForwarder — the platform trading fee, taken in the same transaction as the swap
/// @notice The Terminal (web) and the trade bot charge a platform fee on the NATIVE leg of a trade,
/// on top of the pool's own tax. Sent as a separate transfer, that fee is optional: a wallet can sign
/// the swap and decline the transfer. This contract makes it part of the swap. One call, one
/// signature: the fee is carved from `msg.value` on a buy, or from the native proceeds on a sell,
/// and paid to `feeRecipient` inside the same call that trades — if either fails, both revert.
///
/// It is an ADD-ON. It calls the two Peddles routers through their public functions and nothing in
/// the core stack knows it exists: deploying or redeploying it voids no mined salt.
///
/// TYPED CALLS ONLY. There is no `target` and no `calldata` parameter anywhere. Each entry point
/// calls ONE fixed function on ONE immutable router, with the recipient fixed to the caller (a buy)
/// or to this contract and then the caller (a sell). A generic call proxy that users approve
/// tokens to is a drain — any caller could make it `transferFrom` any approver — so this is not one.
/// Tokens are only ever pulled from `msg.sender`.
///
/// THE FEE RATE IS A CALL PARAMETER, BOUNDED BY AN IMMUTABLE CAP. The rate is money and it is
/// signed: the user's wallet signs the calldata that carries it, so the rate a user pays is the
/// rate they approved. `maxFeeBps` bounds what any calldata builder (ours or a compromised one) can
/// put in front of a user. One deployment therefore serves every surface — the Terminal's 0.50%
/// and the bot's 1.00% — and nobody holds a setter that changes what traders pay after the fact.
/// A caller who writes `feeBps = 0` pays nothing; they could equally call the router directly,
/// which this contract never prevents. What it does is make the fee inseparable from the swap for
/// every trade built with one.
///
/// ROUNDING. `fee = amount * feeBps / 10_000`, rounded DOWN — in the platform's disfavour. Below
/// `10_000 / feeBps` wei (200 wei at 0.50%) the fee is zero, far below the gas of any trade.
///
/// PARTIAL FILLS. A router that cannot fill the whole buy refunds the unspent native to its caller
/// (this contract). The fee is then re-taken on what the buyer actually parted with, never on the
/// refund: `fee = (msg.value - routerRefund) * feeBps / 10_000`, which is at most the up-front
/// carve-out, and everything else goes back to the buyer. A quote asset the route router hands
/// back (a stock-paired buy whose last leg partially fills) goes back to the buyer in kind. Tokens
/// a router did not consume on a sell go back to the seller.
///
/// NO STUCK FUNDS. Nothing is owed by this contract between transactions and it holds nothing at
/// rest. Per asset:
/// * native — arrives as a buy's `msg.value`, a router's refund, or a sell's proceeds, all inside
/// one locked call; leaves in that call as the fee (`feeRecipient`) and the remainder (the
/// caller). `receive` refuses native from anyone but the two routers, and from them outside a
/// trade. A forced send (selfdestruct) is the only other way in; `sweep(address(0))` is its exit.
/// * the launched / external token — arrives only in a sell (`transferFrom(msg.sender)`), is
/// approved to the router for exactly what arrived, and whatever the router did not take is
/// returned to the seller in the same call; the approval is reset to zero.
/// * a route's quote asset — arrives only as the route router's refund of an unfilled stock leg,
/// and is forwarded to the buyer in the same call.
/// * anything pushed here outside a trade — `sweep(asset)`, permissionless, pays only the
/// immutable `feeRecipient`, and cannot run while a trade is in flight (same lock).
///
/// NO OWNER. The recipient, the cap and both routers are immutable. There is nothing to set.
contract PeddlesFeeForwarder {
/// @notice The highest cap a deployment may be built with: 10%. A sanity bound on the
/// constructor argument, not the working cap.
uint16 public constant MAX_FEE_BPS_CEILING = 1_000;
uint256 private constant BPS = 10_000;
/// @notice Where every fee (and every swept stray) is paid. Immutable.
address public immutable feeRecipient;
/// @notice The most any call may charge, in bps of the native leg. Immutable.
uint16 public immutable maxFeeBps;
/// @notice `PeddlesV4SwapRouter` — the only router `buyV4` / `sellV4` call.
address public immutable v4SwapRouter;
/// @notice `PeddlesRouteSwapRouter` — the only router the route entry points call. May be
/// address(0) on a chain without one; those entry points then refuse (`RouterNotConfigured`).
address public immutable routeSwapRouter;
/// @notice This deployment carries `buyRoutePancake` / `sellRoutePancake`. Read by the app
/// before it builds a PancakeSwap route through the forwarder.
bool public constant PANCAKE_ROUTES = true;
uint256 private locked;
error Locked();
error InvalidAddress();
error InvalidAmount();
error InvalidFee();
error ConfigMismatch();
error RouterNotConfigured();
error Expired();
error Slippage();
error NativeNotAllowed();
error NothingToSweep();
error TransferFailed();
error NativeTransferFailed();
/// @notice One buy. `nativeIn` is what the caller sent; `fee` went to `feeRecipient`; `refund`
/// is native returned to the caller (the router's unfilled remainder plus any fee rebate).
event Bought(
address indexed payer,
address indexed token,
address indexed router,
uint256 nativeIn,
uint256 fee,
uint16 feeBps,
uint256 refund,
uint256 tokensOut
);
/// @notice One sell. `nativeGross` is what the router paid here; `fee` went to `feeRecipient`;
/// `nativeNet` went to the caller.
event Sold(
address indexed payer,
address indexed token,
address indexed router,
uint256 tokenIn,
uint256 nativeGross,
uint256 fee,
uint16 feeBps,
uint256 nativeNet
);
/// @notice Every non-zero fee, whichever side it came from.
event FeeCollected(address indexed payer, address indexed token, address indexed recipient, uint256 amount, uint16 feeBps);
event StraySwept(address indexed asset, address indexed to, uint256 amount);
modifier nonReentrant() {
if (locked != 0) revert Locked();
locked = 1;
_;
locked = 0;
}
/// @param feeRecipient_ where fees and strays are paid. Non-zero.
/// @param maxFeeBps_ the cap on any call's `feeBps`; 1..MAX_FEE_BPS_CEILING.
/// @param v4SwapRouter_ `PeddlesV4SwapRouter` for this chain. Non-zero.
/// @param routeSwapRouter_ `PeddlesRouteSwapRouter` for this chain, or address(0) where none is
/// deployed. When set, it must name `v4SwapRouter_` as its own V4 router — the two are one
/// deployment, and a route router built on another stack pays native from a router this
/// contract would refuse.
constructor(address feeRecipient_, uint16 maxFeeBps_, address v4SwapRouter_, address routeSwapRouter_) {
if (feeRecipient_ == address(0) || v4SwapRouter_ == address(0)) revert InvalidAddress();
if (maxFeeBps_ == 0 || maxFeeBps_ > MAX_FEE_BPS_CEILING) revert InvalidFee();
if (v4SwapRouter_.code.length == 0) revert InvalidAddress();
if (routeSwapRouter_ != address(0)) {
if (routeSwapRouter_.code.length == 0) revert InvalidAddress();
if (IFwdRouteSwapRouter(routeSwapRouter_).v4SwapRouter() != v4SwapRouter_) revert ConfigMismatch();
}
feeRecipient = feeRecipient_;
maxFeeBps = maxFeeBps_;
v4SwapRouter = v4SwapRouter_;
routeSwapRouter = routeSwapRouter_;
}
/// @dev Native arrives only from the two routers (a buy's refund, a sell's proceeds) and only
/// while one of this contract's own trades is running. Everything else is refused.
receive() external payable {
if (locked == 0 || (msg.sender != v4SwapRouter && msg.sender != routeSwapRouter)) revert NativeNotAllowed();
}
// ---- PeddlesV4SwapRouter: WETH-paired launches ------------------------------------------
/// @notice Buy `token` with native through `PeddlesV4SwapRouter`, paying `feeBps` of `msg.value`
/// to `feeRecipient` in the same call. Tokens go straight to the caller.
/// @param minOut the floor on tokens out, enforced by the router.
function buyV4(address token, uint256 minOut, uint16 feeBps, uint256 deadline)
external
payable
nonReentrant
returns (uint256 tokensOut)
{
(uint256 nativeBefore, uint256 swapIn) = _openBuy(token, feeBps, deadline);
tokensOut = IFwdV4SwapRouter(v4SwapRouter).buy{value: swapIn}(token, minOut, msg.sender);
_closeBuy(token, v4SwapRouter, feeBps, nativeBefore, tokensOut);
}
/// @notice Sell exactly `amountIn` of the caller's `token` through `PeddlesV4SwapRouter`; the
/// native proceeds pay `feeBps` to `feeRecipient` and the rest to the caller.
/// @param minOutNet the floor on what reaches the caller, AFTER the fee, in native wei.
function sellV4(address token, uint256 amountIn, uint256 minOutNet, uint16 feeBps, uint256 deadline)
external
nonReentrant
returns (uint256 nativeNet)
{
(uint256 tokenBefore, uint256 received) = _openSell(token, amountIn, feeBps, deadline, v4SwapRouter);
uint256 nativeBefore = address(this).balance;
IFwdV4SwapRouter(v4SwapRouter).sell(token, received, minOutNet, address(this));
nativeNet = _closeSell(token, v4SwapRouter, received, tokenBefore, nativeBefore, minOutNet, feeBps);
}
// ---- PeddlesRouteSwapRouter: every launch type ------------------------------------------
/// @notice `PeddlesRouteSwapRouter.buyWithNative` with the fee taken in the same call.
/// @param hops as the route router takes them (empty for a WETH-paired launch).
function buyRoute(address token, FwdPathHop[] calldata hops, uint256 minOut, uint16 feeBps, uint256 deadline)
external
payable
nonReentrant
returns (uint256 tokensOut)
{
address router = _route();
(uint256 nativeBefore, uint256 swapIn) = _openBuy(token, feeBps, deadline);
// A stock-paired buy whose last (Peddles) leg partially fills hands the unspent QUOTE back
// to its caller — here. The quote is the last hop's output.
address quote = hops.length == 0 ? address(0) : _hopOutput(hops[hops.length - 1]);
uint256 quoteBefore = quote == address(0) ? 0 : IFwdERC20(quote).balanceOf(address(this));
tokensOut = IFwdRouteSwapRouter(router).buyWithNative{value: swapIn}(token, hops, minOut, msg.sender, deadline);
if (quote != address(0)) {
uint256 back = IFwdERC20(quote).balanceOf(address(this)) - quoteBefore;
if (back != 0) _safeTransfer(quote, msg.sender, back);
}
_closeBuy(token, router, feeBps, nativeBefore, tokensOut);
}
/// @notice `PeddlesRouteSwapRouter.sellForNative` with the fee taken from the proceeds.
/// @param minOutNet the floor on what reaches the caller, AFTER the fee, in native wei.
function sellRoute(
address token,
uint256 amountIn,
FwdPathHop[] calldata hops,
uint256 minOutNet,
uint16 feeBps,
uint256 deadline
) external nonReentrant returns (uint256 nativeNet) {
address router = _route();
(uint256 tokenBefore, uint256 received) = _openSell(token, amountIn, feeBps, deadline, router);
uint256 nativeBefore = address(this).balance;
IFwdRouteSwapRouter(router).sellForNative(token, received, hops, minOutNet, address(this), deadline);
nativeNet = _closeSell(token, router, received, tokenBefore, nativeBefore, minOutNet, feeBps);
}
/// @notice `PeddlesRouteSwapRouter.buyExternalWithNative` (a token the launchpad does not know)
/// with the fee taken in the same call.
function buyExternal(address token, FwdPathHop[] calldata hops, uint256 minOut, uint16 feeBps, uint256 deadline)
external
payable
nonReentrant
returns (uint256 tokensOut)
{
address router = _route();
(uint256 nativeBefore, uint256 swapIn) = _openBuy(token, feeBps, deadline);
tokensOut =
IFwdRouteSwapRouter(router).buyExternalWithNative{value: swapIn}(token, hops, minOut, msg.sender, deadline);
_closeBuy(token, router, feeBps, nativeBefore, tokensOut);
}
/// @notice `PeddlesRouteSwapRouter.sellExternalForNative` with the fee taken from the proceeds.
function sellExternal(
address token,
uint256 amountIn,
FwdPathHop[] calldata hops,
uint256 minOutNet,
uint16 feeBps,
uint256 deadline
) external nonReentrant returns (uint256 nativeNet) {
address router = _route();
(uint256 tokenBefore, uint256 received) = _openSell(token, amountIn, feeBps, deadline, router);
uint256 nativeBefore = address(this).balance;
IFwdRouteSwapRouter(router).sellExternalForNative(token, received, hops, minOutNet, address(this), deadline);
nativeNet = _closeSell(token, router, received, tokenBefore, nativeBefore, minOutNet, feeBps);
}
/// @notice `PeddlesRouteSwapRouter.buyWithNativePancake` (a stock-paired launch whose quote
/// trades on PancakeSwap) with the fee taken in the same call.
function buyRoutePancake(
address token,
FwdPancakeHop[] calldata hops,
uint256 minOut,
uint16 feeBps,
uint256 deadline
) external payable nonReentrant returns (uint256 tokensOut) {
address router = _route();
(uint256 nativeBefore, uint256 swapIn) = _openBuy(token, feeBps, deadline);
// A partially filled Peddles leg hands the unspent QUOTE (the last hop's output) back here.
address quote = hops.length == 0 ? address(0) : hops[hops.length - 1].tokenOut;
uint256 quoteBefore = quote == address(0) ? 0 : IFwdERC20(quote).balanceOf(address(this));
tokensOut =
IFwdRouteSwapRouter(router).buyWithNativePancake{value: swapIn}(token, hops, minOut, msg.sender, deadline);
if (quote != address(0)) {
uint256 back = IFwdERC20(quote).balanceOf(address(this)) - quoteBefore;
if (back != 0) _safeTransfer(quote, msg.sender, back);
}
_closeBuy(token, router, feeBps, nativeBefore, tokensOut);
}
/// @notice `PeddlesRouteSwapRouter.sellForNativePancake` with the fee taken from the proceeds.
/// @param minOutNet the floor on what reaches the caller, AFTER the fee, in native wei.
function sellRoutePancake(
address token,
uint256 amountIn,
FwdPancakeHop[] calldata hops,
uint256 minOutNet,
uint16 feeBps,
uint256 deadline
) external nonReentrant returns (uint256 nativeNet) {
address router = _route();
(uint256 tokenBefore, uint256 received) = _openSell(token, amountIn, feeBps, deadline, router);
uint256 nativeBefore = address(this).balance;
IFwdRouteSwapRouter(router).sellForNativePancake(token, received, hops, minOutNet, address(this), deadline);
nativeNet = _closeSell(token, router, received, tokenBefore, nativeBefore, minOutNet, feeBps);
}
// ---- Strays ------------------------------------------------------------------------------
/// @notice PERMISSIONLESS. Push a stray balance of `asset` (address(0) = native) to
/// `feeRecipient`. Nothing is owed here between transactions, so anything found at rest is a
/// stray; and every trade runs under the same lock, so this can never touch funds in flight.
function sweep(address asset) external nonReentrant returns (uint256 amount) {
if (asset == address(0)) {
amount = address(this).balance;
if (amount == 0) revert NothingToSweep();
_sendNative(feeRecipient, amount);
} else {
amount = IFwdERC20(asset).balanceOf(address(this));
if (amount == 0) revert NothingToSweep();
_safeTransfer(asset, feeRecipient, amount);
}
emit StraySwept(asset, feeRecipient, amount);
}
// ---- Legs ----------------------------------------------------------------------------------
function _route() private view returns (address router) {
router = routeSwapRouter;
if (router == address(0)) revert RouterNotConfigured();
}
function _checkFee(uint16 feeBps, uint256 deadline) private view {
if (block.timestamp > deadline) revert Expired();
if (feeBps > maxFeeBps) revert InvalidFee();
}
/// @dev Validate, and carve the up-front fee out of `msg.value`. `nativeBefore` is the balance
/// this call did not bring (a forced stray), so everything above it at the end is this trade's.
function _openBuy(address token, uint16 feeBps, uint256 deadline)
private
view
returns (uint256 nativeBefore, uint256 swapIn)
{
_checkFee(feeBps, deadline);
if (token == address(0)) revert InvalidAddress();
if (msg.value == 0) revert InvalidAmount();
nativeBefore = address(this).balance - msg.value;
// feeBps <= 1000, so swapIn >= 90% of msg.value and never zero.
swapIn = msg.value - (msg.value * feeBps) / BPS;
}
/// @dev Settle a buy. What is left here is the up-front fee plus any router refund. The fee is
/// re-taken on what the buyer actually parted with, so a refund never pays a fee; the rest goes
/// back to the buyer. Leaves the balance exactly at `nativeBefore`.
function _closeBuy(address token, address router, uint16 feeBps, uint256 nativeBefore, uint256 tokensOut) private {
uint256 held = address(this).balance - nativeBefore; // fee carve-out + router refund
uint256 upFront = (msg.value * feeBps) / BPS;
// held >= upFront: the router can only ADD native (a refund) to what was kept back.
uint256 routerRefund = held - upFront;
// A refund can only exceed what was sent if native was forced in mid-trade; it is then all
// returned and no fee is taken rather than reverting.
uint256 fee = routerRefund >= msg.value ? 0 : ((msg.value - routerRefund) * feeBps) / BPS; // <= upFront
uint256 refund = held - fee;
if (fee != 0) {
_sendNative(feeRecipient, fee);
emit FeeCollected(msg.sender, token, feeRecipient, fee, feeBps);
}
if (refund != 0) _sendNative(msg.sender, refund);
emit Bought(msg.sender, token, router, msg.value, fee, feeBps, refund, tokensOut);
}
/// @dev Pull exactly `amountIn` from the caller — never from anyone else — and approve `router`
/// for exactly what arrived.
function _openSell(address token, uint256 amountIn, uint16 feeBps, uint256 deadline, address router)
private
returns (uint256 tokenBefore, uint256 received)
{
_checkFee(feeBps, deadline);
if (token == address(0)) revert InvalidAddress();
if (amountIn == 0) revert InvalidAmount();
tokenBefore = IFwdERC20(token).balanceOf(address(this));
_safeTransferFrom(token, msg.sender, address(this), amountIn);
received = IFwdERC20(token).balanceOf(address(this)) - tokenBefore;
if (received == 0) revert InvalidAmount();
_approve(token, router, received);
}
/// @dev Settle a sell: reset the approval, hand back unconsumed tokens, take the fee from the
/// native the router paid here, floor the NET, pay both.
function _closeSell(
address token,
address router,
uint256 received,
uint256 tokenBefore,
uint256 nativeBefore,
uint256 minOutNet,
uint16 feeBps
) private returns (uint256 nativeNet) {
_approve(token, router, 0);
uint256 unspent = IFwdERC20(token).balanceOf(address(this)) - tokenBefore;
if (unspent != 0) _safeTransfer(token, msg.sender, unspent);
uint256 gross = address(this).balance - nativeBefore;
uint256 fee = (gross * feeBps) / BPS;
nativeNet = gross - fee;
if (nativeNet < minOutNet) revert Slippage();
if (fee != 0) {
_sendNative(feeRecipient, fee);
emit FeeCollected(msg.sender, token, feeRecipient, fee, feeBps);
}
if (nativeNet != 0) _sendNative(msg.sender, nativeNet);
emit Sold(msg.sender, token, router, unspent >= received ? 0 : received - unspent, gross, fee, feeBps, nativeNet);
}
function _hopOutput(FwdPathHop calldata h) private pure returns (address) {
return h.zeroForOne ? h.key.currency1 : h.key.currency0;
}
// ---- Transfers -----------------------------------------------------------------------------
function _approve(address token, address spender, uint256 amount) private {
(bool ok, bytes memory data) = token.call(abi.encodeWithSelector(IFwdERC20.approve.selector, spender, amount));
if (!ok || (data.length != 0 && !abi.decode(data, (bool)))) revert TransferFailed();
}
function _safeTransfer(address token, address to, uint256 amount) private {
(bool ok, bytes memory data) = token.call(abi.encodeWithSelector(IFwdERC20.transfer.selector, to, amount));
if (!ok || (data.length != 0 && !abi.decode(data, (bool)))) revert TransferFailed();
}
function _safeTransferFrom(address token, address from, address to, uint256 amount) private {
(bool ok, bytes memory data) =
token.call(abi.encodeWithSelector(IFwdERC20.transferFrom.selector, from, to, amount));
if (!ok || (data.length != 0 && !abi.decode(data, (bool)))) revert TransferFailed();
}
function _sendNative(address to, uint256 amount) private {
(bool ok,) = payable(to).call{value: amount}("");
if (!ok) revert NativeTransferFailed();
}
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"appendCBOR": false,
"bytecodeHash": "none",
"useLiteralContent": false
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"forge-std/=lib/forge-std/src/",
"@uniswap/v4-core/=lib/v4-core/",
"@uniswap/v4-periphery/=lib/v4-periphery/",
"solady/=lib/solady/",
"@openzeppelin/contracts/=lib/infinity-core/lib/openzeppelin-contracts/contracts/",
"permit2/=lib/v4-periphery/lib/permit2/",
"infinity-core/=lib/infinity-core/",
"lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
"lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
"lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
"lib/infinity-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/infinity-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/infinity-core/lib/pancake-create3-factory/:forge-gas-snapshot/=lib/infinity-core/lib/pancake-create3-factory/lib/forge-gas-snapshot/src/",
"lib/infinity-core/lib/pancake-create3-factory/:forge-gas-snapshot/=lib/infinity-core/lib/pancake-create3-factory/lib/forge-gas-snapshot/src/",
"lib/infinity-core/lib/pancake-create3-factory/:openzeppelin-contracts/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/",
"lib/infinity-core/lib/pancake-create3-factory/:openzeppelin-contracts/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/",
"lib/infinity-core/lib/solmate/:ds-test/=lib/infinity-core/lib/solmate/lib/ds-test/src/",
"lib/infinity-core/lib/solmate/:ds-test/=lib/infinity-core/lib/solmate/lib/ds-test/src/",
"lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"lib/v4-core/lib/solmate/:ds-test/=lib/v4-core/lib/solmate/lib/ds-test/src/",
"lib/v4-core/lib/solmate/:ds-test/=lib/v4-core/lib/solmate/lib/ds-test/src/",
"lib/v4-periphery/lib/permit2/:solmate/=lib/v4-periphery/lib/permit2/lib/solmate/",
"lib/v4-periphery/lib/permit2/:solmate/=lib/v4-periphery/lib/permit2/lib/solmate/",
"lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
"lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
"lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
"lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
"lib/v4-periphery/lib/v4-core/:solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",
"lib/v4-periphery/lib/v4-core/:solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",
"lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
"lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
"lib/infinity-core/:solmate/=lib/infinity-core/lib/solmate/",
"lib/infinity-core/:solmate/=lib/infinity-core/lib/solmate/",
"lib/infinity-core/:openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
"lib/infinity-core/:openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
"lib/v4-core/:solmate/=lib/v4-core/lib/solmate/",
"lib/v4-core/:solmate/=lib/v4-core/lib/solmate/",
"lib/v4-core/:openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/",
"lib/v4-core/:openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/",
"lib/v4-periphery/:v4-core/=lib/v4-periphery/lib/v4-core/src/",
"lib/v4-periphery/:v4-core/=lib/v4-periphery/lib/v4-core/src/",
"@ensdomains/=lib/v4-core/node_modules/@ensdomains/",
"@openzeppelin/=lib/infinity-core/lib/openzeppelin-contracts/",
"ds-test/=lib/infinity-core/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-gas-snapshot/=lib/infinity-core/lib/forge-gas-snapshot/src/",
"halmos-cheatcodes/=lib/infinity-core/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"hardhat/=lib/v4-core/node_modules/hardhat/",
"openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
"pancake-create3-factory/=lib/infinity-core/lib/pancake-create3-factory/",
"solmate/=lib/infinity-core/lib/solmate/",
"v4-core/=lib/v4-core/src/",
"v4-periphery/=lib/v4-periphery/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.