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