Updated interest rates to account for added risk at the 100% bound.

This commit is contained in:
dd 2021-04-22 10:57:52 -04:00
parent bed898093c
commit 1fb1cc5eba
2 changed files with 4 additions and 3 deletions

2
cli/Cargo.lock generated
View File

@ -1854,7 +1854,7 @@ dependencies = [
[[package]]
name = "mango"
version = "0.2.3"
version = "0.2.4"
dependencies = [
"arrayref",
"bincode",

View File

@ -24,8 +24,9 @@ pub const HOUR: u64 = 3600;
pub const DAY: u64 = 86400;
pub const YEAR: U64F64 = U64F64!(31536000);
const OPTIMAL_UTIL: U64F64 = U64F64!(0.7);
const OPTIMAL_R: U64F64 = U64F64!(3.17097919837645865e-09); // 10% APY -> 0.1 / YEAR
const MAX_R: U64F64 = U64F64!(3.17097919837645865e-08); // max 100% APY -> 1 / YEAR
const OPTIMAL_R: U64F64 = U64F64!(6.3419583967529173008625e-09); // 20% APY -> 0.1 / YEAR
const MAX_R: U64F64 = U64F64!(9.5129375951293759512937e-08); // max 300% APY -> 1 / YEAR
pub const ONE_U64F64: U64F64 = U64F64!(1);
pub const ZERO_U64F64: U64F64 = U64F64!(0);
pub const PARTIAL_LIQ_INCENTIVE: U64F64 = U64F64!(1.05);