(output: Output)
| 124 | } |
| 125 | |
| 126 | export function calculateDust(output: Output): number { |
| 127 | const outputSize = getOutputSize(output); |
| 128 | // Formula used to calculate the minimum allowed output |
| 129 | const dustAmount = 444 + outputSize * 3; |
| 130 | return dustAmount; |
| 131 | } |
| 132 | |
| 133 | export function getOutputSize(output: Output): number { |
| 134 | const encodedOutput = encodeOutput(output); |
no test coverage detected