Skip to content

Add a read-only view exposing the current fees state #293

Description

@mikewheeleer

Expose fees through a read view

Description

There is no O(1) read view for the fees state, forcing callers to reconstruct it. This issue adds a bounded, read-only view.

Requirements and context

  • Repository scope: Agentpay-Org/Agentpay-contracts only.
  • Add a read-only entrypoint returning the fees state without mutating storage.
  • Return a sensible default (not a panic) when fees is unset.
  • Reuse stored values rather than recomputing where possible.

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/fees-01-view
  • Implement changes
    • Write code in: the relevant module.
    • Write comprehensive tests in: cover the new behaviour and edge cases.
  • Test and commit

Test and commit

  • Run cargo fmt, cargo clippy --all-targets -- -D warnings, and cargo test.
  • Cover edge cases: unset state, boundary values.
  • Include the full test output in the PR description.

Example commit message

feat(fees): add read view

Guidelines

  • Minimum 95 percent test coverage for impacted modules.
  • Clear, reviewer-focused documentation.
  • Timeframe: 96 hours.

Community & contribution rewards

  • 💬 Join the AgentPay community on Discord: https://discord.gg/eXvRKkgcv
  • ⭐ This is a GrantFox OSS / Official Campaign task and may be rewarded. When your PR is merged you'll be prompted to rate the project — a 5-star rating is much appreciated.

Activity

  1. Jagadeeshftw commented on Jul 28, 2026

    @Jagadeeshftw
    Contributor

    Hi, I’d love to take on this issue! With my expertise in Rust, Stellar, and smart contract development, I can implement a clean and efficient solution.

    🚀 Why Me?

    • Proven Blockchain Experience – Hands-on work with Stellar, Solidity, and Rust, building secure and optimized smart contracts.
    • Open Source Contributor – Actively contributed to 50+ open-source projects, showcasing adaptability and collaboration.
    • Efficient & Reliable – I deliver high-quality, production-ready solutions quickly, ensuring security and scalability.

    ⏱ Timeline

    I estimate completing this within 24 hours. Let me know if I can proceed!

  2. grantfox-oss commented on Jul 28, 2026

    @grantfox-oss

    🦊 GrantFox — @Jagadeeshftw 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 #293)
    2. Your PR will be reviewed by the Agentpay-Org maintainers

    Good luck! Track your progress on GrantFox.

  3. mikewheeleer commented on Jul 28, 2026

    @mikewheeleer
    ContributorAuthor

    🎉 You're assigned, @Jagadeeshftw! Part of the Stellar Wave Program — join our Telegram to coordinate: https://t.me/+OhR36aTevMYwYzI9 🚀

  4. grantfox-oss commented on Jul 29, 2026

    @grantfox-oss

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

    @Jagadeeshftw's PR #436 was approved and merged by @mikewheeleer.

    🏆 @Jagadeeshftw: You earned 45 FoxPoints for this contribution! Your current tier: Specialist (3,716 total points). Track your full progress on GrantFox.

    👏 Great work, @Jagadeeshftw! Keep contributing to Agentpay-Org.

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions