shareToTokenAmount

This method returns the amount of _token fees collected for a given _tokenID, as well the share of an INFT and the amount of shares harvested for a given pool.

Function

function shareToTokenAmount(
    uint _tokenID, 
    address _token
) external view returns (uint share2amount, uint inftShare, uint harvestedShares);

Parameters

ParameterDescription

_tokenID

The token ID of an INFT.

_token

the address of an ERC20 token.

Return values

ValueDescription

share2amount

The total amount of _token that a given _tokenID can harvest.

inftShare

The share of an INFT.

harvestedShares

The amount of shares harvested for a given pool.

Last updated