Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 17
Implement Balance model #43
Copy link
Copy link
Closed
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26area:modelspriority:p2type:feature
Description
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26area:modelspriority:p2type:feature
Represents the per-asset balance breakdown returned by
Merchant.get_balance(). A merchant wallet may hold multiple Stellar assets.Proposed Steps:
src/shade/models/balance.py.AssetBalance(ShadeObject)withasset_code: str,asset_issuer: Optional[str],balance: Decimal.Balance(ShadeObject)withbalances: list[AssetBalance]and aget(asset_code: str)helper.Acceptance Criteria:
balance.get("XLM")returns the native balanceAssetBalance.balance.get("USDC")returns the USDC balance if held.balance.get("NOTEXIST")returnsNonerather than raising.Decimal.