encodeScale function

Future<int> encodeScale(
  1. double value,
  2. String assetType
)

Implementation

Future<int> encodeScale(double value, String assetType) async {
  final hash = await getBlindScale(assetType);
  return (value * hash).round();
}