CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

(feat) Dynamic gas limit based-on max swaps. #21

Closed gyozajiro closed 3 years ago

gyozajiro commented 3 years ago

Return gas limit base-on max swap param sent by api request. The resulting gas limit is thus used to calculate the estimated gas price for the Balancer trade.

Issue #2672

fengtality commented 3 years ago

Looks good - I recommend a similar endpoint for Uniswap that returns the hard-coded gas Limit for Uniswap transactions (150688)