diff --git a/crates/loans/src/rate_model.rs b/crates/loans/src/rate_model.rs index 0e95e3cd6a..80af6aaf89 100644 --- a/crates/loans/src/rate_model.rs +++ b/crates/loans/src/rate_model.rs @@ -113,8 +113,8 @@ pub struct JumpModel { impl JumpModel { pub const MAX_BASE_RATE: Rate = Rate::from_inner(100_000_000_000_000_000); // 10% - pub const MAX_JUMP_RATE: Rate = Rate::from_inner(300_000_000_000_000_000); // 30% - pub const MAX_FULL_RATE: Rate = Rate::from_inner(500_000_000_000_000_000); // 50% + pub const MAX_JUMP_RATE: Rate = Rate::from_inner(1_000_000_000_000_000_000); // 100% + pub const MAX_FULL_RATE: Rate = Rate::from_inner(5_000_000_000_000_000_000); // 500% /// Create a new rate model pub fn new_model(base_rate: Rate, jump_rate: Rate, full_rate: Rate, jump_utilization: Ratio) -> JumpModel { diff --git a/crates/loans/src/tests/market.rs b/crates/loans/src/tests/market.rs index 446fe721c7..e971d5af46 100644 --- a/crates/loans/src/tests/market.rs +++ b/crates/loans/src/tests/market.rs @@ -38,7 +38,7 @@ macro_rules! rate_model_sanity_check { let mut market = MARKET_MOCK; market.rate_model = InterestRateModel::new_jump_model( Rate::saturating_from_rational(5, 100), - Rate::saturating_from_rational(36, 100), + Rate::saturating_from_rational(101, 100), Rate::saturating_from_rational(37, 100), Ratio::from_percent(80), ); @@ -53,7 +53,7 @@ macro_rules! rate_model_sanity_check { market.rate_model = InterestRateModel::new_jump_model( Rate::saturating_from_rational(5, 100), Rate::saturating_from_rational(15, 100), - Rate::saturating_from_rational(57, 100), + Rate::saturating_from_rational(501, 100), Ratio::from_percent(80), ); market @@ -365,7 +365,7 @@ fn update_rate_model_works() { FOREIGN_ASSET, InterestRateModel::new_jump_model( Rate::saturating_from_rational(5, 100), - Rate::saturating_from_rational(36, 100), + Rate::saturating_from_rational(101, 100), Rate::saturating_from_rational(37, 100), Ratio::from_percent(80), ) @@ -379,7 +379,7 @@ fn update_rate_model_works() { FOREIGN_ASSET, InterestRateModel::new_jump_model( Rate::saturating_from_rational(5, 100), - Rate::saturating_from_rational(15, 100), + Rate::saturating_from_rational(501, 100), Rate::saturating_from_rational(57, 100), Ratio::from_percent(80), )