Skip to content

feat: resolve issues #542, #554, #563, #569 - reentrancy guard, clean script, SEP-12 auth, revenue tests#687

Merged
Ceejaytech25 merged 2 commits into
ceejaylaboratory:mainfrom
Chidimj:feature/issue-542-554-563-569-multi-fix
Jun 29, 2026
Merged

feat: resolve issues #542, #554, #563, #569 - reentrancy guard, clean script, SEP-12 auth, revenue tests#687
Ceejaytech25 merged 2 commits into
ceejaylaboratory:mainfrom
Chidimj:feature/issue-542-554-563-569-multi-fix

Conversation

@Chidimj

@Chidimj Chidimj commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes

Closes #542, closes #554, closes #563, closes #569

Test plan

  • cargo check --manifest-path contracts/Cargo.toml passes
  • cargo test --manifest-path contracts/Cargo.toml — all yield and revenue_distributor tests pass
  • npm run clean runs without error and reduces workspace file count
  • npm run test:backend — SEP-12 upload-confirm 403 path covered

…laboratory#563 ceejaylaboratory#569

- feat(yield-contract): audit reentrancy guard usage in contracts/yield (closes ceejaylaboratory#563)
  Move state updates before external token transfers in stake() and
  deposit_rewards() to follow checks-effects-interactions pattern.

- feat(devops): clean up old logs and database lock files in backend workspace (closes ceejaylaboratory#542)
  Add clean script to backend/package.json that removes SQLite journal
  files, logs directory, and coverage reports.

- feat(backend-sep12): [sep-12] handle account authorization checks in upload confirm (closes ceejaylaboratory#554)
  Verify active session token matches account field before processing
  upload confirmation; reject mismatches with 403 Forbidden.

- feat(revenue-distributor): add unit tests for revenue_distributor payouts (closes ceejaylaboratory#569)
  Add tests for zero balance, full gov share (100%), zero gov share (0%),
  and weight precision with odd amounts to verify distribution weights.
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Chidimj 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

@Ceejaytech25

Copy link
Copy Markdown
Contributor

LGTM!

@Ceejaytech25 Ceejaytech25 merged commit 69c505b into ceejaylaboratory:main Jun 29, 2026
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