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`