valory-xyz / olas-operate-app

Apache License 2.0
0 stars 1 forks source link

When master Safe trading balance has less than auto-funding amount, user is not prompted to add more XDAI #233

Closed oaksprout closed 1 month ago

oaksprout commented 1 month ago

Related to #223.

The user was not aware that the amount in the Safe was below the threshold required to trigger a auto-funding event.

oaksprout commented 1 month ago

I think the simplest fix here is to make it so that the 'trading balance' indicator shows 'empty', and that we show the alert asking people to top up a few XDAI, whenever the balance falls below the auto-funding amount (2xdai).

A more robust fix might be to adjust the auto-funding job so that it dynamically responds to the amount of XDAI available in the master Safe. e.g. ordinarily move 2 XDAI, but if the amount in the wallet is less than that, then reduce the amount to 0.5.

oaksprout commented 1 month ago

Fixed in rc95