1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::EscrowAccount; use steel::*; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)] pub struct Bank { pub authority: Pubkey, // 32 bytes pub open_at: i64, // 8 bytes pub fee_bps: u16, // 2 bytes // Removed: payment_counter (8 bytes) - no longer needed with PDA-based payment system // Removed: sol_liquidity (8 bytes) - SOL liquidity now tracked in SOL escrow account // Removed: sol_fee_balance (8 bytes) - SOL fees now tracked in SOL escrow account // Total: 32+8+2 = 42 bytes, need 6 bytes padding for 48-byte alignment pub _padding: [u8; 6], // 6 bytes padding } account!(EscrowAccount, Bank);