mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
update crema api
This commit is contained in:
2916
package-lock.json
generated
2916
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,11 +4,10 @@ const axios = require("axios");
|
||||
async function fetch() {
|
||||
const response = (
|
||||
await retry(
|
||||
async () => await axios.get("https://api.crema.finance/tvl/24hour")
|
||||
async () => await axios.get("https://api.crema.finance/v1/swap/count")
|
||||
)
|
||||
).data;
|
||||
|
||||
const tvl = response.data.total_tvl_in_usd;
|
||||
const tvl = response.data.tvl_in_usd;
|
||||
return tvl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user