This commit is contained in:
Hardhat Chad
2025-09-29 09:43:02 -07:00
parent 9c6ce391aa
commit 4bf9fa8d72
10 changed files with 80 additions and 80 deletions

View File

@@ -61,6 +61,9 @@ pub fn process_deposit(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResu
.assert_mut(|s| s.authority == *signer_info.key)?
};
// Only allow deposits from seekers.
assert!(stake.is_seeker == 1, "Only seekers can deposit stake");
// Deposit into stake account.
let amount = stake.deposit(amount, &clock, treasury, &sender);