Parameters Contract

Protocol governance and configuration

Parameters Contract

Stores protocol-wide configuration values that govern loan terms, reputation thresholds, and fee structures.

Contract ID: CCAE72SKYX55C5L56DBEFIMFVXRUIJY6JYLBREHEWRFNOW7AX5NBIJ5B

View on Stellar Expert

Functions

initialize_defaults()

Sets initial protocol parameters. Called once on deployment.

pub fn initialize_defaults(env: Env, admin: Address)

get_parameters()

Returns all current protocol parameters.

pub fn get_parameters(env: Env) -> ProtocolParameters

set_parameters()

Updates protocol parameters. Admin only.

pub fn set_parameters(
    env: Env,
    params: ProtocolParameters,
)

Default Values

ParameterDefaultDescription
min_guarantee_percent20Minimum guarantee as % of loan
min_reputation_threshold50Minimum score to qualify
grace_period_days5Days before late fee applies
late_fee_bps200Late fee in basis points
large_loan_threshold5000Amount triggering extra checks