Closed slundqui closed 2 months ago
Attention: Patch coverage is 90.13378%
with 59 lines
in your changes are missing coverage. Please review.
Project coverage is 81.35%. Comparing base (
88157f3
) to head (035c685
).:exclamation: Current head 035c685 differs from pull request most recent head b4c4b9e
Please upload reports for the commit b4c4b9e to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Note for followup. Left side is current dependency, right is what we want
This PR is the 3rd PR in a series of PRs for agent0 to support multiple pools.
The agent classes in agent0 is reworked in this PR. Here, the main changes include
init_agent
being a function of the chain as opposed to the pool. Additionally, many functions now take apool
argument to specify what pool the agent is making a trade on. There are helper functions for setting an active pool to avoid passing this argument in various functions, by calling it either ininit_agent
, or by callingagent.set_active(pool=...)
.Additionally, the policy is now untied from the agent, such that an agent can hot-swap policies on the fly by calling the
agent.set_active(policy=...)
function.init_agent
is now a function of aLocalChain
orChain
object.pool
argument for setting an initial active pool.PolicyAgent
has been deprecated in favor of usingLocalAccount
.Hyperdrive
andLocalHyperdrive
toChain
andLocalChain
respectively.get_wallet()
.get_long()
,get_short()
,get_lp()
, andget_withdrawal_shares()
.LocalHyperdrive
now has a flag for deploying on constructor, or attach to existing. This is necessary for the forking workflow.