We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5816fd9 commit 5faa288Copy full SHA for 5faa288
fees/pyth-entropy/index.ts
@@ -33,8 +33,16 @@ async function fetch(options: FetchOptions): Promise<FetchResult> {
33
34
const feePerRequest = await options.api.call({
35
target: pythEntropyContract,
36
- abi: 'uint128:getFeeV2'
+ abi: 'uint128:getFeeV2',
37
+ permitFailure: true,
38
});
39
+ if (!feePerRequest) {
40
+ return {
41
+ dailyFees: 0,
42
+ dailyRevenue: 0,
43
+ dailySupplySideRevenue: 0,
44
+ }
45
46
47
const requestLogs = await options.getLogs({
48
0 commit comments