Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChangeYourself0613/Solana-Arbitrage-Bot
/ functions
Functions
450 in github.com/ChangeYourself0613/Solana-Arbitrage-Bot
⨍
Functions
450
◇
Types & classes
164
↓ 1 callers
Function
unpack_coption_u64
(src: &[u8; 12])
client-pool/src/serialize/token.rs:128
↓ 1 callers
Method
update_target_accounts
(&mut self, market_conditions: &MarketConditions)
solana-mev/bot/sniping_manager.rs:37
↓ 1 callers
Method
update_target_accounts
(&mut self, market_conditions: &MarketConditions)
solana-mev/bot/copy_trade_manager.rs:37
↓ 1 callers
Function
update_tick_array_accounts_for_onchain
( whirlpool: &Whirlpool, whirlpool_pk: &Pubkey, whirlpool_program_id: &Pubkey, )
solana-arbitrage-bot2.0/src/dex/whirlpool/mod.rs:75
↓ 1 callers
Method
withdraw_single_token_type_exact_out
Get the amount of pool tokens for the withdrawn amount of token A or B
client-pool/src/pool_utils/base.rs:137
Method
__init__
(self, token_file)
arb-opportunity-execute-trade-python-raydium-jupiter/1.py:18
Method
__init__
(self, token_file: str, config: Dict)
arb-opportunity-execute-trade-python-raydium-jupiter/1.py:149
Function
account_info
(pk: &'a Pubkey, account: &'a mut Account)
client-pool/src/pools/jupiter.rs:37
Method
add_order
(&self, order: Order)
solana-mev/monitoring/metrics.rs:23
Method
add_strategy
(&mut self, strategy: impl Strategy + 'static)
solana-mev/bot/strategy_manager.rs:30
Function
aldrin
()
client-pool/src/tests/quotes.rs:30
Method
allows_deposits
Some curves function best and prevent attacks if we prevent deposits after initialization. For example, the offset curve in `offset.rs`, which fakes
client-pool/src/pool_utils/calculator.rs:172
Method
allows_deposits
Offset curves can cause arbitrage opportunities if outside users are allowed to deposit. For example, in the offset curve, if there's swap with 1 mil
client-pool/src/pool_utils/offset.rs:139
Function
analyze_transaction
(transaction: &Transaction)
solana-mev/utils/solana.rs:4
Function
ask_iteration
( iteration: &mut Iteration, fee_tier: &FeeTier, ob: &mut OrderBookState, )
client-pool/src/tmp.rs:119
Function
calculate_profit
(market: &Market, buy_order: &Order, sell_order: &Order)
solana-mev/utils/profit_calculator.rs:6
Function
calculate_profit
(transaction: &Transaction)
solana-mev/utils/solana.rs:25
Method
can_trade
(&self, mint_in: &Pubkey, _mint_out: &Pubkey )
client-pool/src/pools/serum.rs:368
Method
can_trade
( &self, mint_in: &Pubkey, _mint_out: &Pubkey, )
client-pool/src/pools/jupiter.rs:135
Method
can_trade
(&self, _mint_in: &Pubkey, _mint_out: &Pubkey )
client-pool/src/pools/raydium.rs:127
Method
cancel_order
(&self, order: &Order)
solana-mev/dex/serum.rs:146
Method
cancel_order
(&self, _order: &Order)
solana-mev/dex/orca.rs:109
Method
cancel_order
(&self, order: &Order)
solana-mev/dex/raydium.rs:164
Function
check_curve_value_from_swap
Test function checking that a swap never reduces the overall value of the pool. Since curve calculations use unsigned integers, there is potential fo
client-pool/src/pool_utils/calculator.rs:390
Function
check_deposit_token_conversion
Test function to check that depositing token A is the same as swapping half for token B and depositing both. Since calculations use unsigned integers,
client-pool/src/pool_utils/calculator.rs:212
Method
check_is_valid_start_tick
(tick_index: i32, tick_spacing: u16)
solana-arbitrage-bot2.0/src/dex/whirlpool/state.rs:71
Function
check_pool_value_from_deposit
Test function checking that a deposit never reduces the value of pool tokens. Since curve calculations use unsigned integers, there is potential for
client-pool/src/pool_utils/calculator.rs:445
Function
check_pool_value_from_withdraw
Test function checking that a withdraw never reduces the value of pool tokens. Since curve calculations use unsigned integers, there is potential for
client-pool/src/pool_utils/calculator.rs:496
Function
check_withdraw_token_conversion
Test function to check that withdrawing token A is the same as withdrawing both and swapping one side. Since calculations use unsigned integers, there
client-pool/src/pool_utils/calculator.rs:304
Function
constant_product_no_fee
()
client-pool/src/pool_utils/base.rs:378
Function
constant_product_owner_fee
()
client-pool/src/pool_utils/base.rs:333
Function
constant_product_swap_rounding
()
client-pool/src/pool_utils/constant_product.rs:378
Function
constant_product_trade_fee
()
client-pool/src/pool_utils/base.rs:287
Method
default
()
client-pool/src/pool_utils/base.rs:168
Method
deposit_single_token_type
Get the amount of pool tokens for the deposited amount of token A or B.
client-pool/src/pool_utils/constant_product.rs:205
Method
deposit_single_token_type
Get the amount of pool tokens for the given amount of token A and B For the constant price curve, the total value of the pool is weighted by the price
client-pool/src/pool_utils/constant_price.rs:150
Method
deposit_single_token_type
Get the amount of pool tokens for the given amount of token A or B. Re-implementation of `calc_token_amount`: <https://github.com/curvefi/curve-contr
client-pool/src/pool_utils/stable.rs:267
Method
deposit_single_token_type
Get the amount of pool tokens for the given amount of token A and B, taking into account the offset
client-pool/src/pool_utils/offset.rs:81
Method
deref
(&self)
client-pool/src/serialize/token.rs:56
Method
eq
(&self, other: &Self)
client-pool/src/pool_utils/base.rs:193
Method
execute_opportunities
(&self, opportunities: &[ArbitrageOpportunity])
solana-mev/strategies/arbitrage_strategy.rs:99
Function
execute_orca_whirlpool_arbitrage
Multi-DEX Arbitrage (Orca -> Whirlpool -> Orca)
arbitrage/programs/tmp/src/lib.rs:106
Function
execute_triangle_arbitrage
Triangle Arbitrage (Meteora -> Meteora -> Raydium)
arbitrage/programs/tmp/src/lib.rs:65
Function
execute_two_hop_arbitrage
Two-Hop Arbitrage (Meteora -> Raydium)
arbitrage/programs/tmp/src/lib.rs:32
Function
fail_trading_token_conversion
()
client-pool/src/pool_utils/constant_product.rs:326
Function
fetch_prices_from_coingecko
(symbols: &[String])
solana-mev/utils/data_sources.rs:12
Function
find_opportunities
(&self)
solana-mev/strategies/copy_trade_strategy.rs:50
Method
find_opportunities
(&self, _target_accounts: &HashMap<Pubkey, crate::AccountInfo>)
solana-mev/strategies/liquidation.rs:14
Method
find_opportunities
(&self, _target_accounts: &HashMap<Pubkey, crate::AccountInfo>)
solana-mev/strategies/arbitrage.rs:14
Method
find_opportunities
(&self, market_conditions: &MarketConditions)
solana-mev/strategies/arbitrage_strategy.rs:95
Method
find_opportunities
(&self, target_accounts: &HashMap<Pubkey, crate::AccountInfo>)
solana-mev/bot/strategy_manager.rs:34
Method
find_opportunities
(&self)
solana-mev/bot/sniping_manager.rs:24
Method
find_opportunities
(&self)
solana-mev/bot/copy_trade_manager.rs:24
Method
find_opportunities
(&self)
solana-mev/bot/cross_chain_manager.rs:13
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
arbitrage/client/src/types.rs:13
Method
fmt
(&self, f: &mut fmt::Formatter)
client-pool/src/serialize/token.rs:49
Method
from
(s: WrappedString)
client-pool/src/serialize/token.rs:68
Method
from_bytes
(data: &[u8])
solana-arbitrage-bot2.0/src/dex/dlmm/dlmm_info.rs:179
Method
from_int
(n: u64)
client-pool/src/pool_utils/serum.rs:70
Method
from_srm_and_msrm_balances
(market: &Pubkey, srm_held: u64, msrm_held: u64)
client-pool/src/pool_utils/serum.rs:87
Method
get_asks_address
(&self, market: &Market)
solana-mev/dex/serum.rs:225
Method
get_asks_address
(&self, market: &Market)
solana-mev/dex/raydium.rs:246
Method
get_balances
(&self, market: &Market)
solana-mev/dex/serum.rs:179
Method
get_balances
(&self, market: &Market)
solana-mev/dex/orca.rs:113
Method
get_balances
(&self, market: &Market)
solana-mev/dex/raydium.rs:193
Method
get_bids_address
(&self, market: &Market)
solana-mev/dex/serum.rs:213
Method
get_bids_address
(&self, market: &Market)
solana-mev/dex/raydium.rs:232
Function
get_copy_trade_data
(thegraph_api: &TheGraphApi, trader_accounts: &[String])
solana-mev/utils/api.rs:21
Method
get_event_queue_address
(&self, market: &Market)
solana-mev/dex/serum.rs:237
Function
get_instruction_accounts
(transaction: &Transaction, program_id: &Pubkey)
solana-mev/utils/transaction_utils.rs:16
Function
get_instruction_data
(transaction: &Transaction, program_id: &Pubkey)
solana-mev/utils/transaction_utils.rs:5
Method
get_markets
(&self)
solana-mev/dex/serum.rs:30
Method
get_markets
(&self)
solana-mev/dex/orca.rs:30
Method
get_markets
(&self)
solana-mev/dex/raydium.rs:40
Method
get_mints
(&self)
client-pool/src/pools/serum.rs:226
Method
get_mints
(&self)
client-pool/src/pools/jupiter.rs:77
Method
get_name
(&self)
client-pool/src/pools/serum.rs:189
Method
get_name
(&self)
client-pool/src/pools/jupiter.rs:51
Method
get_name
(&self)
client-pool/src/pools/raydium.rs:154
Method
get_orderbook
(&self, market: &Market)
solana-mev/dex/serum.rs:52
Method
get_orderbook
(&self, market: &Market)
solana-mev/dex/raydium.rs:61
Method
get_output_token
(&self)
arbitrage/programs/tmp/src/state/arbitrage_state.rs:40
Method
get_output_token
(&self)
solana-program/programs/tmp/src/state/arbitrage_state.rs:40
Method
get_pool_info
(&self, pool_address: &str)
arbitrage/client/src/dex_client.rs:49
Function
get_pool_quote_with_amounts
( amount_in: u128, curve_type: CurveType, amp: u64, fees: &Fees, input_token_pool_amount
client-pool/src/pool_utils/raydium.rs:11
Method
get_price
( &self, token_in: &str, token_out: &str, dex_type: DexType )
arbitrage/client/src/price_monitor.rs:57
Method
get_quote
( &self, pool_amounts: [u128; 2], // [0] = src_amount, [1] = dst_amount percision_
client-pool/src/pool_utils/stable.rs:33
Method
get_quote_with_amounts_scaled
( &self, amount_in: u128, mint_in: &Pubkey, _mint_out: &Pubkey, )
client-pool/src/pools/serum.rs:245
Method
get_quote_with_amounts_scaled
( &self, amount_in: u128, mint_in: &Pubkey, _mint_out: &Pubkey, )
client-pool/src/pools/jupiter.rs:91
Method
get_quote_with_amounts_scaled
( &self, scaled_amount_in: u128, mint_in: &Pubkey, mint_out: &Pubkey, )
client-pool/src/pools/raydium.rs:86
Function
get_recent_trades
(&self, trader: &Pubkey)
solana-mev/strategies/copy_trade_strategy.rs:73
Function
get_sniping_data
(parsec_api: &ParsecApi, flipside_api: &FlipsideApi)
solana-mev/utils/api.rs:5
Function
get_tick_array_address
( whirlpool: &Pubkey, start_tick_index: i32, program_id: &Pubkey, )
solana-arbitrage-bot2.0/src/dex/whirlpool/mod.rs:60
Method
get_update_accounts
(&self)
client-pool/src/pools/serum.rs:193
Method
get_update_accounts
(&self)
client-pool/src/pools/jupiter.rs:55
Method
get_update_accounts
(&self)
client-pool/src/pools/raydium.rs:120
Method
handle_shutdown
Handle graceful shutdown on signals
arb-opportunity-execute-trade-python-raydium-jupiter/1.py:164
Method
host_fee
Calculate the host fee based on the owner fee, only used in production situations where a program is hosted by multiple frontends
client-pool/src/pool_utils/fees.rs:104
Function
initial_pool_amount
()
client-pool/src/pool_utils/constant_product.rs:291
Function
initialize
(ctx: Context<Initialize>)
arbitrage/programs/tmp/src/lib.rs:23
← previous
next →
201–300 of 450, ranked by callers