lib/txcatcher/models/deposit.rb in txcatcher-0.1.82 vs lib/txcatcher/models/deposit.rb in txcatcher-0.1.83
- old
+ new
@@ -13,10 +13,10 @@
self.address.update(received: self.address.received + self.amount)
end
def amount_in_btc
- Satoshi.new(self.amount, from_unit: :satoshi).to_btc
+ CryptoUnit.new(Config["currency"], self.amount, from_unit: :primary).to_standart
end
end
end