diff --git a/apps/trading/components/funding-container/funding-container.tsx b/apps/trading/components/funding-container/funding-container.tsx index 41eaa69d5..e4aa562b8 100644 --- a/apps/trading/components/funding-container/funding-container.tsx +++ b/apps/trading/components/funding-container/funding-container.tsx @@ -65,7 +65,7 @@ export const FundingContainer = ({ marketId }: { marketId: string }) => { if (edge.node.endTime) { acc?.push({ endTime: fromNanoSeconds(edge.node.endTime), - fundingRate: Number(edge.node.fundingRate) * 100, + fundingRate: Number(edge.node.fundingRate), }); } return acc; @@ -82,7 +82,8 @@ export const FundingContainer = ({ marketId }: { marketId: string }) => { `${fundingRate.toFixed(4)}%`} + priceFormat={(fundingRate) => `${(fundingRate * 100).toFixed(4)}%`} + yAxisTickFormat="%" /> ); }; diff --git a/package.json b/package.json index 237b09a51..ea35ad15c 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "jsondiffpatch": "^0.4.1", "lodash": "^4.17.21", "next": "13.3.0", - "pennant": "^1.14.1", + "pennant": "^1.15.0", "react": "18.2.0", "react-copy-to-clipboard": "5.1.0", "react-dom": "18.2.0", diff --git a/yarn.lock b/yarn.lock index 03a3e316c..4635d6a09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17884,10 +17884,10 @@ pend@~1.2.0: resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== -pennant@^1.14.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.14.1.tgz#8e7a53256095e398b03397af31c831b02a56032b" - integrity sha512-rjzo/tlFanO96OKhJiyjQtjug7sY6pjVZqVbieD3Tf4zt20bqIb6m4L2JfwOXEe0jqP/yddgCNPY+vlkVuJW1Q== +pennant@^1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.15.0.tgz#21854cf78466cbd27eda8143c21abcde070d4d76" + integrity sha512-p3H4vu6BP7nUqn7s2pjyTl0FMJUT2U5lq5UKuxy55F2E66sJnvp5XFvNjRZvi42vyzsxG8WURgwQDQKNqQgWAw== dependencies: "@babel/runtime" "^7.13.10" "@d3fc/d3fc-technical-indicator" "^8.0.1"