Skip to content

Commit

Permalink
remove dead imports; improve todo
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Sep 28, 2023
1 parent e2c63be commit 4e52765
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/agent0/agent0/base/policies/no_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

if TYPE_CHECKING:
from elfpy.types import Trade
from ethpy.hyperdrive import HyperdriveInterface
from numpy.random._generator import Generator as NumpyGenerator


Expand Down
6 changes: 0 additions & 6 deletions lib/agent0/examples/hyperdrive_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
from __future__ import annotations

import logging
from typing import TYPE_CHECKING

from agent0 import initialize_accounts
from agent0.base.config import AgentConfig, Budget, EnvironmentConfig
from agent0.hyperdrive.exec import run_agents
from agent0.hyperdrive.policies import Policies
from fixedpointmath import FixedPoint

if TYPE_CHECKING:
from agent0.hyperdrive.state import HyperdriveWallet
from elfpy.markets.hyperdrive import HyperdriveMarket as HyperdriveMarketState
from numpy.random._generator import Generator as NumpyGenerator

DEVELOP = True
ENV_FILE = "hyperdrive_agents.account.env"

Expand Down
8 changes: 5 additions & 3 deletions lib/ethpy/ethpy/hyperdrive/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ def fixed_rate(self) -> FixedPoint:

@property
def variable_rate(self) -> None:
"""TODO: Returns the market variable rate.
"""Returns the market variable rate.
- Need the address for the yield source (e.g. MockERC4626)
- then should be able to do a contract read call (e.g. getRate)
.. todo::
- Need the address for the yield source (e.g. MockERC4626)
- then should be able to do a contract read call (e.g. getRate)
issue #913
"""
return None

Expand Down

0 comments on commit 4e52765

Please sign in to comment.