Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ FormatOnt
Function
FormatOnt
cmd/utils/utils.go:79–81 ·
view source on GitHub ↗
(amount uint64)
Source
from the content-addressed store, hash-verified
77
}
78
79
func
FormatOnt(amount uint64) string {
80
return
FormatAssetAmount(amount, PRECISION_ONT)
81
}
82
83
func
ParseOnt(rawAmount string) uint64 {
84
return
ParseAssetAmount(rawAmount, PRECISION_ONT)
Callers
6
transferTx
Function · 0.92
approveTx
Function · 0.92
transferFromTx
Function · 0.92
approve
Function · 0.92
transferFrom
Function · 0.92
TestFormatOnt
Function · 0.85
Calls
1
FormatAssetAmount
Function · 0.85
Tested by
1
TestFormatOnt
Function · 0.68