cardano-client-lib icon indicating copy to clipboard operation
cardano-client-lib copied to clipboard

Min Ada Calculation doesn't consider duplicate asset name.

Open satran004 opened this issue 3 years ago • 0 comments

According to Cardano doc: B = [(policyID1, myAssetNameSBS, 10), (policyID1, yourAssetNameSBS, 5), (policyID2, someAssetNameSBS, 250), (policyID3, someAssetNameSBS, 43)] then numAssets B = 4

"sumAssetNameLengths: the sum of the length of the ByteStrings representing distinct asset names e.g., if B is as above,"

sumAssetNameLengths B = length myAssetNameSBS + length yourAssetNameSBS + length someAssetNameSBS

The logic in MinAdaCalculator needs to be changed to remove duplicate assetnames while calcultion sumAssetNameLength.

satran004 avatar Jun 02 '21 13:06 satran004