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

MixinStorage

MixinStorage

Storage slots must be preserved to prevent storage clashing.

Pool storage is not sequential: each variable is wrapped into a struct which is assigned a storage slot.

constructor

constructor() internal

Accounts

struct Accounts {
  mapping(address => struct ISmartPoolState.UserAccount) userAccounts;
}

accounts

function accounts() internal pure returns (struct MixinStorage.Accounts s)

pool

function pool() internal pure returns (struct Pool s)

PoolWrapper

Pool initialization struct wrapper.

Allows initializing pool as struct for better readability.

Parameters

Name

Type

Description

poolWrapper

poolParams

poolTokens

activeTokensSet

activeApplications

Operator

operators

delegation

acceptedTokensSet

Last updated