mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-03 13:39:38 +00:00
- Added `initialize_redemption_controller` and `update_redemption_controller` functions to manage redemption rate feedback. - Introduced `RedemptionController` struct to maintain state for redemption rates. - Updated `Cargo.toml` and `Cargo.lock` to include `twap_oracle_core` dependency. - Modified integration tests to cover new redemption controller functionality.
19 lines
492 B
Rust
19 lines
492 B
Rust
//! The Stablecoin Program implementation.
|
|
|
|
pub use stablecoin_core as core;
|
|
|
|
/// Open a new collateral-only position for a calling owner.
|
|
pub mod open_position;
|
|
|
|
/// Initialize and update redemption-rate feedback controller state.
|
|
pub mod redemption_controller;
|
|
|
|
/// Repay outstanding stablecoin debt against an existing position.
|
|
pub mod repay_debt;
|
|
|
|
/// Withdraw collateral from an existing position back to a user-controlled holding.
|
|
pub mod withdraw_collateral;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|