Skip to main content

PoolTokensAsset

PoolTokensAsset

NotGoListed

error NotGoListed(address owner)

Thrown when trying to harvest a pool token when not go-listed

AssetType

enum CapitalAssetType AssetType

isType

function isType(contract Context context, address assetAddress) internal view returns (bool)

Get the type of asset that this contract adapts.

Return Values

NameTypeDescription
[0]boolthe asset type

isValid

function isValid(contract Context context, uint256 assetTokenId) internal view returns (bool)

Get whether or not the given asset is valid

Return Values

NameTypeDescription
[0]booltrue if the represented tranche is or may be drawn down (so true if assets are doing work)

getUsdcEquivalent

function getUsdcEquivalent(contract Context context, uint256 assetTokenId) internal view returns (uint256)

Get the point-in-time USDC equivalent value of the Pool Token asset. This specifically attempts to return the "principle" or "at-risk" USDC value of the asset and does not include rewards, interest, or other benefits.

Parameters

NameTypeDescription
contextcontract Contextgoldfinch context for routing
assetTokenIduint256tokenId of the Pool Token to evaluate

Return Values

NameTypeDescription
[0]uint256USDC equivalent value

harvest

function harvest(contract Context context, address owner, uint256 assetTokenId) internal

Harvest GFI rewards and redeemable interest and principal on PoolToken with id assetTokenId and send the harvested assets to owner.

Parameters

NameTypeDescription
contextcontract Contextgoldfinch context for routing
owneraddressaddress to send the harvested assets to
assetTokenIduint256id of the position to harvest

getAllowedUIDs

function getAllowedUIDs(address poolAddress) private view returns (uint256[] allowedUIDs)