Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The arg --run-every in any command needs to avoid exit the binary when error happens #44

Closed
willyrgf opened this issue Apr 1, 2023 · 0 comments · Fixed by #47
Closed

Comments

@willyrgf
Copy link
Owner

willyrgf commented Apr 1, 2023

Example running mfm rebalance info --run-every=x:

{"v":0,"name":"mfm","msg":"swap_cost() estimate_gas(): error: Api error: RPC error: Error { code: ServerError(-32000), message: \"err: max fee per gas less than block base fee: address 0xBf0207202641B4DeBc161C4c5A94CAB98F4975CC, maxFeePerGas: 388838310927 baseFee: 393869768333 (supplied gas 14109578)\", data: None }, input_asset: Asset { name: \"bal\", kind: \"token\", network_id: \"polygon\", address: \"0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3\", slippage: 3.0, path_asset: \"weth\", network: Network { name: \"polygon\", symbol: \"matic\", decimals: None, chain_id: 137, rpc_url: \"https://polygon-rpc.com\", blockexplorer_url: \"https://polygonscan.com/\", min_balance_coin: 1.0, wrapped_asset: \"wmatic\" } }, amount_in: 6714490740869728688, amount_out: 44659475 amount_min_out_slippage: 42426502","level":50,"hostname":"srv-nyc3-mfm-server01","pid":2188954,"time":"2023-03-29T16:52:21.667038692Z","target":"mfm::config::exchange","line":304,"file":"src/config/exchange.rs"}
thread 'main' panicked at 'explicit panic', /root/mfm/src/config/exchange.rs:312:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant