LimitVirtualPool

Variables

bool isFinished

uint32 desiredEndTimestamp immutable

uint32 desiredStartTimestamp immutable

Functions

constructor

constructor(address _farmingCenterAddress, address _farmingAddress, address _pool, uint32 _desiredStartTimestamp, uint32 _desiredEndTimestamp) public public

NameTypeDescription
_farmingCenterAddressaddress
_farmingAddressaddress
_pooladdress
_desiredStartTimestampuint32
_desiredEndTimestampuint32

finish

function finish() external returns (bool wasFinished, uint32 activeTime) external

Finishes incentive if it wasn't Developer note: This function is called by a AlgebraLimitFarming when someone calls #exitFarming() after the end timestamp

Returns:

NameTypeDescription
wasFinishedboolWas incentive finished before this call or not
activeTimeuint32The summary amount of seconds inside active positions