2

Or: How can I multiply duration and tez? (I need tez as my output)

I would usually write something about what I have tried - but I don't really know where to start with this one. I have looked through the archetype docs searching for 'convert' and looking at the arithmetic table but I can't find anything that would allow this.

Help appreciated!

1 Answer 1

2

try to divide by 1s, for example:

transfer (d/1s * balance) to grum

where d is a duration value; the division of duration returns a rational, and you can multiply rational by tez.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.