Skip to content

sushi@7.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 18:04
492fe52

Minor Changes

  • #495 0b4562e Thanks @LufyCZ! - Allow Amount to carry application-defined currency types.

    BaseCurrency now supports string or numeric identifiers while continuing to
    default to ChainId. Amount, Price, and subtractSlippage accept the new
    AnyCurrency contract, and amount serialization preserves an external
    currency's serialized type. Blockchain-specific APIs and the Currency type
    remain constrained to executable Sushi chain IDs.

    Application-defined currencies implement wrap() like existing currencies and
    may return themselves when no wrapped representation is needed.