Verified contractExactUNLICENSED
FLAMMRoute
Address0x312ee92ecd113f925dd513d450b062c8740fdaa9
- 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,396,557
- Creation transaction
- 0x1d74ac8efa…0eb65348d4
- Libraries
- src/core/mm/MMRouterLib.sol:MMRouterLib0xa474…d2b4e5src/core/flamm/FLAMMLane.sol:FLAMMLane0x0988…d22e98src/core/flamm/FLAMMRoute.sol:FLAMMRoute0x312e…0fdaa9src/periphery/FLAMMMaxima.sol:FLAMMMaxima0x4a99…d6259csrc/core/flamm/FLAMMLawLib.sol:FLAMMLawLib0x5d47…27cc62src/core/flamm/FLAMMOpsLib.sol:FLAMMOpsLib0x0bfe…043753src/core/mm/AaveV3ReadsLib.sol:AaveV3ReadsLib0xd53f…ed5983src/core/flamm/FLAMMFlowLib.sol:FLAMMFlowLib0x2577…4e3473src/core/flamm/FLAMMGateLib.sol:FLAMMGateLib0xf0be…2b9555src/core/flamm/FLAMMKeptLib.sol:FLAMMKeptLib0x7a11…58517bsrc/core/mm/CTokenMarketLib.sol:CTokenMarketLib0x18c5…b2071csrc/core/flamm/FLAMMAdmitLib.sol:FLAMMAdmitLib0xa6db…bdcbcbsrc/core/flamm/FLAMMBlindLib.sol:FLAMMBlindLib0x0b8d…2e7e5csrc/core/flamm/FLAMMClaimLib.sol:FLAMMClaimLib0x02b4…731ccesrc/core/flamm/FLAMMFenceLib.sol:FLAMMFenceLib0xa16d…a201e8src/core/flamm/FLAMMFloatLib.sol:FLAMMFloatLib0x539e…a79737src/core/flamm/FLAMMQuoteLib.sol:FLAMMQuoteLib0xa4d3…d5ce2esrc/core/flamm/FLAMMTopUpLib.sol:FLAMMTopUpLib0x7c55…d233dfsrc/core/mm/CTokenRewardsLib.sol:CTokenRewardsLib0xcda6…a4dcf7src/core/mm/MMRouterAdminLib.sol:MMRouterAdminLib0x8423…7adc96src/core/flamm/FLAMMPolicyLib.sol:FLAMMPolicyLib0xa6b4…0c67f9src/core/flamm/FLAMMSettleLib.sol:FLAMMSettleLib0xb489…d3c7cbsrc/core/flamm/FLAMMSharedLib.sol:FLAMMSharedLib0xfaae…2511basrc/periphery/FLAMMExitMaxima.sol:FLAMMExitMaxima0x480f…4e0a81src/hooks/everlong/LeverageLib.sol:LeverageLib0x1b1d…40ad11src/core/flamm/FLAMMMaintainLib.sol:FLAMMMaintainLib0x9499…409cc2src/core/flamm/FLAMMPairQuoteLib.sol:FLAMMPairQuoteLib0x0775…d94cbesrc/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/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.sol54.32 KB
- src/core/flamm/FLAMMAdmitLib.sol37.26 KB
- src/core/flamm/FLAMMBlindLib.sol41.3 KB
- src/core/flamm/FLAMMClaimLib.sol49.42 KB
- src/core/flamm/FLAMMClaimVault.sol1.65 KB
- src/core/flamm/FLAMMFenceLib.sol72.83 KB
- src/core/flamm/FLAMMFloatLib.sol57.91 KB
- src/core/flamm/FLAMMFlowLib.sol55.24 KB
- src/core/flamm/FLAMMGateLib.sol87.39 KB
- src/core/flamm/FLAMMKeptLib.sol45.59 KB
- src/core/flamm/FLAMMLane.sol70.27 KB
- src/core/flamm/FLAMMLawLib.sol60.67 KB
- src/core/flamm/FLAMMMaintainLib.sol41.67 KB
- src/core/flamm/FLAMMOpsLib.sol32.2 KB
- src/core/flamm/FLAMMPolicyLib.sol39.49 KB
- src/core/flamm/FLAMMQuoteLib.sol16.89 KB
- src/core/flamm/FLAMMSettleLib.sol42.92 KB
- src/core/flamm/FLAMMSharedLib.sol13.11 KB
- src/core/flamm/FLAMMStore.sol135.42 KB
- src/core/flamm/FLAMMSwapLib.sol55.65 KB
- src/core/flamm/FLAMMTopUpLib.sol48.97 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.sol2.99 KB
- src/interfaces/core/mm/IFinancingAccount.sol46.04 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": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"libraries": {
"src/core/mm/MMRouterLib.sol": {
"MMRouterLib": "0xA4749766934833DfBeaF4Fc0d79c150A1Dd2B4E5"
},
"src/core/flamm/FLAMMLane.sol": {
"FLAMMLane": "0x0988077AB06F1efd8cFa3f08FC60CAf3e6d22e98"
},
"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": "0x0BFe60fB1f5223F1A2b7B02Ef18f5C33fb043753"
},
"src/core/mm/AaveV3ReadsLib.sol": {
"AaveV3ReadsLib": "0xD53F6170226A74D453e84414Ffc2FFcE5ded5983"
},
"src/core/flamm/FLAMMFlowLib.sol": {
"FLAMMFlowLib": "0x2577D707D41209489b2EF53101a4f6baDd4E3473"
},
"src/core/flamm/FLAMMGateLib.sol": {
"FLAMMGateLib": "0xF0BE115A2D6F27274F2e9EE50B89Ed42db2B9555"
},
"src/core/flamm/FLAMMKeptLib.sol": {
"FLAMMKeptLib": "0x7a11899232dd9F17c28bF062Ec2ee2267158517b"
},
"src/core/mm/CTokenMarketLib.sol": {
"CTokenMarketLib": "0x18c53F2aCAbcDEEdb575A136f49fa4C43EB2071c"
},
"src/core/flamm/FLAMMAdmitLib.sol": {
"FLAMMAdmitLib": "0xA6dBD8cD5Cd10F8a5857cbeD54a28405ffbDcBCb"
},
"src/core/flamm/FLAMMBlindLib.sol": {
"FLAMMBlindLib": "0x0b8d436F1a7AE25C5d16955ed4CDa781E42e7E5C"
},
"src/core/flamm/FLAMMClaimLib.sol": {
"FLAMMClaimLib": "0x02b4354a56630ab165A880B1198a603E62731cCE"
},
"src/core/flamm/FLAMMFenceLib.sol": {
"FLAMMFenceLib": "0xA16ddA83f47a42F875f141b6954595D584a201e8"
},
"src/core/flamm/FLAMMFloatLib.sol": {
"FLAMMFloatLib": "0x539EfC2b17cF0fdF254AAaB925b3A7c360A79737"
},
"src/core/flamm/FLAMMQuoteLib.sol": {
"FLAMMQuoteLib": "0xa4D34f4882a529574840881e755BCFae2bd5ce2e"
},
"src/core/flamm/FLAMMTopUpLib.sol": {
"FLAMMTopUpLib": "0x7C55a535Ce298b1e5e6d00F645088F777ad233DF"
},
"src/core/mm/CTokenRewardsLib.sol": {
"CTokenRewardsLib": "0xcda63d7eCCF838F2732Bff676706BDE5abA4DcF7"
},
"src/core/mm/MMRouterAdminLib.sol": {
"MMRouterAdminLib": "0x8423744b3F304ED0B43043d7ad4E7d8A247aDc96"
},
"src/core/flamm/FLAMMPolicyLib.sol": {
"FLAMMPolicyLib": "0xa6B495B2BdcDcf4F327844d9aaA0eD4C550c67F9"
},
"src/core/flamm/FLAMMSettleLib.sol": {
"FLAMMSettleLib": "0xB4890a27205505BDAA05717B6c3aB38b2dd3C7Cb"
},
"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": "0x94998f13fc5d5D2271c90b835c6a805dad409cC2"
},
"src/core/flamm/FLAMMPairQuoteLib.sol": {
"FLAMMPairQuoteLib": "0x077523D1427aE408105fe8592F907ECDa0D94cbE"
},
"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.