def destpair(s): addr, amount = s.split(':') return (address(addr), as_monero(amount))
def test_rounding(self): self.assertEqual(to_atomic(Decimal("1.0000000000004")), 1000000000000) self.assertEqual(as_monero(Decimal("1.0000000000014")), Decimal("1.000000000001"))