Actions
One of the main goals of the project is systematizing the DeFi ecosystem using a set of standard actions.
deposit
Deposit to and withdraw funds from a money market or AMM pool.
Parameters
Name | Type | Description |
---|---|---|
targets | string[] (required) | The set of money markets or AMM pools for depositing funds, can be contract addresses or pool labels |
borrow
Borrow assets against collateral deposited on money markets.
Parameters
Name | Type | Description |
---|---|---|
tokens | string[] (required) | The set of tokens that can be borrowed, can be contract addresses or token symbols |
stake
Stake and unstake LP tokens into a vault or gauge.
Parameters
Name | Type | Description |
---|---|---|
targets | string[] (required) | The set of vaults for staking LP tokens, can be contract addresses or vault labels |
claim
Claim rewards from staking and farming.
Parameters
Name | Type | Description |
---|---|---|
targets | string[] (required) | The set of rewards contract addresses to allow claiming from |
swap
Swap tokens on a DEX.
Parameters
Name | Type | Description |
---|---|---|
sell | string[] | The set of tokens that can be sold, can be contract addresses or token symbols |
buy | string[] | The set of tokens that can be bought, can be contract addresses or token symbols |
pools | string[] | The set of AMM pool that can be used for swaps, can be contract addresses or pool labels |