CronCats / croncat-rs

A Rust version of the CronCat agent.
GNU Affero General Public License v3.0
19 stars 4 forks source link

Auto withdraw if the balance is below threshold #104

Closed nlipartiia-hacken closed 1 year ago

nlipartiia-hacken commented 1 year ago

Close #84 and #85

Also I updated cw-croncat-core and cw-rules-core versions so that agent works with newer contracts.

TrevorJTClarke commented 1 year ago

Hi @NinoLipartiia looks like a change is needed:

This line needs to change: https://github.com/NinoLipartiia/croncat-rs/blob/auto-withdraw/croncat/src/streams/agent.rs#L88 to use this: https://github.com/NinoLipartiia/croncat-rs/blob/auto-withdraw/croncat/src/streams/agent.rs#L32 example use: https://github.com/CronCats/croncat-rs/blob/be4fa70b1e5784dcae0e4eb491bc21284b7f7826/croncat/src/streams/tasks.rs#L42