Skip to content

contracts/token-vault/src/errors.rs: add specific error code for insufficient unallocated vault liquidity #1007

Open

Description

@Jaydbrown

Context

When total stream commitments exceed available unallocated token reserves, the contract should return a distinct error.

Why it matters

Improves client error diagnostics, differentiating between token contract failures and internal allocation limits.

Suggested approach

Introduce InsufficientUnallocatedLiquidity in contracts/token-vault/src/errors.rs.

Activity

  1. added
    enhancement
    Stellar Wave
    on Nov 21, 2026
  2. rahimatonize commented on Nov 21, 2026

    @rahimatonize

    @rahimatonize has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    Hi maintainer, can I please work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @rahimatonize to this issue.

  3. hayor1 commented on Nov 21, 2026

    @hayor1

    @hayor1 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    Hi maintainer,
    I'm interested in working on this. I'll ensure the implementation is clean, tested, and aligned with project standards.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @hayor1 to this issue.

  4. removed
    Stellar Wave
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions