diff --git a/app/economy/utils.py b/app/economy/utils.py index d73d6b9334c..18e9c60bbdb 100644 --- a/app/economy/utils.py +++ b/app/economy/utils.py @@ -61,13 +61,15 @@ def convert_amount(from_amount, from_currency, to_currency, timestamp=None): if to_currency in settings.STABLE_COINS: to_currency = 'USDT' - + if timestamp: conversion_rate = ConversionRate.objects.filter( from_currency=from_currency, to_currency=to_currency, timestamp__lte=timestamp ).order_by('-timestamp').first() + if not conversion_rate: + return convert_amount(from_amount, from_currency, to_currency) else: conversion_rate = ConversionRate.objects.filter( from_currency=from_currency, diff --git a/app/kudos/templates/kudos_about.html b/app/kudos/templates/kudos_about.html index 33e14c05455..49141735237 100644 --- a/app/kudos/templates/kudos_about.html +++ b/app/kudos/templates/kudos_about.html @@ -332,7 +332,7 @@
When you send a kudos, you making an attestion about an attribute of the person who controls a web3 address.
+When you send a kudos, you are making an attestation about an attribute of the person who controls a web3 address.
Technically speaking, the attestation is an Ethereum transaction of a non-fungible token (NFT) being sent from a sender to a receiver
When you send a kudos through the Gitcoin UI, you are sending the NFT to a secure proxy web3 address.
The recipient can decide to accept it or reject it.
@@ -439,5 +439,5 @@