Skip to main content

MigrateEconomics

Economics of a cross-lender migrate: the day-0 cost of the move (the converted leg's slippage, the target's origination fee, gas over the bundle) against the carry it changes per day — the position's carry on the TARGET minus its carry on the SOURCE, both at the venues' sticker rates (carryBasis: 'sticker'; the migrate has no IRM phase). breakEvenDays is the entry cost over that DIFFERENCE, and is null when the move does not improve the carry.

notionalUsd objectrequired
equitynumbernullable
collateralnumbernullable
debtnumbernullable
entryCostUsd objectrequired
slippagenumber
feesnumber
gasnumbernullable
totalnumber
slippageBpnumbernullablerequired
entryCostBpnumbernullablerequired
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.

  • ]
  • carryPerDayUsd objectrequired
    from objectnullable
    totalnumber
    basenumber
    to objectnullable
    totalnumber
    basenumber
    delta objectnullable
    totalnumber
    basenumber
    carryBasisstringrequired

    Possible values: [sticker, none]

    breakEvenDays objectrequired
    totalnumbernullable
    basenumbernullable
    horizonDaysnumbernullablerequired
    horizon objectrequired
    kindstring
    endsAtinteger
    sourcestring
    breaksEvenBeforeHorizonbooleannullablerequired
    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
    MigrateEconomics
    {
    "notionalUsd": {
    "equity": 0,
    "collateral": 0,
    "debt": 0
    },
    "entryCostUsd": {
    "slippage": 0,
    "fees": 0,
    "gas": 0,
    "total": 0
    },
    "slippageBp": 0,
    "entryCostBp": 0,
    "fees": [
    {
    "id": "string",
    "label": "string",
    "when": "entry",
    "usd": 0,
    "value": 0,
    "unit": "string",
    "basis": "string",
    "mutable": true
    }
    ],
    "carryPerDayUsd": {
    "from": {
    "total": 0,
    "base": 0
    },
    "to": {
    "total": 0,
    "base": 0
    },
    "delta": {
    "total": 0,
    "base": 0
    }
    },
    "carryBasis": "sticker",
    "breakEvenDays": {
    "total": 0,
    "base": 0
    },
    "horizonDays": 0,
    "horizon": {
    "kind": "string",
    "endsAt": 0,
    "source": "string"
    },
    "breaksEvenBeforeHorizon": true,
    "gas": {
    "units": 0,
    "txCount": 0,
    "estimated": true,
    "gasPriceGwei": 0,
    "nativePriceUsd": 0,
    "usd": 0
    },
    "notes": [
    "string"
    ]
    }