TokenDetails.liquidityPoolToken constructor
Constructs a new LiquidityPoolToken instance.
Parameters:
symbol
– The symbol of the liquidity pool token.decimals
– The number of decimals for the liquidity pool token.name
– The name of the liquidity pool token.address
– The address of the liquidity pool token.underlyingTokens
– A list of the underlying tokens in the liquidity pool.
Implementation
@Implements<IToken>()
@FreezedUnionValue('lp')
const factory TokenDetails.liquidityPoolToken({
required String symbol,
required int decimals,
@JsonKey(
fromJson: nameFromJson,
)
required String name,
@JsonKey(
fromJson: addressFromJson,
)
required String address,
required List<LpUnderlyingTokens> underlyingTokens,
}) = LiquidityPoolToken;