chore: Fix clippy issue

This commit is contained in:
Dagur Valberg Johannsson 2024-05-06 11:18:05 +02:00
parent c2bb75b375
commit 49730f27ca
No known key found for this signature in database
GPG key ID: FD701804AEE88107
2 changed files with 2 additions and 9 deletions

View file

@ -19,10 +19,7 @@ use rocket::{
launch,
response::status::Custom,
routes,
serde::{
json::{json, Json},
Serialize,
},
serde::json::{json, Json},
State,
};
use rocket_cors::{AllowedHeaders, AllowedOrigins};
@ -274,10 +271,6 @@ fn index_blocks(
Ok(tip_header.block_hash())
}
#[derive(Serialize)]
#[serde(crate = "rocket::serde")]
struct TVLResponse {}
#[get("/tokens/list_by_volume?<duration>&<limit>")]
fn list_by_volume(
duration: Option<usize>,

View file

@ -41,7 +41,7 @@ fn pools_by_apy(connection: &Connection) -> Result<Vec<PoolYield>> {
JOIN tx ON uf.txid = tx.txid
WHERE
p.withdrawn_in_utxo IS NULL
AND uf.sats >= 1000000
AND uf.sats >= 10000
),
LatestData AS (
SELECT