@tributary-so/sdk
    Preparing search index...

    Function grossCapToFace

    • Convert a gross-denominated cap into the face amount the forward consumes.

      Composable execution is NET-on-pull (ADR-0026): the program pulls gross = face + fee from the user, then skims the fee in the input mint. For a PayAsYouGo policy whose maxChunkAmount binds on GROSS, the forward can consume at most face = floor(grossCap × 10000 / (10000 + feeBps)).

      Pure function — no I/O.

      Parameters

      • grossCap: BN
      • feeBps: number

      Returns BN