use super::basis_points::BasisPoints; use near_sdk::{near, AccountId}; #[near(serializers = [json, borsh])] #[derive(Clone, Debug, PartialEq)] pub struct ProtocolConfig { pub protocol_management_fee_cut_bps: BasisPoints, pub protocol_performance_fee_cut_bps: BasisPoints, pub protocol_fee_recipient: AccountId, } impl Default for ProtocolConfig { fn default() -> Self { Self { protocol_management_fee_cut_bps: 0, protocol_performance_fee_cut_bps: 0, protocol_fee_recipient: "placeholder.near".parse().unwrap(), } } }