Skip to content

Test gap: no coverage for DripStream::withdraw called immediately after resume() in the same ledger timestamp #228

Open

Description

@Jaydbrown

None of tests/stream_pause_resume.rs's existing tests exercise calling withdraw() in the exact same ledger timestamp as resume() (zero elapsed seconds since resume). Worth a dedicated test asserting the withdrawable amount correctly reflects zero newly-streamed tokens in that instant, to guard against an off-by-one in the elapsed-time math.

Activity

  1. added
    Stellar Wave
    on Jul 28, 2026
  2. Favourof commented on Jul 28, 2026

    @Favourof
    Contributor

    @Favourof has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    I would like to work on this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Favourof to this issue.

  3. GazzyLee commented on Jul 28, 2026

    @GazzyLee
    Contributor

    @GazzyLee has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    hello, I'd like to take this on. I'll add the zero-elapsed resume→withdraw test to ensure no tokens are withdrawable immediately after resuming and guard against off-by-one errors. ETD is in 5 hours tops, please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @GazzyLee to this issue.

  4. neyij commented on Jul 28, 2026

    @neyij
    Contributor

    @neyij has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    hi, i would like to work on this.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @neyij to this issue.

  5. kodinaka30-ship-it commented on Jul 29, 2026

    @kodinaka30-ship-it
    Contributor

    @kodinaka30-ship-it has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hello maintainer please kindly review my application and assign this issue to me. I'll add a test in tests/stream_pause_resume.rs calling withdraw() at the same ledger timestamp as resume(), asserting zero newly-streamed tokens to guard against off-by-one errors in the elapsed-time math.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @kodinaka30-ship-it to this issue.

  6. Kingsley4867 commented on Jul 29, 2026

    @Kingsley4867

    @Kingsley4867 has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hello Maintainer, I’d like to work on this issue. I’ll add a dedicated regression test covering "withdraw()" immediately after "resume()" within the same ledger timestamp, verifying that zero newly streamed tokens are withdrawable and protecting against off-by-one errors in the elapsed-time calculation.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Kingsley4867 to this issue.

  7. odinakaikpa375-ship-it commented on Jul 29, 2026

    @odinakaikpa375-ship-it
    Contributor

    @odinakaikpa375-ship-it has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hello Maintainer, I’d be glad to take on this issue. I’ll introduce a focused regression test covering the scenario where "withdraw()" is invoked immediately after "resume()" within the same ledger timestamp, ensuring no tokens are considered newly streamed at zero elapsed time and safeguarding the withdrawal logic against timing edge cases.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @odinakaikpa375-ship-it to this issue.

  8. fj555 commented on Jul 29, 2026

    @fj555

    @fj555 has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hello Maintainer, I’m interested in working on this test improvement. I’ll add coverage for the edge case where "withdraw()" is called immediately after "resume()" within the same ledger timestamp, confirming that zero elapsed time results in no newly withdrawable tokens and helping prevent future timing regressions.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @fj555 to this issue.

  9. dotmantissa commented on Jul 29, 2026

    @dotmantissa

    @dotmantissa has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Please, assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @dotmantissa to this issue.

  10. EmmanuelOchaje commented on Jul 29, 2026

    @EmmanuelOchaje
    Contributor

    @EmmanuelOchaje has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hey, I'd love to take this on! I'm a full-stack blockchain developer with hands-on experience in Next.js, TypeScript, and Tailwind, plus smart contract development and blockchain integrations. Happy to share examples of past work if useful

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @EmmanuelOchaje to this issue.

  11. darkseeid commented on Jul 29, 2026

    @darkseeid

    @darkseeid has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @darkseeid to this issue.

  12. drips-wave commented on Jul 30, 2026

    @drips-wave

    Congratulations, @GazzyLee! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on July 30, 2026.

    🧑‍💻 @GazzyLee: 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 🌊

  13. grantfox-oss commented on Aug 26, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @GazzyLee's PR #278 was approved and merged by @Jaydbrown.

    🏆 @GazzyLee: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,302 total points). Track your full progress on GrantFox.

    👏 Great work, @GazzyLee! Keep contributing to conduit-protocol.

  14. grantfox-oss commented on Aug 26, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @GazzyLee's PR #325 was approved and merged by @Jaydbrown.

    🏆 @GazzyLee: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,382 total points). Track your full progress on GrantFox.

    👏 Great work, @GazzyLee! Keep contributing to conduit-protocol.

  15. drips-wave commented on Aug 27, 2026

    @drips-wave

    This issue has been marked as completed by a Drips Wave moderator for @GazzyLee as part of the Stellar Wave Program's 8th Wave 🥳

    Moderator's reason: [Auto-assessed] The PR was merged by maintainer @Jaydbrown with comment: 'Thanks for the contribution here — squash-merging this now. Any follow-ups we'll track in a fresh issue. 🚀'. It directly addresses the testing gap described in issue #228.

    😎 @GazzyLee: You earned 200 Points for completing this issue! After the current Wave ends, 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.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

    ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.

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

Metadata

Metadata

Assignees

Labels

Stellar Wave

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions