You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
milestones has no view returning a single issue's allocated amount — callers must fetch the whole Milestone record including its unbounded allocations Map #802
get_issue_status (contracts/milestones/src/lib.rs:1110-1119) returns Allocated/Released but not the amount. The amount lives only inside Milestone.allocations, so the only way to read "how much is allocated to issue 4821?" is get_milestone, which returns the sponsor, token, both budgets, timestamps, the closed flag, the contributor count and every allocation in the milestone.
Why it matters: this is the single most common read a bounty UI needs — the frontend's issue page shows one issue's reward. Today it costs a full milestone fetch whose size grows with the number of allocations (unbounded, tracked separately), so the cost of rendering one issue scales with how many other issues share its milestone. escrow has the equivalent cheap read (get_escrow is a fixed-size record) and maintenance-pool has get_deposit(pool_id, index).
Fix: add get_allocation(env, milestone_id, issue_id) -> Result<i128, Error> returning IssueNotAllocated when absent, next to get_issue_status. If allocations move to their own DataKey::Allocation(milestone_id, issue_id) entries, this becomes a single-entry read.
I reviewed "milestones has no view returning a single issue's allocated amount — callers must fetch the whole Milestone record including its unbounded allocations Map" and would like to work on this.
I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.
I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.
Congratulations, @oluwagbemigaphilip! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @oluwagbemigaphilip: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🏆 @oluwagbemigaphilip: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (818 total points). Track your full progress on GrantFox.
😎 @oluwagbemigaphilip: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
ranjeetprabhatedu-dotcom commentedon Nov 12, 2026
Hello maintainers,
I reviewed "milestones has no view returning a single issue's allocated amount — callers must fetch the whole Milestone record including its unbounded allocations Map" and would like to work on this.
I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.
I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.
Thank you!
oluwagbemigaphilip commentedon Nov 20, 2026
@oluwagbemigaphilip has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @oluwagbemigaphilip to this issue.
drips-wave commentedon Nov 20, 2026
Congratulations, @oluwagbemigaphilip! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @oluwagbemigaphilip: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
feat: add get_allocation view to milestones contract (#802)
grantfox-oss commentedon Nov 21, 2026
🎉 This issue has been marked as completed on GrantFox!
@oluwagbemigaphilip's PR #914 was approved and merged by @chonilius.
🏆 @oluwagbemigaphilip: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (818 total points). Track your full progress on GrantFox.
👏 Great work, @oluwagbemigaphilip! Keep contributing to MergeFi.
Merge pull request #914 from oluwagbemigaphilip/feat/get-allocation-v…
drips-wave commentedon Nov 21, 2026
This issue has been completed by @oluwagbemigaphilip as part of the Stellar Wave Program's 11th Wave 🥳
😎 @oluwagbemigaphilip: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.