Skip to main content

sla_escrow_api/state/
bank.rs

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