Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Make kwenta able to pay for gas on L2 #287

Open
11 tasks done
gberg1 opened this issue Mar 16, 2021 · 2 comments
Open
11 tasks done

Make kwenta able to pay for gas on L2 #287

gberg1 opened this issue Mar 16, 2021 · 2 comments
Assignees
Labels

Comments

@gberg1
Copy link

gberg1 commented Mar 16, 2021

Summary

Dev Tasks

  • Gas price to be read from the provider
  • Mainnet - notify user that they have no WETH on L2 and point them to the optimism dapp bridge (blocked by Optimism link)
  • Add constant to mono repo for gas
  • Ping Erika to figure out best way to show this (header or when they make a transaction)
  • Use gas estimate for L2

Airdrop WETH to L2 users, ping @ajsantander choose who is eligible

Gas Price - on L1 keep same logic, recommended and custom fetched from 3rd party api. On L2 GWEI will be a gas price of 1

gas estimate for L2 is going to be hardcoded to 9M, gas estimate for L1 still use gas limit estimate func

QA Tasks

@gberg1 gberg1 added the kwenta label Mar 16, 2021
@gberg1 gberg1 changed the title Gas Price - on L1 keep same logic, recommended and custom fetched from 3rd party api. On L2 GWEI will be a gas price of 1 [L2] - Update kwenta to use L2 gas price when on L2 Mar 16, 2021
@gberg1 gberg1 changed the title [L2] - Update kwenta to use L2 gas price when on L2 [L2] - Update kwenta for L2 gas Mar 16, 2021
@kelonye kelonye self-assigned this Mar 16, 2021
@gberg1 gberg1 changed the title [L2] - Update kwenta for L2 gas Update kwenta for L2 gas Mar 16, 2021
@kelonye
Copy link
Contributor

kelonye commented Mar 18, 2021

Hard-coded the gas prices (see below) to zero for now. Asked if there will be an endpoint that will allow us to get these prices, in the optimism channel.

Screenshot 2021-03-19 at 00 04 23

@kelonye
Copy link
Contributor

kelonye commented Mar 19, 2021

Updating this to read from provider.getGasPrice

@gberg1 gberg1 changed the title Update kwenta for L2 gas Make kwenta able to pay for gas on L2 Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants