Problem
Interest rate parameters in interest_rate.rs are initialized once but there's no way to query the current model parameters or adjust them without redeployment.
Context
DeFi protocols need to adjust interest rates based on market conditions. Governance should be able to update rate parameters.
Proposed Solution
Add query and update functions:
pub fn get_interest_rate_config(env: Env) -> InterestRateConfig { ... }
pub fn update_interest_rate_config(env: Env, admin: Address, config: InterestRateConfig) -> Result<(), Error> { ... }
Acceptance Criteria
Technical Notes
- File:
stellar-lend/contracts/hello-world/src/interest_rate.rs
Constraints
- Admin-only updates with governance controls
Problem
Interest rate parameters in
interest_rate.rsare initialized once but there's no way to query the current model parameters or adjust them without redeployment.Context
DeFi protocols need to adjust interest rates based on market conditions. Governance should be able to update rate parameters.
Proposed Solution
Add query and update functions:
Acceptance Criteria
Technical Notes
stellar-lend/contracts/hello-world/src/interest_rate.rsConstraints