File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,14 @@ uint256 constant MINUS_0_5_PERCENT_PER_HOUR = 999_998_607_628_240_588_157_433_86
43
43
uint256 constant MINUS_1_PERCENT_PER_HOUR = 999_997_208_243_937_652_252_849_536 ;
44
44
uint256 constant HALF_LIFE_30_DAYS = 999_999_711_200_000_000_000_000_000 ;
45
45
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
46
49
uint256 constant PLUS_1_5_PERCENT_PER_YEAR = 1_000_000_000_472_114_805_215_157_978 ;
47
50
uint256 constant PLUS_1_75_PERCENT_PER_YEAR = 1_000_000_000_550_051_944_812_439_051 ;
48
51
uint256 constant PLUS_1_85_PERCENT_PER_YEAR = 1_000_000_000_581_197_104_947_698_371 ;
49
52
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 ;
50
54
uint256 constant PLUS_5_PERCENT_PER_YEAR = 1_000_000_001_547_125_957_863_212_448 ;
51
55
52
56
uint256 constant PROPORTIONAL_GAIN = 111_001_102_931 ;
You can’t perform that action at this time.
0 commit comments