• Preparing search index...
  • The search index is not available
musd-kit API reference
  • musd-kit API reference
  • core/src
  • evaluateAdjust

Function evaluateAdjust

  • evaluateAdjust(input: EvaluateAdjustInput): AdjustPreview
  • The verdict, as a pure function of values already read from the chain.

    Split out for the same reason evaluateOpen and evaluateBorrow are: the decision is the part worth testing exhaustively, and as a pure function it can be, chain free, across every combination of reasons rather than only the ones a fork happens to produce.

    Parameters

    • input: EvaluateAdjustInput

    Returns AdjustPreview

    • Defined in packages/core/src/math/previewAdjust.ts:420

Settings

Member Visibility
musd-kit API reference
  • Loading...