From 074d2ae5bc5d11d68a369e6e66c44dd19ab26a25 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 26 Apr 2023 00:22:12 +0530 Subject: [PATCH] Added default expiration days as 60 for deposit --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 184f16d..cca2531 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,8 @@ const floGlobals = { blockchain: "FLO", tokenApiUrl: 'https://ranchimallflo.duckdns.org', - // tokenURL: 'https://ranchimallflo-testing.duckdns.org/' + // tokenURL: 'https://ranchimallflo-testing.duckdns.org/', + expirationDays: 60, } @@ -1287,6 +1288,8 @@ selectedSmartContract = getScDetails(scName, scAddress) const { price, contractName, contractAddress, acceptingToken, sellingToken, tokenIdentification, contractSubType } = selectedSmartContract history.replaceState(null, null, `#/smartcontracts/deposit?scName=${contractName}&scAddress=${contractAddress}`) + const defaultExpiration = new Date(new Date().getTime() + (floGlobals.expirationDays * 24 * 60 * 60 * 1000)) + .toISOString().slice(0, -8); renderElem(getRef('smart_contract_deposit_form'), html`
Select smart contract @@ -1305,7 +1308,7 @@
Expiration (Time after which unspent amount will be returned) - +
FLO private key