Skip to content

Commit

Permalink
Fix wrong Decimal type
Browse files Browse the repository at this point in the history
Signed-off-by: alfred richardsn <rchrdsn@protonmail.ch>
  • Loading branch information
r4rdsn committed Nov 21, 2019
1 parent ae0c224 commit efc7e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/escrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def wrapper(message: types.Message, state: FSMContext):

async def get_insurance(offer: EscrowOffer) -> Decimal:
"""Get insurance of escrow asset in ``offer`` taking limits into account."""
offer_sum = offer[f"sum_{offer.type}"]
offer_sum = offer[f"sum_{offer.type}"].to_decimal()
asset = offer[offer.type]
limits = await get_escrow_instance(asset).get_limits(asset)
if not limits:
Expand Down

0 comments on commit efc7e75

Please sign in to comment.