For the complete documentation index, see llms.txt. This page is also available as Markdown.

MixinActions

MixinActions

BaseTokenBalance

error BaseTokenBalance()

NativeCurrencyNotAccepted

error NativeCurrencyNotAccepted()

PoolAmountSmallerThanMinimum

error PoolAmountSmallerThanMinimum(uint16 minimumOrderDivisor)

PoolBurnNotEnough

error PoolBurnNotEnough()

PoolBurnNullAmount

error PoolBurnNullAmount()

PoolBurnOutputAmount

error PoolBurnOutputAmount()

PoolCallerNotWhitelisted

PoolMinimumPeriodNotEnough

PoolMintAmountIn

PoolMintInvalidRecipient

PoolMintOutputAmount

PoolTokenNotActive

InvalidOperator

PoolMintTokenNotActive

mint

Allows a user to mint pool tokens on behalf of an address.

Parameters

Name
Type
Description

recipient

address

Address receiving the tokens.

amountIn

uint256

Amount of base tokens.

amountOutMin

uint256

Minimum amount to be received, prevents pool operator frontrunning.

Return Values

Name
Type
Description

recipientAmount

uint256

Number of tokens minted to recipient.

mintWithToken

Allows a user to mint pool tokens on behalf of an address using a desired token.

The token must be vault-owned, i.e. in the active token list, after operator action.

Parameters

Name
Type
Description

recipient

address

Address receiving the tokens.

amountIn

uint256

Amount of base tokens.

amountOutMin

uint256

Minimum amount to be received, prevents pool operator frontrunning.

tokenIn

address

Return Values

Name
Type
Description

recipientAmount

uint256

Number of tokens minted to recipient.

burn

Allows a pool holder to burn pool tokens.

Parameters

Name
Type
Description

amountIn

uint256

Number of tokens to burn.

amountOutMin

uint256

Minimum amount to be received, prevents pool operator frontrunning.

Return Values

Name
Type
Description

netRevenue

uint256

Net amount of burnt pool tokens.

burnForToken

Allows a pool holder to burn pool tokens and receive a token other than base token.

The method is a fallback for when the vault does not hold enough base token, reverts otherwise.

Parameters

Name
Type
Description

amountIn

uint256

Number of tokens to burn.

amountOutMin

uint256

Minimum amount to be received, prevents pool operator frontrunning.

tokenOut

address

The token to be received in exchange for pool tokens.

Return Values

Name
Type
Description

netRevenue

uint256

Net amount of burnt pool tokens.

updateUnitaryValue

Allows anyone to store an up-to-date pool price.

Reentrancy protection provided by calling functions (mint, burn, depositV3, donate)

Return Values

Name
Type
Description

navParams

struct NetAssetsValue

Tuple of unitary value, net total value, net total liabilities.

setOperator

Sets or removes an operator for the caller.

Parameters

Name
Type
Description

operator

address

The address of the operator.

approved

bool

The approval status.

Return Values

Name
Type
Description

[0]

bool

bool True, always.

decimals

Returns token decimals.

Return Values

Name
Type
Description

[0]

uint8

Uint8 number of decimals.

isOperator

Parameters

Name
Type
Description

holder

address

The address of the holder.

operator

address

The address of the operator.

Return Values

Name
Type
Description

approved

bool

The approval status.

_updateNav

_getFeeCollector

_getMinPeriod

_getSpread

_Returns the spread, or MAX_SPREAD if not set

_getTokenJar

Last updated