diff --git a/tauri-app/src/lib/components/tables/OrderTradesListTable.svelte b/tauri-app/src/lib/components/tables/OrderTradesListTable.svelte index 44952d0d4..80c4bce02 100644 --- a/tauri-app/src/lib/components/tables/OrderTradesListTable.svelte +++ b/tauri-app/src/lib/components/tables/OrderTradesListTable.svelte @@ -36,7 +36,8 @@ Transaction Hash Input Output - IO Ratio + Input/Output Ratio + Output/Input Ratio @@ -64,7 +65,7 @@ )} {item.outputVaultBalanceChange.vault.token.symbol} - + {Math.abs( Number( formatUnits( @@ -79,8 +80,22 @@ ), ), )} - {item.inputVaultBalanceChange.vault.token.symbol}/{item.outputVaultBalanceChange.vault.token - .symbol} + + + {Math.abs( + Number( + formatUnits( + BigInt(item.outputVaultBalanceChange.amount), + Number(item.outputVaultBalanceChange.vault.token.decimals ?? 0), + ), + ) / + Number( + formatUnits( + BigInt(item.inputVaultBalanceChange.amount), + Number(item.inputVaultBalanceChange.vault.token.decimals ?? 0), + ), + ), + )}