This PR adds a Multiple-variants for function transferSpore, meltThenCreateSpore, brings the ability to operate multiple Spore assets in a single compacted transaction.
Also adds the necessary unit test for these two function.
About Fee payments behavior
I've also checked and fixed the fee payment part of the original meltThenCreateSpore.
The Zero-Fee feature will only happens if:
Sum of [inputs.capacity] is greater than [outputs.capacity]
[inputs.capacity] - [outputs.capacity] is greater than minimal current on-chain fee-rate
What does this PR do
This PR adds a
Multiple-
variants for functiontransferSpore
,meltThenCreateSpore
, brings the ability to operate multiple Spore assets in a single compacted transaction.Also adds the necessary unit test for these two function.
About Fee payments behavior
I've also checked and fixed the fee payment part of the original
meltThenCreateSpore
.The Zero-Fee feature will only happens if:
[inputs.capacity]
is greater than[outputs.capacity]
[inputs.capacity] - [outputs.capacity]
is greater than minimal current on-chain fee-rate