MCPcopy Create free account
hub / github.com/LUX-Core/lux / parse

Function parse

src/qt/tokenamountfield.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 int256_t minAmount;
100
101 int256_t parse(const QString &text, bool *valid_out=0) const
102 {
103 int256_t val = 0;
104 bool valid = BitcoinUnits::parseToken(decimalUnits, text, &val);
105 if(valid)
106 {
107 if(val < 0 || val > totalSupply)
108 valid = false;
109 }
110 if(valid_out)
111 *valid_out = valid;
112 return valid ? val : 0;
113 }
114
115 void setSingleStep()
116 {

Callers 7

changedAmountMethod · 0.70
parseBitcoinURIFunction · 0.70
State validateMethod · 0.70
fixupFunction · 0.70
valueFunction · 0.70
read_range_or_throwFunction · 0.50
read_range_or_throwFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected