Skip to content

Instantly share code, notes, and snippets.

@ernestognw
Created September 29, 2022 16:37
Show Gist options
  • Save ernestognw/6388f402c9da0df38e89c9494671d4af to your computer and use it in GitHub Desktop.
Save ernestognw/6388f402c9da0df38e89c9494671d4af to your computer and use it in GitHub Desktop.
if value == current_value 
  if key is warm 
    base_dynamic_gas = 100 
  else
    base_dynamic_gas = 100
else if current_value == original_value 
  if original_value == 0 
    base_dynamic_gas = 20000 
  else  
    base_dynamic_gas = 2900 
else 
  base_dynamic_gas = 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment