Learn
Actions

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

NameTypeDescription
targetsstring[] (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

NameTypeDescription
tokensstring[] (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

NameTypeDescription
targetsstring[] (required)The set of vaults for staking LP tokens, can be contract addresses or vault labels

lock

Locking and unlocking tokens within a protocol.

Parameters

NameTypeDescription
N/AN/AN/A

delegate

Delegate and undelegate tokens within a protocol.

Parameters

NameTypeDescription
N/AN/AN/A

swap

Swap tokens on a DEX.

Parameters

NameTypeDescription
sellstring[]The set of tokens that can be sold, can be contract addresses or token symbols
buystring[]The set of tokens that can be bought, can be contract addresses or token symbols

Note: Parameter requirements may vary depending on the DEX, as different exchanges may require specific formats or additional fields.