eco-stake / restake

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

Error when broadcasting tx - insufficient fees #750

Open vchong opened 10 months ago

vchong commented 10 months ago
[09:01:25.601] Bot balance is 2000000 ujuno
[09:01:25.578] Running with options: {
  batchPageSize: 100,
  batchQueries: 25,
  batchTxs: 25,
  delegationsTimeout: 20000,
  queryTimeout: 5000,
  queryThrottle: 100,
  gasModifier: 1.1
}
[09:01:25.982] TX 1: Failed 1 messages - Error when broadcasting tx C6D95F76118E02CA8A5CFEDDE59647DA790C886E7BC2F7D62F8F1FF48AA62CB5 at height 0. Code: 13; Raw log: insufficient fees; got: 591ujuno required: 709ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,17713ujuno: insufficient fee
[09:01:26.321] Autostake failed after 3 attempt(s)

@tombeynon Based on previous issues, "gas config is now imported from Chain Registry so issues like this should be fixed now"?

How can we increase the fees via networks.local.json?

Thanks!

vchong commented 10 months ago

Added "gasPrice": "0.1ujuno" in networks.local.json and it worked, based on https://github.com/cosmos/chain-registry/blob/master/juno/chain.json#L20 (0.075ujuno).

Does this mean that importing gas config from the Chain Registry doesn't always work? Do you think that perhaps increasing gasModifier to 1.2 will help?

vchong commented 10 months ago

@tombeynon Do you know how the Chain Registry arrives at the gas value(s) for each chain?

tombeynon commented 9 months ago

@vchong currently the REStake script doesn't import gas prices from Chain Registry - this needs to be implemented and doesn't take much work, so I'll keep this issue open and implement ASAP.

Chain Registry gas values are either provided by chain owners/users, or I believe a number were imported from Keplr.

vchong commented 8 months ago

Thanks for the reply! Is there a way to figure out the (restake default) gas prices currently used? Asking to figure out what to set in networks.local.json in case increases are required.

tombeynon commented 8 months ago

@vchong the default is just 0.025 currently, adjusted based on the number of decimals the chain uses. It's not very smart!