Skip to content

Commit

Permalink
fix: pool apr (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee authored Feb 16, 2024
1 parent 5855653 commit 86cbed6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 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.33",
"version": "2.14.34",
"private": true,
"scripts": {
"bump": "bump patch --tag --commit 'testnet release '",
Expand Down
4 changes: 3 additions & 1 deletion app/src/views/PoolPage/PoolItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ export default defineComponent({
"flex items-center justify-end font-mono",
]}
>
{isNil(this.$props.poolStat?.rewardApr) ? "..." : `0.00%`}
{isNil(this.$props.poolStat?.rewardApr)
? "..."
: `${(Number(this.$props.poolStat?.rewardApr) ?? 0).toFixed(2)}%`}
</div>
<div
class={[
Expand Down
4 changes: 3 additions & 1 deletion app/src/views/StatsPage/StatsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ export default defineComponent({
<td class="text-mono text-right align-middle">
${prettyNumber(item.volume)}
</td>
<td class="text-mono text-right align-middle">0.00%</td>
<td class="text-mono text-right align-middle">
{item.rewardApr}%
</td>
<td class="text-mono text-right align-middle">
{item.pairedApr}%
</td>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sifchain-ui",
"version": "2.14.33",
"version": "2.14.34",
"private": true,
"license": "UNLICENSED",
"packageManager": "[email protected]",
Expand Down

0 comments on commit 86cbed6

Please sign in to comment.