turboflakes / crunch

Crunch is a command-line interface (CLI) and Matrix Bot to claim staking rewards every Era for Substrate-based chains
https://turboflakes.io
Apache License 2.0
63 stars 22 forks source link

Validate the amount spent from the signer account #49

Open paulormart opened 1 week ago

paulormart commented 1 week ago

Implement a preventive measure prior to each transaction, eg validate the signer account balance has not spent more in the last 14400 blocks (24hrs) than the threshold pre-defined. If it has it should halt and log a message "daily expense limit reached"