Skip to content

IFluidProtocol ​

TYPE ​

solidity
function TYPE() external view returns (uint256)

FluidProtocolTypes ​

implements helper methods to filter Fluid protocols by a certain type

VAULT_T1_TYPE ​

solidity
uint256 VAULT_T1_TYPE

VAULT_T2_SMART_COL_TYPE ​

solidity
uint256 VAULT_T2_SMART_COL_TYPE

VAULT_T3_SMART_DEBT_TYPE ​

solidity
uint256 VAULT_T3_SMART_DEBT_TYPE

VAULT_T4_SMART_COL_SMART_DEBT_TYPE ​

solidity
uint256 VAULT_T4_SMART_COL_SMART_DEBT_TYPE

filterBy ​

solidity
function filterBy(address[] addresses_, uint256 type_) internal view returns (address[] filtered_)

_filters input addresses_by protocoltype*. Input addresses must be actual Fluid protocols, otherwise they would be wrongly assumed to be VaultT1 even if they are not Fluid VaultT1 smart contracts. type* must be a listed constant type of this library. Example usage is to filter all vault addresses at the Vault factory by a certain type, e.g. to not include DEX protocol type vaults._