module Glueby::Internal::Wallet::TapyrusCoreWalletAdapter::Util
Public Instance Methods
tpc_to_tapyrus(tpc)
click to toggle source
Convert TPC to tapyrus. 1 TPC is 10**8 tapyrus. @param [String] tpc @return [Integer] tapyrus
Example) “0.00000010” to 10.
# File lib/glueby/internal/wallet/tapyrus_core_wallet_adapter.rb, line 18 def tpc_to_tapyrus(tpc) (BigDecimal(tpc) * 10**8).to_i end