Skip to content

test(maintenance-pool): add DepositNotFound tests for get_deposit and reclaim_deposit - #437

Open
rushikeshgarad2024-dev wants to merge 1 commit into
MergeFi:mainfrom
rushikeshgarad2024-dev:test/maintenance-pool-deposit-not-found-313
Open

rushikeshgarad2024-dev wants to merge 1 commit into
MergeFi:mainfrom
rushikeshgarad2024-dev:test/maintenance-pool-deposit-not-found-313

Conversation

@rushikeshgarad2024-dev

Copy link
Copy Markdown

Summary

Closes #313.

Adds two tests covering Error::DepositNotFound for out-of-range deposit_index on an existing pool:

  1. test_get_deposit_nonexistent_index_returns_deposit_not_found — verifies get_deposit with a valid pool_id but index beyond deposit_count returns Error::DepositNotFound. Also verifies index 0 succeeds.
  2. test_reclaim_deposit_nonexistent_index_returns_deposit_not_found — verifies reclaim_deposit with a valid pool_id but nonexistent index returns Error::DepositNotFound (after advancing past the inactivity window).

Payout Address (Stellar): GC5U46IS25KYFKNHDXEHR3KTQB3DVIBM4NW5BH4MVUE2G77STCJP4IHF

… reclaim_deposit (closes MergeFi#313)

Signed-off-by: rushikeshgarad2024-dev <rushikeshgarad2024@gmail.com>
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

@rushikeshgarad2024-dev is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maintenance-pool::get_deposit/reclaim_deposit on a nonexistent deposit index has no test

1 participant