chore: Fix clippy issue
This commit is contained in:
parent
c2bb75b375
commit
49730f27ca
2 changed files with 2 additions and 9 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue