virtualPrice

Developers > Yield Tranches > Methods > virtualPrice

This method calculates the current tranches price considering the interest that is yet to be split (i.e. the interest generated since the last interaction done on depositXX/withdrawXX/harvest).

This should always be ā‰„\geq of tranchePrice

Function

function virtualPrice(
    address _tranche
) public view returns (uint256 _virtualPrice)

Parameters

ParameterDescription

_tranche

Address of the requested tranche

Return values

ValueDescription

_virtualPrice

Tranche price considering all interest since last interaction

Last updated