I found that in the name-preorders and namespace-preorders maps, there is a field called stx-burned. However, the values inserted into these maps are actually in uSTX (microstacks). This might be confusing for users interacting with the smart contract.
Summary
I found that in the
name-preorders
andnamespace-preorders
maps, there is a field calledstx-burned
. However, the values inserted into these maps are actually inuSTX
(microstacks). This might be confusing for users interacting with the smart contract.Example
The maps declaration:
namespace-preorders
name-preorders
Inserting entries into the maps:
namespace-preorders
. This happens right after thestx-burn
operation, which is used to burn the passed uSTX amount.name-preorders
. Similar to the previous situation, the insert occurs after thestx-transfer
operation.Suggestion
I suggest renaming
stx-burned
toustx-burned
or adding comments to indicate that the amount represents uSTX.Thank you! CC: @moodmosaic @wileyj