Skip to content
Verified contractExactUNLICENSED

FLAMMQuoteLib

Address0xf284b0271ea829f3a15f005bb588b7df4befd526
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.35

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.35+commit.47b9dedd
Language
solidity
Optimization
Yes, 100 runs
EVM version
cancun
Via IR
yes
License
UNLICENSED
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,446,215
Creation transaction
0x58f556175d…b5f8cb36ab
Libraries
src/core/mm/MMRouterLib.sol:MMRouterLib0xa474…d2b4e5src/core/flamm/FLAMMLane.sol:FLAMMLane0x82a0…7f67dfsrc/core/flamm/FLAMMRoute.sol:FLAMMRoute0x312e…0fdaa9src/periphery/FLAMMMaxima.sol:FLAMMMaxima0x4a99…d6259csrc/core/flamm/FLAMMLawLib.sol:FLAMMLawLib0x5d47…27cc62src/core/flamm/FLAMMOpsLib.sol:FLAMMOpsLib0x3bd2…f79a69src/core/mm/AaveV3ReadsLib.sol:AaveV3ReadsLib0xd53f…ed5983src/core/flamm/FLAMMFlowLib.sol:FLAMMFlowLib0xac61…6a909dsrc/core/flamm/FLAMMGateLib.sol:FLAMMGateLib0x2291…64f98csrc/core/flamm/FLAMMKeptLib.sol:FLAMMKeptLib0x7a11…58517bsrc/core/mm/CTokenMarketLib.sol:CTokenMarketLib0xfd87…6df060src/core/flamm/FLAMMAdmitLib.sol:FLAMMAdmitLib0x4aac…e1aed6src/core/flamm/FLAMMBlindLib.sol:FLAMMBlindLib0x9e50…7eeb41src/core/flamm/FLAMMClaimLib.sol:FLAMMClaimLib0xc6c9…da2afesrc/core/flamm/FLAMMFenceLib.sol:FLAMMFenceLib0x739d…5a629fsrc/core/flamm/FLAMMFloatLib.sol:FLAMMFloatLib0xf128…b16b70src/core/flamm/FLAMMQuoteLib.sol:FLAMMQuoteLib0xf284…efd526src/core/flamm/FLAMMTopUpLib.sol:FLAMMTopUpLib0xd561…60c5a5src/core/mm/CTokenRewardsLib.sol:CTokenRewardsLib0xcda6…a4dcf7src/core/mm/MMRouterAdminLib.sol:MMRouterAdminLib0x8423…7adc96src/core/flamm/FLAMMPolicyLib.sol:FLAMMPolicyLib0x6fe6…678097src/core/flamm/FLAMMSettleLib.sol:FLAMMSettleLib0x1834…56e060src/core/flamm/FLAMMSharedLib.sol:FLAMMSharedLib0xfaae…2511basrc/periphery/FLAMMExitMaxima.sol:FLAMMExitMaxima0x480f…4e0a81src/hooks/everlong/LeverageLib.sol:LeverageLib0x1b1d…40ad11src/core/flamm/FLAMMMaintainLib.sol:FLAMMMaintainLib0x5691…f4d380src/core/flamm/FLAMMPairQuoteLib.sol:FLAMMPairQuoteLib0xa0c8…50c3e3src/hooks/everlong/EverlongOpsLib.sol:EverlongOpsLib0xabe4…7426f7

52 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/core/flamm/FLAMMQuoteLib.sol

// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2025-2026 Everlong Labs Limited
pragma solidity ^0.8.26;

import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";

import {FLAMMStore, InvalidConfig, OutputAboveCeiling, WAD} from "src/core/flamm/FLAMMStore.sol";
import {FLAMMGateLib} from "src/core/flamm/FLAMMGateLib.sol";
import {FLAMMFlowLib} from "src/core/flamm/FLAMMFlowLib.sol";
import {FLAMMMaintainLib} from "src/core/flamm/FLAMMMaintainLib.sol";
import {FLAMMLawLib} from "src/core/flamm/FLAMMLawLib.sol";
import {IFLAMM} from "src/interfaces/core/flamm/IFLAMM.sol";
import {IMMRouter} from "src/interfaces/core/mm/IMMRouter.sol";
import {ReentrancyGuardLib} from "src/libraries/ReentrancyGuardLib.sol";

/// @notice The pro-rata flows' quotes: their previews, each priced at the supply after the fee the flow crystallizes
///         first, both parts, and the ERC-4626 conversions. Every leg is `FLAMMFlowLib.proRata`'s, so a quote is its
///         flow's legs on the same state. The flows' maxima are read outside the pool (`FLAMMMaxima`, periphery), on
///         these previews' legs. Also a swap's cover bound on its refusal path ({coverFunded}), which the fill's check
///         shares with the swap's quote, out of every swap's settlement, and the band's hold on the pins the cover
///         shortcut reads ({pinsWithinBand}), which no swap runs. And the flows' gates on the credit law
///         ({entryGate}, {gateExitAtRead}), which the flows' and the claims' entries and exits call.
library FLAMMQuoteLib {
    /// @notice `FLAMM.previewDepositProRata`'s body: the shares an entry of `poolAssets` mints and its legs, priced at
    ///         the supply after the fee the entry crystallizes first, both parts. Zero shares and no legs on a pool
    ///         with no supply, or that holds none of the pool asset or owes it.
    function previewDeposit(FLAMMStore.S storage $, uint256 poolAssets, uint256 supply)
        public
        view
        returns (uint256 shares, IFLAMM.VenueLeg[] memory legs, uint256[] memory tokenIn, uint256[] memory tokenOut)
    {
        FLAMMGateLib.Book memory b = FLAMMGateLib.priced($);
        FLAMMGateLib.Leg memory L0 = b.legs[0];
        uint256 gross0 = L0.held + L0.supplied + L0.posted;
        if (supply == 0 || gross0 == 0 || L0.owed != 0) return (0, legs, tokenIn, tokenOut);
        FLAMMFlowLib.Legs memory L = _legs($, b, poolAssets, gross0, true, true);
        FLAMMFlowLib.refuseUnrestored(L);
        supply += _pendingFeeShares($, supply);
        return (Math.mulDiv(poolAssets, supply, gross0), L.venue, L.tokenIn, L.tokenOut);
    }

    /// @notice A share-sized flow's legs: with `entry` `mintProRata`'s, priced where the book owes, else
    ///         `redeemProRata`'s, which read no price. Priced at the supply after the fee the flow crystallizes first,
    ///         both parts; no legs on a pool with no supply.
    function previewShares(FLAMMStore.S storage $, uint256 shares, uint256 supply, bool entry)
        public
        view
        returns (IFLAMM.VenueLeg[] memory legs, uint256[] memory tokenIn, uint256[] memory tokenOut)
    {
        if (supply == 0) return (legs, tokenIn, tokenOut);
        supply += _pendingFeeShares($, supply);
        FLAMMGateLib.Book memory b = FLAMMGateLib.bookOf($);
        if (entry && FLAMMGateLib.owes(b)) FLAMMGateLib.priceIn($, b);
        FLAMMFlowLib.Legs memory L = _legs($, b, shares, supply, entry, false);
        FLAMMFlowLib.refuseUnrestored(L);
        return (L.venue, L.tokenIn, L.tokenOut);
    }

    /// @dev `FLAMMFlowLib.proRata`, called from one place, so this library carries one copy of it.
    function _legs(FLAMMStore.S storage $, FLAMMGateLib.Book memory b, uint256 num, uint256 den, bool entry, bool exact)
        private
        view
        returns (FLAMMFlowLib.Legs memory)
    {
        return FLAMMFlowLib.proRata($, b, num, den, entry, exact);
    }

    /// @dev The shares the skim before a flow mints at `supply`, both parts (`FLAMMMaintainLib.pendingFeeShares`), not
    ///      read while both rates are 0: at the loss marks stored before that skim records new ones, so exact only
    ///      where no loss mark changes.
    function _pendingFeeShares(FLAMMStore.S storage $, uint256 supply) private view returns (uint256) {
        if (($.performanceFeeBp | $.protocolFeeBp) == 0) return 0;
        return FLAMMMaintainLib.pendingFeeShares($, supply);
    }

    /// @notice ERC-4626 conversion at NAV, rounded down; on an empty pool assets convert to shares at the share scale,
    ///         and shares to no assets. As ERC-4626 asks, it excludes fees: it prices at the supply as it stands,
    ///         before a pending performance fee is minted.
    /// @dev Read-guarded here rather than in the pool, whose bytecode it would cost.
    function convert(FLAMMStore.S storage $, uint256 amount, uint256 supply, bool toShares) public view returns (uint256) {
        ReentrancyGuardLib._readGuard();
        if (supply == 0) return toShares ? amount * $.shareScale : 0;
        uint256 assets = FLAMMGateLib.totalAssets($);
        return toShares ? Math.mulDiv(amount, supply, assets) : Math.mulDiv(amount, assets, supply);
    }

    /// @notice Refuses (`OutputAboveCeiling`) a cover of `x` for `y` (`xy`: `x`, `y` and the plan's payout pair, a byte
    ///         each) that pays `out` (its net and the protocol's part) for `used` of its input and would raise the
    ///         ratio of the debt it repays toward to `y`'s backing were all of it to leave that backing
    ///         (`FLAMMSwapLib.validate`), unless `y` is lent and the cover keeps the ratio as the settlement pays it
    ///         (`FLAMMSettleLib.settle`).
    /// @dev - Settlement order: custody first, then the collateral the reclaim over the pin and the repay's release
    ///        free, and only past them `y`'s supply, which is not backing (`FLAMMGateLib.backing`), so the backing
    ///        falls by the first three alone.
    ///      - It keeps the ratio where custody and the supply its lenders can return now fund all of the payout past
    ///        custody, so a venue that releases less still pays it, and where the most those three can take keeps the
    ///        ratio: custody, every venue's free collateral now (a venue posting `y` that owes nothing all of its
    ///        collateral; one owing `x` its collateral over the pin at the pair's price, rounded up, where it may sit
    ///        under the pin), and the release of the whole repay (custody of `x` and the input together, at most the
    ///        debt) at the venue that frees the most per unit repaid: its collateral over its debt, and where it may
    ///        sit under the pin, the pin's at the pair's price, rounded up, if more.
    ///      - A venue at or past its pin frees no more over the pin than its release in proportion, which counts it
    ///        whole; one under it frees what its free collateral and the pin's rate count.
    ///      - A payout that may draw (a crossing) stays refused, and so does every cover on three tokens or more: there
    ///        the plan caps the payout at the ratio for the input asked (`FLAMMLawLib.lawBound`), so a hook that slices
    ///        its input to that cap fills less than it was asked, which would pass here, while the swap at the quoted
    ///        input slices again.
    ///      - Read again as the plan read them, on the refusal path alone: the book (no flow moves it between the two),
    ///        the debt the cover repays toward (the input's net debt, as the fill's check reads it) and the pair's
    ///        prices, whose price scale the Router prices the cover pair's venues at ({_coverFrame}).
    function coverFunded(uint256 xy, uint256 used, uint256 out) public view {
        FLAMMStore.S storage $ = FLAMMStore.s();
        (uint256 x, uint256 y) = (uint8(xy), uint8(xy >> 8));
        FLAMMGateLib.Book memory b = FLAMMGateLib.book($);
        (FLAMMGateLib.Leg memory Lx, FLAMMGateLib.Leg memory Ly) = (b.legs[x], b.legs[y]);
        if (
            b.legs.length != 2 || uint8(xy >> 16) != FLAMMStore.NO_PAIR || Ly.supplied == 0
                || (out > Ly.held && out - Ly.held > FLAMMGateLib.withdrawable($, y, Ly.supplied))
        ) revert OutputAboveCeiling();
        // the debt the cover repays toward, the input's net debt on two tokens, as the fill's check reads it
        uint256 d = FLAMMGateLib.netDebt(Lx);
        uint256 pay = Lx.held + used;
        if (pay > Lx.owed) pay = Lx.owed;
        uint256 most = Ly.held + _postedOut($, x, y, pay, _coverFrame($, x, y, Lx.scale, Ly.scale));
        if (most >= out || Math.mulDiv(most, d, used, Math.Rounding.Up) > FLAMMGateLib.backing(Ly)) {
            revert OutputAboveCeiling();
        }
    }

    /// @notice Refuses (`InvalidConfig`) token `t`'s band, written first, where it leaves the pin of a live pair of `t`
    ///         past what the band and the protocol's part keep (`FLAMMStore.coverSafe`), the bound the cover shortcut
    ///         reads: `FLAMMPolicyLib.setTokenConfig`'s wider band and `FLAMMOpsLib.setMarketBand`'s attach, the curator's
    ///         or the guardian's, as a pair's listing (`FLAMMAdmitLib`) and its dial raises
    ///         (`FLAMMGateLib.validateDialMove`) hold the pin. Here, beside the cover bound and off every swap's path.
    /// @dev Its selector sorts after every other entry here, so no preview's call pays to skip it in this library's
    ///      dispatcher.
    function pinsWithinBand(FLAMMStore.S storage $, uint256 t) public view {
        for (uint256 q; q < $.pairCount; ++q) {
            FLAMMStore.PairCfg storage pc = $.pairs[q];
            if (
                pc.live && (pc.coll == t || pc.debt == t)
                    && !FLAMMStore.coverSafe(pc.ltvWad, FLAMMStore.pairBand($, pc.coll, pc.debt))
            ) revert InvalidConfig();
        }
    }

    /// @dev {coverFunded}'s price of the cover pair's venues, `y` against `x`, the Router's (`MMRouterLib.priceOf`):
    ///      from the pair's prices as the plan's one reverting read took them (`FLAMMSwapLib._price`).
    function _coverFrame(FLAMMStore.S storage $, uint256 x, uint256 y, uint256 sx, uint256 sy)
        private
        view
        returns (uint256)
    {
        (uint256 lo, uint256 hi) = x < y ? (x, y) : (y, x);
        (uint256 ulo, uint256 uhi,) =
            FLAMMGateLib.pairRead(address($.priceFeed), FLAMMStore.tokenOf($, lo), FLAMMStore.tokenOf($, hi));
        return x < y ? FLAMMGateLib.frame(uhi, ulo, sy, sx) : FLAMMGateLib.frame(ulo, uhi, sy, sx);
    }

    /// @dev {coverFunded}'s most a repay of `pay` frees of `y`'s posted collateral, at price `p36`: every venue's free
    ///      collateral now, and the release at the venue that frees the most per unit repaid.
    function _postedOut(FLAMMStore.S storage $, uint256 x, uint256 y, uint256 pay, uint256 p36)
        private
        view
        returns (uint256 most)
    {
        IMMRouter r = $.router;
        uint256 lead;
        uint256 live = ~uint256($.retiredVenues);
        for (uint256 q; q < $.pairCount; ++q) {
            FLAMMStore.PairCfg storage pc = $.pairs[q];
            if (pc.coll != y) continue;
            (uint256 ltv, uint256 mask) = (pc.ltvWad, pc.venues & live);
            for (uint256 i; mask >> i != 0; ++i) {
                if ((mask >> i) & 1 == 0) continue;
                (uint256 c,,,, uint256 v) = r.venuePosition(address(this), uint16(i));
                if (c == 0) continue;
                if (v == 0 || pc.debt != x) {
                    most += c;
                    continue;
                }
                uint256 at = Math.mulDiv(pay, c, v);
                // the collateral the pin needs at that price, rounded down: none frees over it at an unchecked price
                // or a zero pin (`MMRouterLib.freeCollateral`)
                uint256 req = p36 == 0 || ltv == 0 ? c : Math.mulDiv(Math.mulDiv(v, WAD, ltv), 1e36, p36);
                if (c > req) {
                    most += c - req;
                    at = Math.max(
                        Math.mulDiv(pay, c, v, Math.Rounding.Up),
                        Math.mulDiv(Math.mulDiv(pay, WAD, ltv, Math.Rounding.Up), 1e36, p36, Math.Rounding.Up)
                    );
                }
                if (at > lead) lead = at;
            }
        }
        most += lead;
    }

    // ------------------------------------------------------------------ the flows' gates
    /// @notice After an entry's legs: one position read at the entry book's prices (`usd`), the debt-free flags and the
    ///         idle record ({FLAMMGateLib.markRead}), and the entry gate against the anchor on a pool with a band.
    function entryGate(
        FLAMMStore.S storage $,
        uint256[] memory usd,
        uint256[] memory u0,
        uint256[] memory g0,
        uint256[] memory d0,
        uint256[] memory o0,
        uint256 dust,
        bytes4 err
    ) public {
        FLAMMGateLib.Book memory b = FLAMMGateLib.bookOf($);
        b.usd = usd;
        FLAMMGateLib.frameAll(b);
        FLAMMGateLib.markRead($, b);
        if (!$.noBand) FLAMMLawLib.entryGateAt($, b, u0, g0, d0, o0, dust, err);
    }

    /// @notice The monotone exit gate, price-free and per pair, on a fresh read, refusing `err`; it also sets the
    ///         debt-free flags and records the idle venues ({FLAMMGateLib.markRead}), on the read whole, before the
    ///         gate leaves anything out of it. A token net-owed no more than `dust` owes nothing here (an exit's: the
    ///         lenders' rounding, `MMRouterLib.RELEASE_SLACK`, refusing `ExitWorsensLedger`): an exit that forfeits its
    ///         slice at a frozen venue owing that much leaves its share of the dust behind with the slice. The caller
    ///         names both, so the law is one function here. Where the exit forfeits its slices at the frozen venues of
    ///         `forfeits` (bit `i` for venue `i`, each owing no more than that), their debt is left out of the read, so
    ///         neither a second pair nor a second such venue owing the same token holds the exit to it, while the rest
    ///         of the book is held to the rule. Where a venue took the exit's repay short (`short`, per venue, what it
    ///         did not take), custody keeps that much, which nets the venue's debt at its token; where the book reads
    ///         the token's debt per pair, the read nets it at that venue's pair too, out of the pair's debt and out of
    ///         the token's debt and custody alike, so the gate reads the book an exit that repaid in full would leave
    ///         in every branch. Its parameters' order keeps its selector first in this library's dispatcher.
    function gateExitAtRead(
        FLAMMStore.S storage $,
        uint256[] memory u0,
        uint256[] memory g0,
        uint256[] memory d0,
        uint256[] memory o0,
        uint256[] memory short,
        uint256 forfeits,
        bytes4 err,
        uint256 dust
    ) public {
        FLAMMGateLib.Book memory b = FLAMMGateLib.bookOf($);
        // `markRead` reads the book whole, each token's debt as it is, so it runs before the shift
        FLAMMGateLib.markRead($, b);
        _shiftExit($, b, forfeits, short);
        FLAMMLawLib.requireNotWorsened($, b, u0, g0, d0, o0, dust, err);
    }

    /// @dev Takes out of `b` the debt at the frozen venues of `venues`, from its token's debt and, where the book reads
    ///      its pair's debt apart, from that pair's; and, where the book reads it apart, what each venue of `short` did
    ///      not take of the exit's repay and still owes, from its pair's debt and from its token's debt and custody
    ///      alike, so its net debt does not move.
    function _shiftExit(FLAMMStore.S storage $, FLAMMGateLib.Book memory b, uint256 venues, uint256[] memory short)
        private
        view
    {
        uint256 tracked = b.pairOwed.length == 0 ? 0 : $.multiPairs;
        if (venues == 0 && (tracked == 0 || short.length == 0)) return;
        IMMRouter r = $.router;
        for (uint16 i; venues >> i != 0 || i < short.length; ++i) {
            bool frozen = (venues >> i) & 1 != 0;
            uint256 s = i < short.length ? short[i] : 0;
            if (!frozen && (s == 0 || tracked == 0)) continue;
            (,,,, uint256 d) = r.venuePosition(address(this), i);
            if (!frozen && s < d) d = s;
            if (d == 0) continue;
            IMMRouter.VenueView memory v = r.venue(address(this), i);
            FLAMMGateLib.Leg memory L = b.legs[v.debt];
            bool apart = (tracked >> v.pair) & 1 != 0;
            if (frozen) {
                L.owed -= d;
            } else {
                if (!apart) continue;
                (L.owed, L.held) = (L.owed - d, L.held - d);
            }
            if (apart) b.pairOwed[v.pair] -= d;
        }
    }
}
Compiler settingsShow
{
  "viaIR": true,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {
    "src/core/mm/MMRouterLib.sol": {
      "MMRouterLib": "0xA4749766934833DfBeaF4Fc0d79c150A1Dd2B4E5"
    },
    "src/core/flamm/FLAMMLane.sol": {
      "FLAMMLane": "0x82a048459DF53186031Fd66507B260EeaC7F67df"
    },
    "src/core/flamm/FLAMMRoute.sol": {
      "FLAMMRoute": "0x312ee92ecd113F925dD513d450b062C8740fDaA9"
    },
    "src/periphery/FLAMMMaxima.sol": {
      "FLAMMMaxima": "0x4A997343D91c981BF63274fc222AA96D32d6259c"
    },
    "src/core/flamm/FLAMMLawLib.sol": {
      "FLAMMLawLib": "0x5D473B15E032756Cd81fc66B8F1e9BE2f427cc62"
    },
    "src/core/flamm/FLAMMOpsLib.sol": {
      "FLAMMOpsLib": "0x3Bd2B976e70C0D6ea7eb041e36ad525F66F79A69"
    },
    "src/core/mm/AaveV3ReadsLib.sol": {
      "AaveV3ReadsLib": "0xD53F6170226A74D453e84414Ffc2FFcE5ded5983"
    },
    "src/core/flamm/FLAMMFlowLib.sol": {
      "FLAMMFlowLib": "0xAC619698656d47651EF67a050859578e176A909D"
    },
    "src/core/flamm/FLAMMGateLib.sol": {
      "FLAMMGateLib": "0x2291F5e012B0740468E2e2E9AeA37F7Fea64F98c"
    },
    "src/core/flamm/FLAMMKeptLib.sol": {
      "FLAMMKeptLib": "0x7a11899232dd9F17c28bF062Ec2ee2267158517b"
    },
    "src/core/mm/CTokenMarketLib.sol": {
      "CTokenMarketLib": "0xfD87dcDDdc9b4eCe3F2413A858B265D8Ec6dF060"
    },
    "src/core/flamm/FLAMMAdmitLib.sol": {
      "FLAMMAdmitLib": "0x4AAcA346B9430656eB1316094cea0Df0f2e1AED6"
    },
    "src/core/flamm/FLAMMBlindLib.sol": {
      "FLAMMBlindLib": "0x9E5010D8393EB299b6FEce8EB160b3826f7eEb41"
    },
    "src/core/flamm/FLAMMClaimLib.sol": {
      "FLAMMClaimLib": "0xC6C94A120AC43f689BD8D8444dFf300eb9Da2aFe"
    },
    "src/core/flamm/FLAMMFenceLib.sol": {
      "FLAMMFenceLib": "0x739D84c7662030d5Ed8C6BA7606152977D5A629f"
    },
    "src/core/flamm/FLAMMFloatLib.sol": {
      "FLAMMFloatLib": "0xf128B7AdB5bF43814D595E3d1fC95a1f2bB16b70"
    },
    "src/core/flamm/FLAMMQuoteLib.sol": {
      "FLAMMQuoteLib": "0xF284B0271EA829F3a15f005BB588b7Df4bEFd526"
    },
    "src/core/flamm/FLAMMTopUpLib.sol": {
      "FLAMMTopUpLib": "0xD56127118C7619e4a13713Fb4280Cf66D560C5A5"
    },
    "src/core/mm/CTokenRewardsLib.sol": {
      "CTokenRewardsLib": "0xcda63d7eCCF838F2732Bff676706BDE5abA4DcF7"
    },
    "src/core/mm/MMRouterAdminLib.sol": {
      "MMRouterAdminLib": "0x8423744b3F304ED0B43043d7ad4E7d8A247aDc96"
    },
    "src/core/flamm/FLAMMPolicyLib.sol": {
      "FLAMMPolicyLib": "0x6FE69Ed6659A547da6100225Cd0616CfDB678097"
    },
    "src/core/flamm/FLAMMSettleLib.sol": {
      "FLAMMSettleLib": "0x1834d367BD65AF7CCf41D2025758bB69Af56e060"
    },
    "src/core/flamm/FLAMMSharedLib.sol": {
      "FLAMMSharedLib": "0xFaAEd38962aEb6c282Ac36E0cdE9313AbA2511ba"
    },
    "src/periphery/FLAMMExitMaxima.sol": {
      "FLAMMExitMaxima": "0x480f51866554e92649c9d3502bA31AA4234e0a81"
    },
    "src/hooks/everlong/LeverageLib.sol": {
      "LeverageLib": "0x1B1D1C42d26c169dB59D8681d0FD4C9a2840Ad11"
    },
    "src/core/flamm/FLAMMMaintainLib.sol": {
      "FLAMMMaintainLib": "0x5691dc81338DFdF5e4E76Fccb79e38540ff4D380"
    },
    "src/core/flamm/FLAMMPairQuoteLib.sol": {
      "FLAMMPairQuoteLib": "0xa0c8489D5a572eAeAeEDDf48cb888c20A950c3E3"
    },
    "src/hooks/everlong/EverlongOpsLib.sol": {
      "EverlongOpsLib": "0xAbe4447C954E3C7a405f8E75116BF9f5787426F7"
    }
  },
  "optimizer": {
    "runs": 100,
    "enabled": true
  },
  "viaSSACFG": false,
  "evmVersion": "cancun",
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts-compat/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable-compat/contracts/",
    "solady/=lib/solady/src/",
    "forge-std/=lib/forge-std/src/"
  ],
  "experimental": false
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.