forked from gitcoinco/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
economy/utils: Add optional timestamp to convert_amount.
The convert_amount method accepts optional timestamp datetime.datetime argument. If the argument is not provided, the latest available ConversionRate is returned. As a fallback if no data for a given timestamp is available, the latest available rate is return. Refs: gitcoinco#693
- Loading branch information
1 parent
e29b503
commit aaf29d6
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters