Degen Code

Share this post

EV-Based Gas Scaling

www.degencode.com

EV-Based Gas Scaling

Gimme Fuel Gimme Fire

BowTiedDevil
Jan 19, 2022
∙ Paid
26
Share this post

EV-Based Gas Scaling

www.degencode.com
9
Share

At the end of the previous lesson I shared a code snippet of how you could easily implement a gas scaling function using several inputs:

  • base_fee: the fixed portion of the gas fee

  • swap_ev: the expected value (EV) of the swap opportunity, denominated in some currency shared by the swap token and the gas token

  • gas_limit: the estimated units of gas that the s…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2023 BowTiedDevil
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing