MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,584 in github.com/cowprotocol/services

↓ 3 callersFunctionconvert_onchain_order_placement
( order_placement: &ContractOrderPlacement, event_timestamp: i64, quote: Result<Quote, OnchainOrde
crates/autopilot/src/database/onchain_order_events/mod.rs:583
↓ 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 callersFunctiondecode_settlement
Decode the settlement-program instructions of one transaction into domain events. Pure: every tx-level input arrives through `ctx`, and any order fie
crates/solana-indexer/src/indexer/decoder.rs:191
↓ 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:2063
↓ 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/cowammlegacyhelper/src/lib.rs:3159
↓ 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 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/cowammconstantproductfactory/src/lib.rs:3040
↓ 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:182
↓ 3 callersMethodencode_swap
(&self)
crates/solver/src/interactions/uniswap_v2.rs:27
↓ 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:1776
↓ 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 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:318
↓ 3 callersMethodflashloan
(&self)
crates/driver/src/domain/competition/order/app_data.rs:127
↓ 3 callersMethodflashloan
(mut self, order: order::Uid, flashloan: Flashloan)
crates/driver/src/tests/setup/mod.rs:626
↓ 3 callersFunctionframe_with
( venue: Address, account: Address, balance: Option<U256>, slot: Option<B256>,
crates/simulator/src/state_override_stream.rs:289
↓ 3 callersMethodfrom
(value: Kind)
crates/driver/src/infra/api/error.rs:42
↓ 3 callersFunctionfrom_domain
Takes the order by reference so callers that still need the domain order afterwards don't have to deep-clone it just to convert it.
crates/autopilot/src/infra/persistence/dto/order.rs:49
↓ 3 callersFunctionfull_order_into_model_order
(order: FullOrder)
crates/orderbook/src/database/orders.rs:561
↓ 3 callersFunctionfull_order_with_quote_into_model_order
If quote is provided, then it is used to extract quote metadata field value.
crates/orderbook/src/database/orders.rs:566
↓ 3 callersMethodfund
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:128
↓ 3 callersMethodgas
(&self)
crates/driver/src/domain/competition/solution/mod.rs:243
↓ 3 callersMethodgas_limit
(&self)
crates/app-data/src/hooks.rs:20
↓ 3 callersFunctiongenerate_settlement_report
(context: Context, trace: CallFrame)
crates/simulator/src/report.rs:93
↓ 3 callersMethodget
(&mut self, key: K, block: Option<u64>)
crates/liquidity-sources/src/recent_block_cache.rs:395
↓ 3 callersMethodget
()
crates/autopilot/src/run_loop.rs:1049
↓ 3 callersMethodget
()
crates/simulator/src/state_override_stream.rs:242
↓ 3 callersMethodget_app_data
( &self, app_data: AppDataHash, )
crates/e2e/src/setup/services.rs:713
↓ 3 callersMethodget_applicable_volume_fee_factor
Determines the applicable volume fee factor for a token pair, considering same-token trade configuration, token bucket overrides and default fee facto
crates/shared/src/fee.rs:80
↓ 3 callersFunctionget_checkpoint
(pool: &PgPool, contract: &Address)
crates/pool-indexer/src/db/uniswap_v3.rs:23
↓ 3 callersFunctionget_latest
( ex: &mut PgConnection, order: &OrderUid, )
crates/database/src/order_events.rs:157
↓ 3 callersMethodget_list
(&self, tokens: Vec<TokenModel>)
crates/shared/src/token_list.rs:35
↓ 3 callersMethodget_order
(&self, uid: &OrderUid)
crates/orderbook/src/orderbook.rs:483
↓ 3 callersFunctionget_order_by_uid_response
(result: Result<Option<Order>>)
crates/orderbook/src/api/get_order_by_uid.rs:21
↓ 3 callersMethodget_order_status
( &self, uid: &OrderUid, )
crates/e2e/src/setup/services.rs:626
↓ 3 callersMethodget_orders
( &self, pairs: HashSet<TokenPair>, block: Block, )
crates/solver/src/liquidity/balancer_v2.rs:48
↓ 3 callersMethodget_quality
Returns the quality of the token if the cached value has not expired yet.
crates/driver/src/domain/competition/risk_detector/bad_tokens/cache.rs:71
↓ 3 callersFunctionget_registry
Get the global instance of the metrics registry.
crates/observe/src/metrics.rs:59
↓ 3 callersMethodget_token_info
(&self, address: Address)
crates/token-info/src/lib.rs:79
↓ 3 callersMethodhaircut_fee
Returns the haircut fee for conservative bidding.
crates/driver/src/domain/competition/solution/trade.rs:207
← previousnext →701–800 of 8,584, ranked by callers