TokenDetails.liquidityPoolToken constructor

  1. @Implements<IToken>()
  2. @FreezedUnionValue('lp')
const TokenDetails.liquidityPoolToken({
  1. required String symbol,
  2. required int decimals,
  3. @JsonKey(fromJson: nameFromJson) required String name,
  4. @JsonKey(fromJson: addressFromJson) required String address,
  5. required List<LpUnderlyingTokens> underlyingTokens,
})

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;