-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(balances): Support automatic desired balances and alert threshol…
…ds based on daily burn approximations (#5270) ### Description - calculates daily burn based on recent relayer usage, min dollar value targets and a minimum number of tx, check this into monorepo as `dailyBurn.json` ``` yarn tsx ./scripts/funding/calculate-relayer-daily-burn.ts ``` - Support reading alert thresholds for `lowUrgencyKeyFunderBalance`, `highUrgencyRelayerBalance` and writing them to checked in config ``` yarn tsx ./scripts/funding/read-alert-thresholds.ts -e mainnet3 --alertType highUrgencyRelayerBalance --write ``` - Support updating checked in config based on the dailyBurn and multipliers ![image](https://github.com/user-attachments/assets/cf11c4e9-1168-468a-a64c-ce48c8b058da) - Support writing alert queries to grafana ![image](https://github.com/user-attachments/assets/d810fb35-90a5-43d2-8aaa-50b33e3547a4) Note, the configs are not in use at the moment and will be used as we roll this out ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing Manual
- Loading branch information
1 parent
68c2f86
commit 57d22cf
Showing
16 changed files
with
1,369 additions
and
2 deletions.
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
typescript/infra/config/environments/mainnet3/balances/dailyRelayerBurn.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"abstract": 0.00291, | ||
"ancient8": 0.00373, | ||
"alephzeroevmmainnet": 13.8, | ||
"apechain": 3.56, | ||
"appchain": 0.0236, | ||
"arbitrum": 0.0402, | ||
"arbitrumnova": 0.00102, | ||
"artela": 191, | ||
"arthera": 108, | ||
"astar": 65.9, | ||
"astarzkevm": 0.00369, | ||
"aurora": 0.00102, | ||
"flame": 1.95, | ||
"avalanche": 0.0943, | ||
"b3": 0.00427, | ||
"base": 0.0712, | ||
"bitlayer": 0.00202, | ||
"blast": 0.00591, | ||
"bob": 0.00352, | ||
"boba": 0.00351, | ||
"bsc": 0.167, | ||
"bsquared": 0.00362, | ||
"celo": 6.04, | ||
"cheesechain": 2670, | ||
"chilizmainnet": 100, | ||
"conflux": 21.5, | ||
"conwai": 889, | ||
"coredao": 4.56, | ||
"corn": 0.0000316, | ||
"cyber": 0.00443, | ||
"degenchain": 481, | ||
"dogechain": 10.5, | ||
"duckchain": 0.643, | ||
"eclipsemainnet": 0.025, | ||
"endurance": 2.23, | ||
"ethereum": 0.556, | ||
"everclear": 0.00626, | ||
"evmos": 224, | ||
"fantom": 6.61, | ||
"flare": 133, | ||
"flowmainnet": 5.13, | ||
"form": 0.00355, | ||
"fraxtal": 0.016, | ||
"fusemainnet": 126, | ||
"glue": 8.4, | ||
"gnosis": 3.12, | ||
"gravity": 122, | ||
"guru": 280, | ||
"harmony": 171, | ||
"hemi": 0.00102, | ||
"immutablezkevmmainnet": 4.14, | ||
"inevm": 0.171, | ||
"ink": 0.0113, | ||
"injective": 0.171, | ||
"kaia": 16.8, | ||
"kroma": 0.00341, | ||
"linea": 0.0782, | ||
"lisk": 0.00781, | ||
"lukso": 1.97, | ||
"lumia": 3.21, | ||
"lumiaprism": 4.09, | ||
"mantapacific": 0.00371, | ||
"mantle": 13.9, | ||
"matchain": 0.0048, | ||
"merlin": 0.000318, | ||
"metal": 0.0102, | ||
"metis": 0.1, | ||
"mint": 0.00462, | ||
"mode": 0.0135, | ||
"molten": 9.51, | ||
"moonbeam": 24.1, | ||
"morph": 0.283, | ||
"nero": 3.13, | ||
"neutron": 11.8, | ||
"oortmainnet": 36.7, | ||
"optimism": 0.0354, | ||
"orderly": 0.00471, | ||
"osmosis": 8.28, | ||
"polygon": 16.9, | ||
"polygonzkevm": 0.0447, | ||
"polynomialfi": 0.00436, | ||
"prom": 2.92, | ||
"proofofplay": 0.00102, | ||
"rarichain": 0.00691, | ||
"real": 0.00157, | ||
"redstone": 0.00344, | ||
"rivalz": 0.00102, | ||
"rootstockmainnet": 0.00241, | ||
"sanko": 0.158, | ||
"scroll": 0.0169, | ||
"sei": 10.4, | ||
"shibarium": 9.34, | ||
"snaxchain": 0.00412, | ||
"solanamainnet": 5, | ||
"soneium": 0.00719, | ||
"sonic": 6.61, | ||
"sonicsvm": 0.0138, | ||
"soon": 0.00102, | ||
"stride": 6.88, | ||
"superseed": 0.00396, | ||
"superpositionmainnet": 0.00152, | ||
"swell": 0.00454, | ||
"taiko": 0.00726, | ||
"tangle": 3.13, | ||
"telos": 22.7, | ||
"torus": 5.82, | ||
"treasure": 789, | ||
"trumpchain": 0.12, | ||
"unichain": 0.00102, | ||
"unitzero": 6.11, | ||
"vana": 0.372, | ||
"viction": 9.34, | ||
"worldchain": 0.00348, | ||
"xai": 19.6, | ||
"xlayer": 0.373, | ||
"xpla": 41.3, | ||
"zeronetwork": 0.00267, | ||
"zetachain": 7.57, | ||
"zircuit": 0.00379, | ||
"zklink": 0.00102, | ||
"zksync": 0.00284, | ||
"zoramainnet": 0.00832 | ||
} |
124 changes: 124 additions & 0 deletions
124
typescript/infra/config/environments/mainnet3/balances/desiredRelayerBalances.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"abstract": "0", | ||
"alephzeroevmmainnet": "110", | ||
"ancient8": "0.5", | ||
"apechain": "50", | ||
"appchain": "0.189", | ||
"arbitrum": "0.5", | ||
"arbitrumnova": "0.05", | ||
"artela": "1530", | ||
"arthera": "864", | ||
"astar": "527", | ||
"astarzkevm": "0.05", | ||
"aurora": "0.05", | ||
"avalanche": "5", | ||
"b3": "0.05", | ||
"base": "0.57", | ||
"bitlayer": "0.0162", | ||
"blast": "0.2", | ||
"bob": "0.2", | ||
"boba": "0.05", | ||
"bsc": "5", | ||
"bsquared": "0.029", | ||
"celo": "48.3", | ||
"cheesechain": "21400", | ||
"chilizmainnet": "800", | ||
"conflux": "172", | ||
"conwai": "7110", | ||
"coredao": "36.5", | ||
"corn": "0.001", | ||
"cyber": "0.05", | ||
"degenchain": "3850", | ||
"dogechain": "100", | ||
"duckchain": "5.14", | ||
"eclipsemainnet": "0", | ||
"endurance": "20", | ||
"ethereum": "4.45", | ||
"everclear": "0.0501", | ||
"evmos": "1790", | ||
"fantom": "100", | ||
"flame": "15.6", | ||
"flare": "1060", | ||
"flowmainnet": "41", | ||
"form": "0.05", | ||
"fraxtal": "0.2", | ||
"fusemainnet": "1010", | ||
"glue": "67.2", | ||
"gnosis": "25", | ||
"gravity": "976", | ||
"guru": "2240", | ||
"harmony": "1370", | ||
"hemi": "0.05", | ||
"immutablezkevmmainnet": "33.1", | ||
"inevm": "3", | ||
"injective": "0", | ||
"ink": "0.0904", | ||
"kaia": "250", | ||
"kroma": "0.05", | ||
"linea": "1", | ||
"lisk": "0.0625", | ||
"lukso": "20", | ||
"lumia": "25.7", | ||
"lumiaprism": "32.7", | ||
"mantapacific": "0.2", | ||
"mantle": "111", | ||
"matchain": "0.05", | ||
"merlin": "0.00254", | ||
"metal": "0.0816", | ||
"metis": "3", | ||
"mint": "0.05", | ||
"mode": "0.2", | ||
"molten": "76.1", | ||
"moonbeam": "193", | ||
"morph": "2.26", | ||
"nero": "25", | ||
"neutron": "0", | ||
"oortmainnet": "2000", | ||
"optimism": "0.5", | ||
"orderly": "0.05", | ||
"osmosis": "0", | ||
"polygon": "135", | ||
"polygonzkevm": "0.5", | ||
"polynomialfi": "0.05", | ||
"prom": "23.4", | ||
"proofofplay": "0.05", | ||
"rarichain": "0.0553", | ||
"real": "0.1", | ||
"redstone": "0.2", | ||
"rivalz": "0.05", | ||
"rootstockmainnet": "0.0193", | ||
"sanko": "2", | ||
"scroll": "0.5", | ||
"sei": "83.2", | ||
"shibarium": "74.7", | ||
"snaxchain": "0.05", | ||
"solanamainnet": "0", | ||
"soneium": "0.0575", | ||
"sonic": "52.9", | ||
"sonicsvm": "0", | ||
"soon": "0", | ||
"stride": "0", | ||
"superpositionmainnet": "0.05", | ||
"superseed": "0.05", | ||
"swell": "0.05", | ||
"taiko": "0.2", | ||
"tangle": "25", | ||
"telos": "182", | ||
"torus": "46.6", | ||
"treasure": "6310", | ||
"trumpchain": "0.96", | ||
"unichain": "0.05", | ||
"unitzero": "50", | ||
"vana": "2.98", | ||
"viction": "74.7", | ||
"worldchain": "0.2", | ||
"xai": "157", | ||
"xlayer": "2.98", | ||
"xpla": "330", | ||
"zeronetwork": "0.05", | ||
"zetachain": "60.6", | ||
"zircuit": "0.0303", | ||
"zklink": "0.05", | ||
"zksync": "0.05", | ||
"zoramainnet": "0.2" | ||
} |
122 changes: 122 additions & 0 deletions
122
typescript/infra/config/environments/mainnet3/balances/highUrgencyRelayerBalance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"alephzeroevmmainnet": "27.6", | ||
"ancient8": "0.00746", | ||
"apechain": "7.12", | ||
"appchain": "0.0472", | ||
"arbitrum": "0.0804", | ||
"arbitrumnova": "0.00204", | ||
"artela": "382", | ||
"arthera": "216", | ||
"astar": "132", | ||
"astarzkevm": "0.00738", | ||
"aurora": "0.00204", | ||
"avalanche": "0.89", | ||
"b3": "0.00854", | ||
"base": "0.142", | ||
"bitlayer": "0.00404", | ||
"blast": "0.0118", | ||
"bob": "0.00704", | ||
"boba": "0.00702", | ||
"bsc": "0.47", | ||
"bsquared": "0.00724", | ||
"celo": "12.1", | ||
"cheesechain": "5340", | ||
"chilizmainnet": "200", | ||
"conflux": "43", | ||
"conwai": "1780", | ||
"coredao": "9.12", | ||
"corn": "0.0000632", | ||
"cyber": "0.00886", | ||
"degenchain": "962", | ||
"dogechain": "21", | ||
"duckchain": "1.29", | ||
"eclipsemainnet": "0.05", | ||
"endurance": "4.46", | ||
"ethereum": "1.11", | ||
"everclear": "0.0125", | ||
"evmos": "448", | ||
"fantom": "13.2", | ||
"flame": "3.9", | ||
"flare": "266", | ||
"flowmainnet": "10.3", | ||
"form": "0.0071", | ||
"fraxtal": "0.032", | ||
"fusemainnet": "252", | ||
"glue": "16.8", | ||
"gnosis": "6.24", | ||
"gravity": "244", | ||
"guru": "560", | ||
"harmony": "342", | ||
"hemi": "0.00204", | ||
"immutablezkevmmainnet": "8.28", | ||
"inevm": "0.342", | ||
"injective": "0.342", | ||
"ink": "0.0226", | ||
"kaia": "33.6", | ||
"kroma": "0.00682", | ||
"linea": "0.22", | ||
"lisk": "0.0156", | ||
"lukso": "3.94", | ||
"lumia": "6.42", | ||
"lumiaprism": "8.18", | ||
"mantapacific": "0.02", | ||
"mantle": "27.8", | ||
"matchain": "0.0096", | ||
"merlin": "0.000636", | ||
"metal": "0.0204", | ||
"metis": "1", | ||
"mint": "0.00924", | ||
"mode": "0.027", | ||
"molten": "19", | ||
"moonbeam": "48.2", | ||
"morph": "0.566", | ||
"nero": "6.26", | ||
"neutron": "23.6", | ||
"oortmainnet": "400", | ||
"optimism": "0.0708", | ||
"orderly": "0.00942", | ||
"polygon": "33.8", | ||
"polygonzkevm": "0.0894", | ||
"polynomialfi": "0.00872", | ||
"prom": "5.84", | ||
"proofofplay": "0.00204", | ||
"rarichain": "0.0138", | ||
"real": "0.00314", | ||
"redstone": "0.00688", | ||
"rivalz": "0.00204", | ||
"rootstockmainnet": "0.00482", | ||
"sanko": "0.316", | ||
"scroll": "0.0338", | ||
"sei": "20.8", | ||
"shibarium": "18.7", | ||
"snaxchain": "0.00824", | ||
"solanamainnet": "10", | ||
"soneium": "0.0144", | ||
"sonic": "13.2", | ||
"sonicsvm": "0.0276", | ||
"soon": "0.00204", | ||
"stride": "13.8", | ||
"superpositionmainnet": "0.00304", | ||
"superseed": "0.00792", | ||
"swell": "0.00908", | ||
"taiko": "0.019", | ||
"tangle": "6.26", | ||
"telos": "45.4", | ||
"torus": "11.6", | ||
"treasure": "1580", | ||
"trumpchain": "0.24", | ||
"unichain": "0.00204", | ||
"unitzero": "12.2", | ||
"vana": "0.744", | ||
"viction": "18.7", | ||
"worldchain": "0.00696", | ||
"xai": "39.2", | ||
"xlayer": "0.746", | ||
"xpla": "82.6", | ||
"zeronetwork": "0.00534", | ||
"zetachain": "15.1", | ||
"zircuit": "0.0094", | ||
"zklink": "0.00204", | ||
"zksync": "0.00568", | ||
"zoramainnet": "0.0166" | ||
} |
Oops, something went wrong.