Expand description
Reads the transfer fee of a Token-2022 mint from raw account data, for the
math::amm quotes.
Cache a TransferFeeConfig only while its transfer_fee_config_authority
is None.
Structs§
- Transfer
Fee - Transfer fee information
- Transfer
FeeConfig - Transfer fee extension data for mints.
Functions§
- extension
- Reads the mint extension
V. - mint_
extensions - Unpacks a mint and its extensions.
Ok(None)for an SPL Token mint. Fails withProgramError::IncorrectProgramIdif no token program owns the mint. - mint_
fee - mint_
fee_ at_ epoch - The transfer fee of a mint at
epoch.Ok(None)only when the mint has noTransferFeeConfig. A 0 bps config givesSome.