use complete ratios for calculations

This commit is contained in:
Matthias Kretschmann 2024-04-02 10:57:15 +01:00
parent 69d6b512bb
commit ca7aba9ff9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 8 additions and 9 deletions

View File

@ -4,8 +4,8 @@ export const title = 'ASI Calculator'
export const description = export const description =
'See how much ASI you get for your OCEAN, AGIX, or FET.' 'See how much ASI you get for your OCEAN, AGIX, or FET.'
export const ratioOceanToAsi = 0.433226 export const ratioOceanToAsi = 0.43322638231018
export const ratioAgixToAsi = 0.43335 export const ratioAgixToAsi = 0.43335018345744
export const ratioFetToAsi = 1 export const ratioFetToAsi = 1
export const tokens: Token[] = [ export const tokens: Token[] = [

View File

@ -16,11 +16,6 @@
font-size: 0.9rem; font-size: 0.9rem;
} }
.marketData p {
display: flex;
align-items: center;
}
.fiat { .fiat {
color: var(--text-dimmed); color: var(--text-dimmed);
} }

View File

@ -37,7 +37,9 @@ export function MarketData() {
</li> </li>
<li> <li>
<p> <p>
1 OCEAN = {ratioOceanToAsi} ASI 1 OCEAN ={' '}
<span title={`${ratioOceanToAsi}`}>{ratioOceanToAsi.toFixed(6)}</span>{' '}
ASI
<Label>fixed</Label> <Label>fixed</Label>
</p> </p>
<p> <p>
@ -48,7 +50,9 @@ export function MarketData() {
</li> </li>
<li> <li>
<p> <p>
1 AGIX = {ratioAgixToAsi} ASI 1 AGIX ={' '}
<span title={`${ratioAgixToAsi}`}>{ratioAgixToAsi.toFixed(5)}</span>{' '}
ASI
<Label>fixed</Label> <Label>fixed</Label>
</p> </p>
<p> <p>