Skip to content

Commit 7ad3730

Browse files
cleanup
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
1 parent b3b2988 commit 7ad3730

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
@@ -1466,13 +1466,11 @@ func (exp *explorerUI) TreasuryPage(w http.ResponseWriter, r *http.Request) {
14661466
Data *TreasuryInfo
14671467
FiatBalance *exchanges.Conversion
14681468
Pages []pageNumber
1469-
Mempool *types.MempoolInfo
14701469
}{
14711470
CommonPageData: exp.commonData(r),
14721471
Data: treasuryData,
14731472
FiatBalance: exp.xcBot.Conversion(dcrutil.Amount(treasuryBalance.Balance).ToCoin()),
14741473
Pages: calcPages(int(typeCount), int(limitN), int(offset), linkTemplate),
1475-
Mempool: exp.MempoolInventory(),
14761474
}
14771475
str, err := exp.templates.exec("treasury", pageData)
14781476
if err != nil {
@@ -1680,8 +1678,7 @@ func (exp *explorerUI) TreasuryTable(w http.ResponseWriter, r *http.Request) {
16801678
bal := exp.pageData.HomeInfo.TreasuryBalance
16811679
exp.pageData.RUnlock()
16821680

1683-
linkTemplate := "/treasury" + "?start=%d&n=" + strconv.FormatInt(limitN, 10) + "&txntype=" + fmt.Sprintf("%s", txTypeStr)
1684-
1681+
linkTemplate := fmt.Sprintf("/treasury?start=%%d&n=%d&txntype=%s", limitN, txTypeStr)
16851682
response := struct {
16861683
TxnCount int64 `json:"tx_count"`
16871684
HTML string `json:"html"`

0 commit comments

Comments
 (0)