From 6e8328415ca0319a17804c7469fb14a8f9055590 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 25 Apr 2023 12:01:55 +0300 Subject: [PATCH] docs: improve Notary's `till` value documentation Close #2986. Signed-off-by: Anna Shaleva --- docs/notary.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/notary.md b/docs/notary.md index 80df1b02a..7c348940c 100644 --- a/docs/notary.md +++ b/docs/notary.md @@ -261,10 +261,14 @@ with the `data` parameter matching the following requirements: - `to` denotes the receiver of the deposit. It can be nil in case `to` equals the GAS sender. - `till` denotes chain's height before which deposit is locked and can't be - withdrawn. `till` can't be set if you're not the deposit owner. Default `till` - value is the current chain height + 5760. `till` can't be less than the current chain - height. `till` can't be less than the currently set `till` value for that deposit if - the deposit already exists. + withdrawn. `till` can't be less than the current chain height. `till` + can't be less than the current `till` value for the deposit if the deposit + already exists. `till` can be set to the provided value iff the transaction + sender is the owner of the deposit, otherwise the provided `till` value will + be overridden by the system. If the sender is not the deposit owner, the + overridden `till` value is either set to be the current chain height + 5760 + (for the newly added deposit) or set to the old `till` value (for the existing + deposit). Note, that the first deposit call for the `to` address can't transfer less than 2×`FEE` GAS. Deposit is allowed for renewal, i.e. consequent `deposit` calls for the same `to`