Skip to content
1 viewer

rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off

cre8-app-mark mark cargo crate

MarkApp: the one price oracle. mark_price(asset, quote) resolves a strictly positive exact Ratio from a fresh manual override, the last cleared matching transaction, the provider tick-tape mid, or (options) a Black-Scholes theoretical price, and flags stale marks instead of passing them off as fresh.

crates/cre8-app-mark · level 16 · 2,938 lines (2,346 code) · 9 files · 156 fns (38 tests) · cyclomatic Σ 322

14workspace deps
2direct dependents
2transitive dependents
123calls out
26calls in
127call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
normalize_idsrc/model.rs:234fn31602.7
segmentssrc/symbols.rs:33fn31202.5
parse_option_idsrc/symbols.rs:86fn2441052.4
MarkConfig::from_envsrc/model.rs:210method51822.2
parse_expiry_mssrc/symbols.rs:112fn146322.2
MarkConfig::defaultsrc/model.rs:197trait impl81302.1
resolve_marksrc/oracle.rs:94fn41322
tape_symbolsrc/symbols.rs:39fn167311.9
set_manual_marksrc/lib.rs:59fn181631.8
is_leapsrc/symbols.rs:127fn33101.7
OverrideAuthority::authorizesrc/authority.rs:51method154501.6
mark_price_withsrc/oracle.rs:77fn91911.5
resolve_cachedsrc/oracle.rs:111fn52102111.5
days_in_monthsrc/symbols.rs:131fn85111.4
days_from_civilsrc/symbols.rs:142fn93101.4
is_usd_numerairesrc/symbols.rs:57fn31411.4
gatesrc/authority.rs:77fn71401.3
Rejected::newsrc/model.rs:176method31601.3
textsrc/connection.rs:60fn31501.2
mark_pricesrc/oracle.rs:72fn31521.2
load_volsrc/model.rs:430fn31421.2
vol_vertex_idsrc/model.rs:250fn31221.2
MarkConfig::with_ttl_mssrc/model.rs:216method41201.2
validate_sigmasrc/model.rs:415fn73501.2
MarkPairRecord::newsrc/model.rs:287method121301.2
configsrc/tests.rs:23fn311021.1
upsert_manualsrc/model.rs:372fn92341.1
recordsrc/view.rs:150fn181321.1
load_recent_clearssrc/oracle.rs:291fn71131.1
require_idsrc/model.rs:441fn32301.1
pair_keysrc/model.rs:238fn31201.1
pair_vertex_idsrc/model.rs:242fn31231.1
manual_vertex_idsrc/model.rs:246fn31231
age_labelsrc/view.rs:88fn128201
swapsrc/tests.rs:49fn181811
build_marks_treesrc/view.rs:102fn253341
now_mssrc/connection.rs:56fn31410.9
fresh_mark_pricesrc/oracle.rs:88fn31520.9
Mark::freshsrc/model.rs:134method31200.9
list_pairssrc/model.rs:353fn61410.9

Outside the workspace

anyhow hyperdb serde serde_json