Skip to content

Commit

Permalink
move to 24h (#326)
Browse files Browse the repository at this point in the history
* move to 24h

* switch arb to 24h
  • Loading branch information
jmzwar authored Jun 22, 2024
1 parent 775fe52 commit 81b0d88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion liquidity/lib/useApr/useApr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export async function fetchApr(networkId?: number) {

return {
// 0 meaning not the right network
combinedApr: networkId && supportedAprNetworks.includes(networkId) ? data.apr28d * 100 : 0,
combinedApr:
networkId && supportedAprNetworks.includes(networkId)
? networkId === 42161
? data.apr24h * 100
: data.apr28d * 100
: 0,
cumulativePnl: networkId && supportedAprNetworks.includes(networkId) ? data.cumulativePnl : 0,
};
}

0 comments on commit 81b0d88

Please sign in to comment.