Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aeyakovenko/percolator
/ functions
Functions
1,205 in github.com/aeyakovenko/percolator
⨍
Functions
1,205
◇
Types & classes
98
↓ 7 callers
Method
source_domains
(&self)
src/v16.rs:3623
↓ 6 callers
Function
assert_observation_independent
REALIZABILITY MATRIX — closes the no-DoS dispatch seam that hid the b-stale / committed-state-liquidation stall. The faithful invariant is OBSERVATION
tests/v16_spec_tests.rs:3037
↓ 6 callers
Method
certify_account_after_local_settlement_with_price_override
( &mut self, account: &mut PortfolioV16ViewMut<'_>, price_override: Option<(usize, u64
src/v16.rs:10866
↓ 6 callers
Function
checked_mul_div_ceil_u256
(a: U256, b: U256, d: U256)
src/wide_math.rs:1499
↓ 6 callers
Method
deposit_domain_insurance_not_atomic
Deposits external quote into insurance and credits the same domain budget.
src/v16.rs:8706
↓ 6 callers
Function
funding_market_fixture
(init_price: u64)
tests/v16_spec_tests.rs:57
↓ 6 callers
Function
kani_add_open_interest_for_new_position
( asset: &mut AssetStateV16, side: SideV16, abs_q: u128, loss_weight: u128, )
src/v16_kani_api.rs:68
↓ 6 callers
Function
kani_apply_resolved_payout_receipt_payment
( receipt: ResolvedPayoutReceiptV16, actual_resolved_paid: u128, )
src/v16_kani_api.rs:170
↓ 6 callers
Method
pending_domain_loss_barrier_count
( &self, asset_index: usize, side: SideV16, )
src/v16.rs:12011
↓ 6 callers
Method
position_change_touches_pending_domain_loss_barrier
( &self, asset_index: usize, current: i128, next: i128, )
src/v16.rs:12050
↓ 6 callers
Method
register_empty_materialized_portfolio_not_atomic
( &mut self, account: &PortfolioV16View<'_>, )
src/v16.rs:6784
↓ 6 callers
Method
source_credit_for_domain_shape
(&self, domain: usize)
src/v16.rs:7053
↓ 6 callers
Function
validate_fee_credits
(v: i128)
src/v16.rs:16224
↓ 5 callers
Function
adjust_u128
(current: u128, old: u128, new: u128)
src/v16.rs:16017
↓ 5 callers
Method
advance_close_progress_ledger
( &mut self, account: &mut PortfolioV16ViewMut<'_>, support_consumed: u128, ju
src/v16.rs:12767
↓ 5 callers
Method
begin_close_progress_ledger
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, domain
src/v16.rs:12677
↓ 5 callers
Method
charge_account_fee_current_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, requested_fee: u128, )
src/v16.rs:13942
↓ 5 callers
Function
checked_fee_bps
(notional: u128, fee_bps: u64)
src/v16.rs:15970
↓ 5 callers
Method
claim_resolved_payout_topup_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, )
src/v16.rs:14785
↓ 5 callers
Method
clear_leg
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, )
src/v16.rs:12404
↓ 5 callers
Method
deregister_empty_materialized_portfolio_not_atomic
( &mut self, account: &PortfolioV16View<'_>, )
src/v16.rs:6802
↓ 5 callers
Method
kani_collect_account_backing_utilization_fee_for_domain_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, domain: usize, )
src/v16_kani_api.rs:646
↓ 5 callers
Function
kani_expected_source_credit_rate_num_for_state
( state: SourceCreditStateV16, )
src/v16_kani_api.rs:84
↓ 5 callers
Method
kani_validate_dynamic_market_slot_shape_at
( &self, slot_index: usize, slot: &S, )
src/v16_kani_api.rs:311
↓ 5 callers
Method
kf_target_for_leg
( &self, asset_index: usize, leg: PortfolioLegV16, )
src/v16.rs:10077
↓ 5 callers
Function
pending_domain_loss_barrier_blocks_position_change
( touches_barrier: bool, current: i128, next: i128, )
src/v16.rs:16283
↓ 5 callers
Method
reset_source_domain_slot_if_empty
(&mut self, slot: usize)
src/v16.rs:3713
↓ 5 callers
Method
retire_empty_asset_not_atomic
( &mut self, asset_index: usize, now_slot: u64, )
src/v16.rs:15038
↓ 5 callers
Function
scaled_adl_delta_fast
(abs_basis_q: u128, a_basis: u128, then: i128, now: i128)
src/v16.rs:16325
↓ 5 callers
Method
set_domain_insurance_spent
Sets the spent amount for a domain insurance budget while preserving the aggregate remaining-budget invariant.
src/v16.rs:8619
↓ 5 callers
Method
settle_account_side_effects_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, b_delta_budget: u128, )
src/v16.rs:10836
↓ 5 callers
Function
validate_basis_or_zero
(basis_pos_q: i128)
src/v16.rs:16163
↓ 5 callers
Method
validate_public_user_fund_shape
(&self)
src/v16.rs:3207
↓ 5 callers
Function
wide_mul_div_floor_u128
Exact wide multiply-divide floor using U256 intermediate. Used for haircut paths where a*b can exceed u128::MAX.
src/wide_math.rs:1620
↓ 5 callers
Function
wide_signed_mul_div_floor
Spec section 1.5 item 11: wide signed mul-div for pnl_delta. Computes floor_div_signed_conservative(abs_basis * k_diff, denominator) where the numera
src/wide_math.rs:1538
↓ 5 callers
Function
wide_signed_mul_div_floor_from_k_pair
Safe K-difference settlement (spec §4.8 lines 720-732). Computes K-difference in wide intermediate, then multiplies and divides.
src/wide_math.rs:1630
↓ 4 callers
Method
account_haircut_equity
(&self, account: &PortfolioV16View<'_>)
src/v16.rs:9412
↓ 4 callers
Method
activate_empty_market_slot_not_atomic
( &mut self, asset_index: u32, slot: &mut S, authenticated_price: u64,
src/v16.rs:6312
↓ 4 callers
Function
add_non_min_i128
(a: i128, b: i128)
src/v16.rs:16011
↓ 4 callers
Function
add_u128_carry
(a: u128, b: u128, carry_in: bool)
src/wide_math.rs:1075
↓ 4 callers
Method
bankruptcy_residual_single_step_capacity
( &self, asset_index: usize, bankrupt_side: SideV16, residual_remaining: u128,
src/v16.rs:12815
↓ 4 callers
Method
charge_account_backing_fee_not_atomic
Charges an account-level backing fee and routes it to backing-provider earnings and/or domain insurance. The wrapper owns fee-policy calculation. The
src/v16.rs:7975
↓ 4 callers
Method
compact_source_domains
(&mut self)
src/v16.rs:3724
↓ 4 callers
Method
consume_domain_insurance_for_negative_pnl
( &mut self, asset_index: usize, bankrupt_side: SideV16, account: &mut Portfol
src/v16.rs:8908
↓ 4 callers
Method
convert_released_pnl_to_capital_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, )
src/v16.rs:14249
↓ 4 callers
Method
credit_domain_insurance_budget_not_atomic
Credits already-collected insurance to a domain budget without changing vault or total insurance.
src/v16.rs:8693
↓ 4 callers
Method
div_rem_by_u256
Divide U512 by U256, returning (quotient as U256, remainder as U256). Panics if divisor is zero or quotient doesn't fit in U256.
src/wide_math.rs:1302
↓ 4 callers
Method
finalize_side_reset_not_atomic
( &mut self, asset_index: usize, side: SideV16, )
src/v16.rs:11836
↓ 4 callers
Method
force_asset_recovery_not_atomic
( &mut self, asset_index: usize, now_slot: u64, )
src/v16.rs:11002
↓ 4 callers
Method
h_lock_lane
( &self, account: Option<&PortfolioV16View<'_>>, instruction_bankruptcy_candidate: boo
src/v16.rs:12114
↓ 4 callers
Method
kani_attach_leg_at_slot
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, side:
src/v16_kani_api.rs:329
↓ 4 callers
Function
kani_backing_utilization_rate_e9_for_source_state
( config: V16Config, source: SourceCreditStateV16, )
src/v16_kani_api.rs:125
↓ 4 callers
Method
kani_begin_close_progress_ledger
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, domain
src/v16_kani_api.rs:880
↓ 4 callers
Method
kani_insurance_domain_index
( &self, asset_index: usize, side: SideV16, )
src/v16_kani_api.rs:347
↓ 4 callers
Function
kani_liquidation_close_would_leave_uncovered_loss_with_open_risk
( pnl: i128, capital: u128, active_bitmap: V16ActiveBitmap, leg_slot_index: usize, close_q
src/v16_kani_api.rs:50
↓ 4 callers
Method
kani_source_domain_slot_or_insert
(&mut self, domain: usize)
src/v16_kani_api.rs:288
↓ 4 callers
Function
kani_validate_positive_pnl_source_attribution
( pnl: i128, source_claim_sum_num: u128, )
src/v16_kani_api.rs:77
↓ 4 callers
Method
leading_zeros
Count leading zeros.
src/wide_math.rs:1282
↓ 4 callers
Method
liquidate_account_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, request: LiquidationRequestV16,
src/v16.rs:13165
↓ 4 callers
Function
loss_weight_for_basis
(abs_basis_q: u128, a_basis: u128)
src/v16.rs:16312
↓ 4 callers
Function
market_id
()
tests/backing_double_claim_fuzz.rs:23
↓ 4 callers
Method
recompute_source_credit_domain_after_mutation
(&mut self, domain: usize)
src/v16.rs:7155
↓ 4 callers
Method
refresh_account_and_certify_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, price_override: Option<(usize, u64
src/v16.rs:10391
↓ 4 callers
Method
require_asset_active_for_risk_increase
(&self, asset_index: usize)
src/v16.rs:11631
↓ 4 callers
Method
require_empty_asset_lifecycle_state
(&self, asset_index: usize)
src/v16.rs:11765
↓ 4 callers
Method
reset_empty_asset_oracle_anchor_not_atomic
( &mut self, asset_index: usize, authenticated_price: u64, now_slot: u64,
src/v16.rs:10972
↓ 4 callers
Method
restart_empty_asset_preserving_insurance_budget_not_atomic
Restarts an empty Recovery/Retired asset with a fresh market_id. Domain insurance budgets are preserved exactly. All position, loss, source-credit, b
src/v16.rs:15075
↓ 4 callers
Method
set_asset_raw_oracle_target_not_atomic
( &mut self, asset_index: usize, raw_oracle_target_price: u64, )
src/v16.rs:10953
↓ 4 callers
Method
set_domain_insurance_budget_core
( &mut self, domain: usize, budget: u128, insurance_limit: u128, )
src/v16.rs:8625
↓ 4 callers
Method
set_domain_insurance_spent_core
(&mut self, domain: usize, spent: u128)
src/v16.rs:8598
↓ 4 callers
Method
settle_account_b_chunk
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, endpoi
src/v16.rs:10794
↓ 4 callers
Method
settle_negative_pnl_from_principal_not_atomic
( &mut self, account: &mut PortfolioV16ViewMut<'_>, )
src/v16.rs:13894
↓ 4 callers
Method
shl
(self, bits: u32)
src/wide_math.rs:188
↓ 4 callers
Function
signed_position
(leg: PortfolioLegV16)
src/v16.rs:16171
↓ 4 callers
Function
slot_resolved_payout_blockers_v16
(slot: &EngineAssetSlotV16Account)
src/v16.rs:5848
↓ 4 callers
Method
solvency_envelope_holds_for_notional
( &self, n: u128, loss_budget_num: u128, loss_budget_den: u128, price_
src/v16.rs:2903
↓ 4 callers
Method
source_domain_mut_or_insert
( &mut self, domain: usize, )
src/v16.rs:3705
↓ 4 callers
Method
source_domain_slot
(&self, domain: usize)
src/v16.rs:3627
↓ 4 callers
Function
sub_u128_borrow
(a: u128, b: u128, borrow_in: bool)
src/wide_math.rs:1083
↓ 4 callers
Function
symbolic_backing_fee_config
( kink_raw: u16, base_raw: u8, slope_at_raw: u8, slope_above_raw: u8, )
tests/proofs_v16.rs:4239
↓ 4 callers
Method
try_into_u256
Convert to U256, returning None if the value doesn't fit.
src/wide_math.rs:1292
↓ 4 callers
Method
validate_funding_headroom
(&self, slots: u64)
src/v16.rs:3009
↓ 4 callers
Function
winner_account
(capital: u128, pnl: u128)
tests/backing_double_claim_fuzz.rs:83
↓ 4 callers
Method
withdraw_backing_provider_earnings_not_atomic
( &mut self, domain: usize, amount: u128, )
src/v16.rs:7878
↓ 4 callers
Method
withdraw_domain_insurance_not_atomic
Withdraws available insurance from a single domain budget.
src/v16.rs:8777
↓ 3 callers
Method
account_has_loss_stale_live_leg
(&self, account: &PortfolioV16View<'_>)
src/v16.rs:12159
↓ 3 callers
Method
account_source_realizable_support
( &self, account: &PortfolioV16View<'_>, face_claim: u128, )
src/v16.rs:8376
↓ 3 callers
Function
active_bitmap_clear
(bitmap: &mut V16ActiveBitmap, leg_slot_index: usize)
src/v16.rs:259
↓ 3 callers
Function
active_bitmap_count_ones
(bitmap: V16ActiveBitmap)
src/v16.rs:360
↓ 3 callers
Method
active_leg_slot_for_asset
(&self, asset_index: usize)
src/v16.rs:4037
↓ 3 callers
Method
add_account_source_positive_pnl_not_atomic
Grants source-attributed positive PnL to an account — the first-class API for crediting a source-backed claim (e.g. an external settlement feed). Live
src/v16.rs:9652
↓ 3 callers
Method
add_fresh_counterparty_backing_unchecked
( &mut self, domain: usize, amount: u128, expiry_slot: u64, )
src/v16.rs:7275
↓ 3 callers
Function
apply_backing_provider_earnings_withdraw
( vault: u128, bucket_earnings: u128, amount: u128, )
src/v16.rs:111
↓ 3 callers
Function
apply_resolved_payout_receipt_payment
( mut receipt: ResolvedPayoutReceiptV16, actual_resolved_paid: u128, )
src/v16.rs:4368
↓ 3 callers
Method
apply_signed_kf_delta_to_pnl
( &mut self, account: &mut PortfolioV16ViewMut<'_>, delta: i128, source_domain
src/v16.rs:9908
↓ 3 callers
Method
as_raw_u256
Convert this I256 to a raw U256 (reinterpret the bits).
src/wide_math.rs:747
↓ 3 callers
Method
asset_is_loss_stale
(&self, asset_index: usize)
src/v16.rs:12153
↓ 3 callers
Method
attach_leg_at_slot
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, side:
src/v16.rs:12366
↓ 3 callers
Method
available_domain_insurance
(&self, domain: usize)
src/v16.rs:8879
↓ 3 callers
Method
book_bankruptcy_residual_chunk_for_account_core
( &mut self, account: &mut PortfolioV16ViewMut<'_>, asset_index: usize, bankru
src/v16.rs:12961
← previous
next →
101–200 of 1,205, ranked by callers