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

claim

Claim rewards from staking and farming.

Parameters

NameTypeDescription
targetsstring[] (required)The set of rewards contract addresses to allow claiming from

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
poolsstring[]The set of AMM pool that can be used for swaps, can be contract addresses or pool labels