Skip to content

Utilized-stake accounting invariants in mvp_staking_pool - #1465

Merged
pope-h merged 6 commits into
Shelterflex:mainfrom
0xNinx:Utilized
Aug 3, 2026
Merged

Utilized-stake accounting invariants in mvp_staking_pool#1465
pope-h merged 6 commits into
Shelterflex:mainfrom
0xNinx:Utilized

Conversation

@0xNinx

@0xNinx 0xNinx commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Briefly describe the change. This section is required for CI PR validation.
If this is a contract upgrade, include:

  • Which contract is being upgraded
  • Why the upgrade is needed
  • Link to any discussion/issues

closes #1190

Linked issue (recommended)

Example: Closes #123
closes #1385
closes #1386
closes #1387
closes #1190

Changes

This section is required for CI PR validation.

Contract Upgrade Details (if applicable)

This section is required for CI PR validation if this is a contract upgrade.

Network

  • Testnet
  • Mainnet

New Contract

  • Contract ID: C...
  • WASM Hash: sha256:...
  • Deployer Public Key: G...
  • Deploy Transaction: [link to transaction explorer]

Upgrade Governance

  • Admin/upgrade authority is a multisig requiring maintainer sign-off
  • Maintainer has reviewed and approved the upgrade
  • Upgrade transaction is ready for maintainer signature (provide transaction XDR if applicable)

Verification Steps

  • New contract deployed successfully
  • All existing tests pass against the new contract
  • Manual testing checklist completed (describe what you tested)
  • No breaking changes for existing integrations (or list them)

How to test

This section is required for CI PR validation.

  • All automated tests pass
  • Integration tests pass (if applicable)
  • Manual testing completed (describe what you tested)

Security Considerations

This section is required for CI PR validation.

  • No secrets or sensitive data are logged
  • No changes to authentication/authorization logic without review
  • No changes to admin/upgrade logic without review

Screenshots (if UI)

Include before/after screenshots for any UI changes. For new features, show different states (loading, error, success). For responsive changes, include mobile/tablet/desktop views.

Checklist

This section is required for CI PR validation.

  • I linked an issue (or explained why one is not needed)
  • I tested locally
  • I did not commit secrets
  • I updated docs if needed
  • Code follows the project's style guidelines
  • CI checks pass
  • If UI changes: I included before/after screenshots
  • If images added/changed: I verified they are optimized and accessible

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@0xNinx is attempting to deploy a commit to the pope-h's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@0xNinx Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

0xNinx added 4 commits August 1, 2026 11:32
- abuse.test.ts: 10 tests for abuse event retrieval with pagination and authorization
- adminFraud.test.ts: 40 tests for fraud signal, assessment, hold, and threshold management
- adminQuota.test.ts: 23 tests for quota usage, overrides, stats, and reset operations

All tests follow established conventions covering success paths, authorization,
validation failures, not-found/conflict paths, and response shape assertions.
- Created adminAuditLogs.test.ts with tests for audit log viewer endpoint
- Created admin.test.ts with minimal authorization tests for admin endpoints
- Both test files cover authorization rejection scenarios
- All CI steps passing: npm ci, lint, test:ci, openapi:validate
Remove .unwrap() calls from methods that return unit type () instead of Result.
- utilize_stake returns ()
- unstake returns ()

This fixes 7 compilation errors reported by cargo clippy.
@pope-h
pope-h merged commit 3e23c19 into Shelterflex:main Aug 3, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants