MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 4 callersFunctionbuy_token_destination_into
(destination: BuyTokenDestination)
crates/shared/src/db_order_conversions.rs:260
↓ 4 callersFunctioncalc_in_given_out
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L152-L190
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:96
↓ 4 callersFunctioncalc_out_given_in
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L109-L147
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:62
↓ 4 callersFunctioncalculate_invariant_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L10
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:244
↓ 4 callersMethodcalculate_quote
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:504
↓ 4 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/izeroex/src/lib.rs:703
↓ 4 callersMethodcompetition
(&self)
crates/driver/src/infra/api/mod.rs:199
↓ 4 callersFunctionconfig
Creates a temporary file containing the default config (buy orders disabled).
crates/solvers/src/tests/bitget/mod.rs:10
↓ 4 callersMethodconfigure_response
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:37
↓ 4 callersMethodcontracts
(&self)
crates/autopilot/src/infra/blockchain/mod.rs:110
↓ 4 callersFunctionconversion_rate
Converts the result of `convertToAssets(10^vault_decimals)` into the per-atom factor (atoms of underlying per atom of vault) by dividing by `10^vault_
crates/price-estimation/src/native/eip4626.rs:226
↓ 4 callersMethodcreate_and_index
Creates the order, mines it on-chain, waits for indexing, and optionally invalidates.
crates/e2e/tests/e2e/refunder.rs:171
↓ 4 callersFunctioncreate_order
( uid: u64, sell_token: TokenAddress, sell_amount: eth::U256, buy_token: Token
crates/autopilot/src/domain/competition/winner_selection.rs:1154
↓ 4 callersFunctiondb
(state: &AppState)
crates/orderbook/src/api/get_solver_competition_v2.rs:71
↓ 4 callersFunctiondecimal_to_rational
Converts a `BigDecimal` value to a `eth::Rational` value. Returns `None` if the specified decimal value cannot be represented as a rational of `U256`
crates/solvers/src/util/conv.rs:13
↓ 4 callersMethoddecimals
Fetch the ERC20 token decimals. Returns `None` if the token does not implement this optional method. See the decimals method in EIP-20. https://eips.
crates/driver/src/infra/blockchain/token.rs:48
↓ 4 callersFunctiondefault_token_info_fetcher
()
crates/price-estimation/src/native/coingecko.rs:376
↓ 4 callersFunctiondelete
( ex: &mut PgTransaction<'_>, delete_from_block_number: u64, )
crates/database/src/events.rs:48
↓ 4 callersFunctiondeploy_builder
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2794
↓ 4 callersFunctiondeploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:347
↓ 4 callersMethoddriver
(&self)
crates/autopilot/src/domain/competition/bid.rs:34
↓ 4 callersMethodeffective
Returns the estimated [`EffectiveGasPrice`] for the gas price estimate.
crates/eth-domain-types/src/gas.rs:46
↓ 4 callersMethodempty
Ensures that `/solve` returns no solutions.
crates/driver/src/tests/setup/mod.rs:1327
↓ 4 callersFunctionestimate
(amount: u64)
crates/price-estimation/src/competition/mod.rs:428
↓ 4 callersMethodestimate
Estimates the gas price for a transaction. If additional tip is configured, it will be added to the gas price. This is to increase the chance of a tra
crates/driver/src/infra/blockchain/gas.rs:53
↓ 4 callersMethodestimate
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/eip4626.rs:77
↓ 4 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:249
↓ 4 callersFunctioneth_order
An order which buys ETH.
crates/driver/src/tests/setup/mod.rs:773
↓ 4 callersFunctioneth_solution
()
crates/driver/src/tests/setup/mod.rs:783
↓ 4 callersFunctionevents_of_order
Returns all events of that order in the order they happend (old to new).
crates/e2e/tests/e2e/database.rs:13
↓ 4 callersFunctionextract_rfq_id_from_interaction
Extracts Liquorice maker RFQ ID from CoW interaction. RFQ ID is extracted from the calldata corresponding to the `settleSingle` function of the Liquor
crates/driver/src/infra/notify/liquidity_sources/liquorice/notifier.rs:143
↓ 4 callersMethodfetch_pool
( &self, pool_info: &Factory::PoolInfo, block: BlockId, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:194
↓ 4 callersMethodfetch_pools
Fetches and converts the given pools from the source at `target_block`, skipping any that can't be converted yet (e.g. missing ticks).
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:276
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Produces approval strategy candidates from a list of SLOAD-accessed slots. This function assumes SLOAD-accessed slots are returned in order that they
crates/balance-overrides/src/approval/mod.rs:35
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Used by Detector when there are multiple slots to increase the chances we find the correct storage slot quickly. Note: does not emit `AaveV3AToken` c
crates/balance-overrides/src/balance/mod.rs:47
↓ 4 callersFunctionfrom_domain
(order: domain::Order)
crates/autopilot/src/infra/persistence/dto/order.rs:47
↓ 4 callersFunctiongas
(value: u64)
crates/driver/src/domain/competition/solution/settlement.rs:456
↓ 4 callersMethodget
Returns the wrapped token pair as a tuple.
crates/driver/src/domain/liquidity/mod.rs:85
↓ 4 callersMethodget
()
crates/autopilot/src/solvable_orders.rs:85
↓ 4 callersMethodgetPair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:741
↓ 4 callersMethodget_amount_in
( &self, in_token: Address, (out_amount, out_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:27
↓ 4 callersMethodget_amount_out
( &self, out_token: Address, (in_amount, in_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:10
↓ 4 callersFunctionget_block_at_id
(provider: &AlloyProvider, id: BlockId)
crates/ethrpc/src/block_stream.rs:279
↓ 4 callersMethodget_events
( &self, block_range: RangeInclusive<u64>, )
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:82
↓ 4 callersFunctionget_orders_by_uid_response
(result: Result<Vec<(OrderUid, Result<Order>)>>)
crates/orderbook/src/api/get_orders_by_uid.rs:44
↓ 4 callersFunctionget_orders_with_native_prices
( orders: Vec<&'a Order>, native_price_estimator: &NativePriceUpdater, additional_tokens: impl Int
crates/autopilot/src/solvable_orders.rs:678
↓ 4 callersFunctionget_quote_and_check_fee
Retrieves the quote for an order that is being created and verify that its fee is sufficient. The fee is checked only if `fee_amount` is specified.
crates/shared/src/order_validation.rs:1102
↓ 4 callersFunctionget_relevant_pairs
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:227
↓ 4 callersMethodget_token
Returns the address of the token with the given symbol.
crates/driver/src/tests/setup/blockchain.rs:852
↓ 4 callersMethodget_token_infos
(&self, addresses: &[Address])
crates/token-info/src/lib.rs:88
↓ 4 callersFunctiongit_version
()
crates/observe/src/version.rs:3
↓ 4 callersMethodhandle_blocking_operation
Handles blocking operations such as the [`blocking_read`](RwLock::blocking_read) and [`blocking_write`](RwLock::blocking_write). This function *will
crates/ethrpc/src/alloy/wallet.rs:68
↓ 4 callersFunctionhandler
(source: StubSource, checkpoint: PoolsCheckpoint)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:881
↓ 4 callersMethodhash
Returns the app data hash. Does not validate expectation.
crates/model/src/order.rs:479
↓ 4 callersMethodhash
Returns the hash value for the specified source.
crates/driver/src/domain/competition/order/mod.rs:360
↓ 4 callersMethodinclude_slippage_bps
(&self, slippage: u16)
crates/e2e/tests/e2e/ethflow.rs:896
↓ 4 callersFunctioninfo_span
(request_id: String)
crates/observe/src/tracing/distributed/request_id.rs:55
↓ 4 callersFunctioninit
Initializes the event bus. Connection failures are logged but do not abort startup: the event bus is purely observational, so a misconfigured or unrea
crates/observe/src/event_bus/mod.rs:47
↓ 4 callersMethodinit
(factory: &PriceEstimatorFactory, name: &str, params: Self::Params)
crates/price-estimation/src/factory.rs:543
↓ 4 callersFunctioninsert_order_and_ignore_conflicts
( ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:167
↓ 4 callersFunctioninsert_order_events
( ex: &mut PgConnection, orders: &[OrderUid], timestamp: DateTime<Utc>, label: OrderEventLabel
crates/database/src/order_events.rs:103
↓ 4 callersFunctioninsert_trade
( ex: &mut PgConnection, index: &EventIndex, event: &Trade, )
crates/database/src/events.rs:113
↓ 4 callersMethodinternalize
Should the interaction be internalized?
crates/driver/src/domain/competition/solution/interaction.rs:18
↓ 4 callersMethodinto_inner
(self)
crates/driver/src/infra/solver/streaming/timed_writer.rs:32
↓ 4 callersMethodinto_source
(&self, web3: &Web3)
crates/liquidity-sources/src/uniswap_v2/mod.rs:102
↓ 4 callersFunctionis_order_outside_market_price
Checks whether or not an order's limit price is outside the market price specified by the quote.
crates/shared/src/order_validation.rs:1201
↓ 4 callersMethodjit_orders
(&self)
crates/price-estimation/src/trade_finding/mod.rs:117
↓ 4 callersFunctionjoin
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/shared/src/url.rs:5
↓ 4 callersFunctionjoin_url
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/simulator/src/utils/mod.rs:5
↓ 4 callersMethodlast_event_block
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:121
↓ 4 callersFunctionlog_to_event_index
(log: &Log)
crates/autopilot/src/database/events.rs:115
↓ 4 callersFunctionmake_streaming_quoter
Helpers shared by the streaming tests below.
crates/shared/src/order_quoting.rs:1998
↓ 4 callersFunctionmap_interactions_data
( interactions: impl IntoIterator<Item = &'a Interaction>, )
crates/price-estimation/src/trade_finding/mod.rs:334
↓ 4 callersFunctionmerge_raw
Merge two TOML strings, with the override taking precedence # Arguments `base` - The base TOML configuration as a string `overlay` - The override TOM
crates/e2e/src/setup/colocation/utils/toml.rs:16
↓ 4 callersFunctionmetrics
()
crates/rate-limit/src/lib.rs:26
↓ 4 callersMethodname
(&self)
crates/order-validation/src/banned/hermod.rs:98
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:479
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/signatures/src/lib.rs:895
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1825
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:786
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1046
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2768
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:538
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:281
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:739
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:721
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balances/src/lib.rs:1001
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:910
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:3786
↓ 4 callersMethodno_surplus
Ensure that this order generates no surplus, and therefore most likely has a negative score.
crates/driver/src/tests/setup/mod.rs:179
↓ 4 callersMethodorder_priority_strategy
(mut self, strategy: OrderPriorityStrategy)
crates/driver/src/tests/setup/mod.rs:828
↓ 4 callersFunctionorder_simulator
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3068
↓ 4 callersMethodorders
(&self)
crates/autopilot/src/domain/competition/mod.rs:49
↓ 4 callersMethodprovider
(&self)
crates/event-indexing/src/event_handler.rs:698
↓ 4 callersFunctionpublish_event
Enqueues the event to be sent to the event bus in a background task. For ad-hoc events, use [`publish`] instead.
crates/observe/src/event_bus/mod.rs:163
↓ 4 callersMethodpush_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:94
↓ 4 callersMethodquery
Runs a GraphQL query and decodes `data`. Errors if the response has a top-level `errors` array.
crates/pool-indexer/src/subgraph_seeder.rs:122
↓ 4 callersFunctionread_last_block_from_db
(db: &PgPool, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:19
↓ 4 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/ethflow_orders.rs:65
↓ 4 callersFunctionread_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:444
← previousnext →501–600 of 8,522, ranked by callers