Type alias CrossCurrencyRenegotiationQuote

CrossCurrencyRenegotiationQuote: Readonly<{
    borrower: Address;
    previousContract: Address;
    replacementContract: Address;
    purchaseBundler: Address;
    positionMigrator: Address;
    loanId: bigint;
    loanHash: Hex;
    executionHash: Hex;
    oldCurrency: Address;
    newCurrency: Address;
    repaymentAmount: bigint;
    oldCurrencyApprovalAmount: bigint;
    quotedInput: bigint;
    maximumInput: bigint;
    premiumBps: bigint;
    premium: bigint;
    maximumFlashRepayment: bigint;
    newPrincipal: bigint;
    originationFee: bigint;
    replacementProtocolFeeBps: bigint;
    netNewPrincipal: bigint;
    maximumTopUp: bigint;
    minimumSurplus: bigint;
    slippageBps: bigint;
    deadline: bigint;
    blockNumber: bigint;
}>

A short-lived quote; repayment and old-currency approval use oldCurrency units.

Type declaration

  • borrower: Address
  • previousContract: Address
  • replacementContract: Address
  • purchaseBundler: Address
  • positionMigrator: Address
  • loanId: bigint
  • loanHash: Hex
  • executionHash: Hex
  • oldCurrency: Address
  • newCurrency: Address
  • repaymentAmount: bigint
  • oldCurrencyApprovalAmount: bigint

    Stable repayment ceiling through maturity; prepare this approval before the final quote.

  • quotedInput: bigint
  • maximumInput: bigint
  • premiumBps: bigint
  • premium: bigint
  • maximumFlashRepayment: bigint
  • newPrincipal: bigint
  • originationFee: bigint
  • replacementProtocolFeeBps: bigint

    Live target-contract fee on lender earnings, fixed for this confirmation.

  • netNewPrincipal: bigint
  • maximumTopUp: bigint
  • minimumSurplus: bigint
  • slippageBps: bigint
  • deadline: bigint
  • blockNumber: bigint