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