eco-stake / restake

Auto-compounder script for Cosmos Validators using REStake
https://restake.app
MIT License
359 stars 303 forks source link

Realio network REStake fails #774

Open tombeynon opened 3 months ago

tombeynon commented 3 months ago

After a recent update, Realio Network fails when restaking. This seems to be caused by the way REStake handles autocompounding - we send a single Delegate message for the amount the user has pending in rewards. Cosmos SDK usually auto-claims the pending rewards and allows these to be delegated in the same transaction; this works for all Cosmos SDK chains to date, and was reportedly working for Realio until their latest update.

After their update, the REStake action now fails with an error <available balance> is smaller than <reward balance>: insufficient funds, since we tried to delegate the <reward balance> but the user only has <available balance>, and autoclaiming in one transaction doesn't seem to be working anymore.

This was raised by STAVR validator, and an example delegator causing this to fail is realio12y45ayntynr07juslvy55v35cnz9hy32kp8qdj

image

I will raise an issue on the Realio repo and link this issue to find out more information.