Skip to content

Commit

Permalink
apr fixes (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco authored Dec 17, 2024
1 parent ff45d93 commit c80691d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class BloomAprHandler implements AprHandler {
const contracts = addresses.map((address) => ({
address,
abi: bloomBpsFeed,
functionName: 'borrowRatePerTimestamp',
functionName: 'currentRate',
}));
const rates = await client.multicall({ contracts, allowFailure: false });

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { AprHandler } from '..';
import { Chain } from '@prisma/client';
import { getViemClient } from '../../../../../sources/viem-client';
import { parseAbi } from 'viem';

const helperAbi = ['function vaultAPY() view returns (uint256)'];
const helperAbi = parseAbi(['function vaultAPY() view returns (uint256)']);

/** Sets the config data used internally */
const config = {
Expand Down

0 comments on commit c80691d

Please sign in to comment.