MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 2 callersMethoduser_surplus
Amount of value the user got above the order's limit price denominated in the surplus token.
crates/driver/src/domain/competition/solution/scoring.rs:303
↓ 2 callersMethodvalid_to
(self, valid_to: u32)
crates/driver/src/tests/setup/mod.rs:277
↓ 2 callersMethodvalidate
(&self, domain_separator: &DomainSeparator)
crates/model/src/order.rs:542
↓ 2 callersMethodvalidate
(&self)
crates/orderbook/src/api/get_trades_v2.rs:48
↓ 2 callersMethodvalidate_signature_and_get_additional_gas
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:178
↓ 2 callersFunctionvalidator
Creates the default [`SignatureValidating`] instance.
crates/signature-validator/src/lib.rs:116
↓ 2 callersMethodvault
(&self)
crates/solver/src/liquidity/balancer_v2.rs:131
↓ 2 callersMethodvault_relayer
(&self)
crates/account-balances/src/simulation.rs:32
↓ 2 callersMethodvault_relayer
(&self)
crates/driver/src/infra/blockchain/contracts.rs:120
↓ 2 callersMethodvendor_source
(&self, name: &str, source: Src)
contracts/src/vendor.rs:324
↓ 2 callersFunctionverify_executed_amount
(order: &Order, executed: U256)
crates/solver/src/settlement/settlement_encoder.rs:570
↓ 2 callersFunctionwait_for_pending_txs
(provider: &impl Provider, address: Address)
crates/driver/src/infra/solver/eip7702.rs:470
↓ 2 callersMethodwait_until
Polls `/pools?limit=1` every [`WAIT_UNTIL_POLL_INTERVAL`] until the envelope reports `block_number >= target_block`. Returns immediately if already th
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:222
↓ 2 callersMethodwait_until_block_processed
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:60
↓ 2 callersFunctionweb3_client
Builds a web3 client based on the ethrpc args config.
crates/autopilot/src/boundary/mod.rs:36
↓ 2 callersFunctionwei_to_decimal
Convert a U256 wei amount to a decimal string using the token's decimals. e.g., 1000000000000000000 with 18 decimals → "1"
crates/solvers/src/infra/dex/bitget/mod.rs:22
↓ 2 callersMethodweth
(&self)
crates/driver/src/infra/blockchain/contracts.rs:124
↓ 2 callersMethodweth_address
(&self)
crates/driver/src/infra/blockchain/contracts.rs:128
↓ 2 callersFunctionwith
(tx: Tx, block: eth::BlockNo)
crates/simulator/src/lib.rs:149
↓ 2 callersMethodwith_additional_cost
Adjusts the quote fee to include arbitrary additional costs.
crates/shared/src/order_quoting.rs:112
↓ 2 callersMethodwith_app_data
(mut self, app_data: [u8; 32])
crates/model/src/order.rs:116
↓ 2 callersMethodwith_buffers_internalizations
Returns `self` with eligible interactions internalized using the Settlement contract buffers. Currently, this internalizes all interactions with inpu
crates/solvers/src/domain/solution.rs:50
↓ 2 callersMethodwith_domain
(self, order: &dex::Order, slippage: &dex::Slippage)
crates/solvers/src/infra/dex/okx/dto.rs:76
↓ 2 callersMethodwith_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/simulator/src/ethereum/mod.rs:80
↓ 2 callersMethodwith_partially_fillable
(mut self, partially_fillable: bool)
crates/model/src/order.rs:136
↓ 2 callersMethodwith_presign
(mut self, owner: Address)
crates/model/src/order.rs:178
↓ 2 callersMethodwith_receiver
(mut self, receiver: Option<Address>)
crates/model/src/order.rs:121
↓ 2 callersMethodwith_scaled_sell_amount
Scales order buy amount to the specified sell amount. This allows scaling the quoted amounts to some lower sell amount accounting for fees (for quote
crates/shared/src/order_quoting.rs:134
↓ 2 callersMethodwith_score
(self, score: Score)
crates/winner-selection/src/state.rs:82
↓ 2 callersMethodwith_sell_amount
Set the sell amount for the order.
crates/e2e/tests/e2e/refunder.rs:140
↓ 2 callersMethodwith_timeout
(mut self, timeout: Duration)
crates/e2e/src/setup/services.rs:85
↓ 2 callersMethodwith_valid_to
(mut self, valid_to: u32)
crates/model/src/order.rs:111
↓ 2 callersFunctionworkspace_root
()
contracts/src/main.rs:67
↓ 2 callersMethodwrappers
(&self)
crates/driver/src/domain/competition/order/app_data.rs:134
↓ 1 callersMethodBALANCE_MANAGER
( data: &[u8], )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:7648
↓ 1 callersMethodDOMAIN_SEPARATOR
(data: &[u8])
contracts/generated/contracts-generated/permit2/src/lib.rs:3609
↓ 1 callersMethodFACTORY
(data: &[u8])
contracts/generated/contracts-generated/cowammfactorygetter/src/lib.rs:251
↓ 1 callersFunction_ln
(mut a: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:178
↓ 1 callersFunction_ln_36
(mut x: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:217
↓ 1 callersMethodabi_only
Creates a context for vendoring only the contract ABI for generating bindings. This is preferred over [`Vendor::full`] for contracts that do not need
contracts/src/vendor.rs:247
↓ 1 callersMethodaccount
The account which should be used to sign settlements for this solver.
crates/driver/src/infra/solver/mod.rs:312
↓ 1 callersFunctionaccount_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:59
↓ 1 callersMethodactive
Returns the inner pool data if it is active, `None` otherwise.
crates/liquidity-sources/src/balancer_v2/pools/mod.rs:62
↓ 1 callersFunctionactual_receiver
(owner: Address, order: &OrderData)
crates/shared/src/order_validation.rs:406
↓ 1 callersMethodactual_valid_to
Returns a materialized valid-to value for the specified validity.
crates/model/src/quote.rs:195
↓ 1 callersMethodadd
Adds slippage to the specified amount.
crates/solvers/src/domain/dex/slippage.rs:62
↓ 1 callersMethodadd_contract
(mut self, contract: Contract)
contracts/src/codegen.rs:81
↓ 1 callersMethodadd_cow_amm_indexer
Registers all maintenance tasks that are necessary to correctly support CoW AMMs.
crates/autopilot/src/maintenance.rs:271
↓ 1 callersMethodadd_custom_price_trade
( &mut self, order: Order, executed_amount: U256, fee: U256, sell_pric
crates/solver/src/settlement/settlement_encoder.rs:321
↓ 1 callersMethodadd_ethflow_indexing
Registers all maintenance tasks that are necessary to correctly support ethflow orders.
crates/autopilot/src/maintenance.rs:260
↓ 1 callersMethodadd_listener
( &mut self, deployment_block: u64, factory: Address, helper_contract: Address
crates/cow-amm/src/registry.rs:43
↓ 1 callersMethodadd_market_trade
Adds an order trade using the uniform clearing prices for sell and buy token. Fails if any used token doesn't have a price or if executed amount is im
crates/solver/src/settlement/settlement_encoder.rs:160
↓ 1 callersMethodadd_submodule
(mut self, submodule: Submodule)
contracts/src/codegen.rs:86
↓ 1 callersMethodadd_to_amount
Increase the specified amount by the constant slippage.
crates/solver/src/liquidity/slippage.rs:186
↓ 1 callersMethodadd_token_equivalency
( &mut self, token_a: Address, token_b: Address, )
crates/solver/src/settlement/settlement_encoder.rs:376
↓ 1 callersMethodadditional_gas_amount
Returns the additional gas amount associated with a signing scheme.
crates/model/src/quote.rs:64
↓ 1 callersFunctionaddress
(id: u64)
crates/autopilot/src/domain/competition/winner_selection.rs:1150
↓ 1 callersMethodadjust_query
Builds the query forwarded to the inner estimator, substituting the native token for an ETH side and reporting the gas adjustment that has to be appli
crates/price-estimation/src/sanitized.rs:68
↓ 1 callersFunctionadjust_quote_to_order_limits
This function adjusts quote amounts to directly compare them with the order's limits, ensuring a meaningful comparison for potential price improvement
crates/autopilot/src/domain/settlement/trade/math.rs:440
↓ 1 callersMethodadjust_quote_to_order_limits
Adjust quote amounts to be comparable with order limits.
crates/winner-selection/src/arbitrator.rs:403
↓ 1 callersMethodadjusted_reserve_b
Restores reserve_b value from the given reserve_a and the quote. Reverse operation for the `blockchain::Pool::out` function <https://en.wikipedia.org/
crates/driver/src/tests/setup/mod.rs:466
↓ 1 callersFunctionall_settlement_tx_hashes
( ex: &mut PgConnection, )
crates/database/src/settlements.rs:122
↓ 1 callersMethodall_solvable_orders
(&self, min_valid_to: u32)
crates/autopilot/src/database/auction.rs:64
↓ 1 callersFunctionall_tables
()
crates/database/src/lib.rs:87
↓ 1 callersFunctionallow_failed_buy_token_transfer
The simulation requires the settlement contract to have enough buy tokens to pay out the order directly. But it's also possible that we fail to comput
crates/shared/src/order_creation_simulation.rs:258
↓ 1 callersFunctionallow_unfunded_presign_order
PreSign orders are currently the only ones that are allowed to be placed without any balance at all. If we detect a revert of the sell token transfer
crates/shared/src/order_creation_simulation.rs:292
↓ 1 callersMethodallowance
( &self, owner: Address, token: Address, source: SellTokenSource, )
crates/account-balances/src/simulation.rs:132
↓ 1 callersMethodallowance
Fetch the ERC20 allowance for the spender. See the allowance method in EIP-20. https://eips.ethereum.org/EIPS/eip-20#allowance
crates/driver/src/infra/blockchain/token.rs:30
↓ 1 callersMethodallowances
Return the allowances in a normalized form, where there is only one allowance per [`eth::allowance::Spender`], and they're ordered deterministically.
crates/driver/src/domain/competition/solution/mod.rs:463
↓ 1 callersMethodallowances
Returns the ERC20 approvals required for executing this interaction onchain.
crates/driver/src/domain/competition/solution/interaction.rs:36
↓ 1 callersMethodamount
Returns the order swapped amount as an asset. The token associated with the asset is dependent on the side of the DEX order.
crates/solvers/src/domain/dex/mod.rs:47
↓ 1 callersMethodamount_in
(&self, amount_out: U256, reserve_in: U256, reserve_out: U256)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:135
↓ 1 callersMethodamount_out
(&self, amount_in: U256, reserve_in: U256, reserve_out: U256)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:118
↓ 1 callersMethodamounts
Returns (sell_amount, buy_amount).
crates/price-estimation/src/lib.rs:202
↓ 1 callersFunctionanalyze_simulation
Runs the simulation, handles errors caused by fundamental limitations of the simulation approach and returns a comprehensive report in case of an erro
crates/shared/src/order_creation_simulation.rs:157
↓ 1 callersFunctionanalyze_table
(ex: &mut PgConnection, table: &str)
crates/autopilot/src/database/mod.rs:119
↓ 1 callersFunctionapi_requests_counter
Parse the `pool_indexer_api_requests` Prometheus counter for a given route from the indexer's /metrics endpoint.
crates/e2e/tests/e2e/pool_indexer.rs:365
↓ 1 callersMethodappend_custom_order_info_to_db
( &self, ex: &mut PgTransaction<'a>, custom_onchain_data: Vec<EthFlowDataForDb>, )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:85
↓ 1 callersFunctionappend_events
( transaction: &mut PgTransaction<'_>, events: Vec<(GPv2SettlementEvents, Log)>, )
crates/autopilot/src/database/events.rs:79
↓ 1 callersMethodappend_events
( &mut self, events: Vec<(BalancerV2BasePoolFactoryEvents, Log)>, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:201
↓ 1 callersMethodappend_events
Apply all the events to the given CoW AMM registry and update the internal registry
crates/cow-amm/src/cache.rs:159
↓ 1 callersMethodappend_main_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:170
↓ 1 callersMethodappend_post_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:178
↓ 1 callersMethodappend_pre_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:162
↓ 1 callersFunctionapply_account_override
Applies `new` to the override map for `address`. If `address` already has an entry, the overrides are merged via [`merge_account_override`]. Returns
crates/simulator/src/encoding.rs:724
↓ 1 callersFunctionapply_gas_fee_override
Applies the solver's gas fee override if present. When a replacement transaction is pending, the solver's values are raised to at least the replacemen
crates/driver/src/domain/mempools.rs:517
↓ 1 callersMethodapply_policies
( &self, order: &boundary::Order, quote: domain::Quote, partner_fees: Vec<Poli
crates/autopilot/src/domain/fee/mod.rs:270
↓ 1 callersMethodapply_to_amm_execution
Applies slippage to the specified AMM execution.
crates/solver/src/liquidity/slippage.rs:27
↓ 1 callersMethodarchive_auction_gzipped
Archives the auction body to S3 (fire and forget). The body is gzip-compressed while streaming to the solver; the compressed bytes arrive through `com
crates/driver/src/infra/persistence/mod.rs:64
↓ 1 callersMethodarchives_enabled
Whether auction archival to S3 is configured.
crates/driver/src/infra/persistence/mod.rs:57
↓ 1 callersMethodartifacts_path
(&self, artifacts_dir: &Path)
contracts/src/codegen.rs:263
↓ 1 callersFunctionas_erc20
If the token is native, return the ERC20 wrapped version.
crates/winner-selection/src/primitives.rs:9
↓ 1 callersMethodas_factor
Returns the slippage as a decimal factor.
crates/solvers/src/domain/dex/slippage.rs:74
↓ 1 callersMethodas_jit
Return JIT order if it's a JIT order.
crates/autopilot/src/domain/settlement/trade/mod.rs:36
↓ 1 callersMethodas_label
(self)
crates/observe/src/event_bus/mod.rs:214
↓ 1 callersMethodas_percent
Returns the slippage as a percentage. e.g. 0.01 → 1.0.
crates/solvers/src/domain/dex/slippage.rs:85
↓ 1 callersMethodassemble_auction
(&self, tasks: &DataFetchingTasks)
crates/driver/src/domain/competition/mod.rs:601
↓ 1 callersMethodassemble_fake_order
Builds a fake order that has the expected sell and buy token but has a limit price that is trivial to achieve. We do this to avoid reverts in case the
crates/price-estimation/src/trade_verifier.rs:428
↓ 1 callersMethodassemble_flashloan_hints
( &self, auction: &Auction, )
crates/driver/src/infra/solver/mod.rs:489
↓ 1 callersMethodassemble_tasks
(&self, request: Request<Body>)
crates/driver/src/domain/competition/pre_processing.rs:183
← previousnext →1,401–1,500 of 8,522, ranked by callers