Skip to main content

CloseEconomics

The exit-side block on /loop/close: what the exit costs on day 0 and the carry the closed slice was earning (at projected rates — repaying moves the pool the other way), with the cost expressed in days of that carry.

notionalUsd objectrequired
collateralRemovednumber
debtRepaidnumber
equityFreednumber
exitCostUsd objectrequired
slippagenumber
feesnumber
gasnumbernullable
totalnumber
slippageBpnumbernullablerequired
exitCostBpnumbernullablerequired

exitCostUsd.total over the debt repaid, BP.

fees object[]required
  • Array [
  • idstringrequired

    The term sheet's FeeTerm.id (origination, early-repay-penalty, …) or flash for the flash-loan fee.

    labelstringrequired
    whenstringrequired

    entry items sum to entryCostUsd.fees; exit items are in the round-trip exit cost.

    Possible values: [entry, exit]

    usdnumberrequired

    Priced on the notional the fee is charged on. Negative = a rebate.

    valuenumberrequired

    The published rate (read with unit).

    unitstringrequired

    percent | bps | …

    basisstringrequired

    principal | face-value | collateral | …

    mutableboolean

    Governance-mutable snapshot — re-verify before quoting it as a term.

  • ]
  • carryForgonePerDayUsd objectnullablerequired
    totalnumber
    basenumber
    carryBasisstringrequired

    Possible values: [projected, sticker, none]

    daysOfCarry objectrequired
    totalnumbernullable
    basenumbernullable
    gas objectnullablerequired
    oneOf
    unitsnumberrequired

    Gas units over the whole bundle — outstanding permissions + main transaction.

    txCountintegerrequired
    estimatedbooleanrequired

    true when every transaction was eth_estimateGas-ed from the account; false when at least one used the typical-size table (the notes say which — the main transaction usually reverts under estimation until its permissions are granted).

    gasPriceGweinumberrequired
    nativePriceUsdnumberrequired
    usdnumberrequired
    notesstring[]required
    CloseEconomics
    {
    "notionalUsd": {
    "collateralRemoved": 0,
    "debtRepaid": 0,
    "equityFreed": 0
    },
    "exitCostUsd": {
    "slippage": 0,
    "fees": 0,
    "gas": 0,
    "total": 0
    },
    "slippageBp": 0,
    "exitCostBp": 0,
    "fees": [
    {
    "id": "string",
    "label": "string",
    "when": "entry",
    "usd": 0,
    "value": 0,
    "unit": "string",
    "basis": "string",
    "mutable": true
    }
    ],
    "carryForgonePerDayUsd": {
    "total": 0,
    "base": 0
    },
    "carryBasis": "projected",
    "daysOfCarry": {
    "total": 0,
    "base": 0
    },
    "gas": {
    "units": 0,
    "txCount": 0,
    "estimated": true,
    "gasPriceGwei": 0,
    "nativePriceUsd": 0,
    "usd": 0
    },
    "notes": [
    "string"
    ]
    }