Summary
Automated bots can send consecutive buy transactions in rapid succession to accumulate large positions before manual buyers can react. A per-wallet cooldown period between buys enforced in the buy function would slow bot-driven accumulation.
Scope
- Record the last_buy_ledger per (key_id, wallet) in persistent storage on every buy
- Add set_buy_cooldown(key_id: BytesN<32>, cooldown_ledgers: u32) callable by the key creator (0–720 ledgers ≈ 1 hour)
- In the buy function, panic with CooldownActive if fewer than cooldown_ledgers have elapsed since last_buy_ledger
- Default cooldown to 0 (no restriction) when not configured
- Emit a cooldown_blocked event with wallet, key_id, and ledgers_remaining when the guard triggers
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
Automated bots can send consecutive buy transactions in rapid succession to accumulate large positions before manual buyers can react. A per-wallet cooldown period between buys enforced in the buy function would slow bot-driven accumulation.
Scope
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram