claim rate limiter

This commit is contained in:
Hardhat Chad
2024-05-12 19:28:43 +00:00
parent b264a5a5b1
commit ba6d746c50
5 changed files with 63 additions and 10 deletions

View File

@@ -295,6 +295,7 @@ pub fn claim(signer: Pubkey, beneficiary: Pubkey, amount: u64) -> Instruction {
accounts: vec![
AccountMeta::new(signer, true),
AccountMeta::new(beneficiary, false),
AccountMeta::new(MINT_ADDRESS, false),
AccountMeta::new(proof, false),
AccountMeta::new_readonly(TREASURY_ADDRESS, false),
AccountMeta::new(treasury_tokens, false),