EnumerableSet
Overview
License: Apache 2.0
library EnumerableSetAdapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol
Errors info
AddressListExceedsMaxLength
error AddressListExceedsMaxLength()TokenPriceFeedDoesNotExist
error TokenPriceFeedDoesNotExist(address token)Functions info
addUnique
function addUnique(
AddressSet storage set,
IEOracle eOracle,
address token,
address baseToken
) internal returns (bool wasActive)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