Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adapters/api3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const chain: any = "ethereum";
let res: number;

export async function latest(): Promise<number> {
if (!res)
if (!res!)
return fetch(`https://api.llama.fi/emission/api3`)
.then((r) => r.json())
.then((r) => JSON.parse(r.body))
Expand Down
2 changes: 1 addition & 1 deletion adapters/balance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function latest(
backfill: boolean = false
): Promise<number> {
if (backfill) return timestampDeployed
if (!res) {
if (!res!) {
let r;
try {
r = await fetch(`https://api.llama.fi/emission/${adapter}`).then((r) =>
Expand Down
2 changes: 1 addition & 1 deletion adapters/conic-finance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PromisePool } from "@supercharge/promise-pool";
let res: number;

export async function latest(): Promise<number> {
if (!res)
if (!res!)
return fetch(`https://api.llama.fi/emission/conic-finance`)
.then((r) => r.json())
.then((r) => JSON.parse(r.body))
Expand Down
2 changes: 1 addition & 1 deletion adapters/equilibria/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const contracts: { [chain: string]: any } = {
let res: number;

export async function latest(key: string, backfill: boolean): Promise<number> {
if (!res)
if (!res!)
return fetch(`https://api.llama.fi/emission/${key}`)
.then((r) => r.json())
.then((r) => {
Expand Down
2 changes: 1 addition & 1 deletion no-emissions/incentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ export const protocolsIncentives:string[] = [
"parent#ramses-exchange", //ramses
// "parent#spark", //spark is not correct #135
"parent#blackhole", //blackhole
"parent#uniswap"
"parent#uniswap",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsure how this import didnt break everything, this file was not used anywhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is used to enable protocols incentives stats, surprised that this didnt show any error

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not ideal

"parent#etherex" //etherex
]
Loading
Loading