Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/v3 #610

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/common/components/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 7 additions & 5 deletions apps/landing/components/sections/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ export function About(): ReactElement {
}}>
<div className={'relative lg:mr-[400px]'}>
<p className={'mb-10 text-left font-aeonikFono text-3xl font-light text-white md:text-5xl'}>
{'WTF IS YEARN VAULT?'}
{'WTF IS A YEARN VAULT?'}
</p>
<div
className={cl(
'md:max-w-[720px] text-lg transition-all overflow-hidden leading-7',
isReadMore ? 'max-h-screen' : 'max-h-[160px] gradient-mask-b-10'
isReadMore
? 'max-h-screen'
: 'max-h-[160px] md:max-h-screen gradient-mask-b-10 md:gradient-mask-none'
)}>
<p className={cl('text-gray-400 to-indigo-400')}>
{
Expand All @@ -38,16 +40,16 @@ export function About(): ReactElement {
<br />

<p className={cl('text-gray-400')}>
{'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.'}
</p>
</div>
{isReadMore ? null : (
<button
className={'mt-6 text-lg font-light text-primary'}
className={'mt-6 text-lg font-light text-primary md:hidden'}
onClick={() => set_isReadMore(true)}>
{'Read more'}
</button>
Expand Down
3 changes: 2 additions & 1 deletion apps/vaults-v3/components/list/VaultsV3ListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,15 @@ export function VaultStakedAmount({currentVault}: {currentVault: TYDaemonVault})
currentVault.staking.available,
getToken
]);

console.log(staked);
w84april marked this conversation as resolved.
Show resolved Hide resolved
return (
<div className={'flex flex-col pt-0 text-right md:pt-8'}>
<p
className={`yearn--table-data-section-item-value ${
isZero(staked.raw) ? 'text-neutral-400' : 'text-neutral-900'
}`}>
<RenderAmount
shouldFormatDust
value={staked.normalized}
symbol={currentVault.token.symbol}
decimals={currentVault.token.decimals}
Expand Down
Loading