#[repr(C)]pub struct ChainFeeTable {
pub chain_ct: u8,
pub _pad: [u8; 7],
pub chains: [ChainFee; 8],
}Expand description
Per-symbol chain fee table. Written to WASM memory at CHAIN_FEE_TABLE_WASM_OFFSET.
Algos join pool→chain via venue_chain_id(pool_meta.venue_id).
Fields§
§chain_ct: u8Number of valid entries in chains[].
_pad: [u8; 7]§chains: [ChainFee; 8]Per-chain fee snapshots.
Implementations§
Source§impl ChainFeeTable
impl ChainFeeTable
Sourcepub fn fee_for_chain(&self, chain_id: u8) -> Option<&ChainFee>
pub fn fee_for_chain(&self, chain_id: u8) -> Option<&ChainFee>
Look up fee data for a specific chain.
Trait Implementations§
Source§impl Clone for ChainFeeTable
impl Clone for ChainFeeTable
Source§fn clone(&self) -> ChainFeeTable
fn clone(&self) -> ChainFeeTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ChainFeeTable
impl Default for ChainFeeTable
impl Copy for ChainFeeTable
Auto Trait Implementations§
impl Freeze for ChainFeeTable
impl RefUnwindSafe for ChainFeeTable
impl Send for ChainFeeTable
impl Sync for ChainFeeTable
impl Unpin for ChainFeeTable
impl UnsafeUnpin for ChainFeeTable
impl UnwindSafe for ChainFeeTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more