Replies: 1 comment 2 replies
-
Kudos for a forward-thinking idea @Neurone ! Looking at how the spec might be, it seems like there needs to be a "rate freshness" to get the usd hbar price any time a message is sent to the topic so the payment is always accurate. I really like this idea. Maybe it would also be good to include the rate of hbar/usd in the receipt whenever a message is sent to the topic too so users can easily see what they were charged in habr and possibly adding this data to the mirror node when a message is sent for historical query of hbar/usd price at the time the message was sent. Thoughts? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hedera is a business-friendly network that already offers automatic HBAR-dollar conversion for network fees.
The idea is to extend this feature to all transaction values and service settings, enabling users to specify dollar amounts in the transactions and have the network calculate the corresponding HBAR amount at consensus level.
This would allow users to transfer a dollar amount, set a custom fee in dollars for an HCS message or token, and specify the maximum network fee in dollars, etc.
Allowing the optional use of dollars in transaction definitions would also enable:
This would be a unique feature for Hedera, as no other public ledger currently allows this at consensus level.
Value proposition
Rationales and current issues
HBAR is great medium for payments and micropayments — the network is fast and cheap — but there are some issues when hbar changes price, for example:
User stories
High-level specs
This involves making changes at the consensus and (potentially) mirror node levels, but leveraging existing functionality for conversion.
Possible implementation
TokenID
is already used to denominate multiple types of payment (custom fees, transfers, etc.).We could define a system TokenID (e.g.,
0.0.<max uint64>
) to indicate the intention to specify dollar amounts.This would simplify the reuse and integration of existing tools (UX, UI, SDKs, APIs, etc.) while minimising the impact on the Protobuf definitions.
In the future, we can also think to support values in other fiat currencies simply adding new system tokens (
euros = 0.0.<max uint64> - 1
,yuan = 0.0.<max uint64> - 2
, etc.) and new official oracle services, in addition to the hbar-dollar one.Alternatively, we can choose an ID from the system accounts range that has not already been taken, such as
0.0.150
,0.0.151
, etc.Code snippets
Examples of code snippets that developers can use after the HIP is implemented:
Beta Was this translation helpful? Give feedback.
All reactions