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

ISmartPoolState

ISmartPoolState

getAcceptedMintTokens

function getAcceptedMintTokens() external view returns (address[] tokens)

Returns the list of accepted mint tokens.

Return Values

Name
Type
Description

tokens

address[]

Array of token addresses.

getActiveApplications

function getActiveApplications() external view returns (uint256 packedApplications)

Returns the active application flags.

Return Values

Name
Type
Description

packedApplications

uint256

Packed value of bitmap encoded active flags.

ActiveTokens

struct ActiveTokens {
  address[] activeTokens;
  address baseToken;
}

getActiveTokens

Returns the list of active tokens and the base token.

Base token is always active.

Return Values

Name
Type
Description

tokens

struct ISmartPoolState.ActiveTokens

Tuple of active tokens list and base token.

ReturnedPool

Returned pool initialization parameters.

Symbol is stored as bytes8 but returned as string to facilitating client view.

Parameters

Name

Type

Description

getPool

Returns the struct containing pool initialization parameters.

Symbol is stored as bytes8 but returned as string in the returned struct, unlocked is omitted as alwasy true.

Return Values

Name
Type
Description

[0]

struct ISmartPoolState.ReturnedPool

ReturnedPool struct.

PoolParams

Pool variables.

Parameters

Name

Type

Description

getPoolParams

Returns the struct compaining pool parameters.

Return Values

Name
Type
Description

[0]

struct ISmartPoolState.PoolParams

PoolParams struct.

PoolTokens

Pool tokens.

Parameters

Name

Type

Description

getPoolTokens

Returns the struct containing pool tokens info. Unitary value is the last stored unitary value.

Return Values

Name
Type
Description

[0]

struct ISmartPoolState.PoolTokens

PoolTokens struct.

getPoolStorage

Returns the aggregate pool generic storage.

Return Values

Name
Type
Description

poolInitParams

struct ISmartPoolState.ReturnedPool

The pool's initialization parameters.

poolVariables

struct ISmartPoolState.PoolParams

The pool's variables.

poolTokensInfo

struct ISmartPoolState.PoolTokens

The pool's tokens info.

UserAccount

Pool holder account.

Parameters

Name

Type

Description

getUserAccount

Returns a pool holder's account struct.

Return Values

Name
Type
Description

[0]

struct ISmartPoolState.UserAccount

UserAccount struct.

name

Returns a string of the pool name.

Name maximum length 31 bytes.

Return Values

Name
Type
Description

[0]

string

String of the name.

owner

Returns the address of the owner.

Return Values

Name
Type
Description

[0]

address

Address of the owner.

symbol

Returns a string of the pool symbol.

Return Values

Name
Type
Description

[0]

string

String of the symbol.

totalSupply

Returns the total amount of issued tokens for this pool.

Return Values

Name
Type
Description

[0]

uint256

Number of total issued tokens.

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.

getDelegatedAddresses

Returns all addresses currently granted delegated write access to a selector.

Parameters

Name
Type
Description

selector

bytes4

The adapter function selector to query.

Return Values

Name
Type
Description

addresses

address[]

Array of addresses with delegated access for that selector.

getDelegatedSelectors

Returns all selectors currently delegated to an address.

Parameters

Name
Type
Description

delegated

address

The address to query.

Return Values

Name
Type
Description

selectors

bytes4[]

Array of selectors the address has been granted access to.

Last updated