Skip to content

Commit

Permalink
Add 3% per year
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0neerpat committed Jul 26, 2024
1 parent 00b33fa commit 522eb99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/Params.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ uint256 constant MINUS_0_5_PERCENT_PER_HOUR = 999_998_607_628_240_588_157_433_86
uint256 constant MINUS_1_PERCENT_PER_HOUR = 999_997_208_243_937_652_252_849_536;
uint256 constant HALF_LIFE_30_DAYS = 999_999_711_200_000_000_000_000_000;

// 3.154×10^7 seconds in 1 year
// Example: 5%/yr => 1.05^(1 / 3.154×10^7) = 1 + 1.54713e-9
// Then convert to RAY
uint256 constant PLUS_1_5_PERCENT_PER_YEAR = 1_000_000_000_472_114_805_215_157_978;
uint256 constant PLUS_1_75_PERCENT_PER_YEAR = 1_000_000_000_550_051_944_812_439_051;
uint256 constant PLUS_1_85_PERCENT_PER_YEAR = 1_000_000_000_581_197_104_947_698_371;
uint256 constant PLUS_2_PERCENT_PER_YEAR = 1_000_000_000_627_937_192_491_029_810;
uint256 constant PLUS_3_PERCENT_PER_YEAR = 1_000_000_000_937_184_599_093_070_064;
uint256 constant PLUS_5_PERCENT_PER_YEAR = 1_000_000_001_547_125_957_863_212_448;

uint256 constant PROPORTIONAL_GAIN = 111_001_102_931;
Expand Down

0 comments on commit 522eb99

Please sign in to comment.