Skip to content

Commit

Permalink
Getting hyperdrive address from pool obj
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Oct 16, 2024
1 parent 9f7c3ca commit 265e013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent0/core/hyperdrive/interactive/hyperdrive_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def set_max_approval(self, pool: Hyperdrive | None = None) -> None:
raise ValueError("Setting approval requires an active pool.")

pool.interface.base_token_contract.functions.approve(
pool.interface.hyperdrive_address, eth_utils.currency.MAX_WEI
pool.hyperdrive_address, eth_utils.currency.MAX_WEI
).sign_transact_and_wait(account=self.account, validate_transaction=True)

def set_active(
Expand Down

0 comments on commit 265e013

Please sign in to comment.