MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersMethodfee
Returns the solver computed fee that was charged to the order as an asset (token address and amount). The fee is always charged in the order's sell to
crates/solvers/src/domain/solution.rs:367
↓ 1 callersFunctionfee_before_settlement
The fee `policy` takes from the fill `order` describes: the lesser of its [`FeeShares`].
crates/protocol-fees/src/lib.rs:232
↓ 1 callersFunctionfee_from_surplus
( fulfillment: &Fulfillment, sell_amount: eth::U256, buy_amount: eth::U256
crates/driver/src/domain/competition/solution/fee.rs:477
↓ 1 callersMethodfee_from_volume
The fee on one executed leg, `executed * f` rounded up in the fee's favour. The leg is the engine's pre-fee figure, so the same factor applies on both
crates/solana-driver/src/domain/solver_fee.rs:90
↓ 1 callersFunctionfee_in_buy_token
(order: &Order, quote: &OrderQuote)
crates/e2e/tests/e2e/protocol_fee.rs:696
↓ 1 callersMethodfee_in_ether
Total fee taken for the trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:61
↓ 1 callersMethodfee_in_sell_token
Converts a fee in the surplus token into the sell token at `prices`.
crates/driver/src/domain/competition/solution/fee.rs:139
↓ 1 callersMethodfee_in_sell_token
Total fee (protocol fee + network fee). Equal to a surplus difference before and after applying the fees.
crates/autopilot/src/domain/settlement/trade/math.rs:104
↓ 1 callersFunctionfee_on_top
`costs` with the protocol fee of an order that buys `buy_amount` whole: the fee at `factor` on the least leg that still leaves `buy_amount` once the d
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:659
↓ 1 callersMethodfee_policy
(self, fee_policy: Vec<fee::Policy>)
crates/driver/src/tests/setup/mod.rs:222
↓ 1 callersFunctionfee_policy_from
( db_fee_policy: database::fee_policies::FeePolicy, quote: Option<&database::orders::Quote>, order
crates/orderbook/src/database/fee_policies.rs:92
↓ 1 callersFunctionfee_row
A fee of 5 in `[0x22; 32]` that a sell order of 1000 paid in auction 7, the order linked to a route quote `(sell, buy, execution cost)`.
crates/solana-orderbook/src/infra/api/routes/trades/dto.rs:174
↓ 1 callersFunctionfee_to_decimal
(fee: liquidity::balancer::v2::Fee)
crates/driver/src/infra/solver/dto/auction.rs:350
↓ 1 callersFunctionfee_value
The CEL value a fee function returns: a map tagged with the fee `kind` plus one entry per argument. Fee functions return plain CEL data; typing and ra
crates/fee-engine/src/fee.rs:174
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/reference_scores.rs:38
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:400
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, contract_app_data: &AppId, )
crates/database/src/app_data.rs:36
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/settlement_executions.rs:271
↓ 1 callersFunctionfetch
()
crates/orderbook/src/ipfs_app_data.rs:161
↓ 1 callersMethodfetch
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:286
↓ 1 callersMethodfetch
The scaled prices of the tokens this source can price, recording one `price_estimates` result and duration per token. Tokens it cannot price are absen
crates/autopilot-svm/src/infra/prices.rs:598
↓ 1 callersMethodfetch_at_block
The block at which liquidity for `/solve` requests gets fetched.
crates/driver/src/infra/liquidity/fetcher.rs:52
↓ 1 callersMethodfetch_auction_data_for_transaction
Inspects the calldata of the transaction, decodes the arguments, and finds off-chain data associated with it based on the attached auction_id bytes.
crates/autopilot/src/domain/settlement/observer.rs:99
↓ 1 callersFunctionfetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:123
↓ 1 callersFunctionfetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:206
↓ 1 callersMethodfetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:260
↓ 1 callersMethodfetch_batch_consistent
Fetches pools + ticks for `ids` at a single indexer block. The two HTTP endpoints can drift if a chunk commits between them; we retry on mismatch up t
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:386
↓ 1 callersFunctionfetch_block_and_process
( provider: &AlloyProvider, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo>, )
crates/ethrpc/src/block_stream.rs:221
↓ 1 callersMethodfetch_conversion_data
Fetches `convertToAssets(10^vault_decimals)` — how many atomic units of the underlying asset correspond to one full vault token. Returns: - `Ok(Some(
crates/price-estimation/src/native/eip4626.rs:211
↓ 1 callersMethodfetch_debug_report
(&self, uid: &OrderUid)
crates/orderbook/src/database/debug_report.rs:35
↓ 1 callersMethodfetch_gas_price
(&self)
crates/gas-price-estimation/src/driver.rs:44
↓ 1 callersMethodfetch_inner
Sometimes nodes requests error when we try to get state from what we think is the current block when the node has been load balanced out to one that h
crates/liquidity-sources/src/recent_block_cache.rs:307
↓ 1 callersMethodfetch_json
(self)
contracts/src/vendor.rs:274
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/autopilot/src/database/auction.rs:144
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/orderbook/src/database/auctions.rs:38
↓ 1 callersFunctionfetch_latest_token_price
( ex: &mut PgConnection, token: Address, )
crates/database/src/auction.rs:158
↓ 1 callersMethodfetch_liquidity
( self: Arc<Self>, auction: Arc<Auction>, )
crates/driver/src/domain/competition/pre_processing.rs:402
↓ 1 callersMethodfetch_logs_bisecting
(&self, from: u64, to: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:257
↓ 1 callersMethodfetch_missing_on_demand
Fetches `missing` at the source's head, not the checkpoint block: the checkpoint can sit ahead of the indexer's served head, so waiting on it would ha
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:307
↓ 1 callersFunctionfetch_multiple
( ex: &mut PgConnection, ids: &[AuctionId], )
crates/database/src/auction.rs:103
↓ 1 callersMethodfetch_pool_info
( &self, pool_address: Address, block_created: u64, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:183
↓ 1 callersMethodfetch_pool_state
( &self, pool_info: &Self::PoolInfo, common_pool_state: BoxFuture<'static, common::Poo
crates/liquidity-sources/src/balancer_v2/pools/weighted.rs:89
↓ 1 callersMethodfetch_pool_state
( &self, pool_info: &Self::PoolInfo, common_pool_state: BoxFuture<'static, common::Poo
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:89
↓ 1 callersMethodfetch_pools
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:268
↓ 1 callersMethodfetch_prices
( &self, tokens: &[Address], timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:394
↓ 1 callersMethodfetch_quote
`GET /swap/v1/quote`. Kept opaque and passed back verbatim to `/swap-instructions`, we only read the amounts.
crates/solana-solvers/src/dex/jupiter/mod.rs:77
↓ 1 callersMethodfetch_raw
Tries to find full app data corresponding to the contract app data on IPFS. A return value of `Some` indicates that either the old or new CID format
crates/orderbook/src/ipfs_app_data.rs:55
↓ 1 callersMethodfetch_solutions
( &self, driver: &infra::Driver, request: solve::Request, )
crates/autopilot/src/shadow.rs:262
↓ 1 callersMethodfetch_solutions
( &self, auction: &Arc<domain::Auction>, deadline: DateTime<Utc>, )
crates/autopilot/src/run_loop.rs:673
↓ 1 callersFunctionfetch_symbol
(provider: &AlloyProvider, token: Address)
crates/pool-indexer/src/indexer/uniswap_v3.rs:666
↓ 1 callersMethodfetch_token_infos
Fetches `Metadata` of the requested tokens from a node.
crates/driver/src/infra/tokens.rs:156
↓ 1 callersFunctionfetch_total_surplus
Computes a user's total surplus received (price improvement over limit price and **NOT** quoted price) since march 2023.
crates/orderbook/src/database/total_surplus.rs:10
↓ 1 callersMethodfetch_values
( &self, requested: HashSet<TestKey>, _: Block, )
crates/liquidity-sources/src/recent_block_cache.rs:559
↓ 1 callersMethodfetch_vault_info
Fetches the vault's underlying asset address and vault token decimals. Returns: - `Ok(Some(...))` when `token` is a vault. - `Ok(None)` when `asset()
crates/price-estimation/src/native/eip4626.rs:171
↓ 1 callersFunctionfetched_liquidity
Observe the fetched liquidity.
crates/driver/src/infra/observe/mod.rs:57
↓ 1 callersFunctionfetching_liquidity
Observe that liquidity fetching is about to start.
crates/driver/src/infra/observe/mod.rs:52
↓ 1 callersFunctionfetching_liquidity_failed
Observe that fetching liquidity failed.
crates/driver/src/infra/observe/mod.rs:66
↓ 1 callersFunctionfill
The fill `trade` makes of `order`, in the chain-generic vocabulary.
crates/solana-driver/src/domain/protocol_fee.rs:89
↓ 1 callersMethodfill_at
The fill as `protocol_fees` sees it: the signed limit and the legs the fulfillment settles at `prices`, the fee inside the sell leg.
crates/driver/src/domain/competition/solution/fee.rs:124
↓ 1 callersFunctionfill_or_kill_zeroex_limit_order
( zeroex: &IZeroex::Instance, zeroex_order: &zeroex::OrderRecord, from: Address, )
crates/e2e/tests/e2e/liquidity.rs:405
↓ 1 callersMethodfilledAmount
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4314
↓ 1 callersMethodfilter
(&self)
crates/autopilot/src/database/onchain_order_events/event_retriever.rs:37
↓ 1 callersFunctionfilter_dust_orders
Filters out dust orders i.e. partially fillable orders that, when scaled have a 0 buy or sell amount.
crates/autopilot/src/solvable_orders.rs:631
↓ 1 callersFunctionfilter_out_in_flight_orders
( mut orders: Vec<&'a Order>, in_flight: &HashSet<OrderUid>, )
crates/autopilot/src/solvable_orders.rs:725
↓ 1 callersFunctionfilter_winners
(bids: &[Bid])
crates/autopilot/src/domain/competition/winner_selection.rs:1279
↓ 1 callersMethodfinalize
(self)
crates/driver/src/infra/solver/streaming/mod.rs:152
↓ 1 callersMethodfinalize_fast_path
Moves a fast-path order's staged competition into the permanent tables. In a single transaction, writes `competition_auctions`, the pre-built `propose
crates/autopilot/src/infra/persistence/mod.rs:1149
↓ 1 callersMethodfinalize_fast_path_solution
Swap this quote solution's single user order for the real signed `order`, pin the fill to the signed limit, and recover the order's flashloans/wrapper
crates/driver/src/domain/competition/solution/mod.rs:563
↓ 1 callersFunctionfinalize_settle
The `FinalizeSettle` instruction pushing each order's proceeds: out of the buy mint's buffer, or out of the native SOL buffer for a native SOL buy. On
crates/solana-driver/src/domain/settlement.rs:933
↓ 1 callersMethodfinalized_block
(&self)
crates/event-indexing/src/block_retriever.rs:35
↓ 1 callersMethodfinalized_slot
The finalized watermark, `None` before the first flush writes the state row.
crates/solana-indexer/src/persistence.rs:399
↓ 1 callersFunctionfind_latest_order_event
The label of the order's most recent auction-progress event.
crates/solana-orderbook/src/infra/db.rs:442
↓ 1 callersFunctionfind_or_create_quote
The quote copy to store under the order, the EVM `get_or_create_quote`: the quote `quote_id` names when it matches the order and is unexpired, for an
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:636
↓ 1 callersMethodfind_pending_tx_in_mempool
Queries the mempool for a pending transaction of the given solver and nonce.
crates/driver/src/infra/mempool/mod.rs:147
↓ 1 callersMethodfind_quote
( &self, id: Option<QuoteId>, parameters: QuoteSearchParameters, )
crates/shared/src/order_quoting.rs:739
↓ 1 callersFunctionfind_settlement_trace_and_callers
( call_frame: &blockchain::CallFrame, settlement_contract: eth::Address, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:218
↓ 1 callersFunctionfind_settlement_transaction
( ex: &mut PgConnection, auction_id: i64, solver: Address, solution_uid: i64, )
crates/database/src/settlements.rs:9
↓ 1 callersMethodfind_settlement_transaction
Tries to find the transaction executing a given solution proposed by the solver.
crates/autopilot/src/infra/persistence/mod.rs:322
↓ 1 callersFunctionfind_solutions_for_order
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/solver_competition_v2.rs:542
↓ 1 callersFunctionfind_solver_address
( authenticator: &impl Authenticator, callers: Vec<eth::Address>, block: BlockId, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:247
↓ 1 callersFunctionfind_sponsored_creation
The sponsored creation of an order. `None` when the uid is unknown or the order was not placed through the sponsored path.
crates/solana-orderbook/src/infra/db.rs:425
↓ 1 callersFunctionfind_winning_solution_uid
Finds a winning solution UID for a given set of trades by comparing the order UID and the sell/buy token with their executed amounts.
crates/autopilot/src/domain/settlement/mod.rs:284
↓ 1 callersFunctionfinish_simulation_builder
( mut builder: SimulationBuilder, )
crates/simulator/src/encoding.rs:347
↓ 1 callersFunctionflags
cf. https://github.com/cowprotocol/contracts/blob/v1.5.0/src/contracts/libraries/GPv2Trade.sol#L58
crates/driver/src/domain/competition/solution/encoding.rs:423
↓ 1 callersMethodflashLoanAndSettle
( data: &[u8], )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:961
↓ 1 callersFunctionflashloan_into_dto
(flashloan: Flashloan)
crates/driver/src/tests/cases/flashloan_hints.rs:146
↓ 1 callersMethodflashloan_router
(&self)
crates/driver/src/infra/blockchain/contracts.rs:146
↓ 1 callersMethodflashloan_router
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:153
↓ 1 callersMethodflashloans_enabled
Toggle acceptance of flashloan-hint orders at the driver level.
crates/driver/src/tests/setup/mod.rs:911
↓ 1 callersMethodflush
(&mut self)
crates/s3/src/lib.rs:48
↓ 1 callersMethodflush
(&mut self)
crates/driver/src/infra/solver/streaming/best_effort_sink.rs:29
↓ 1 callersMethodflush_confirmed
Flush every buffer at or below the confirmed slot, then advance the watermark to it: the slot's transactions all arrived before its status, and quiet
crates/solana-indexer/src/indexer/decoder.rs:234
↓ 1 callersFunctionflush_pending_fast_path_backlog
( ex: &mut PgConnection, now: u32, )
crates/database/src/orders.rs:268
↓ 1 callersMethodflush_pending_fast_path_backlog
Bulk-flushes fast-path orders whose `valid_from` was never populated: their `new_order` notification landed while the autopilot was down, and by the t
crates/autopilot/src/infra/persistence/mod.rs:1084
↓ 1 callersMethodformat_url
Encodes the orders query as a url with parameters.
crates/liquidity-sources/src/zeroex.rs:65
↓ 1 callersMethodformat_variant
for instrumentization purposes
crates/solvers/src/infra/dex/mod.rs:88
↓ 1 callersFunctionframe
The lines of the frame `program` fails in at index `failed`: those after its last `Program <id> invoke` line before it. Any program can print a line t
crates/solana-driver/src/domain/program_error.rs:108
↓ 1 callersMethodfrom
(mut value: ProviderLabel)
crates/ethrpc/src/alloy/instrumentation.rs:197
↓ 1 callersMethodfrom
(value: CoWSwapEthFlow::CoWSwapEthFlow::ordersReturn)
crates/refunder/src/traits.rs:29
↓ 1 callersMethodfrom
(err: anyhow::Error)
crates/account-balances/src/lib.rs:53
← previousnext →2,801–2,900 of 10,776, ranked by callers