Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Jul 16, 2024
1 parent 4ee3cde commit 74934a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/orderbook/src/database/fee_policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl super::Postgres {
fn fee_policy_from(
db_fee_policy: database::fee_policies::FeePolicy,
quote: Option<&database::orders::Quote>,
order_uids: OrderUid,
order_uid: OrderUid,
) -> anyhow::Result<FeePolicy> {
Ok(match db_fee_policy.kind {
database::fee_policies::FeePolicyKind::Surplus => FeePolicy::Surplus {
Expand All @@ -50,7 +50,7 @@ fn fee_policy_from(
database::fee_policies::FeePolicyKind::PriceImprovement => {
let quote = quote.context(format!(
"missing price improvement quote for order '{:?}'",
order_uids
order_uid
))?;
let fee = quote.gas_amount * quote.gas_price / quote.sell_token_price;
FeePolicy::PriceImprovement {
Expand Down

0 comments on commit 74934a1

Please sign in to comment.