Skip to content

Add farming pool admin transfer#44

Merged
prodbycorne merged 3 commits into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/farming-pool-transfer-admin
Jun 27, 2026
Merged

Add farming pool admin transfer#44
prodbycorne merged 3 commits into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/farming-pool-transfer-admin

Conversation

@ProtonsAndElectrons

@ProtonsAndElectrons ProtonsAndElectrons commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Closes #16

Summary

  • add a public admin() getter for the farming pool
  • add transfer_admin(new_admin) guarded by the current admin and emitting ("pool", "adm_xfr") with (old_admin, new_admin)
  • cover successful transfer, non-admin rejection, exact event emission, and old-admin privilege loss after transfer
  • update CI/release WASM targets from wasm32-unknown-unknown to wasm32v1-none so Soroban SDK 25 builds on current Rust stable

Notes

Validation

  • cargo test -p farming-pool
  • cargo build --target wasm32v1-none --release
  • git diff --check

@prodbycorne prodbycorne merged commit 2fb703d into SmartDropLabs:main Jun 27, 2026
1 check failed
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.

farming-pool: no transfer_admin function — pool admin is permanently locked

2 participants