Skip to content

Implement Balance model #43

Closed
Closed

Description

@codebestia

Represents the per-asset balance breakdown returned by Merchant.get_balance(). A merchant wallet may hold multiple Stellar assets.

Proposed Steps:

  • Create src/shade/models/balance.py.
  • Define AssetBalance(ShadeObject) with asset_code: str, asset_issuer: Optional[str], balance: Decimal.
  • Define Balance(ShadeObject) with balances: list[AssetBalance] and a get(asset_code: str) helper.

Acceptance Criteria:

  • balance.get("XLM") returns the native balance AssetBalance.
  • balance.get("USDC") returns the USDC balance if held.
  • balance.get("NOTEXIST") returns None rather than raising.
  • All balance amounts are Decimal.

Activity

  1. Yourbigmike commented on Jul 20, 2026

    @Yourbigmike

    i would like to work on this issue as a full stack and smart contract developer

  2. lifewithbigdamz commented on Jul 20, 2026

    @lifewithbigdamz

    i would like to work on this issue as a full stack and smart contract developer

  3. Menjay7 commented on Jul 20, 2026

    @Menjay7

    Hi! I came across this issue and would love to work on it. I have experience with similar tasks and I'm confident I can investigate, implement a clean solution, and thoroughly test it before submitting a PR. If the issue is still open, I would appreciate it if you could assign it to me. Thank you!

  4. grantfox-oss commented on Jul 23, 2026

    @grantfox-oss

    🦊 GrantFox — @Yourbigmike has been assigned to this issue as part of the Official Campaign | FWC26 campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #43)
    2. Your PR will be reviewed by the ShadeProtocol maintainers

    Good luck! Track your progress on GrantFox.

  5. grantfox-oss commented on Jul 27, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!

    @Yourbigmike's PR #51 was approved and merged by @codebestia.

    🏆 @Yourbigmike: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (271 total points). Track your full progress on GrantFox.

    👏 Great work, @Yourbigmike! Keep contributing to ShadeProtocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions