FluidVaultTicksBranchesResolver ​
Fluid Vault protocol ticks & branches resolver for all vault types.
FluidVaultTicksBranchesResolver__AddressZero ​
solidity
error FluidVaultTicksBranchesResolver__AddressZero()
thrown if an input param address is zero
constructor ​
solidity
constructor(contract IFluidVaultResolver vaultResolver_) public
constructor sets the immutable vault resolver address
getTicksDebt ​
solidity
function getTicksDebt(address vault_, int256 fromTick_, uint256 totalTicks_) public view returns (struct Structs.TickDebt[] ticksDebt_, int256 toTick_)
getMultipleVaultsTicksDebt ​
solidity
function getMultipleVaultsTicksDebt(address[] vaults_, int256[] fromTicks_, uint256[] totalTicks_) public view returns (struct Structs.VaultsTickDebt[] vaultsTickDebt_)
getAllVaultsTicksDebt ​
solidity
function getAllVaultsTicksDebt(uint256 totalTicks_) public view returns (struct Structs.VaultsTickDebt[] vaultsTickDebt_)
getBranchesDebt ​
solidity
function getBranchesDebt(address vault_, uint256 fromBranchId_, uint256 toBranchId_) public view returns (struct Structs.BranchDebt[] branchesDebt_)
getMultipleVaultsBranchesDebt ​
solidity
function getMultipleVaultsBranchesDebt(address[] vaults_, uint256[] fromBranchIds_, uint256[] toBranchIds_) external view returns (struct Structs.BranchesDebt[] branchesDebt_)
getAllVaultsBranchesDebt ​
solidity
function getAllVaultsBranchesDebt() external view returns (struct Structs.BranchesDebt[] branchesDebt_)
_populateTicksDebt ​
solidity
function _populateTicksDebt(address vault_, int256 toTick_, int256 mapId_, uint256 tickHasDebt_, uint256 count_, uint256 vaultSupplyExchangePrice_, uint256 vaultBorrowExchangePrice_) internal view returns (struct Structs.TickDebt[] ticksDebt_)
_tickHelper ​
solidity
function _tickHelper(uint256 tickRaw_) internal pure returns (int256 tick)
_countTicksWithDebt ​
solidity
function _countTicksWithDebt(address vault_, int256 toTick_, int256 mapId_, uint256 tickHasDebt_) internal view returns (uint256 count_)
_getBranchDebt ​
solidity
function _getBranchDebt(address vault_, uint256 vaultVariables_, uint256 branchId_) internal view returns (struct Structs.BranchDebt)
_getActiveBranchDebt ​
solidity
function _getActiveBranchDebt(uint256 vaultVariables_, uint256 currentBranchData_, uint256 branchId_, uint256 status_) internal pure returns (struct Structs.BranchDebt branchDebt_)
_getClosedOrMergedBranchDebt ​
solidity
function _getClosedOrMergedBranchDebt(uint256 currentBranchData_, uint256 branchId_, uint256 status_) internal pure returns (struct Structs.BranchDebt branchDebt_)
_getLiquidatedBranchDebt ​
solidity
function _getLiquidatedBranchDebt(address vault_, uint256 currentBranchData_, uint256 branchId_, uint256 status_, int256 minimaTick_) internal view returns (struct Structs.BranchDebt branchDebt_)
_getCollateralRaw ​
solidity
function _getCollateralRaw(uint256 currentBranchData_, uint256 debtLiquidity_, int256 minimaTick_) internal pure returns (uint256 collateralRaw_, uint256 ratio_)