kkrt-labs / kakarot

Kakarot is a zkEVM written in Cairo, leveraging the STARK proof system.
https://kakarot.org
MIT License
982 stars 294 forks source link

relayers-observer lambda function #1527

Open eugypalu opened 5 days ago

eugypalu commented 5 days ago

A cron job that checks the relayers' balance every X minutes. An AWS secret was created with a private key and an unused address, which will receive funds from the coinbase and redistribute them to the relayers. Each time the Lambda runs, it checks if the relayers' balance has dropped below a certain threshold and, if necessary, transfers funds to the relayers to restore the required balance.