Create Fungible Token adjusting HBAR in msg.value #184
Unanswered
AlbertoMolinaIoBuilders
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to adjust the amount of HBARs provided in the "msg.value" field when invoking the "CreateFungibleToken" of the HTS precompiled contract.
As indicated in HIP-358 there is a demo contract somewhere where this "adjustment" has already been implemented, at least that is how I understood this bit:
Exchange rates might change and consequently Hbar cost for token create might change. The demo contract provided has the means to adjust how much Hbar is transferred as value to the precompile call.
In the How to teach this section the contract
TokenCreateContract.sol
is mentioned, but I checked it and I could not find any code implementing the HBAR adjustment.https://github.com/hashgraph/hedera-smart-contracts/blob/main/contracts/hts-precompile/examples/token-create/TokenCreateContract.sol
Beta Was this translation helpful? Give feedback.
All reactions