Skip to content

Commit 10b183d

Browse files
cleanup
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
1 parent 04ea6dc commit 10b183d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cmd/dcrdata/internal/explorer/explorerroutes.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,13 +1488,11 @@ func (exp *explorerUI) TreasuryPage(w http.ResponseWriter, r *http.Request) {
14881488
Data *TreasuryInfo
14891489
FiatBalance *exchanges.Conversion
14901490
Pages []pageNumber
1491-
Mempool *types.MempoolInfo
14921491
}{
14931492
CommonPageData: exp.commonData(r),
14941493
Data: treasuryData,
14951494
FiatBalance: exp.xcBot.Conversion(dcrutil.Amount(treasuryBalance.Balance).ToCoin()),
14961495
Pages: calcPages(int(typeCount), int(limitN), int(offset), linkTemplate),
1497-
Mempool: exp.MempoolInventory(),
14981496
}
14991497
str, err := exp.templates.exec("treasury", pageData)
15001498
if err != nil {
@@ -1708,8 +1706,7 @@ func (exp *explorerUI) TreasuryTable(w http.ResponseWriter, r *http.Request) {
17081706
bal := exp.pageData.HomeInfo.TreasuryBalance
17091707
exp.pageData.RUnlock()
17101708

1711-
linkTemplate := "/treasury" + "?start=%d&n=" + strconv.FormatInt(limitN, 10) + "&txntype=" + fmt.Sprintf("%s", txTypeStr)
1712-
1709+
linkTemplate := fmt.Sprintf("/treasury?start=%%d&n=%d&txntype=%s", limitN, txTypeStr)
17131710
response := struct {
17141711
TxnCount int64 `json:"tx_count"`
17151712
HTML string `json:"html"`

0 commit comments

Comments
 (0)