Skip to main content

StakedFiduAsset

StakedFiduAsset

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 asset is Fidu type (not CurveLP)

getUsdcEquivalent

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

Get the point-in-time USDC equivalent value of the ERC721 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
assetTokenIduint256id of the position to evaluate

Return Values

NameTypeDescription
[0]uint256USDC equivalent value

harvest

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

Harvest GFI rewards on a staked fidu token and send them to owner.

Parameters

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