Method: ExoCrypto::CryptoCalc.to_fixed_length
- Defined in:
- lib/exocrypto/crypto_calc.rb
.to_fixed_length(amount, currency) ⇒ Object
19 20 21 22 |
# File 'lib/exocrypto/crypto_calc.rb', line 19 def self.to_fixed_length(amount, currency) precision = Bip44WalletProvider.precision_of(currency) CryptoCalc.fixed_length_to_s(CryptoCalc.s_from_satoshis(amount, precision), precision) end |