Skip to content

Add Fees#1764

Open
alistair-singh wants to merge 3 commits intomainfrom
alistair/fee-update
Open

Add Fees#1764
alistair-singh wants to merge 3 commits intomainfrom
alistair/fee-update

Conversation

@alistair-singh
Copy link
Copy Markdown
Contributor

No description provided.

txValueUsd: bigint // USD value of the transaction (whole USD, bigint)
ethToUsdNumerator: bigint // e.g. 2500n if 1 ETH = $2500
ethToUsdDenominator: bigint // e.g. 1n (simple ratio). Use denominator > 1 for fractional prices.
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to leave this to the UI to provide it, or should it be calculated internally in the SDK, using a price oracle?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Planing to leave this to the UI to do. Because I dont want to rely on apis/keys here.

Copy link
Copy Markdown
Contributor

@yrong yrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants