sygmaprotocol / sygma-widget

Transfer widget for the sygmaprotocol
5 stars 2 forks source link

Display gas fee estimation #157

Closed mpetrunic closed 5 months ago

mpetrunic commented 6 months ago

depends on #153

Implementation details

In addition to fee, we should display estimation on how much gas (in native currency) + dollar value should transfer cost

Testing details

Acceptance Criteria

MakMuftic commented 6 months ago

Hey team! Please add your planning poker estimate with Zenhub @saadjhk @wainola @mpetrunic @Lykhoyda

saadahmsiddiqui commented 5 months ago

@mpetrunic @MakMuftic I'd like to know what service provider are we going to use in order to show value in fiat

mpetrunic commented 5 months ago

value in fiat is blocked by #153

saadahmsiddiqui commented 5 months ago

@mpetrunic I went through the sdk and I see that there isn't any method that provides estimation of the contract call, I will believe we should add it there first and also discuss how its interface should be?

mpetrunic commented 5 months ago

@mpetrunic I went through the sdk and I see that there isn't any method that provides estimation of the contract call, I will believe we should add it there first?

But in the widget you have transaction(+approvals) that will be executed, just can use ethers to estimate.

saadahmsiddiqui commented 5 months ago

@mpetrunic so the flow should show estimation for each transaction (including all approvals)?

mpetrunic commented 5 months ago

@mpetrunic so the flow should show estimation for each transaction (including all approvals)?

Well approvals are also cost of transfer 😅

LyonSsS commented 4 months ago
image.png

All without the dollar value ( which is currently blocked)