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

MixinPoolState

Overview

License: Apache 2.0-or-later

abstract contract MixinPoolState is MixinPoolValue

Functions info

balanceOf (0x70a08231)

function balanceOf(address who) external view override returns (uint256)

Returns the balance of pool tokens for a given holder.

Parameters:

Name
Type
Description

who

address

Address of the token holder.

Return values:

Name
Type
Description

[0]

uint256

Number of pool tokens held.

getAcceptedMintTokens (0xd0624bed)

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

Returns the list of accepted mint tokens.

Return values:

Name
Type
Description

tokens

address[]

Array of token addresses.

getActiveApplications (0x935ef3ad)

Returns the active application flags.

Grg staking is always queried regardless of the active bit.

Return values:

Name
Type
Description

packedApplications

uint256

Packed value of bitmap encoded active flags.

getActiveTokens (0x5f5817e3)

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.

getPoolStorage (0x95f71b16)

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.

getUserAccount (0xfb47e016)

Returns a pool holder's account struct.

Return values:

Name
Type
Description

[0]

struct ISmartPoolState.UserAccount

UserAccount struct.

name (0x06fdde03)

Returns a string of the pool name.

Name maximum length 31 bytes.

Return values:

Name
Type
Description

[0]

string

String of the name.

owner (0x8da5cb5b)

Returns the address of the owner.

Return values:

Name
Type
Description

[0]

address

Address of the owner.

totalSupply (0x18160ddd)

Returns the total amount of issued tokens for this pool.

Return values:

Name
Type
Description

[0]

uint256

Number of total issued tokens.

decimals (0x313ce567)

Returns the number of decimals of the pool token.

Return values:

Name
Type
Description

[0]

uint8

Number of decimals.

getPool (0x026b1d5f)

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.

getPoolParams (0x42377107)

Returns the struct compaining pool parameters.

Return values:

Name
Type
Description

[0]

struct ISmartPoolState.PoolParams

PoolParams struct.

getPoolTokens (0x89c06568)

Returns the struct containing pool tokens info.

Return values:

Name
Type
Description

[0]

struct ISmartPoolState.PoolTokens

PoolTokens struct.

symbol (0x95d89b41)

Returns a string of the pool symbol.

Return values:

Name
Type
Description

[0]

string

String of the symbol.

isOperator (0xb6363cf2)

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 (0xe598a475)

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 (0xe496fb4a)

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