MCPcopy Create free account
hub / github.com/cowprotocol/services / app_data

Function app_data

crates/shared/src/fee_engine.rs:38–43  ·  view source on GitHub ↗

The app data of an order as the rules see it.

(protocol: &ProtocolAppData, app_code: Option<String>)

Source from the content-addressed store, hash-verified

36
37/// The app data of an order as the rules see it.
38pub fn app_data(protocol: &ProtocolAppData, app_code: Option<String>) -> fee_engine::AppData {
39 fee_engine::AppData {
40 app_code,
41 flashloan: protocol.flashloan.is_some(),
42 }
43}
44
45/// The partner fees of the app data, for the engine to cap.
46pub fn partner_fees(protocol: &ProtocolAppData) -> Vec<PartnerFee> {

Callers 1

evaluateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected