The app data of an order as the rules see it.
(protocol: &ProtocolAppData, app_code: Option<String>)
| 36 | |
| 37 | /// The app data of an order as the rules see it. |
| 38 | pub 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. |
| 46 | pub fn partner_fees(protocol: &ProtocolAppData) -> Vec<PartnerFee> { |