MCPcopy Create free account

hub / github.com/ChangeYourself0613/Solana-Arbitrage-Bot / functions

Functions450 in github.com/ChangeYourself0613/Solana-Arbitrage-Bot

↓ 292 callersFunctionnew
( rpc_client: Arc<RpcClient>, dex_manager: Arc<Mutex<DexManager>>, tracked_traders: Ve
solana-mev/strategies/copy_trade_strategy.rs:22
↓ 108 callersMethodclone
(&self)
client-pool/src/serialize/token.rs:43
↓ 16 callersFunctionderive_token_address
(owner: &Pubkey, mint: &Pubkey)
client-pool/src/utils.rs:32
↓ 12 callersFunctionread_keypair_file
(path: &str)
solana-mev/utils/keypair.rs:6
↓ 11 callersFunctionsol_mint
()
solana-arbitrage-bot2.0/src/constants.rs:6
↓ 10 callersMethodclone
(&self)
client-pool/src/pool_utils/base.rs:183
↓ 9 callersFunctionfee_tenth_of_bps
(tenth_of_bps: u64)
client-pool/src/pool_utils/serum.rs:76
↓ 9 callersMethodswap_without_fees
Constant price curve always returns 1:1
client-pool/src/pool_utils/constant_price.rs:67
↓ 8 callersMethodupdate
(&mut self, _market_conditions: &crate::models::market_conditions::MarketConditions)
solana-mev/bot/path_finder.rs:12
↓ 7 callersFunctioncompute_d
Compute stable swap invariant (D) Equation: A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i))
client-pool/src/pool_utils/stable.rs:120
↓ 7 callersMethodswap
Subtract fees and calculate how much destination token will be provided given an amount of source token.
client-pool/src/pool_utils/base.rs:71
↓ 7 callersFunctionunpack_token_account
(data: &[u8])
client-pool/src/serialize/token.rs:137
↓ 6 callersFunctionaccount_info
(pk: &'a Pubkey, account: &'a mut Account)
client-pool/src/pools/serum.rs:62
↓ 6 callersFunctionchecked_u8_mul
Returns self multiplied by b
client-pool/src/pool_utils/stable.rs:87
↓ 6 callersMethodderef_mut
(&mut self)
client-pool/src/serialize/token.rs:62
↓ 6 callersMethodget_mints
(&self)
client-pool/src/pools/orca.rs:193
↓ 6 callersFunctionswap
The constant product swap calculation, factored out of its class for reuse. This is guaranteed to work for all values such that: - 1 <= swap_source_a
client-pool/src/pool_utils/constant_product.rs:27
↓ 6 callersMethodswap_without_fees
Constant product swap ensures token a * (token b + offset) = constant This is guaranteed to work for all values such that: - 1 <= source_amount <= u64
client-pool/src/pool_utils/offset.rs:40
↓ 5 callersMethodadd
(self, other: U64F64)
client-pool/src/pool_utils/serum.rs:45
↓ 5 callersFunctioncompute_a
Calculates A for deriving D Per discussion with the designer and writer of stable curves, this A is not the same as the A from the whitepaper, it's a
client-pool/src/pool_utils/stable.rs:73
↓ 5 callersMethodfloor
(self)
client-pool/src/pool_utils/serum.rs:60
↓ 5 callersFunctionread_json_dir
(dir: &String)
client-pool/src/utils.rs:9
↓ 5 callersMethodrun
(&mut self)
solana-mev/bot/solana_mev_bot.rs:83
↓ 5 callersMethodswap_without_fees
Stable curve
client-pool/src/pool_utils/stable.rs:191
↓ 5 callersFunctiontest_all_pool_quotes
( pool_dir: String, pool_tipe: PoolType, )
client-pool/src/tests/quotes.rs:57
↓ 4 callersFunctioncalculate_fee
Helper function for calculating swap fee
client-pool/src/pool_utils/fees.rs:45
↓ 4 callersMethodfind_opportunities
(&self)
solana-mev/bot/solana_mev_bot.rs:120
↓ 4 callersMethodnormalized_value
( &self, swap_token_a_amount: u128, swap_token_b_amount: u128, )
client-pool/src/pool_utils/stable.rs:333
↓ 4 callersFunctionpool_factory
(tipe: &PoolType, json_str: &String)
client-pool/src/pool.rs:27
↓ 4 callersMethodprocess_swap
( &self, amount_in: u64, minimum_amount_out: u64, )
solana-program/programs/tmp/src/swaps/orca.rs:41
↓ 4 callersFunctionstr2pubkey
(s: &str)
client-pool/src/utils.rs:28
↓ 4 callersMethodtaker_fee
(self, pc_qty: u64)
client-pool/src/pool_utils/serum.rs:125
↓ 4 callersFunctionvalidate_fraction
(numerator: u64, denominator: u64)
client-pool/src/pool_utils/fees.rs:64
↓ 4 callersFunctionwhirlpool_program_id
()
solana-arbitrage-bot2.0/src/dex/whirlpool/constants.rs:8
↓ 3 callersFunction_meteora_swap
( ctx: &Context<'_, '_, '_, 'info, MeteoraSwap<'info>>, amount_in: u64, minimum_amount_out: u64, )
arbitrage/programs/tmp/src/swaps/meteora.rs:6
↓ 3 callersFunctionaccount_info
(pk: &'a Pubkey, account: &'a mut Account)
client-pool/src/tmp.rs:47
↓ 3 callersMethodcalculate_output_amount
(&self, amount_in: f64, steps: &[PriceData])
arbitrage/client/src/route_finder.rs:178
↓ 3 callersFunctioncheck_pool_token_rate
( token_a: u128, token_b: u128, deposit: u128, supply: u128, expected_
client-pool/src/pool_utils/constant_product.rs:296
↓ 3 callersMethoddeposit_single_token_type
Get the amount of pool tokens for the deposited amount of token A or B
client-pool/src/pool_utils/base.rs:109
↓ 3 callersFunctiondlmm_program_id
()
solana-arbitrage-bot2.0/src/dex/dlmm/constants.rs:4
↓ 3 callersMethodexecute_trade
(self, client, trader, buy_dex, sell_dex, amount)
arb-opportunity-execute-trade-python-raydium-jupiter/1.py:222
↓ 3 callersMethodget_update_accounts
(&self)
client-pool/src/pools/orca.rs:137
↓ 3 callersFunctionmap_zero_to_none
Helper function for mapping to SwapError::CalculationFailure
client-pool/src/pool_utils/calculator.rs:19
↓ 3 callersMethodmint_2_addr
(&self, mint: &Pubkey)
client-pool/src/pools/orca.rs:181
↓ 3 callersMethodmint_2_addr
(&self, mint: &Pubkey)
client-pool/src/pools/raydium.rs:158
↓ 3 callersMethodpool_tokens_to_trading_tokens
The constant product implementation is a simple ratio calculation for how many trading tokens correspond to a certain number of pool tokens
client-pool/src/pool_utils/constant_product.rs:187
↓ 3 callersMethodpool_tokens_to_trading_tokens
Re-implementation of `remove_liquidty`: <https://github.com/curvefi/curve-contract/blob/80bbe179083c9a7062e4c482b0be3bfb7501f2bd/contracts/pool-templ
client-pool/src/pool_utils/stable.rs:224
↓ 3 callersMethodswap_ix
(&self, program: &Program, owner: &Pubkey, mint_in: &Pubkey, mint_out: &Pubk
client-pool/src/pools/orca.rs:48
↓ 3 callersMethodtrading_fee
Calculate the trading fee in trading tokens
client-pool/src/pool_utils/fees.rs:85
↓ 2 callersFunction_orca_swap
( ctx: &Context<'_, '_, '_, 'info, OrcaSwap<'info>>, amount_in: u64, minimum_amount_out: u64 )
arbitrage/programs/tmp/src/swaps/orca.rs:9
↓ 2 callersFunction_raydium_swap
( ctx: &Context<'_, '_, '_, 'info, RaydiumSwap<'info>>, amount_in: u64, minimum_amount_out: u64, )
arbitrage/programs/tmp/src/swaps/raydium.rs:18
↓ 2 callersFunctionadd_pool_to_graph
( graph: &mut PoolGraph, idx0: PoolIndex, idx1: PoolIndex, quote: &PoolQuote, )
client-pool/src/main.rs:48
↓ 2 callersFunctionadd_pool_to_graph
( graph: &mut PoolGraph, idx0: PoolIndex, idx1: PoolIndex, quote: &PoolQuote, )
client-pool/src/main-origin.rs:37
↓ 2 callersMethodbrute_force_search
( &self, start_mint_idx: usize, init_balance: u128, curr_balance: u128,
client-pool/src/arb.rs:39
↓ 2 callersFunctionchecked_u8_power
Returns self to the power of b
client-pool/src/pool_utils/stable.rs:78
↓ 2 callersFunctioncompute_new_destination_amount
Compute swap amount `y` in proportion to `x` Solve for y: y**2 + y * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A
client-pool/src/pool_utils/stable.rs:157
↓ 2 callersFunctiondeposit_single_token_type
Get the amount of pool tokens for the deposited amount of token A or B. The constant product implementation uses the Balancer formulas found at <http
client-pool/src/pool_utils/constant_product.rs:100
↓ 2 callersFunctionderive_next_start_tick_in_seq
( start_tick: i32, tick_spacing: u16, a_to_b: bool, )
solana-arbitrage-bot2.0/src/dex/whirlpool/mod.rs:42
↓ 2 callersFunctionderive_tick_array_start_indexes
( curr_tick: i32, tick_spacing: u16, a_to_b: bool, )
solana-arbitrage-bot2.0/src/dex/whirlpool/mod.rs:30
↓ 2 callersMethodfind_opportunities
(&self, _target_accounts: &HashMap<Pubkey, crate::AccountInfo>)
solana-mev/bot/path_finder.rs:14
↓ 2 callersMethodget_mints
(&self)
client-pool/src/pools/raydium.rs:168
↓ 2 callersMethodget_orders
(&self)
solana-mev/monitoring/metrics.rs:37
↓ 2 callersMethodget_pool_data
(&self, pool_address: &Pubkey)
solana-mev/dex/orca.rs:132
↓ 2 callersFunctionget_pool_quote_with_amounts
( amount_in: u128, curve_type: CurveType, amp: u64, fees: &Fees, input_token_pool_amount
client-pool/src/pool_utils/orca.rs:11
↓ 2 callersMethodget_profits
(&self)
solana-mev/monitoring/metrics.rs:41
↓ 2 callersMethodget_quote_with_amounts_scaled
( &self, scaled_amount_in: u128, mint_in: &Pubkey, mint_out: &Pubkey, )
client-pool/src/pools/orca.rs:92
↓ 2 callersMethodget_recent_trades
(&self, account: &Pubkey)
solana-mev/bot/copy_trade_manager.rs:57
↓ 2 callersMethodget_token_account
(&self, token_mint: &Pubkey)
solana-mev/dex/orca.rs:139
↓ 2 callersMethodget_vault_address
(&self, market: &Market, token_mint: &Pubkey)
solana-mev/dex/serum.rs:261
↓ 2 callersMethodget_vaults
(&self, market: &Market)
solana-mev/dex/raydium.rs:212
↓ 2 callersMethodget_volumes
(&self)
solana-mev/monitoring/metrics.rs:45
↓ 2 callersMethodget_with_timeout
Make a GET request with timeout and retry logic
arb-opportunity-execute-trade-python-raydium-jupiter/1.py:39
↓ 2 callersFunctionload_keypair
(private_key: &str)
solana-arbitrage-bot2.0/src/bot.rs:198
↓ 2 callersMethodmul_u64
(self, other: u64)
client-pool/src/pool_utils/serum.rs:55
↓ 2 callersFunctionnormalized_value
Calculates the total normalized value of the curve given the liquidity parameters. The constant product implementation for this function gives the sq
client-pool/src/pool_utils/constant_product.rs:162
↓ 2 callersMethodopposite
Given a trade direction, gives the opposite direction of the trade, so A to B becomes B to A, and vice versa
client-pool/src/pool_utils/calculator.rs:53
↓ 2 callersMethodoptimize
(&self, opportunity: &MevOpportunity)
solana-mev/bot/optimizer.rs:14
↓ 2 callersFunctionparse_config
(path: &str)
solana-mev/utils/config_parser.rs:6
↓ 2 callersMethodplace_order
( &self, market: &Market, order_type: OrderType, side: OrderSide, pric
solana-mev/dex/orca.rs:56
↓ 2 callersFunctionpool_tokens_to_trading_tokens
Get the amount of trading tokens for the given amount of pool tokens, provided the total trading tokens and supply of pool tokens. The constant produ
client-pool/src/pool_utils/constant_product.rs:53
↓ 2 callersFunctionpump_fee_wallet
()
solana-arbitrage-bot2.0/src/dex/pump/constants.rs:11
↓ 2 callersFunctionpump_program_id
()
solana-arbitrage-bot2.0/src/dex/pump/constants.rs:7
↓ 2 callersFunctionraydium_clmm_program_id
()
solana-arbitrage-bot2.0/src/dex/raydium/constants.rs:22
↓ 2 callersFunctionraydium_cp_program_id
()
solana-arbitrage-bot2.0/src/dex/raydium/constants.rs:14
↓ 2 callersFunctionraydium_program_id
()
solana-arbitrage-bot2.0/src/dex/raydium/constants.rs:4
↓ 2 callersMethodremove_taker_fee
(self, pc_qty_incl_fee: u64)
client-pool/src/pool_utils/serum.rs:132
↓ 2 callersMethodtaker_rate
(self)
client-pool/src/pool_utils/serum.rs:110
↓ 2 callersFunctiontrading_tokens_to_pool_tokens
Get the amount of pool tokens for the given amount of token A or B. The constant product implementation uses the Balancer formulas found at <https://
client-pool/src/pool_utils/constant_price.rs:23
↓ 2 callersFunctionunpack_coption_key
(src: &[u8; 36])
client-pool/src/serialize/token.rs:119
↓ 2 callersFunctionwithdraw_single_token_type_exact_out
Get the amount of pool tokens for the withdrawn amount of token A or B. The constant product implementation uses the Balancer formulas found at <http
client-pool/src/pool_utils/constant_product.rs:131
↓ 1 callersMethodadd_dlmm_pool
( &mut self, pair: &str, token_vault: &str, sol_vault: &str, oracle: &
solana-arbitrage-bot2.0/src/pools.rs:137
↓ 1 callersMethodadd_pump_pool
( &mut self, pool: &str, token_vault: &str, sol_vault: &str, fee_token
solana-arbitrage-bot2.0/src/pools.rs:121
↓ 1 callersMethodadd_raydium_clmm_pool
( &mut self, pool: &str, amm_config: &str, observation_state: &str, x_
solana-arbitrage-bot2.0/src/pools.rs:183
↓ 1 callersMethodadd_raydium_cp_pool
( &mut self, pool: &str, token_vault: &str, sol_vault: &str, amm_confi
solana-arbitrage-bot2.0/src/pools.rs:103
↓ 1 callersMethodadd_raydium_pool
( &mut self, pool: &str, token_vault: &str, sol_vault: &str, )
solana-arbitrage-bot2.0/src/pools.rs:89
↓ 1 callersMethodadd_whirlpool_pool
( &mut self, pool: &str, oracle: &str, x_vault: &str, y_vault: &str,
solana-arbitrage-bot2.0/src/pools.rs:160
↓ 1 callersMethodanalyze
(&self)
solana-mev/bot/market_analyzer.rs:13
↓ 1 callersFunctionask_iteration
ask: base -> quote
client-pool/src/pools/serum.rs:134
↓ 1 callersFunctionbatch_instructions
(trades: Vec<Instruction>, program: &Program, owner: &Pubkey)
client-pool/src/main new.rs:33
↓ 1 callersFunctionbid_iteration
bid: quote -> base
client-pool/src/tmp.rs:66
next →1–100 of 450, ranked by callers