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
entryCostUsd objectrequired
fees object[]required
The term sheet's FeeTerm.id (origination, early-repay-penalty, …) or flash for the flash-loan fee.
entry items sum to entryCostUsd.fees; exit items are in the round-trip exit cost.
Possible values: [entry, exit]
Priced on the notional the fee is charged on. Negative = a rebate.
The published rate (read with unit).
percent | bps | …
principal | face-value | collateral | …
Governance-mutable snapshot — re-verify before quoting it as a term.
carryPerDayUsd objectrequired
from objectnullable
to objectnullable
delta objectnullable
Possible values: [sticker, none]
breakEvenDays objectrequired
horizon objectrequired
gas objectnullablerequired
- EconomicsGas
Gas units over the whole bundle — outstanding permissions + main transaction.
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).
{
"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"
]
}