Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into stb
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Oct 21, 2019
2 parents 6a04beb + c201ca8 commit 5571f4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/economy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions app/kudos/templates/kudos_about.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ <h5 class="accordion">Who earns money when a new Kudos is created?</h5>
<div class="mb-3 faq-item">
<h5 class="accordion">How is Kudos' privacy managed?</h5>
<div class="panel">
<p>When you send a kudos, you making an attestion about an attribute of the person who controls a web3 address.</p>
<p>When you send a kudos, you are making an attestation about an attribute of the person who controls a web3 address.</p>
<p>Technically speaking, the attestation is an Ethereum transaction of a <strong>non-fungible token (NFT)</strong> being sent from a <strong>sender</strong> to a <strong>receiver</strong></p>
<p>When you send a kudos through the Gitcoin UI, you are sending the NFT to a secure proxy web3 address.</p>
<p>The recipient can decide to accept it or reject it.</p>
Expand Down Expand Up @@ -439,5 +439,5 @@ <h5 class="accordion">I have another question and it's not listed here.</h5>
setInterval(load_kudos_card_images, 300);
});
</script>

</body>

0 comments on commit 5571f4f

Please sign in to comment.