diff --git a/index.html b/index.html index 5dfac65..c6f4fcb 100644 --- a/index.html +++ b/index.html @@ -446,6 +446,7 @@ html`${contractDeposits.map(deposit => render.depositCard({ ...deposit, acceptingToken, + sellingToken }))}` ) else @@ -475,7 +476,7 @@ }) router.addRoute('blocks', async state => { let allBlocks = await getAllBlocks(100); - getRef("page_title").textContent = "All Blocks"; + getRef("page_title").textContent = "All blocks with token transactions"; const renderedBlocks = allBlocks.map(block => render.blockCard(block)) renderElem(getRef("page_container"), html`
@@ -485,7 +486,7 @@ }) router.addRoute('transactions', async state => { let allTxs = await getAllTxs(); - getRef("page_title").textContent = "All Transactions"; + getRef("page_title").textContent = "All token transactions"; renderElem(getRef("page_container"), html`
@@ -659,21 +660,21 @@

${walletAddresses}

-

Latest block (${getFormattedTime(time, 'relative')})

+

Last token transaction block (${getFormattedTime(time, 'relative')})

${height}

-

Recent transactions

+

Recent token transactions

View all
-

Recent blocks

+

Recent token transaction blocks

View all
@@ -876,7 +877,8 @@ totalParticipationAmount, priceType, oracle_address, - price + price, + currentDepositBalance } = obj; console.log(obj) return html` @@ -943,11 +945,11 @@ ${contractType === 'continuos-event' && contractSubtype === 'tokenswap' ? html`
deposit token
-

${acceptingToken}

+

${sellingToken}

participation token
-

${sellingToken}

+

${acceptingToken}

Exchange rate (${priceType === 'dynamic' ? 'Dynamic' : 'Fixed'})
@@ -984,6 +986,12 @@

${formatAmount(totalHonorAmount, 'usd')} ${sellingToken}

`: ''} + ${currentDepositBalance ? html` +
+
Total deposit balance
+

${formatAmount(currentDepositBalance, 'usd')} ${sellingToken}

+
+ `: ''} ${userChoices ? html`

Available Choices

@@ -1021,11 +1029,11 @@
-
Input amount
+
Sent
${formatAmount(participationAmount, 'usd')} ${acceptingToken}
-
Output amount
+
Received
${formatAmount(swapAmount, 'usd')} ${sellingToken}
@@ -1038,8 +1046,7 @@ }, depositCard(details) { const { currentBalance, depositorAddress, originalBalance, status, time, transactionHash, acceptingToken, sellingToken } = details - console.log("I'm at the debug point") - debugger + console.log(details) return html`
  • @@ -1140,8 +1147,14 @@

    ${formatAmount(amount, token.toLowerCase() === 'rupee' ? 'inr' : 'usd')} ${token}

    -
    Contract name
    -

    ${contractName}

    +
    Sender
    + + ${sender} + +
    +
    +
    Receiver (Smart contract)
    +

    ${contractName}-${receiver}

    @@ -1313,13 +1326,13 @@ `: ''} ${acceptingToken ? html`
    -
    deposit token
    +
    Participation token

    ${acceptingToken}

    `: ''} ${sellingToken ? html`
    -
    participation token
    +
    Deposit token

    ${sellingToken}

    `: ''} @@ -1521,7 +1534,8 @@ maximumsubscriptionamount, totalHonorAmount, totalParticipationAmount, - price + price, + currentDepositBalance }, contractAddress, contractName } = info @@ -1546,7 +1560,8 @@ oracle_address, totalHonorAmount, totalParticipationAmount, - price + price, + currentDepositBalance } }