Skip to content

Commit 522eb99

Browse files
committed
Add 3% per year
1 parent 00b33fa commit 522eb99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/Params.s.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ uint256 constant MINUS_0_5_PERCENT_PER_HOUR = 999_998_607_628_240_588_157_433_86
4343
uint256 constant MINUS_1_PERCENT_PER_HOUR = 999_997_208_243_937_652_252_849_536;
4444
uint256 constant HALF_LIFE_30_DAYS = 999_999_711_200_000_000_000_000_000;
4545

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

5256
uint256 constant PROPORTIONAL_GAIN = 111_001_102_931;

0 commit comments

Comments
 (0)