Skip to content

Add boundary tests for the fees logic #294

Description

@mikewheeleer

Cover fees boundaries

Description

The fees logic is thinly tested at its boundaries. This issue adds focused boundary and rejection tests.

Requirements and context

  • Repository scope: Agentpay-Org/Agentpay-contracts only.
  • Add tests for the accept/reject boundaries of fees, asserting exact typed error codes.
  • Use the test-utils helpers; assert events where the flow emits them.
  • Do not change contract logic unless a defect is found (note it).

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/fees-01-boundaries
  • 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: exactly-at boundary, one over, unauthorized caller.
  • Include the full test output in the PR description.

Example commit message

test(fees): cover boundaries and rejections

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 #294)
    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 #439 was approved and merged by @mikewheeleer.

    🏆 @Jagadeeshftw: You earned 45 FoxPoints for this contribution! Your current tier: Specialist (3,626 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