CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

AMM_arb balancer's lower gas limit 100000 for approval causing tx delay and submitted twice in Hummingbot #6

Closed gyozajiro closed 3 years ago

gyozajiro commented 3 years ago

Describe the issue Low gas price causing the slow tx approval and subsequent HB order will resubmit another approval request while the previous tx is still in pending state.

Suggestion: Accept fee info for approval endpoint , or submit approval during amm_arb setup for Balancer in Hummingbot.

gyozajiro commented 3 years ago

Humminbot will submit only 1 approval request for token with 0 balance, during the session of the running strategy. Upon investigation, the 2 pending approvals are for 2 different tokens on the arbitrage pair.