fix to apr

This commit is contained in:
Finn 2024-04-30 16:28:18 +01:00 committed by Maximilian Schneider
parent cdff78ed36
commit f45cc1f371
8 changed files with 12 additions and 13 deletions

View File

@ -55,7 +55,7 @@ const TokenDetailsTable = () => {
const loanOriginationFee = 100 * bank.loanOriginationFeeRate.toNumber()
const [oracleProvider, oracleLinkPath] = getOracleProvider(bank)
const symbol = bank.name
const collateralFeeRate = bank.collateralFeePerDay * 365 * 100
const collateralFeeRate = bank.collateralFeePerDay * 100
const data = {
bank,
@ -410,11 +410,10 @@ export const CollateralFundingFeeTooltip = () => {
margin against riskier collateral.
</p>
<p className="mb-2">
The collateral funding fee is a dynamic formula that uses a fixed Annual
Percentage Rate (displayed below). This rate is then multiplied by the
ratio of your USDC liabilities (the amount you&apos;ve borrowed) against
your weighted deposits (the value of your position adjusted by a factor
between 0 and 1).
The collateral funding fee is a dynamic formula that uses a fixed rate.
This rate is then multiplied by the ratio of your USDC liabilities (the
amount you&apos;ve borrowed) against your weighted deposits (the value
of your position adjusted by a factor between 0 and 1).
</p>
<p className="mb-2">
A key aspect of this fee is its dynamism; it scales with your

View File

@ -94,7 +94,7 @@ const TokenParams = ({ bank }: { bank: Bank }) => {
</p>
</Tooltip>
<p className="font-mono text-th-fgd-2">
{(bank.collateralFeePerDay * 365 * 100).toFixed(2)}%
{(bank.collateralFeePerDay * 100).toFixed(4)}%
</p>
</div>
{mintInfo ? (

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "Base Liquidation Fee",
"closest-to-liquidation": "Closest to Liquidation",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "Daily",
"hourly": "Hourly",
"largest-perp-positions": "Largest",

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "Base Liquidation Fee",
"closest-to-liquidation": "Closest to Liquidation",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "Daily",
"hourly": "Hourly",
"largest-perp-positions": "Largest",

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "Taxa Base de Liquidação",
"closest-to-liquidation": "Mais Próximo da Liquidação",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "Diário",
"hourly": "Por Hora",
"largest-perp-positions": "Maior",

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "Base Liquidation Fee",
"closest-to-liquidation": "Closest to Liquidation",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "Daily",
"hourly": "Hourly",
"largest-perp-positions": "Largest",

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "基本清算费用",
"closest-to-liquidation": "最接近清算的持仓",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "日",
"hourly": "小时",
"largest-perp-positions": "最大持仓",

View File

@ -1,7 +1,7 @@
{
"base-liquidation-fee": "基本清算費用",
"closest-to-liquidation": "最接近清算的持倉",
"collateral-funding-fee": "Collateral Funding Fee (APR)",
"collateral-funding-fee": "Collateral Funding Fee",
"daily": "日",
"hourly": "小時",
"largest-perp-positions": "最大持倉",