diff --git a/app/dashboard/sync/helpers.py b/app/dashboard/sync/helpers.py index 5e91c223900..cf27dd53c24 100644 --- a/app/dashboard/sync/helpers.py +++ b/app/dashboard/sync/helpers.py @@ -3,6 +3,7 @@ from dashboard.helpers import bounty_activity_event_adapter, get_bounty_data_for_activity from dashboard.models import Activity, BountyEvent, BountyFulfillment +from decimal import Decimal logger = logging.getLogger(__name__) @@ -26,7 +27,7 @@ def record_payout_activity(fulfillment): kwargs['profile'] = fulfillment.funder_profile kwargs['metadata']['from'] = fulfillment.funder_profile.handle kwargs['metadata']['to'] = fulfillment.profile.handle - kwargs['metadata']['payout_amount'] = str(fulfillment.payout_amount) + kwargs['metadata']['payout_amount'] = str(Decimal(fulfillment.payout_amount).normalize()) kwargs['metadata']['token_name'] = fulfillment.token_name try: diff --git a/app/dashboard/templates/bounty/details2.html b/app/dashboard/templates/bounty/details2.html index e8e453d841f..9b007cb0433 100644 --- a/app/dashboard/templates/bounty/details2.html +++ b/app/dashboard/templates/bounty/details2.html @@ -932,7 +932,7 @@
ALL ACTIVITY
> [[ activity.metadata.to ]] - [[ activity.metadata.token_value ]] [[ activity.metadata.token_name ]] + [[ activity.metadata.payout_amount ]] [[ activity.metadata.token_name ]]