Transfer: display estimated transaction fee, requires #6302

This commit is contained in:
xiphon
2020-01-22 16:32:19 +00:00
parent ef2b0cfa4a
commit b5fafb55c9
4 changed files with 75 additions and 6 deletions

View File

@@ -133,3 +133,7 @@ function capitalize(s){
if (typeof s !== 'string') return ''
return s.charAt(0).toUpperCase() + s.slice(1)
}
function removeTrailingZeros(value) {
return (value + '').replace(/(\.\d*[1-9])0+$/, '$1');
}