Skip to content

Commit

Permalink
Chore/april 4 fixes 2 (#218)
Browse files Browse the repository at this point in the history
* update onboard

* block number shennanigans

* apy to apr

* switch network order

* dont show zero

---------

Co-authored-by: jmzwar <james@jmzwar.com>
  • Loading branch information
jmzwar and jmzwar authored Apr 4, 2024
1 parent 0df4756 commit 8b04f85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion liquidity/components/Pools/PoolCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface PoolcardProps {
pool: PoolType;
collateralTypes?: CollateralType[];
liquidityPositionsById?: LiquidityPositionsById;
apr: number;
apr?: number;
}

export const PoolCard = ({ pool, collateralTypes, liquidityPositionsById, apr }: PoolcardProps) => {
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/Pools/PoolsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface PoolsListProps {
pools?: PoolType[];
collateralTypes?: CollateralType[];
liquidityPositionsById?: LiquidityPositionsById;
apr: number;
apr?: number;
isLoading: boolean;
}

Expand Down
4 changes: 2 additions & 2 deletions liquidity/components/Pools/VaultRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function VaultRowUi({
</>
) : (
<Td>
<Text>{apr?.toFixed(2)}%</Text>
<Text>{apr?.toFixed(2) || '-'}%</Text>
</Td>
)}
<Td textAlign="end">
Expand Down Expand Up @@ -132,7 +132,7 @@ export type VaultRowProps = {
collateralType: CollateralType;
poolId: string;
liquidityPosition?: LiquidityPositionType;
apr: number;
apr?: number;
};

export const VaultRow: FC<VaultRowProps> = ({ collateralType, poolId, liquidityPosition, apr }) => {
Expand Down

0 comments on commit 8b04f85

Please sign in to comment.