Skip to content

Commit

Permalink
taking a pass at morpho vault deposit action promp refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
stat committed Jan 22, 2025
1 parent 69fbe19 commit a5caf8f
Showing 1 changed file with 27 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,45 @@
class MorphoDepositInput(BaseModel):
"""Input schema for Morpho Vault deposit action."""

vault_address: str = Field(
...,
description="The address of the Morpho Vault to deposit to"
)
assets: str = Field(
...,
description="The amount of assets to deposit in whole units (e.g., '1 WETH', '0.1 WETH')"
description="The quantity of assets to deposit, in whole units"
)
receiver: str = Field(
...,
description="The address to receive the vault shares"
description="The address that will own the position on the vault which will receive the shares"
)
token_address: str = Field(
...,
description="The address of the token to approve for deposit"
description="The address of the assets token to approve for deposit"
)
vault_address: str = Field(
...,
description="The address of the Morpho Vault to deposit to"
)


DEPOSIT_PROMPT = """
This tool allows depositing assets into a Morpho Vault. It takes:
- vault_address: The address of the Morpho Vault to deposit to
- assets: The amount of assets to deposit in whole units
Examples for WETH:
- 1 WETH
- 0.1 WETH
- 0.01 WETH
- receiver: The address to receive the shares
- token_address: The address of the token to approve
This tool will deposit assets into a Morpho Vault.
With the following wallet context:
network_id: base-sepolia
default_address: 0x1234567890123456789012345678901234567890
An example prompt to use this tool could be:
'please deposit 0.0005 WETH into the morpho vault located at 0xb754c2a7FF8493CE1404E5ecFDE562e8f023DEF6'
Each network will have a different token address for the asset type being requested for deposit. On base-sepolia, the token address for WETH is: 0x4200000000000000000000000000000000000006.
If the receiver is not provided, use the wallet's default address.
Do not convert assets to atmoic units.
A successful response will return a message in the following format:
'Deposited {assets} to Morpho Vault {vault_address} with transaction hash: {contract_invocation.transaction_hash} and transaction link: {contract_invocation.transaction_link}'
A failure response will return a message in the following format:
'Error depositing to Morpho Vault: {e!s}'
"""


Expand Down

0 comments on commit a5caf8f

Please sign in to comment.