Skip to content

FluidVaultPositionsResolver ​

This contract resolves positions for Fluid Vaults, providing functionality to retrieve NFT IDs and positions for a given vault.

FluidVaultPositionsResolver__AddressZero ​

solidity
error FluidVaultPositionsResolver__AddressZero()

thrown if an input param address is zero

constructor ​

solidity
constructor(contract IFluidVaultResolver vaultResolver_, contract IFluidVaultFactory vaultFactory_) public

constructor sets the immutable vault resolver and vault factory address

getAllVaultNftIds ​

solidity
function getAllVaultNftIds(address vault_) public view returns (uint256[] nftIds_)

getPositionsForNftIds ​

solidity
function getPositionsForNftIds(uint256[] nftIds_) public view returns (struct Structs.UserPosition[] positions_)

getAllVaultPositions ​

solidity
function getAllVaultPositions(address vault_) public view returns (struct Structs.UserPosition[] positions_)

_vaultByNftId ​

solidity
function _vaultByNftId(uint256 nftId_) internal view returns (address vault_)

_getVaultPosition ​

solidity
function _getVaultPosition(address vault_, uint256 nftId_, uint256 vaultSupplyExchangePrice_, uint256 vaultBorrowExchangePrice_) internal view returns (struct Structs.UserPosition userPosition_)