Derrick Hammer
|
4941949f22
|
refactor: rewrite importPrices to track and import the last x days
|
2024-03-11 11:12:48 -04:00 |
Derrick Hammer
|
c63f7ef50b
|
fix: use DailyJob
|
2024-03-11 11:00:34 -04:00 |
Derrick Hammer
|
96ec3b8501
|
fix: dont compute by rate the max rpc price
|
2024-03-11 08:01:56 -04:00 |
Derrick Hammer
|
973c40afb4
|
refactor: switch to using decimals in db, a fork of the siacentral api to return decimals, strings for currency settings, and rats to do big number math safety
|
2024-03-11 07:51:48 -04:00 |
Derrick Hammer
|
a4bb3eadaa
|
fix: wrong debug output
|
2024-03-11 06:49:10 -04:00 |
Derrick Hammer
|
e7caa50932
|
fix: don't store MaxRPCSCPrice as a float, and use big.Rat to compute it
|
2024-03-11 06:42:51 -04:00 |
Derrick Hammer
|
7f9887bdcc
|
fix: don't divide maxDownloadPrice by redundancy
|
2024-03-10 17:32:37 -04:00 |
Derrick Hammer
|
6edf872664
|
fix: need to divide by block time (blocks in a month)
|
2024-03-10 17:01:55 -04:00 |
Derrick Hammer
|
20a273a0dd
|
refactor: change maxStoragePrice math for readability
|
2024-03-10 14:50:25 -04:00 |
Derrick Hammer
|
d628ede1ee
|
fix: use maxStoragePrice
|
2024-03-10 14:48:09 -04:00 |
Derrick Hammer
|
9d17ae1065
|
fix: don't compute maxRPCPrice based on usd rate
|
2024-03-10 14:42:00 -04:00 |
Derrick Hammer
|
01cd30b6f8
|
fix: divide maxRPCPrice by 1 million
|
2024-03-10 14:38:59 -04:00 |
Derrick Hammer
|
6eeed24707
|
fix: need to divide maxStoragePrice by a tib unit
|
2024-03-10 14:33:46 -04:00 |
Derrick Hammer
|
af29081a3a
|
refactor: have rpc and contract prices be in SC as they are expected to change very rarely
|
2024-03-10 14:26:17 -04:00 |
Derrick Hammer
|
1568aa9007
|
fix: redundancy applies to storage not downloads, and add debug logging per rate computed
|
2024-03-10 14:14:36 -04:00 |
Derrick Hammer
|
5687e72a32
|
refactor: change SCPriceHistory table name
|
2024-03-10 13:58:45 -04:00 |
Derrick Hammer
|
e425c038e1
|
fix: use config PriceHistoryDays
|
2024-03-10 13:56:41 -04:00 |
Derrick Hammer
|
effb341418
|
refactor: don't block price updates, but do fatal on error
|
2024-03-10 13:52:49 -04:00 |
Derrick Hammer
|
21ae6d093d
|
refactor: fetch redundancy settings and divide on it so price is always the total
|
2024-03-10 13:25:33 -04:00 |
Derrick Hammer
|
ae178f003f
|
refactor: put sia config under storage
|
2024-03-10 13:07:44 -04:00 |
Derrick Hammer
|
dd296bd78a
|
feat: add initial price tracker
|
2024-03-10 12:43:18 -04:00 |