Skip to content

test: cover farming pool boost credit invariants#56

Open
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:test/farming-pool-boost-coverage-22
Open

test: cover farming pool boost credit invariants#56
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:test/farming-pool-boost-coverage-22

Conversation

@jamilahmadzai

Copy link
Copy Markdown

Closes #22

Bounty: GrantFox OSS campaign for issue #22

Summary

  • add exact boost arithmetic coverage for full allocation at 3x and 1x multipliers
  • assert boost and multiplier event payloads, admin authorization, and non-retroactive checkpointing
  • cover monotonic get_credits, boosted-vs-unboosted accrual, stake/lock credit separation, and stake/unstake balance round trip

Validation

  • cargo fmt --all -- --check
  • cargo build
  • cargo test -p farming-pool boost -- --nocapture
  • cargo test -p farming-pool -- --nocapture
  • cargo test --workspace -- --nocapture
  • git diff --check

Security notes

  • test-only change; no contract runtime behavior changed
  • verifies boost and multiplier updates checkpoint old credit windows instead of retroactively recalculating banked credits

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.

Add comprehensive test coverage for boost/stake system

1 participant