Skip to content

Commit

Permalink
Fix stats and pool pages loading (#854)
Browse files Browse the repository at this point in the history
* fix Pool and Pool Stats loading

* testnet release 2.14.23
  • Loading branch information
pgoos authored Dec 10, 2023
1 parent d9d7c2d commit 374b0cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "2.14.22",
"version": "2.14.23",
"private": true,
"scripts": {
"bump": "bump patch --tag --commit 'testnet release '",
Expand Down
24 changes: 11 additions & 13 deletions app/src/views/PoolPage/PoolItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,35 +387,33 @@ export default defineComponent({
<div
class={[
COLUMNS_LOOKUP.poolTvl.class,
"flex items-center font-mono",
"flex items-center justify-end font-mono",
]}
>
{typeof this.$props.poolStat?.poolTVL === "number"
? this.$props.poolStat.poolTVL.toLocaleString("en-US", {
style: "currency",
currency: "USD",
})
: "..."}
{Number(this.$props.poolStat?.poolTVL).toLocaleString("en-US", {
style: "currency",
currency: "USD",
})}
</div>
<div
class={[
COLUMNS_LOOKUP.rowanApr.class,
"flex items-center font-mono",
"flex items-center justify-end font-mono",
]}
>
{isNil(this.$props.poolStat?.poolApr)
? "..."
: `${(this.$props.poolStat?.poolApr ?? 0).toFixed(2)}%`}
: `${(Number(this.$props.poolStat?.poolApr) ?? 0).toFixed(2)}%`}
</div>
<div
class={[
COLUMNS_LOOKUP.pairedApr.class,
"flex items-center font-mono",
"flex items-center justify-end font-mono",
]}
>
{isNil(this.$props.poolStat?.pairedApr)
? "..."
: `${(this.$props.poolStat?.pairedApr ?? 0).toFixed(2)}%`}
: `${(Number(this.$props.poolStat?.pairedApr) ?? 0).toFixed(2)}%`}
</div>
{/* <div
class={[
Expand All @@ -430,7 +428,7 @@ export default defineComponent({
<div
class={[
COLUMNS_LOOKUP.userShare.class,
"flex items-center font-mono",
"flex items-center justify-end font-mono",
]}
>
{this.userPoolData.myPoolShare?.value
Expand All @@ -440,7 +438,7 @@ export default defineComponent({
<div
class={[
COLUMNS_LOOKUP.userValue.class,
"flex items-center font-mono",
"flex items-center justify-end font-mono",
]}
>
{this.myPoolValue == null
Expand Down
4 changes: 2 additions & 2 deletions app/src/views/StatsPage/useStatsPageData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function useStatsPageData(initialState: StatsPageState) {
tvl: pool.poolTVL,
volume: pool.volume ?? 0,
arbitrage: pool.arb == null ? null : pool.arb ?? 0,
poolApr: pool.poolApr?.toFixed(1),
pairedApr: pool.pairedApr?.toFixed(1),
poolApr: Number(pool.poolApr).toFixed(2),
pairedApr: Number(pool.pairedApr).toFixed(1),
rewardApr: pool.rewardApr,
marginApr: pool.margin_apr,
};
Expand Down
1 change: 0 additions & 1 deletion core/src/clients/wallets/cosmos/CosmosWalletProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ export abstract class CosmosWalletProvider extends WalletProvider<EncodeObject>
: registry.find((e) => {
return e.baseDenom === denomTrace.baseDenom;
});
console.log("entry=", entry);
if (!entry) continue;

try {
Expand Down

1 comment on commit 374b0cd

@vercel
Copy link

@vercel vercel bot commented on 374b0cd Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sifchain-ui – ./

sifchain-ui-git-master-sifchain.vercel.app
dex.sifchain.finance
sifchain-ui-sifchain.vercel.app

Please sign in to comment.