Skip to content
Verified contractExactUNLICENSED

PropAMMLander

Address0x6f98f444cdcb47f3db4cb82e9d5dbdd319417810
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,663
Creation transaction
0x28afb7356c…c47e31b876
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

src/periphery/lander/PropAMMLander.sol

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

import {CREATE3} from "solady/utils/CREATE3.sol";
import {IPropAMMLander} from "src/periphery/lander/IPropAMMLander.sol";

/// @notice One front's lander (`IPropAMMLander`): many desks' signed pushes, or registry updates, to a transaction,
///         each in a call of its own under the gas cap its entry names, and the print entry (`postAndLand`), which
///         posts prints to the front's price sources before it lands. Its bindings are immutable: deploy it once the
///         front's `CELL_CODEHASH` is final, and again after the front's registry moves (until then `landRegistry`
///         writes builder lanes no cell reads, which fails closed). The print entry reads no registry, so an older
///         lander's `postAndLand` keeps working after a move: publish the current lander's address.
/// @dev `postAndLand` calls only the front's own children: a source where the front's CREATE3 placed one (only the front
///      deploys there, by `registerSource`), and a cell where CREATE2 admits only the cell's init code, which never
///      self-destructs. A builder or indexer reads the desk from the call's first word and its cell from `cellOf`. The
///      least gas a call needs is set before any post by its caps and `pushGas`, so where `pushGas` covers the push a
///      simulation finds the same least gas whatever its posts meet.
///      An entry is ours when its desk's cell has code: CREATE2 admits only the cell's init code at that address and
///      the cell never self-destructs, so code there is the cell. A builder or indexer that wants a code hash takes the
///      per-front runtime hash published beside `CELL_CODEHASH`: keccak256 of the init code's runtime (init bytes 0x26
///      onward) with the front's address at runtime bytes 0x0b-0x2a, one value per front and chain.
contract PropAMMLander is IPropAMMLander {
    /// @inheritdoc IPropAMMLander
    address public immutable FRONT;
    /// @inheritdoc IPropAMMLander
    bytes32 public immutable CELL_CODEHASH;
    /// @inheritdoc IPropAMMLander
    address public immutable REGISTRY;

    /// @param front The front whose desks' cells this lander serves.
    /// @param registry The chain's priority-update registry, or 0 where the chain has none.
    constructor(address front, address registry) {
        if (front.code.length == 0) revert BadFront();
        (bool ok, bytes memory ret) = front.staticcall(abi.encodeWithSelector(IPropAMMLander.CELL_CODEHASH.selector));
        if (!ok || ret.length != 32) revert BadFront();
        bytes32 hash = abi.decode(ret, (bytes32));
        if (hash == 0) revert BadFront();
        if (registry != address(0) && registry.code.length == 0) revert NoRegistry();
        FRONT = front;
        CELL_CODEHASH = hash;
        REGISTRY = registry;
    }

    /// @inheritdoc IPropAMMLander
    function PUSH_TAG() external pure returns (bytes4) {
        return 0x50555348;
    }

    /// @inheritdoc IPropAMMLander
    function cellOf(uint32 desk) external view returns (address) {
        return _cellOf(desk);
    }

    /// @inheritdoc IPropAMMLander
    function sourceOf(uint32 id) external view returns (address) {
        return CREATE3.predictDeterministicAddress(bytes32(uint256(id)), FRONT);
    }

    /// @inheritdoc IPropAMMLander
    function land(bytes calldata entries) external returns (uint256 reached, uint256 landed) {
        (reached, landed) = _run(entries, address(0));
    }

    /// @inheritdoc IPropAMMLander
    function landRegistry(bytes calldata entries) external returns (uint256 reached, uint256 landed) {
        address registry = REGISTRY;
        if (registry == address(0)) revert NoRegistry();
        (reached, landed) = _run(entries, registry);
    }

    /// @inheritdoc IPropAMMLander
    /// @dev The list is read whole and the gas checked before any post. A callee asked for x gets it whenever
    ///      x + ceil(x / 63) is left at the call (EIP-150): each post is asked for its cap, and 9,000 + 2 L more covers
    ///      the source's cold account, its address hash, the copy and the memory; the push is given all the gas left,
    ///      at least `pushGas` where 9,000 + 2 E more covers the event, the copy and the memory, E the entry's length.
    ///      So once the check passes, no post's outcome, stored or a no-op, leaves a later post short of its cap or the
    ///      push short of `pushGas`. An entry without the push's tag, or a desk with no cell, refuses before any post;
    ///      an entry the cell refuses, a tag alone among them, reverts after the posts and undoes them.
    function postAndLand(uint32 desk, uint24 pushGas, bytes calldata prints, bytes calldata entry)
        external
        returns (uint256 refused)
    {
        if (entry.length < 4 || bytes4(entry[:4]) != 0x50555348) revert NotAPush();
        address cell = _cellOf(desk);
        if (cell.code.length == 0) revert NoCell();
        address front = FRONT;
        assembly ("memory-safe") {
            // the budget, the push's then each print's, summed as the list is read: its shape refuses first
            let need := add(add(pushGas, div(add(pushGas, 62), 63)), add(9000, shl(1, entry.length)))
            let p := prints.offset
            let rem := prints.length
            let n := 0
            for {} rem { n := add(n, 1) } {
                // the header: [0-4] the CREATE3 salt, the source's id | [5] flags | [6-8] the cap | [9-10] L
                let head := calldataload(p)
                let l := and(shr(168, head), 0xffff)
                if or(or(lt(rem, 11), eq(n, 256)), gt(add(11, l), rem)) {
                    mstore(0, shl(224, 0xa61c28fc)) // BadPrints()
                    revert(0, 4)
                }
                let cap := and(shr(184, head), 0xffffff)
                need := add(need, add(add(cap, div(add(cap, 62), 63)), add(9000, shl(1, l))))
                p := add(p, add(11, l))
                rem := sub(rem, add(11, l))
            }
            if lt(gas(), need) {
                mstore(0, shl(224, 0x882f2cb8)) // GasShort()
                revert(0, 4)
            }
            // the posts, in order, each under its cap
            let buf := mload(0x40)
            p := prints.offset
            for { let j := 0 } lt(j, n) { j := add(j, 1) } {
                let head := calldataload(p)
                let l := and(shr(168, head), 0xffff)
                let cap := and(shr(184, head), 0xffffff)
                // the source: keccak256(0xd6 0x94 ‖ proxy ‖ 0x01), the proxy the front's CREATE2 child at the salt (the
                // id) under the CREATE3 proxy's init-code hash (`CREATE3.PROXY_INITCODE_HASH`)
                mstore(buf, front)
                mstore8(add(buf, 0x0b), 0xff)
                mstore(add(buf, 0x20), shr(216, head))
                mstore(add(buf, 0x40), 0x21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f)
                mstore(add(buf, 0x14), keccak256(add(buf, 0x0b), 0x55))
                mstore(buf, 0xd694)
                mstore8(add(buf, 0x34), 0x01)
                let src := and(keccak256(add(buf, 0x1e), 0x17), 0xffffffffffffffffffffffffffffffffffffffff)
                let q := add(p, 11)
                p := add(q, l)
                let ok := 0
                if extcodesize(src) {
                    // post(bytes,bool), both kept-print sources' form: the update at offset 0x40, then verify, flags
                    // bit 0
                    mstore(buf, shl(224, 0xde015fde))
                    mstore(add(buf, 0x04), 0x40)
                    mstore(add(buf, 0x24), and(byte(5, head), 1))
                    mstore(add(buf, 0x44), l)
                    calldatacopy(add(buf, 0x64), q, l)
                    ok := call(cap, src, 0, buf, add(0x64, l), 0, 0)
                }
                if iszero(ok) { refused := or(refused, shl(j, 1)) }
            }
        }
        if (refused != 0) emit PrintsRefused(refused);
        assembly ("memory-safe") {
            // the push, last, with all the gas left: its refusal reverts the whole call with the cell's revert data
            let buf := mload(0x40)
            calldatacopy(buf, entry.offset, entry.length)
            if iszero(call(gas(), cell, 0, buf, entry.length, 0, 0)) {
                returndatacopy(buf, 0, returndatasize())
                revert(buf, returndatasize())
            }
        }
    }

    /// @dev Desk `desk`'s cell: the low 20 bytes of keccak256(0xff ‖ FRONT ‖ (1 << 252 | desk) ‖ CELL_CODEHASH).
    function _cellOf(uint256 desk) internal view returns (address cell) {
        address front = FRONT;
        bytes32 hash = CELL_CODEHASH;
        assembly ("memory-safe") {
            let m := mload(0x40)
            mstore(m, or(shl(160, 0xff), front))
            mstore(add(m, 0x20), or(shl(252, 1), desk))
            mstore(add(m, 0x40), hash)
            cell := and(keccak256(add(m, 11), 85), 0xffffffffffffffffffffffffffffffffffffffff)
        }
    }

    /// @dev Takes the entries in order, each to its desk's cell (`registry` 0) or to `registry` as one signed update of
    ///      the desk's cell's builder lane, and logs `Landed`. An entry: [0-3] the desk | [4-6] the cap | [7-8] L |
    ///      [9, 9 + L) the payload, copied into one buffer every entry reuses. The list stops where an entry does not
    ///      fit what remains, at 256 entries, or where the gas left cannot give the next call its cap in full under
    ///      EIP-150: a callee asked for cap gets it whenever cap + ceil(cap / 63) is left at the call, and 9,000 + 2 L
    ///      more covers the two cold accounts, the address hash, the copy, the memory and the next header, so this call
    ///      never runs out of gas.
    function _run(bytes calldata entries, address registry) internal returns (uint256 reached, uint256 landed) {
        address front = FRONT;
        bytes32 hash = CELL_CODEHASH;
        assembly ("memory-safe") {
            let buf := mload(0x40)
            let p := entries.offset
            let rem := entries.length
            let j := 0
            for {} lt(j, 256) { j := add(j, 1) } {
                if lt(rem, 9) { break }
                let head := calldataload(p)
                let l := and(shr(184, head), 0xffff)
                if gt(add(9, l), rem) { break }
                let cap := and(shr(200, head), 0xffffff)
                if lt(gas(), add(add(cap, div(add(cap, 62), 63)), add(9000, shl(1, l)))) { break }
                let q := add(p, 9)
                p := add(q, l)
                rem := sub(rem, add(9, l))
                // land: a push the pusher signed, tag first and at least the tag, flags, F and the push's head long
                if iszero(registry) {
                    if or(lt(l, 55), iszero(eq(shr(224, calldataload(q)), 0x50555348))) { continue }
                }
                mstore(buf, or(shl(160, 0xff), front))
                mstore(add(buf, 0x20), or(shl(252, 1), shr(224, head)))
                mstore(add(buf, 0x40), hash)
                let cell := and(keccak256(add(buf, 11), 85), 0xffffffffffffffffffffffffffffffffffffffff)
                if iszero(extcodesize(cell)) { continue }
                let to := cell
                if registry {
                    // batchUpdateStateWithSignature with exactly one update, whose target and signer are the cell;
                    // every word read lies inside the payload, the bounds checked before any offset is added
                    if lt(l, 36) { continue }
                    if iszero(eq(shr(224, calldataload(q)), 0xe50de8ea)) { continue }
                    let o1 := calldataload(add(q, 4))
                    if iszero(lt(o1, l)) { continue }
                    let s := add(4, o1)
                    if gt(add(s, 64), l) { continue }
                    if iszero(eq(calldataload(add(q, s)), 1)) { continue }
                    let o2 := calldataload(add(q, add(s, 32)))
                    if iszero(lt(o2, l)) { continue }
                    let e := add(add(s, 32), o2)
                    if gt(add(e, 64), l) { continue }
                    if iszero(and(eq(calldataload(add(q, e)), cell), eq(calldataload(add(q, add(e, 32))), cell))) {
                        continue
                    }
                    to := registry
                }
                calldatacopy(buf, q, l)
                landed := or(landed, shl(j, call(cap, to, 0, buf, l, 0, 0)))
            }
            reached := j
        }
        emit Landed(reached, landed);
    }
}

lib/solady/src/utils/CREATE3.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Deterministic deployments agnostic to the initialization code.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CREATE3.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/CREATE3.sol)
/// @author Modified from 0xSequence (https://github.com/0xSequence/create3/blob/master/contracts/Create3.sol)
library CREATE3 {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                        CUSTOM ERRORS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Unable to deploy the contract.
    error DeploymentFailed();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      BYTECODE CONSTANTS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /**
     * -------------------------------------------------------------------+
     * Opcode      | Mnemonic         | Stack        | Memory             |
     * -------------------------------------------------------------------|
     * 36          | CALLDATASIZE     | cds          |                    |
     * 3d          | RETURNDATASIZE   | 0 cds        |                    |
     * 3d          | RETURNDATASIZE   | 0 0 cds      |                    |
     * 37          | CALLDATACOPY     |              | [0..cds): calldata |
     * 36          | CALLDATASIZE     | cds          | [0..cds): calldata |
     * 3d          | RETURNDATASIZE   | 0 cds        | [0..cds): calldata |
     * 34          | CALLVALUE        | value 0 cds  | [0..cds): calldata |
     * f0          | CREATE           | newContract  | [0..cds): calldata |
     * -------------------------------------------------------------------|
     * Opcode      | Mnemonic         | Stack        | Memory             |
     * -------------------------------------------------------------------|
     * 67 bytecode | PUSH8 bytecode   | bytecode     |                    |
     * 3d          | RETURNDATASIZE   | 0 bytecode   |                    |
     * 52          | MSTORE           |              | [0..8): bytecode   |
     * 60 0x08     | PUSH1 0x08       | 0x08         | [0..8): bytecode   |
     * 60 0x18     | PUSH1 0x18       | 0x18 0x08    | [0..8): bytecode   |
     * f3          | RETURN           |              | [0..8): bytecode   |
     * -------------------------------------------------------------------+
     */

    /// @dev The proxy initialization code.
    uint256 private constant _PROXY_INITCODE = 0x67363d3d37363d34f03d5260086018f3;

    /// @dev Hash of the `_PROXY_INITCODE`.
    /// Equivalent to `keccak256(abi.encodePacked(hex"67363d3d37363d34f03d5260086018f3"))`.
    bytes32 internal constant PROXY_INITCODE_HASH =
        0x21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      CREATE3 OPERATIONS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Deploys `initCode` deterministically with a `salt`.
    /// Returns the deterministic address of the deployed contract,
    /// which solely depends on `salt`.
    function deployDeterministic(bytes memory initCode, bytes32 salt)
        internal
        returns (address deployed)
    {
        deployed = deployDeterministic(0, initCode, salt);
    }

    /// @dev Deploys `initCode` deterministically with a `salt`.
    /// The deployed contract is funded with `value` (in wei) ETH.
    /// Returns the deterministic address of the deployed contract,
    /// which solely depends on `salt`.
    function deployDeterministic(uint256 value, bytes memory initCode, bytes32 salt)
        internal
        returns (address deployed)
    {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, _PROXY_INITCODE) // Store the `_PROXY_INITCODE`.
            let proxy := create2(0, 0x10, 0x10, salt)
            if iszero(proxy) {
                mstore(0x00, 0x30116425) // `DeploymentFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x14, proxy) // Store the proxy's address.
            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).
            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).
            mstore(0x00, 0xd694)
            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).
            deployed := keccak256(0x1e, 0x17)
            if iszero(
                mul( // The arguments of `mul` are evaluated last to first.
                    extcodesize(deployed),
                    call(gas(), proxy, value, add(initCode, 0x20), mload(initCode), 0x00, 0x00)
                )
            ) {
                mstore(0x00, 0x30116425) // `DeploymentFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Returns the deterministic address for `salt`.
    function predictDeterministicAddress(bytes32 salt) internal view returns (address deployed) {
        deployed = predictDeterministicAddress(salt, address(this));
    }

    /// @dev Returns the deterministic address for `salt` with `deployer`.
    function predictDeterministicAddress(bytes32 salt, address deployer)
        internal
        pure
        returns (address deployed)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, deployer) // Store `deployer`.
            mstore8(0x0b, 0xff) // Store the prefix.
            mstore(0x20, salt) // Store the salt.
            mstore(0x40, PROXY_INITCODE_HASH) // Store the bytecode hash.

            mstore(0x14, keccak256(0x0b, 0x55)) // Store the proxy's address.
            mstore(0x40, m) // Restore the free memory pointer.
            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).
            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).
            mstore(0x00, 0xd694)
            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).
            deployed := keccak256(0x1e, 0x17)
        }
    }
}

src/periphery/lander/IPropAMMLander.sol

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

/// @notice One front's lander: it carries pushes the desks' pushers signed, many desks to a transaction, each in a call
///         of its own with the gas its entry names, so one desk's refusal never stops another's. It also carries one
///         desk's update in one transaction (`postAndLand`): the vendor prints the desk's PRINT listings read, each
///         posted to its kept-print source, then the push its pusher signed at the desk's cell, so where this call is
///         the entry's first landing each print is kept before the desk's words land and before any trade later in the
///         block reads them. Ownerless, immutable, no storage and no funds; anyone may call it. It can do nothing its
///         caller could not do by calling the sources and the cell directly: anyone may post a print a source takes,
///         and anyone may land a push the pusher signed.
/// @dev Entries are packed back to back: [0-3] the desk (uint32) | [4-6] the gas cap of its call (uint24) | [7-8] L,
///      the payload's length (uint16) | [9, 9 + L) the payload.
///      - `land` sends each payload to the desk's cell as a push the pusher signed (it begins with the tag 0x50555348).
///      - `landRegistry`, on a chain with a priority-update registry, sends it to the registry as one signed update of
///        the desk's cell's builder lane.
///      - Entries are taken in order until the list ends, an entry does not fit what remains, 256 are taken, or the gas
///        left cannot give the next entry its cap in full: the gas a submitter sets only cuts the list, in its order.
///      Prints (`postAndLand`) are packed back to back: [0-4] its source's id, the CREATE3 salt (uint40, an id under
///      2^32) | [5] flags | [6-8] the gas cap of its post (uint24) | [9-10] L, the update's length (uint16) |
///      [11, 11 + L) the vendor's update; at most 256. The flags:
///      - bit 0: `verify` in the post both kept-print sources take, `post(update, verify)` (a pair's `PrintLaneSource`,
///        a stock pair's `PythEquitySource`). Set, the source asks the vendor's verifier even for its pinned key. Clear,
///        the source decides: its pinned key's print, until and at the pin's end, is kept on the pin alone (on a stock
///        pair's source only where the print is quiet and within half the source's gap of the verified print, beside
///        the verified record, which it leaves as it was), and any other signer, or the pinned key after the pin's end,
///        is asked of the verifier. A stock pair's source asks it for every print it cannot keep on the pin, among them
///        its first print past half the gap, so a stock post's cap covers the verifier's path whatever bit 0 says: one
///        sized for the pin alone is refused there, the verified record stops and the stock's listing goes dark.
///      - Bits 1-7 are ignored, and a form the source lacks is refused.
///      The rules:
///      - Each print goes to its source where the front's fills find it, the front's CREATE3 child at salt id
///        (`registerSource`), in its flags' form under its cap.
///      - Before any post, the call reverts `GasShort` unless the gas left assures each post its cap and the push its
///        `pushGas`: for each, x + ceil(x / 63) under EIP-150, plus 9,000 + 2 B for the call around it, B the bytes it
///        carries (L for a post, the entry's length for the push). So the gas a caller sets never decides a post, nor
///        whether the push gets `pushGas`, and where `pushGas` covers the push the least gas a call needs is the same
///        whether its posts store or are no-ops. The push still gets all the gas left. The sum must also fit the
///        chain's limit on one transaction's gas (2^24 on Ethereum, EIP-7825), about 100 prints at a cap of 150,000:
///        past it every call reverts `GasShort`, and the desk sends the rest straight to their sources.
///      - A post that reverts (a print stamped past the front's lead, a signer the source refuses, a malformed print,
///        a form the source lacks), or a source with no code, is refused and the push still lands: one desk's update
///        carries its whole book, so a bad print never darkens the desk's other listings, and its PRINT fills on that
///        pair read what the source keeps, refusing a print past its age as they would with no post at all. An older
///        or equal print is no refusal at a pair's `PrintLaneSource` where its signer passes the source's rule, which
///        that source runs first: it keeps the newer print, a no-op, and a verified print equal to one kept on the pin
///        alone upgrades it. At a stock pair's source a print no newer than the verified one is no refusal and writes
///        nothing unless its update starts a session, and a print on the pin no newer than the live pin is a no-op;
///        one between the two, sent with bit 0 or by another signer, asks the verifier and is refused where it refuses
///        the signer. A verified print equal to the live pin's becomes the verified print and retires the pin.
///      - `refused` names the posts that reverted and nothing more: a post that stands can still serve no fill. A print
///        kept on the pinned key alone serves fills only while the listing's lease runs, so wherever the lease may not
///        run (a new binding, a cut, a lapse) a desk sets bit 0: off the lease a stock pair's listing reads its
///        verified print, which serves only while it is fresh. A print the source marks wide is kept as any other, and
///        every desk's PRINT listing on that source reads dark until a newer print lands (at a stock pair's source a
///        wide pin darkens only the reads under the lease, which the pin serves).
///      - The push is the desk's entry, byte for byte as its cell takes it from anyone: tagged 0x50555348, so the cell
///        never reads it as the pusher's own push, even where a desk named this lander its pusher. It lands last, with
///        all the gas left, and its refusal reverts the whole call with the cell's revert data, the posts included.
///      - A desk needs a word key here: the cell takes a tagged push only with that key's signature, so a desk with
///        none refuses every call, with empty revert data. Such a desk posts from its own pusher contract.
///      - Within its block the push needs a version above the cell's ticket, whatever wrote it (a push, a lane copy or
///        an earlier landing of this entry), or it refuses and takes the posts with it. So an entry anyone else lands
///        first undoes this call: a desk keeps its entries private until inclusion, and one that must bind them to its
///        sender names a contract pusher whose `isValidSignature` also requires that `tx.origin`. Where the push may be
///        stale, a desk posts its prints straight to their sources.
interface IPropAMMLander {
    /// @notice The front has no code, or its `CELL_CODEHASH()` does not answer 32 nonzero bytes.
    error BadFront();
    /// @notice `landRegistry` where the lander has no registry, or a nonzero registry without code at construction.
    error NoRegistry();
    /// @notice The desk's cell has no code.
    error NoCell();
    /// @notice The entry is shorter than the tag or does not begin with it.
    error NotAPush();
    /// @notice A print's header or update runs past the list's end, or the list holds more than 256.
    error BadPrints();
    /// @notice The gas left cannot assure every post its cap and the push its `pushGas`.
    error GasShort();

    /// @notice After every `land` or `landRegistry`: how many entries were taken (sent or skipped) before the first
    ///         one not reached, and bit j set for each entry j whose call succeeded.
    event Landed(uint256 reached, uint256 landed);

    /// @notice After a `postAndLand` that refused a post: bit j set for each print j refused.
    event PrintsRefused(uint256 refused);

    /// @notice The front whose desks' cells this lander serves.
    function FRONT() external view returns (address);

    /// @notice The init-code hash the front derives its cells with, read from it at construction.
    function CELL_CODEHASH() external view returns (bytes32);

    /// @notice The priority-update registry `landRegistry` sends to, or 0 where the chain has none.
    function REGISTRY() external view returns (address);

    /// @notice The first four bytes of every push the pusher signed: 0x50555348.
    function PUSH_TAG() external pure returns (bytes4);

    /// @notice Desk `desk`'s cell: the CREATE2 child of the front at `(1 << 252) | desk` under `CELL_CODEHASH`.
    function cellOf(uint32 desk) external view returns (address);

    /// @notice Source `id`: the front's CREATE3 child at salt `id` (`registerSource`).
    function sourceOf(uint32 id) external view returns (address);

    /// @notice Sends each entry's payload to its desk's cell: skipped where the payload is shorter than 55 bytes, does
    ///         not begin with the tag, or the cell has no code. Never reverts once its calldata decodes.
    /// @param entries The entries, packed back to back as the interface describes.
    /// @return reached The entries taken, sent or skipped.
    /// @return landed Bit j set for each entry j whose call succeeded.
    function land(bytes calldata entries) external returns (uint256 reached, uint256 landed);

    /// @notice Sends each entry's payload to the registry, as `batchUpdateStateWithSignature` with exactly one update
    ///         whose target and signer are the desk's cell: skipped where its shape is any other or the cell has no
    ///         code. Never reverts once its calldata decodes, but for `NoRegistry`.
    /// @param entries The entries, packed back to back as the interface describes.
    /// @return reached The entries taken, sent or skipped.
    /// @return landed Bit j set for each entry j whose call succeeded.
    function landRegistry(bytes calldata entries) external returns (uint256 reached, uint256 landed);

    /// @notice Posts each print to its pair's source, in order, then lands `entry` at desk `desk`'s cell.
    /// @param desk The desk whose cell takes the entry.
    /// @param pushGas The gas the push is assured, its measured need; 0 assures none, and the push takes what is left.
    /// @param prints The prints, packed back to back as the interface describes; none lands the push alone.
    /// @param entry The push the desk's pusher signed, as the cell takes it from anyone.
    /// @return refused Bit j set for each print j whose post was refused.
    function postAndLand(uint32 desk, uint24 pushGas, bytes calldata prints, bytes calldata entry)
        external
        returns (uint256 refused);
}
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.