Rationals & transfers
rational type is very convenient to implement business formulas.
In this exercise, the
payback entrypoint transfers back to the caller 70% of the transferred amount:
caller refers to the account address that is calling the entry point, and
transferred refers to the amount of tez sent to call the entry point.
There are many ways to specify a rational value:
The following Completium CLI command deploys the contract on the Tezos network:
Call entry point
The following command calls the unique entry point and sends 10tz to the contract with the
The following command generates the URL to view the contract in Better call Dev:
Open '4-time_window.arl' and click on "Next: Dates & Durations" below.