Verified contractExactUNLICENSED
FLAMMRoute
Address0xb1ffeae12c53f876aa0e495e9c00c829f47fb0fe
- 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,480,491
- Creation transaction
- 0xd90b9ddf96…5795cf9cf3
- Libraries
- src/core/mm/MMRouterLib.sol:MMRouterLib0x95b3…48ef2csrc/core/flamm/FLAMMLane.sol:FLAMMLane0x5d81…90de37src/core/flamm/FLAMMRoute.sol:FLAMMRoute0xb1ff…7fb0fesrc/periphery/FLAMMMaxima.sol:FLAMMMaxima0x6854…90a91bsrc/core/flamm/FLAMMLawLib.sol:FLAMMLawLib0xf55c…49cf45src/core/flamm/FLAMMOpsLib.sol:FLAMMOpsLib0x0be7…5ecc47src/core/mm/AaveV3ReadsLib.sol:AaveV3ReadsLib0xa5db…72803esrc/core/flamm/FLAMMFlowLib.sol:FLAMMFlowLib0x2795…4cfb77src/core/flamm/FLAMMGateLib.sol:FLAMMGateLib0x3a05…434368src/core/flamm/FLAMMKeptLib.sol:FLAMMKeptLib0x70ca…60bee4src/core/mm/CTokenMarketLib.sol:CTokenMarketLib0x60e4…314010src/core/flamm/FLAMMAdmitLib.sol:FLAMMAdmitLib0x0b10…1ce950src/core/flamm/FLAMMBlindLib.sol:FLAMMBlindLib0x634d…298fcdsrc/core/flamm/FLAMMClaimLib.sol:FLAMMClaimLib0x5dc3…aa7e91src/core/flamm/FLAMMFenceLib.sol:FLAMMFenceLib0x9dbb…798f1asrc/core/flamm/FLAMMFloatLib.sol:FLAMMFloatLib0x6b2b…518935src/core/flamm/FLAMMQuoteLib.sol:FLAMMQuoteLib0x99de…929869src/core/flamm/FLAMMTopUpLib.sol:FLAMMTopUpLib0xe4be…cfac2esrc/core/mm/CTokenRewardsLib.sol:CTokenRewardsLib0x93ab…262861src/core/mm/MMRouterAdminLib.sol:MMRouterAdminLib0x6abb…60ea7esrc/core/flamm/FLAMMPolicyLib.sol:FLAMMPolicyLib0x3858…f91f06src/core/flamm/FLAMMSettleLib.sol:FLAMMSettleLib0x4551…33b301src/core/flamm/FLAMMSharedLib.sol:FLAMMSharedLib0xb852…b71005src/periphery/FLAMMExitMaxima.sol:FLAMMExitMaxima0x6a6a…798659src/hooks/everlong/LeverageLib.sol:LeverageLib0x8039…16d055src/core/flamm/FLAMMMaintainLib.sol:FLAMMMaintainLib0xaa54…b56417src/core/flamm/FLAMMPairQuoteLib.sol:FLAMMPairQuoteLib0x3bc5…2055ddsrc/hooks/everlong/EverlongOpsLib.sol:EverlongOpsLib0xf6d5…9dfeef
52 files
The source code is large: one file is shown at a time. Choose a file in the list.
- src/core/flamm/FLAMMRoute.solmain16.45 KB
- lib/openzeppelin-contracts-compat/contracts/interfaces/draft-IERC6093.sol6.54 KB
- lib/openzeppelin-contracts-compat/contracts/token/ERC20/IERC20.sol2.77 KB
- lib/openzeppelin-contracts-compat/contracts/token/ERC20/extensions/IERC20Metadata.sol683 B
- lib/openzeppelin-contracts-compat/contracts/utils/math/Math.sol12.51 KB
- lib/openzeppelin-contracts-compat/contracts/utils/math/SafeCast.sol35.08 KB
- lib/openzeppelin-contracts-upgradeable-compat/contracts/proxy/utils/Initializable.sol8.91 KB
- lib/openzeppelin-contracts-upgradeable-compat/contracts/token/ERC20/ERC20Upgradeable.sol12.23 KB
- lib/openzeppelin-contracts-upgradeable-compat/contracts/utils/ContextUpgradeable.sol1.19 KB
- src/core/PriceFeed.sol19.12 KB
- src/core/flamm/FLAMM.sol55.93 KB
- src/core/flamm/FLAMMAdmitLib.sol38.79 KB
- src/core/flamm/FLAMMBlindLib.sol60.72 KB
- src/core/flamm/FLAMMClaimLib.sol49.63 KB
- src/core/flamm/FLAMMClaimVault.sol1.65 KB
- src/core/flamm/FLAMMFenceLib.sol72.81 KB
- src/core/flamm/FLAMMFloatLib.sol62.2 KB
- src/core/flamm/FLAMMFlowLib.sol54.32 KB
- src/core/flamm/FLAMMGateLib.sol93.55 KB
- src/core/flamm/FLAMMKeptLib.sol45.86 KB
- src/core/flamm/FLAMMLane.sol70.59 KB
- src/core/flamm/FLAMMLawLib.sol61.53 KB
- src/core/flamm/FLAMMMaintainLib.sol42.7 KB
- src/core/flamm/FLAMMOpsLib.sol32.2 KB
- src/core/flamm/FLAMMPolicyLib.sol39.79 KB
- src/core/flamm/FLAMMQuoteLib.sol17 KB
- src/core/flamm/FLAMMSettleLib.sol43.2 KB
- src/core/flamm/FLAMMSharedLib.sol13.11 KB
- src/core/flamm/FLAMMStore.sol137.17 KB
- src/core/flamm/FLAMMSwapLib.sol55.86 KB
- src/core/flamm/FLAMMTopUpLib.sol52.56 KB
- src/core/mm/MMRouterAdminLib.sol24.07 KB
- src/core/mm/MMRouterLib.sol72.71 KB
- src/core/mm/VenueAccountBase.sol15.61 KB
- src/core/mm/VenueReads.sol2.05 KB
- src/interfaces/core/IDepositAllowlist.sol1.06 KB
- src/interfaces/core/IEverlongCore.sol889 B
- src/interfaces/core/IPriceFeed.sol3.71 KB
- src/interfaces/core/flamm/IFLAMM.sol52.68 KB
- src/interfaces/core/flamm/IFLAMMHooks.sol8.36 KB
- src/interfaces/core/flamm/IHookCapabilities.sol2.63 KB
- src/interfaces/core/flamm/IPairHook.sol14.14 KB
- src/interfaces/core/mm/IAccountDeployer.sol3.04 KB
- src/interfaces/core/mm/IFinancingAccount.sol47.32 KB
- src/interfaces/core/mm/IHeldRepay.sol2.61 KB
- src/interfaces/core/mm/IMMRouter.sol70.37 KB
- src/interfaces/utils/integrations/IAggregatorV3Interface.sol818 B
- src/libraries/Constants.sol2.11 KB
- src/libraries/DelayLib.sol11.22 KB
- src/libraries/ReentrancyGuardLib.sol2.52 KB
- src/libraries/SafeTransferLib.sol5.11 KB
- src/propamm/libraries/PropAMMLaneLib.sol2.31 KB
src/core/flamm/FLAMMRoute.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2025-2026 Everlong Labs Limited
pragma solidity ^0.8.26;
import {
FLAMMStore, Paused, FeatureDisabled, OutputAboveCeiling, CustodyMismatch, PairNotTradable, NotFront, NotDebtFree,
NotionalCap
} from "src/core/flamm/FLAMMStore.sol";
import {FLAMMLane, _e, _eArg, _fail} from "src/core/flamm/FLAMMLane.sol";
import {FLAMMSwapLib} from "src/core/flamm/FLAMMSwapLib.sol";
import {ReentrancyGuardLib} from "src/libraries/ReentrancyGuardLib.sol";
import {PropAMMLaneLib} from "src/propamm/libraries/PropAMMLaneLib.sol";
/// @notice The cheap lane over a pair past the hook pair: a fill its front prices, settled from tracked custody, never
/// touching the lender, as the hook pair's is (`FLAMMLane.fill`, which `FLAMMFront` compiles in). A bid takes
/// the base and pays the quote, an ask takes the quote and pays the base.
/// @dev `FLAMMFront` hands this library every side-and-pair word (`IFLAMMLane`) but the hook pair's two (0 and 1), and
/// the fill and the view their calls' own calldata ({fillFromFront}, {laneStateOf}: the entries' own selectors).
/// It takes a word whose only bits are the side and the pair, the pair's base (bits 8-11) and quote (bits 12-15)
/// two distinct listed tokens not both of the hook pair, and refuses any other.
///
/// One predicate serves the fill and its view ({_open}), so a quote never promises what the pool would refuse:
/// - the cheap-fill bit, the cheap lane's birth bit (`FLAMMStore.SWAP_LANE`), the pool asset's direction bits
/// (`FEATURE_SWAP_SELL` for it in, `FEATURE_SWAP_BUY` for it out), and the ordered pair in the curator's trade
/// mask, in `S.lanePairs` (the pairs the cheap lane may settle, never a pair a pair hook prices) and priced by
/// the front as the pool last asked (`S.hookPairs`: a listing the front retires closes here too once anyone
/// resyncs, `FLAMMFloatLib.syncListings`), the last two read as one stored word (`S.routePairs`);
/// - the pool unpaused: no fill past the hook pair runs paused, as no swap past it does;
/// - the debt rule, which reads no price (`FLAMMLane.pays`), on a pool with a band: none on a custody-blind pool
/// outside strict mode, whose gate reads no custody;
/// - the payout within the out token's custody less the spread fee owed in it, and within what holds its
/// notional part where the part is owed in it (`FLAMMStore.reserved`).
///
/// Then each token's notional cap on its own leg (the pool asset's where it is set), net of the room the pair's
/// notional floor needs beside a payout under it (`FLAMMStore.reservedCap`), the out token's outflow bucket (a
/// side of `laneWord` for tokens 0 and 1, `S.laneTok` from token 2 on), and the spread fee: the pool's rate of
/// the fill's edge against its fee price, `pullPrice36`, in the pair's quote, bounded as the hook pair's is (at
/// the pair's band, `FLAMMStore.pairBand`) and at least the pair's notional rate of the quote leg
/// (`FLAMMStore.notional`), owed in kind: token 1's in `laneWord`, any other's in its record (`FLAMMLane.record`).
///
/// Where the pool sets an operator's share (`FLAMMStore.OPERATOR_SHARE`), the fill books the share beside the
/// part, in the quote, the desk's edge at the pair's band its base (`FLAMMLane.cheapShare`).
///
/// A fill writes the two tokens' custody, the out token's bucket word, where the fee is owed in another word,
/// that word, and the operator's counter where it books a share.
library FLAMMRoute {
/// @dev The side-and-pair word's bits: the side and the pair's two indices; every other bit is refused.
uint256 private constant SIDE_PAIR_BITS = 0xff01;
// ------------------------------------------------------------------ the fill
/// @notice `IFLAMMLane.fillFromFront` on a pair past the hook pair: checks the caller (the pool's front, its swap
/// hook), the lock, the word, the predicate ({_open}), the payout within custody less the fee owed in it,
/// the input received (`balanceOf` at least tracked custody plus `amountIn`, exactly `amountIn` credited),
/// each token's notional cap net of the floor's room as {laneStateOf} reads it, the out token's bucket;
/// then writes the custody of both tokens and the bucket, books the spread fee (and the operator's share
/// beside it, where the pool sets one), pays `recipient`, neither zero nor the pool (`FLAMMLane.payOut`),
/// and reconciles the out token. It logs nothing itself: the front's `PoolFill` records the fill, with the
/// part it booked and its recipient.
function fillFromFront(
uint256 sidePair,
uint256 amountIn,
uint256 amountOut,
address recipient,
uint256 pullPrice36
) public returns (uint256 fee) {
FLAMMStore.S storage $ = FLAMMStore.s();
if (msg.sender != $.invariantHook) revert NotFront();
ReentrancyGuardLib._guard();
(bool ok, bool bid, uint256 x, uint256 y, uint256 q) = _pair($, sidePair);
if (!ok) revert PairNotTradable();
uint256 hy = FLAMMStore.heldOf($, y);
uint256 rate;
{
uint256 err;
uint256 cash;
(err, cash, rate) = _open($, x, y, hy, q == y);
if (err != 0) _fail(err);
if (amountOut > cash) revert OutputAboveCeiling();
}
uint256 hx = FLAMMStore.heldOf($, x);
if (FLAMMStore.balanceOfThis(FLAMMStore.tokenOf($, x)) < hx + amountIn) revert CustodyMismatch();
uint256 cap = FLAMMStore.reservedCap(FLAMMSwapLib._cap($, x), uint16(rate));
if (cap != 0 && amountIn > cap) revert NotionalCap();
cap = FLAMMStore.reservedCap(FLAMMSwapLib._cap($, y), uint16(rate));
if (cap != 0 && amountOut > cap) revert NotionalCap();
(hx, hy) = (hx + amountIn, hy - amountOut);
fee = _fee($, bid, bid ? x : y, q, amountIn, amountOut, pullPrice36, q == y ? hy : hx, uint16(rate));
// the operator's share past the part, where the pool sets one (its bit above the rate's 16 bits,
// {_open}), owed with it in the quote ({_share}); none, at no read, where it sets none
FLAMMLane.book(
$,
y,
q,
amountOut,
rate >> 16 == 0
? fee
: fee + _share($, bid, bid ? x : y, q, amountIn, amountOut, pullPrice36, fee, q == y ? hy : hx)
);
FLAMMStore.setHeld($, x, hx);
FLAMMStore.setHeld($, y, hy);
FLAMMLane.payOut(FLAMMStore.tokenOf($, y), recipient, amountOut, hy);
}
/// @notice `IFLAMMLane.laneStateOf` on a pair past the hook pair: the most of the out token a fill may pay now
/// (zero where the predicate refuses), and the in token's notional cap, the most a fill may take (zero:
/// uncapped). All zero for a word the fill refuses, and while a flow of the pool holds its lock: its
/// custody is half-applied then.
/// @dev - `room`: the lower of the out token's custody less the fee owed in it and its bucket refilled to now, both
/// net of the part the pair's notional floor needs beside the payout at the pair's rate
/// (`FLAMMStore.reserved`; custody holds that part already where it is owed in the out token), as the
/// pool's own swap pays both from the bucket and custody, so the room lands on every route of the pair, and
/// its notional cap; the cheap fill ({fillFromFront}) takes up to the raw room, and one unit past it
/// refuses.
/// - Each cap reads net of the room the pair's notional floor needs beside a payout under it
/// (`FLAMMStore.reservedCap`), as the pool's own swap reads a cap on its payout, so a route that takes
/// either cap as its out cap stays within that swap's ceiling, a one-unit cap aside; the fill takes up to
/// each cap net of the floor's room, as this reports.
function laneStateOf(uint256 sidePair) public view returns (uint256 room, uint256 maxIn) {
if (ReentrancyGuardLib._guardHeld()) return (0, 0);
FLAMMStore.S storage $ = FLAMMStore.s();
(bool ok,, uint256 x, uint256 y, uint256 q) = _pair($, sidePair);
if (!ok) return (0, 0);
(uint256 err, uint256 cash, uint256 rate) = _open($, x, y, FLAMMStore.heldOf($, y), q == y);
// the predicate reads the pair's rate only where it passes, the share's bit above its 16 bits there
rate = err != 0 ? FLAMMStore.notionalRate($, x, y) : uint16(rate);
maxIn = FLAMMStore.reservedCap(FLAMMSwapLib._cap($, x), rate);
if (err != 0) return (0, maxIn);
// net of the part beside the payout, as the pool's own swap pays both from the bucket and custody (custody
// is net already where the part is owed in `y`)
room = FLAMMStore.reserved(FLAMMLane.roomOf($, y), rate);
if (q != y) cash = FLAMMStore.reserved(cash, rate);
if (cash < room) room = cash;
uint256 cap = FLAMMStore.reservedCap(FLAMMSwapLib._cap($, y), rate);
if (cap != 0 && cap < room) room = cap;
}
/// @notice The cheap lane's debt rule (`FLAMMLane.pays`) as a linked entry, for the hook pair's fill and view on a
/// two-sided pool and on a custody-blind one in strict mode, which `FLAMMFront` compiles in: one-sided
/// pools keep their own rule there, and this keeps the rule out of the front's code.
/// @dev Its caller checks the pause first (`FLAMMLane._side`), on both sides of a custody-blind pool
/// (`FLAMMStore.CUSTODY_BLIND`), whose pause stops every side of every pair whatever strict mode and the debts
/// say: the fill refuses it with `Paused`, and the view reads it closed. Outside strict mode a custody-blind
/// pool takes no rule, so the caller skips this there, as its gate reads none of the custody a fill moves
/// (`FLAMMBlindLib.blindGate`); strict mode keeps the rule there too, the guardian's brake beside the pause.
/// Its selector sorts after this library's two hot entries.
function pays(uint256 x, uint256 y) public view returns (bool) {
return FLAMMLane.pays(FLAMMStore.s(), x, y);
}
/// @notice The operator's share of the hook pair's cheap fill (`FLAMMLane.fill`), which `FLAMMFront` compiles in:
/// `FLAMMLane.cheapShare` in token 1 at token 1's band, booked, for the fill to owe with its part `pf`
/// (`room`: the custody of token 1 the fill leaves beside the accrual). The fill calls it only where the
/// pool sets a share, so a pool that sets none pays no call, and this keeps the share out of the front's
/// code. Its selector sorts after this library's two hot entries.
function laneShare(bool bid, uint256 amountIn, uint256 amountOut, uint256 p36, uint256 pf, uint256 room)
public
returns (uint256)
{
FLAMMStore.S storage $ = FLAMMStore.s();
return FLAMMLane.cheapShare($, bid, 1, amountIn, amountOut, p36, $.tokens[1].swapPriceBandWad, pf, room);
}
// ------------------------------------------------------------------ the pair and the predicate
/// @dev The word's side and pair: `ok` where only its side and pair bits are set and the pair is two distinct
/// listed tokens not both of the hook pair; the token the pool receives (`x`), the one it pays (`y`), and the
/// quote.
function _pair(FLAMMStore.S storage $, uint256 sidePair)
private
view
returns (bool ok, bool bid, uint256 x, uint256 y, uint256 q)
{
if (sidePair & ~SIDE_PAIR_BITS != 0) return (false, false, 0, 0, 0);
(uint256 base, uint256 quote) = ((sidePair >> 8) & 0xf, sidePair >> 12);
uint256 n = $.tokenCount;
if (base >= n || quote >= n || base == quote || (base | quote) < 2) return (false, false, 0, 0, 0);
bid = sidePair & 1 != 0;
(ok, x, y, q) = bid ? (true, base, quote, quote) : (true, quote, base, quote);
}
/// @dev The predicate of a fill paying `y` (custody `hy`) for `x`: zero and the custody of `y` less the spread fee
/// owed in it, within what holds the fill's notional part where it is owed in `y` (`owedInY`;
/// `FLAMMStore.reserved`), else the error word of its first refusal; the pair's notional rate
/// (`FLAMMStore.rateOf`, read where one is set), which the fill floors its part with; and the pool's
/// features, whose share bit the fill reads (`FLAMMStore.OPERATOR_SHARE`).
function _open(FLAMMStore.S storage $, uint256 x, uint256 y, uint256 hy, bool owedInY)
private
view
returns (uint256 err, uint256 cash, uint256 rate)
{
(uint256 f, uint256 sb) = ($.features, $.swapBits);
if (sb & FLAMMStore.SWAP_LANE == 0 || f & FLAMMStore.FEATURE_CHEAP_FILL == 0) {
return (_eArg(FeatureDisabled.selector, 6), 0, 0);
}
if (x == 0 && f & FLAMMStore.FEATURE_SWAP_SELL == 0) return (_eArg(FeatureDisabled.selector, 1), 0, 0);
if (y == 0 && f & FLAMMStore.FEATURE_SWAP_BUY == 0) return (_eArg(FeatureDisabled.selector, 2), 0, 0);
if ((($.tradePairs & $.routePairs) >> (16 * x + y)) & 1 == 0) return (_e(PairNotTradable.selector), 0, 0);
if ($.paused) return (_e(Paused.selector), 0, 0);
// a custody-blind pool outside strict mode takes no debt rule (`FLAMMLane.pays`)
if (!$.noBand && (f & FLAMMStore.CUSTODY_BLIND == 0 || $.laneWord & FLAMMStore.LANE_STRICT != 0)) {
if (!FLAMMLane.pays($, x, y)) return (_e(NotDebtFree.selector), 0, 0);
}
uint256 owed = FLAMMStore.feeOwed($, y);
cash = hy > owed ? hy - owed : 0;
if (sb & FLAMMStore.SWAP_NOTIONAL != 0) {
rate = FLAMMStore.rateOf($.feeRates, x, y);
if (owedInY) cash = FLAMMStore.reserved(cash, rate);
}
// the share's bit above the rate's 16 bits, for the fill ({fillFromFront})
rate |= (f & FLAMMStore.OPERATOR_SHARE) << 2;
}
/// @dev The operator's share of a route fill (`FLAMMLane.cheapShare`) past its part `fee` in the quote `q`: the
/// desk's edge at the pair's band (`base` and `q`, `FLAMMStore.pairBand`) its base, within `hq`, the quote's
/// custody after the fill, beside the fee already owed in it.
function _share(
FLAMMStore.S storage $,
bool bid,
uint256 base,
uint256 q,
uint256 amountIn,
uint256 amountOut,
uint256 p36,
uint256 fee,
uint256 hq
) private returns (uint256) {
uint256 owed = FLAMMStore.feeOwed($, q);
return FLAMMLane.cheapShare(
$, bid, q, amountIn, amountOut, p36, FLAMMStore.pairBand($, base, q), fee, hq > owed ? hq - owed : 0
);
}
// ------------------------------------------------------------------ the fee
/// @dev The protocol's part in the quote `q`: the pool's rate of the fill's edge against its fee price
/// (`PropAMMLaneLib.spreadFee`, in the quote), bounded at the pair's band (`base` and `q`) of the quote leg
/// (`FLAMMLane.boundFee`), at least the notional part of the leg at the pair's notional rate `rate`, and at
/// most the quote's custody after the fill (`hq`) beside the fee already owed in it, so every fee booked is
/// held: the protocol forgoes the rest. None of these moves a payout or a room. No edge and no rate: none,
/// at no read of the band or the fee owed.
function _fee(
FLAMMStore.S storage $,
bool bid,
uint256 base,
uint256 q,
uint256 amountIn,
uint256 amountOut,
uint256 p36,
uint256 hq,
uint256 rate
) private view returns (uint256 fee) {
uint256 bp = $.spreadFeeBp;
fee = PropAMMLaneLib.spreadFee(bid, amountIn, amountOut, p36, bp * 100);
if (fee == 0 && rate == 0) return 0;
uint256 owed = FLAMMStore.feeOwed($, q);
fee = FLAMMLane.boundFee(
fee, bid ? amountOut : amountIn, FLAMMStore.pairBand($, base, q), bp, bid, rate, hq > owed ? hq - owed : 0
);
}
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {
"src/core/mm/MMRouterLib.sol": {
"MMRouterLib": "0x95b386d242c061ab2551a0d294c94dfe3948ef2c"
},
"src/core/flamm/FLAMMLane.sol": {
"FLAMMLane": "0x5d81d4a7cfd40c3dfe9e009212545608be90de37"
},
"src/core/flamm/FLAMMRoute.sol": {
"FLAMMRoute": "0xb1ffeae12c53f876aa0e495e9c00c829f47fb0fe"
},
"src/periphery/FLAMMMaxima.sol": {
"FLAMMMaxima": "0x68546ce65986354c5394e4bc2f28027ef490a91b"
},
"src/core/flamm/FLAMMLawLib.sol": {
"FLAMMLawLib": "0xf55c5807b6fbe5555443fd6ddbbd52079849cf45"
},
"src/core/flamm/FLAMMOpsLib.sol": {
"FLAMMOpsLib": "0x0be7fdb3d611b05df90a61778a644654735ecc47"
},
"src/core/mm/AaveV3ReadsLib.sol": {
"AaveV3ReadsLib": "0xa5db415d1af2158dd0a4a3c9c1eada277472803e"
},
"src/core/flamm/FLAMMFlowLib.sol": {
"FLAMMFlowLib": "0x27957f4ddf818de39a1c9dba0bf273a5994cfb77"
},
"src/core/flamm/FLAMMGateLib.sol": {
"FLAMMGateLib": "0x3a05779218510235badcbddcdd78732a16434368"
},
"src/core/flamm/FLAMMKeptLib.sol": {
"FLAMMKeptLib": "0x70cace9076ac8dd6a691ced2f9aa62a5c360bee4"
},
"src/core/mm/CTokenMarketLib.sol": {
"CTokenMarketLib": "0x60e4ab6b6ba72325c58924ee7753b14b37314010"
},
"src/core/flamm/FLAMMAdmitLib.sol": {
"FLAMMAdmitLib": "0x0b107b1f0c64f3716554ccc83b53e492e51ce950"
},
"src/core/flamm/FLAMMBlindLib.sol": {
"FLAMMBlindLib": "0x634d5a14c42fb5bec82a7aea32bf636a8d298fcd"
},
"src/core/flamm/FLAMMClaimLib.sol": {
"FLAMMClaimLib": "0x5dc3bb30c60390ce9522b7e3ca315dd334aa7e91"
},
"src/core/flamm/FLAMMFenceLib.sol": {
"FLAMMFenceLib": "0x9dbba0cbd9d7883f4eedd1c8e08780fac4798f1a"
},
"src/core/flamm/FLAMMFloatLib.sol": {
"FLAMMFloatLib": "0x6b2b25ebba12e78afea697b9ac6d2167a6518935"
},
"src/core/flamm/FLAMMQuoteLib.sol": {
"FLAMMQuoteLib": "0x99de54a108c64ebe23ac7766901c199a91929869"
},
"src/core/flamm/FLAMMTopUpLib.sol": {
"FLAMMTopUpLib": "0xe4be161081d1c9aa91951ca347cc99da35cfac2e"
},
"src/core/mm/CTokenRewardsLib.sol": {
"CTokenRewardsLib": "0x93ab647215a9f9f1050302a76506afcbc0262861"
},
"src/core/mm/MMRouterAdminLib.sol": {
"MMRouterAdminLib": "0x6abb06b1e9cba80888992d366913bb9b7760ea7e"
},
"src/core/flamm/FLAMMPolicyLib.sol": {
"FLAMMPolicyLib": "0x3858e2202cebcb6f12f36a596260dd2ed8f91f06"
},
"src/core/flamm/FLAMMSettleLib.sol": {
"FLAMMSettleLib": "0x4551cddb1de95f5452f6a0f836e047e01833b301"
},
"src/core/flamm/FLAMMSharedLib.sol": {
"FLAMMSharedLib": "0xb852d9cbdda85cbed7da0885bca2714ba1b71005"
},
"src/periphery/FLAMMExitMaxima.sol": {
"FLAMMExitMaxima": "0x6a6a3ff1e834dbbf07dee472e07d1ca977798659"
},
"src/hooks/everlong/LeverageLib.sol": {
"LeverageLib": "0x80396f9f894cc3060dfaa7468c4f576e8b16d055"
},
"src/core/flamm/FLAMMMaintainLib.sol": {
"FLAMMMaintainLib": "0xaa5434e13eb54f37c577229efc981cceceb56417"
},
"src/core/flamm/FLAMMPairQuoteLib.sol": {
"FLAMMPairQuoteLib": "0x3bc57bc05cc9dd1fe18106add8ffc060882055dd"
},
"src/hooks/everlong/EverlongOpsLib.sol": {
"EverlongOpsLib": "0xf6d56f4ed6a7c441fd96c53a327026bac19dfeef"
}
},
"optimizer": {
"runs": 100,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable-compat/contracts/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts-compat/contracts/",
"forge-std/=lib/forge-std/src/",
"solady/=lib/solady/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.