Reputation Contract

On-chain credit scoring

Reputation Contract

Manages on-chain reputation scores for all StepFi participants.

Contract ID: CC3BO57ZRJGA63QJBIBSOMI25Z3X2I5CYTARYRAUXUAILX6L3OWBL5SB

View on Stellar Expert

Functions

get_score()

Returns the reputation score for a wallet address.

pub fn get_score(env: Env, user: Address) -> u32

update_score()

Updates a user's score. Called by the creditline contract after repayment events.

pub fn update_score(
    env: Env,
    user: Address,
    delta: i32,
) -> u32

set_admin()

Sets the contract admin. First call seeds the admin.

pub fn set_admin(env: Env, new_admin: Address)