Skip to content

Commit

Permalink
Minoir cleanups from feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chanhosuh committed Nov 6, 2023
1 parent 1037964 commit 8997176
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.d/20231031_152630_chanhosuh_refactor_utils.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Added
-----
- Created utilities for managing datetime, addresses, and enums.
- Created a constants module to house common constants / enums.
- Created a constants module to house common constants / enums (currently only `Chain` and `Env`).

2 changes: 1 addition & 1 deletion curvesim/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __str__(self):
>>> str(Chain.MAINNET)
'Chain.MAINNET'
so we need to explicit use the value.
so we need to explicitly use the value.
This behaves like the builtin `StrEnum` (available in 3.11).
"""
Expand Down
5 changes: 3 additions & 2 deletions curvesim/pool_data/queries/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ def get_metadata(
chain : str, Chain
Chain/layer2 identifier, e.g. “mainnet”, “arbitrum”, “optimism".
end_ts : int
Posix timestamp
end_ts : int, optional
Datetime cutoff, given as Unix timestamp, to pull last snapshot before.
The default value is current datetime, which will pull the most recent snapshot.
Returns
-------
Expand Down

0 comments on commit 8997176

Please sign in to comment.