Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqian committed Feb 26, 2024
2 parents 48d933c + e4ee4bc commit 0b45cc4
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 7 deletions.
8 changes: 8 additions & 0 deletions components/Assets/index.tsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/BetaInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const BetaInfo = () => {
mainnet:{" "}
<Link
href="https://app.burrow.cash"
title="Burrow Cash"
title="Burrow Finance"
target="_blank"
fontWeight="bold"
color={theme.palette.primary.main}
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<PersistGate loading={null} persistor={persistor}>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Burrow Cash</title>
<title>Burrow Finance</title>
</Head>
<Layout>
<Init />
Expand Down
2 changes: 1 addition & 1 deletion redux/selectors/getAccountRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getGains = (
const data = portfolio[source];
const res = Object.keys(data).map((id) => {
const asset = assets.data[id];
const netTvlMultiplier = asset.config.net_tvl_multiplier / 10000;
const netTvlMultiplier = (asset?.config.net_tvl_multiplier || 0) / 10000;

const { balance } = data[id];
const apr = Number(data[id].apr);
Expand Down
2 changes: 1 addition & 1 deletion redux/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const listToMap = (list) =>
.reduce((a, b) => ({ ...a, ...b }), {});

export const toUsd = (balance: string, asset: Asset) =>
asset.price?.usd
asset?.price?.usd
? Number(shrinkToken(balance, asset.metadata.decimals + asset.config.extra_decimals)) *
asset.price.usd
: 0;
Expand Down
3 changes: 2 additions & 1 deletion screens/Staking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ const Staking = () => {
<CustomButton
onClick={() => setModal({ name: "staking" })}
className="w-full"
disabled={!total}
// disabled={!total}
disabled
>
Stake
</CustomButton>
Expand Down
14 changes: 13 additions & 1 deletion utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BN from "bn.js";
import Decimal from "decimal.js";

import getConfig, { defaultNetwork, LOGIC_CONTRACT_NAME } from "./config";
import { nearMetadata, wooMetadata } from "../components/Assets";
import { nearMetadata, wooMetadata, sfraxMetadata, fraxMetadata } from "../components/Assets";

import {
ChangeMethodsLogic,
Expand Down Expand Up @@ -245,5 +245,17 @@ export function standardizeAsset(asset) {
if (serializationAsset.metadata?.symbol === "WOO") {
serializationAsset.metadata.icon = wooMetadata.icon;
}
if (serializationAsset.symbol === "sFRAX") {
serializationAsset.icon = sfraxMetadata.icon;
}
if (serializationAsset.metadata?.symbol === "sFRAX") {
serializationAsset.metadata.icon = sfraxMetadata.icon;
}
if (serializationAsset.symbol === "FRAX") {
serializationAsset.icon = fraxMetadata.icon;
}
if (serializationAsset.metadata?.symbol === "FRAX") {
serializationAsset.metadata.icon = fraxMetadata.icon;
}
return serializationAsset;
}
2 changes: 1 addition & 1 deletion utils/wallet-selector-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let selector: WalletSelector | null = null;
const walletConnect = setupWalletConnect({
projectId: WALLET_CONNECT_ID,
metadata: {
name: "Burrow Cash",
name: "Burrow Finance",
description: "Burrow with NEAR Wallet Selector",
url: "https://github.com/near/wallet-selector",
icons: ["https://avatars.githubusercontent.com/u/37784886"],
Expand Down

0 comments on commit 0b45cc4

Please sign in to comment.