MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,486 in github.com/cowprotocol/services

↓ 3 callersMethodbuy
The asset being bought, or [`eth::U256::one`] if this is a sell, to facilitate surplus.
crates/driver/src/domain/quote.rs:266
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1659
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/counter/src/lib.rs:902
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1369
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1369
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1409
↓ 3 callersFunctioncancel_order
Applies the needed DB modification to cancel a single order.
crates/orderbook/src/database/orders.rs:97
↓ 3 callersFunctioncheck_batching_many
Function to check batching of many tokens
crates/price-estimation/src/buffered.rs:385
↓ 3 callersMethodchecked_mul_ratio_ceil
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:87
↓ 3 callersMethodclearing_prices
Token prices settled by this solution, expressed using an arbitrary reference unit chosen by the solver. These values are only meaningful in relation
crates/driver/src/domain/competition/solution/mod.rs:610
↓ 3 callersFunctioncompetition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:438
↓ 3 callersMethodcomplement
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:188
↓ 3 callersFunctioncompute_absolute_tolerance
Computes the absolute tolerance amount from a relative factor.
crates/solvers/src/domain/dex/shared.rs:15
↓ 3 callersFunctionconfig
(enable_buy_orders: bool)
crates/solana-solvers/src/dex/jupiter/mod.rs:174
↓ 3 callersFunctionconfig
()
crates/driver/src/infra/solver/mod.rs:587
↓ 3 callersMethodconfig
Load the specified config file. Otherwise, a temporary config file will be created with reasonable values.
crates/driver/src/tests/setup/mod.rs:853
↓ 3 callersFunctionconstant_a_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:91
↓ 3 callersFunctionconstant_a_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:75
↓ 3 callersFunctionconstant_x_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:67
↓ 3 callersFunctionconstant_x_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:51
↓ 3 callersFunctionconvert_onchain_order_placement
( order_placement: &ContractOrderPlacement, event_timestamp: i64, quote: Result<Quote, OnchainOrde
crates/autopilot/src/database/onchain_order_events/mod.rs:584
↓ 3 callersFunctioncreate_order_tx
Verifies the run loop drains buffered updates and returns Ok when the sender drops. Event content is not asserted here: the persistence bodies are no-
crates/solana-indexer/src/indexer/decoder/tests.rs:351
↓ 3 callersFunctioncreate_stable_pool_with
( tokens: Vec<Address>, balances: Vec<U256>, amplification_parameter: AmplificationPar
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:481
↓ 3 callersMethodcustom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callersFunctiondecimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callersMethoddecode
( &self, tx: SubscribeUpdateTransactionInfo, slot: Slot, signature: Signature,
crates/solana-indexer/src/indexer/decoder.rs:209
↓ 3 callersFunctiondefault_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:144
↓ 3 callersFunctiondefault_past_blocks
()
crates/configs/src/gas_price_estimation.rs:9
↓ 3 callersFunctiondefault_reward_percentile
()
crates/configs/src/gas_price_estimation.rs:13
↓ 3 callersFunctiondefault_streaming_params
()
crates/shared/src/order_quoting.rs:2259
↓ 3 callersMethoddeploy_cow_weth_pool
( &self, cow_supply: U256, cow_amount: U256, weth_amount: U256, )
crates/e2e/src/setup/onchain_components/mod.rs:551
↓ 3 callersFunctiondeploy_with_solver_and_trader
Deploys onchain components with a solver and a trader, each funded with 100 ETH.
crates/e2e/tests/e2e/protocol_fee.rs:1259
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1739
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/izeroex/src/lib.rs:8281
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1743
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/signatures/src/lib.rs:1094
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:1000
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:2643
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:2073
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1570
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:5073
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1446
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1302
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1491
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/permit2/src/lib.rs:4633
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1491
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1491
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:4675
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:9570
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1183
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1252
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3037
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:909
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:893
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:1275
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:1692
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1491
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:7199
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:967
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:943
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balances/src/lib.rs:1201
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1446
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:1126
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:5256
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1491
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:4134
↓ 3 callersMethoddiv_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:165
↓ 3 callersMethodeffective_receiver
(&self)
crates/price-estimation/src/lib.rs:186
↓ 3 callersMethodencode
Encode the solution into a [`Settlement`], which can be used to execute the solution onchain.
crates/driver/src/domain/competition/solution/mod.rs:539
↓ 3 callersMethodencode_swap
(&self)
crates/solver/src/interactions/uniswap_v2.rs:27
↓ 3 callersFunctionestimate
(amount: u64)
crates/price-estimation/src/competition/mod.rs:428
↓ 3 callersMethodestimate
(&self)
crates/gas-price-estimation/src/priority.rs:66
↓ 3 callersFunctionestimate_buy_amount
Given a path and sell amount (first token of the path) estimates the buy amount (last token of the path) and the path of liquidity that yields this re
crates/solvers/src/boundary/routing.rs:38
↓ 3 callersMethodestimate_prices_and_update_cache
Checks cache for the given tokens one by one. If the price is already cached, it gets returned. If it's not in the cache, a new price estimation reque
crates/price-estimation/src/native_price_cache.rs:322
↓ 3 callersFunctionestimate_sell_amount
Given a path and buy amount (last token of the path) estimates the sell amount (first token of the path) and the path of liquidity that yields this re
crates/solvers/src/boundary/routing.rs:75
↓ 3 callersMethodeth_order_executed
Ensure that the onchain balances changed in accordance with the [`eth_order`].
crates/driver/src/tests/setup/mod.rs:1874
↓ 3 callersMethodexec_alloy_call
(&self, tx: TransactionRequest)
crates/e2e/src/setup/onchain_components/safe.rs:137
↓ 3 callersMethodexecute_with_back_off
( &self, task: impl Future<Output = T>, requires_back_off: impl Fn(&T) -> bool, )
crates/rate-limit/src/lib.rs:185
↓ 3 callersMethodexecuted
(self, executed: Option<eth::U256>)
crates/driver/src/tests/setup/mod.rs:269
↓ 3 callersMethodexecuted_amounts
Computes and returns the executed trade amounts given sell and buy prices.
crates/solver/src/settlement/mod.rs:53
↓ 3 callersFunctionexp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/weighted_math.rs:11
↓ 3 callersMethodexpected_amounts
(self, expected_amounts: ExpectedOrderAmounts)
crates/driver/src/tests/setup/mod.rs:239
↓ 3 callersMethodfee_with_additional_cost
(&self, additional_cost: u64)
crates/shared/src/fee.rs:41
↓ 3 callersMethodfetch
(&self, pairs: HashSet<TokenPair>, block: Block)
crates/liquidity-sources/src/uniswap_v2/pool_cache.rs:49
↓ 3 callersFunctionfetch_all
( ex: &mut PgConnection, keys_filter: &[Execution], )
crates/database/src/fee_policies.rs:61
↓ 3 callersMethodfetch_common_pool_state
( &self, pool: &PoolInfo, block: BlockId, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:109
↓ 3 callersFunctionfetch_latest_prices
(ex: &mut PgConnection)
crates/database/src/auction_prices.rs:55
↓ 3 callersFunctionfetch_solver_winning_solutions
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, )
crates/database/src/solver_competition_v2.rs:409
↓ 3 callersMethodfillOrKillLimitOrder
(data: &[u8])
contracts/generated/contracts-generated/izeroex/src/lib.rs:7340
↓ 3 callersMethodfind_order_for_cancellation
Finds an order for cancellation. Returns an error if the order cannot be found or cannot be cancelled (for example, orders using PreSign).
crates/orderbook/src/orderbook.rs:327
↓ 3 callersMethodflashloan
(mut self, order: order::Uid, flashloan: Flashloan)
crates/driver/src/tests/setup/mod.rs:637
← previousnext →701–800 of 8,486, ranked by callers