StakedToken constructor
StakedToken({})
Constructs a new StakedToken instance.
Parameters:
tokenAddress
– The address of the staked token.tokenSymbol
– The symbol of the staked token.tokenName
– The name of the staked token.tokenLogoURI
– The URI for the logo of the staked token.stakedAmount
– The amount of tokens staked.unStakeTokenAddress
– The address of the unstaking token.stakedAmountUSD
– The staked amount in USD.earnedAmountUSD
– The earned amount in USD.stakingApr
– The annual percentage rate (APR) for staking.
Implementation
factory StakedToken({
required String tokenAddress,
required String tokenSymbol,
required String tokenName,
required String tokenLogoURI,
required double stakedAmount,
required String unStakeTokenAddress,
required double stakedAmountUSD,
required double earnedAmountUSD,
required double stakingApr,
}) = _StakedToken;