Skip to content

Commit 86cbed6

Browse files
authored
fix: pool apr (#867)
1 parent 5855653 commit 86cbed6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app",
3-
"version": "2.14.33",
3+
"version": "2.14.34",
44
"private": true,
55
"scripts": {
66
"bump": "bump patch --tag --commit 'testnet release '",

app/src/views/PoolPage/PoolItem.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ export default defineComponent({
416416
"flex items-center justify-end font-mono",
417417
]}
418418
>
419-
{isNil(this.$props.poolStat?.rewardApr) ? "..." : `0.00%`}
419+
{isNil(this.$props.poolStat?.rewardApr)
420+
? "..."
421+
: `${(Number(this.$props.poolStat?.rewardApr) ?? 0).toFixed(2)}%`}
420422
</div>
421423
<div
422424
class={[

app/src/views/StatsPage/StatsPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ export default defineComponent({
269269
<td class="text-mono text-right align-middle">
270270
${prettyNumber(item.volume)}
271271
</td>
272-
<td class="text-mono text-right align-middle">0.00%</td>
272+
<td class="text-mono text-right align-middle">
273+
{item.rewardApr}%
274+
</td>
273275
<td class="text-mono text-right align-middle">
274276
{item.pairedApr}%
275277
</td>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sifchain-ui",
3-
"version": "2.14.33",
3+
"version": "2.14.34",
44
"private": true,
55
"license": "UNLICENSED",
66
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)