Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-metering/src/pricing.rs

cre8-app-metering · module pricing · src · 236 lines (165 code, 53 comment) · sha 515401f1f99d7abc

Items

struct MarketPrice

Functions

By call-graph weight (PageRank; 1.0 is the average function). 14 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
unit_prices_forsrc/pricing.rs:45fn266806.8
cheapest_pricesrc/pricing.rs:74fn61512.9
possrc/pricing.rs:120fn223902.4
total_cost_to_fillsrc/pricing.rs:87fn274311.1
no_positions_no_pricessrc/pricing.rs:144fn41010.5
unit_price_milli_uses_milli_scalesrc/pricing.rs:150fn91020.5
one_position_multi_denom_yields_multiple_pricessrc/pricing.rs:161fn81020.5
cheapest_picks_lowest_pricesrc/pricing.rs:171fn111020.5
cheapest_returns_none_for_unknown_denomsrc/pricing.rs:184fn41020.5
cheapest_returns_none_when_no_position_offers_assetsrc/pricing.rs:190fn41020.5
total_cost_walks_book_cheapest_firstsrc/pricing.rs:196fn161020.5
total_cost_partial_fill_when_book_shortsrc/pricing.rs:214fn61020.5
zero_quantity_is_zero_costsrc/pricing.rs:222fn61020.5
skips_zero_offer_or_zero_wantsrc/pricing.rs:230fn61020.5

Source not readable from this process.