Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Oct 3, 2024
1 parent 7f06396 commit 0da8b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/staking/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Data = {
numFeeds: number;
qualityRanking: number;
delegationFee: bigint;
apyHistory: { date: Date; apy: number, selfApy: number }[];
apyHistory: { date: Date; apy: number; selfApy: number }[];
positions?:
| {
warmup?: bigint | undefined;
Expand Down Expand Up @@ -230,7 +230,7 @@ const loadPublisherData = async (
const apyHistory = publisher.apyHistory.map(({ epoch, apy, selfApy }) => ({
date: epochToDate(epoch + 1n),
apy,
selfApy
selfApy,
}));

return {
Expand Down
8 changes: 4 additions & 4 deletions apps/staking/src/components/OracleIntegrityStaking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -935,15 +935,15 @@ const doSort = (
poolCapacity: a.poolCapacity,
poolUtilization: a.poolUtilization + a.poolUtilizationDelta,
yieldRate,
delegationFee : a.delegationFee,
delegationFee: a.delegationFee,
}) -
calculateApy({
isSelf: false,
selfStake: b.selfStake + b.selfStakeDelta,
poolCapacity: b.poolCapacity,
poolUtilization: b.poolUtilization + b.poolUtilizationDelta,
yieldRate,
delegationFee : b.delegationFee,
delegationFee: b.delegationFee,
});
return sort === SortOption.ApyDescending ? -1 * value : value;
}
Expand Down Expand Up @@ -1127,7 +1127,7 @@ const Publisher = ({
poolUtilization:
publisher.poolUtilization + publisher.poolUtilizationDelta,
yieldRate,
delegationFee : publisher.delegationFee,
delegationFee: publisher.delegationFee,
}).toFixed(2),
[
isSelf,
Expand Down Expand Up @@ -1552,7 +1552,7 @@ const NewApy = ({
calculateApy({
poolCapacity: publisher.poolCapacity,
yieldRate,
delegationFee : publisher.delegationFee,
delegationFee: publisher.delegationFee,
...(isSelf
? {
isSelf: true,
Expand Down

0 comments on commit 0da8b05

Please sign in to comment.