diff --git a/index.html b/index.html
index b76b519..ff336cb 100644
--- a/index.html
+++ b/index.html
@@ -149,17 +149,17 @@
style="enable-background:new 0 0 107.65 47.07;" xml:space="preserve">
+ c-1.19,0.61-5.33,4.55-5.33,4.55s3.06-3.13,3.2-9.94c0.09-4.54-1.02-7.39-2.72-10.64C25.29,2.33,22.79,0,22.79,0l0.01,4.97
+ c0,0,4.35,2.84,4.35,11.84c0,6.52-4.35,11.02-4.35,11.02s-4.35-4.5-4.35-11.02c0-9.01,4.35-11.84,4.35-11.84L22.79,0
+ c0,0-2.48,2.33-4.23,5.67c-1.7,3.25-2.81,6.1-2.72,10.64c0.13,6.81,3.2,9.94,3.2,9.94s-4.14-3.95-5.33-4.55
+ c-1.35-0.69-2.67-2.31-13.71-1.68c0.34,1.86,1.03,5.54,3.99,8.52c3.66,3.68,7.41,3.86,7.41,3.86s-5.05-2.03-7.15-9.45
+ c0,0,5.76-0.7,9.63,1.87c2.52,1.67,4.86,4.26,6.79,6.01c0,0-2.58-0.04-6.81,1.88c-2.54,1.15-3.92,2.84-4.44,4.38
+ c-0.36,1.06-0.2,2.27-0.2,2.27s3.31,0.31,5.94,0c1.99-0.23,3.42-2.16,3.42-2.16s-2,0.78-3.95,0.78c-2.06,0-2.67-0.66-2.67-0.66
+ c0.98-3.64,8.68-5.19,8.68-5.19s-1.34,2.6-1.42,6.5c-0.1,4.79,3.57,8.52,3.57,8.45c0,0.07,3.67-3.66,3.57-8.45
+ c-0.08-3.9-1.42-6.5-1.42-6.5s7.71,1.55,8.68,5.19c0,0-0.61,0.66-2.67,0.66c-1.95,0-3.95-0.78-3.95-0.78s1.43,1.93,3.42,2.16
+ c2.63,0.31,5.94,0,5.94,0s0.16-1.21-0.2-2.27c-0.52-1.54-1.9-3.23-4.44-4.38c-4.23-1.92-6.81-1.88-6.81-1.88
+ c1.93-1.76,4.27-4.34,6.79-6.01c3.87-2.57,9.63-1.87,9.63-1.87C39.26,30.38,34.2,32.4,34.2,32.4z M22.8,43.06
+ c-0.95-1.37-1.47-2.13-1.47-4.26c0-2.4,1.12-4.61,1.47-5.14c0.35,0.52,1.47,2.74,1.47,5.14C24.27,40.92,23.75,41.69,22.8,43.06z">
@@ -1242,7 +1242,12 @@
getRef('smart_contract_creation_form').classList.remove('split-layout')
renderElem(getRef('smart_contract_creation_form'), render.contractCreationForm(type, subtype))
getRef('smart_contract_creation_form').querySelectorAll('[data-flo-address]').forEach(input => {
- input.customValidation = floCrypto.validateFloID
+ input.customValidation = (value) => {
+ return {
+ isValid: floCrypto.validateAddr(value),
+ errorText: `Invalid FLO address.
It usually starts with "F".`
+ }
+ }
})
showChildElement('smartcontracts', 1, { entry: slideInLeft, exit: slideOutLeft })
break;
@@ -1257,46 +1262,46 @@
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
-
- ${render.availableSmartContractOptions(filteredSmartContracts)}
-
-
-
-
Deposit ${sellingToken} to get ${acceptingToken}
-
Exchange rate: 1 ${sellingToken} = ${price} ${acceptingToken}
-
-
-
- Amount (${sellingToken})
-
-
-
- Expiration (Time after which unspent amount will be returned)
-
-
-
-
FLO private key
-
-
-
-
-
-
-
- `)
+
+ Select smart contract
+
+ ${render.availableSmartContractOptions(filteredSmartContracts)}
+
+
+
+
Deposit ${sellingToken} to get ${acceptingToken}
+
Exchange rate: 1 ${sellingToken} = ${price} ${acceptingToken}
+
+
+
+ Amount (${sellingToken})
+
+
+
+ Expiration (Time after which unspent amount will be returned)
+
+
+
+
FLO private key
+
+
+
+
+
+
+
+ `)
} else {
renderElem(getRef('smart_contract_deposit_form'), html`
-
-
-
No smart contracts found
-
- `)
+
+
+
No smart contracts found
+
+ `)
}
showChildElement('smartcontracts', 2, { entry: slideInLeft, exit: slideOutLeft })
break;
@@ -1310,55 +1315,55 @@
const { price, contractName, contractAddress, acceptingToken, sellingToken, tokenIdentification, userChoices, contractSubType } = selectedSmartContract
history.replaceState(null, null, `#/smartcontracts/participate?scName=${contractName}&scAddress=${contractAddress}`)
renderElem(getRef('smart_contract_participate_form'), html`
-
- Select smart contract
-
- ${render.availableSmartContractOptions(filteredSmartContracts, `${contractName}_${contractAddress}`)}
-
-
- ${userChoices ? html`
-