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

EnumerableSet

AddressSet

struct AddressSet {
  address[] addresses;
  mapping(address => uint256) positions;
}

Bytes32Set

struct Bytes32Set {
  bytes32[] values;
  mapping(bytes32 => uint256) positions;
}

Pool

Pool initialization parameters.

This struct is not visible externally and used to store/read pool init params.

Parameters

Name

Type

Description

EnumerableSet

Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol

AddressListExceedsMaxLength

TokenPriceFeedDoesNotExist

_MAX_UNIQUE_VALUES

addUnique

Adds token to the set if it is not the base token and not already active.

Reads set.positions[token] exactly once. Returns whether the token was active before this call (base token is always considered active and is never stored).

remove

isActive

add

remove

contains

length

at

Last updated