From 4cd628d0a77dc588992d49dc59105aaf85c6531b Mon Sep 17 00:00:00 2001 From: Daniil Polienko Date: Thu, 21 Nov 2024 16:07:28 +0300 Subject: [PATCH 1/3] fix: low values --- apps/common/components/Counter.tsx | 6 ++++++ apps/vaults-v3/components/list/VaultsV3ListRow.tsx | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/common/components/Counter.tsx b/apps/common/components/Counter.tsx index 4b270a2f2..215fedc53 100644 --- a/apps/common/components/Counter.tsx +++ b/apps/common/components/Counter.tsx @@ -27,6 +27,12 @@ export function Counter({ onUpdate(value) { let hasBeenSet = false; valueRef.current = value; + + if (value < 0.00001 && value > 0) { + node.textContent = '<0.00001'; + return; + } + if (Number.isNaN(value) || value === 0) { const formatedValue = formatAmount(0, idealDecimals, idealDecimals); node.textContent = formatedValue; diff --git a/apps/vaults-v3/components/list/VaultsV3ListRow.tsx b/apps/vaults-v3/components/list/VaultsV3ListRow.tsx index b693c5215..e21f8ab04 100755 --- a/apps/vaults-v3/components/list/VaultsV3ListRow.tsx +++ b/apps/vaults-v3/components/list/VaultsV3ListRow.tsx @@ -578,7 +578,7 @@ export function VaultStakedAmount({currentVault}: {currentVault: TYDaemonVault}) currentVault.staking.available, getToken ]); - + console.log(staked); return (

Date: Thu, 21 Nov 2024 16:13:50 +0300 Subject: [PATCH 2/3] fix: hide read more on desktop --- apps/landing/components/sections/About.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/landing/components/sections/About.tsx b/apps/landing/components/sections/About.tsx index 8d5eb90f0..ce43f13e4 100644 --- a/apps/landing/components/sections/About.tsx +++ b/apps/landing/components/sections/About.tsx @@ -14,12 +14,14 @@ export function About(): ReactElement { }}>

- {'WTF IS YEARN VAULT?'} + {'WTF IS A YEARN VAULT?'}

{ @@ -38,16 +40,16 @@ export function About(): ReactElement {

- {'Unlike a bank account - none of this takes place behind closed doors (no offence to doors).'} + {'Unlike a bank account - none of this takes place behind closed doors (no offence to doors). '} { - 'DeFiruns on public blockchains, so you are in control of your assets and can see where they are' + 'DeFi runs on public blockchains, so you are in control of your assets and can see where they are' } {'at all times.'}

{isReadMore ? null : ( From 1c0185b62a742a3b11dbbc7bf19a9c462dc9fc0d Mon Sep 17 00:00:00 2001 From: Daniil Polienko <32621609+w84april@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:17:05 +0300 Subject: [PATCH 3/3] chore: remove log Co-authored-by: Major <90963895+Majorfi@users.noreply.github.com> --- apps/vaults-v3/components/list/VaultsV3ListRow.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/vaults-v3/components/list/VaultsV3ListRow.tsx b/apps/vaults-v3/components/list/VaultsV3ListRow.tsx index e21f8ab04..55d70a756 100755 --- a/apps/vaults-v3/components/list/VaultsV3ListRow.tsx +++ b/apps/vaults-v3/components/list/VaultsV3ListRow.tsx @@ -578,7 +578,6 @@ export function VaultStakedAmount({currentVault}: {currentVault: TYDaemonVault}) currentVault.staking.available, getToken ]); - console.log(staked); return (