Functions§
- calculate_
bps_ amount - Calculate percentage with basis points
- calculate_
percentage_ change - Calculate percentage change
- clamp
- Clamp value between min and max
- format_
lamports_ to_ sol - Format lamports to SOL string
- next_
power_ of_ 2 - Round up to next power of 2
- parse_
sol_ to_ lamports - Parse SOL string to lamports
- safe_
add - Safe addition
- safe_
div - Safe division
- safe_
mul - Safe multiplication
- safe_
sub - Safe subtraction
- validate_
account - Check if account is valid