Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Py-Ec/solana-arbitrage-bot
/ functions
Functions
241 in github.com/Py-Ec/solana-arbitrage-bot
⨍
Functions
241
◇
Types & classes
63
Function
saber_swap
(ctx: Context<'_, '_, '_, 'info, SaberSwap<'info>>)
program/programs/tmp/src/lib.rs:66
Method
serialize
(&self, serializer: S)
client/src/serialize/token.rs:34
Function
serum
()
client/src/tests/quotes.rs:23
Function
serum_swap
(ctx: Context<'_, '_, '_, 'info, SerumSwap<'info>>, side: Side)
program/programs/tmp/src/lib.rs:102
Method
set_update_accounts
( &mut self, accounts: Vec<Option<Account>>, cluster: Cluster, )
client/src/pools/serum.rs:201
Method
set_update_accounts
(&mut self, accounts: Vec<Option<Account>>, _cluster: Cluster)
client/src/pools/aldrin.rs:211
Method
set_update_accounts
(&mut self, accounts: Vec<Option<Account>>, _cluster: Cluster)
client/src/pools/mercurial.rs:142
Method
set_update_accounts
(&mut self, accounts: Vec<Option<Account>>, _cluster: Cluster)
client/src/pools/saber.rs:116
Function
start_swap
(ctx: Context<TokenAndSwapState>, swap_input: u64)
program/programs/tmp/src/lib.rs:30
Function
swap_a_to_b_max_offset
()
client/src/pool_utils/offset.rs:272
Function
swap_b_to_a_max_offset
()
client/src/pool_utils/offset.rs:291
Function
swap_calculation_large_price
()
client/src/pool_utils/constant_price.rs:326
Function
swap_calculation_max_min
()
client/src/pool_utils/constant_price.rs:356
Function
swap_calculation_no_price
()
client/src/pool_utils/constant_price.rs:276
Method
swap_ix
(&self, program: &Program, owner: &Pubkey, mint_in: &Pubkey, _mint_out: &Pub
client/src/pools/serum.rs:314
Method
swap_ix
(&self, program: &Program, owner: &Pubkey, _mint_in: &Pubkey, mint_out: &Pub
client/src/pools/aldrin.rs:56
Method
swap_ix
(&self, program: &Program, owner: &Pubkey, mint_in: &Pubkey, mint_out: &Pubk
client/src/pools/mercurial.rs:41
Method
swap_ix
(&self, program: &Program, owner: &Pubkey, mint_in: &Pubkey, mint_out: &Pubk
client/src/pools/saber.rs:41
Function
swap_no_offset
()
client/src/pool_utils/offset.rs:217
Function
swap_offset
()
client/src/pool_utils/offset.rs:245
Function
trading_token_conversion
()
client/src/pool_utils/constant_product.rs:319
Method
try_from
(curve_type: u8)
client/src/pool_utils/base.rs:251
Method
type_of
()
client/src/error.rs:112
Method
unpack_from_slice
(_input: &[u8])
client/src/pool_utils/constant_product.rs:267
Method
unpack_from_slice
(input: &[u8])
client/src/pool_utils/constant_price.rs:247
Method
unpack_from_slice
(input: &[u8])
client/src/pool_utils/fees.rs:160
Method
unpack_from_slice
Unpacks a byte buffer into a SwapCurve
client/src/pool_utils/base.rs:211
Method
unpack_from_slice
(input: &[u8])
client/src/pool_utils/stable.rs:391
Method
unpack_from_slice
(input: &[u8])
client/src/pool_utils/offset.rs:171
Method
validate
(&self)
client/src/pool_utils/constant_product.rs:249
Method
validate
(&self)
client/src/pool_utils/constant_price.rs:188
Method
validate
Validate that the fees are reasonable
client/src/pool_utils/fees.rs:113
Method
validate
(&self)
client/src/pool_utils/stable.rs:372
Method
validate
(&self)
client/src/pool_utils/offset.rs:119
Method
validate_supply
Validate the given supply on initialization. This is useful for curves that allow zero supply on one or both sides, since the standard constant produc
client/src/pool_utils/calculator.rs:158
Method
validate_supply
(&self, token_a_amount: u64, _token_b_amount: u64)
client/src/pool_utils/constant_price.rs:196
Method
validate_supply
(&self, token_a_amount: u64, _token_b_amount: u64)
client/src/pool_utils/offset.rs:127
Method
withdraw_single_token_type_exact_out
( &self, source_amount: u128, swap_token_a_amount: u128, swap_token_b_amount:
client/src/pool_utils/constant_product.rs:223
Method
withdraw_single_token_type_exact_out
( &self, source_amount: u128, swap_token_a_amount: u128, swap_token_b_amount:
client/src/pool_utils/constant_price.rs:169
Method
withdraw_single_token_type_exact_out
( &self, source_amount: u128, swap_token_a_amount: u128, swap_token_b_amount:
client/src/pool_utils/stable.rs:300
Method
withdraw_single_token_type_exact_out
( &self, source_amount: u128, swap_token_a_amount: u128, swap_token_b_amount:
client/src/pool_utils/offset.rs:100
← previous
201–241 of 241, ranked by callers