1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Protocol USDC custody (`treasury` PDA).
//!
//! The treasury serves two roles:
//!
//! 1. **USDC custodian** — the treasury ATA holds all deposited USDC. Deposits come in via
//! `Deposit`; payouts go out via `AdminPayout` (executor-signed).
//!
//! 2. **Price chain** — `last_close_*` carries the Pyth close price from the most recently
//! settled period. `AdminInstantSettlement` reads it as the open reference and writes the
//! new close price back, forming a self-perpetuating chain. Zero until `Initialize` seeds it.
use *;
use ;
account!;