Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/stats pool loading #854

Merged
merged 2 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading