From 518dee4ecc01b6913d200f0829b87b7648f8366f Mon Sep 17 00:00:00 2001 From: Vitalsine85 Date: Tue, 25 Jul 2023 12:15:22 -0400 Subject: [PATCH] baoETH market, styling to boosted aprs --- src/bao/lib/config.ts | 1 + src/pages/gauges/components/GaugeList.tsx | 5 ++-- src/pages/vaults/components/VaultList.tsx | 2 +- src/pages/vebao/components/Dashboard.tsx | 13 +++++++++++ src/styles/globals.css | 28 +++++++++++++++++++---- 5 files changed, 40 insertions(+), 9 deletions(-) diff --git a/src/bao/lib/config.ts b/src/bao/lib/config.ts index a3b9e43b..10c0bde0 100644 --- a/src/bao/lib/config.ts +++ b/src/bao/lib/config.ts @@ -288,6 +288,7 @@ export default { 1: '0x5ee08f40b637417bcC9d2C51B62F4820ec9cF5D8', }, icon: 'bSTBL.png', + archived: true, coingeckoId: 'dai', underlyingDecimals: 18, isBasket: true, diff --git a/src/pages/gauges/components/GaugeList.tsx b/src/pages/gauges/components/GaugeList.tsx index 1db8e164..e32ee023 100644 --- a/src/pages/gauges/components/GaugeList.tsx +++ b/src/pages/gauges/components/GaugeList.tsx @@ -1,5 +1,4 @@ import { ActiveSupportedGauge } from '@/bao/lib/types' -import { ListHeader } from '@/components/List' import { PageLoader } from '@/components/Loader' import Typography from '@/components/Typography' import usePrice from '@/hooks/base/usePrice' @@ -16,8 +15,8 @@ import { BigNumber } from 'ethers' import { formatUnits } from 'ethers/lib/utils' import Image from 'next/future/image' import React, { useMemo, useState } from 'react' -import GaugeModal from './Modals' import { isDesktop } from 'react-device-detect' +import GaugeModal from './Modals' const GaugeList: React.FC = () => { const gauges = useGauges() @@ -134,7 +133,7 @@ const GaugeListItem: React.FC = ({ gauge }) => {
- + {getDisplayBalance(isNaN(boost) ? rewardsAPR : parseFloat(rewardsAPR.toString()) * boost)}%
diff --git a/src/pages/vaults/components/VaultList.tsx b/src/pages/vaults/components/VaultList.tsx index c87e692c..662b27e9 100644 --- a/src/pages/vaults/components/VaultList.tsx +++ b/src/pages/vaults/components/VaultList.tsx @@ -17,7 +17,7 @@ export const VaultList: React.FC = () => {
- {/* */} +
) diff --git a/src/pages/vebao/components/Dashboard.tsx b/src/pages/vebao/components/Dashboard.tsx index 1f9daf5b..0ab4ce1c 100644 --- a/src/pages/vebao/components/Dashboard.tsx +++ b/src/pages/vebao/components/Dashboard.tsx @@ -2,6 +2,7 @@ import Button from '@/components/Button' import { Icon } from '@/components/Icon' import Input from '@/components/Input' import { PendingTransaction } from '@/components/Loader/Loader' +import Tooltipped from '@/components/Tooltipped' import Typography from '@/components/Typography' import useContract from '@/hooks/base/useContract' import usePrice from '@/hooks/base/usePrice' @@ -521,6 +522,8 @@ export const Dashboard = () => { /> + +
@@ -545,6 +548,16 @@ export const Dashboard = () => {
+
+ +
+ + {getDisplayBalance(parseFloat(currentAPR.toString()) * boost)}% + +
+
diff --git a/src/styles/globals.css b/src/styles/globals.css index d142141d..e2bcac84 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -107,7 +107,7 @@ input[type='number'] { } .react-datepicker__current-month { - @apply ml-2.5 text-lg font-bakbak text-baoRed; + @apply ml-2.5 font-bakbak text-lg text-baoRed; } .react-datepicker__week { @@ -115,7 +115,7 @@ input[type='number'] { } .react-datepicker__day-names { - @apply flex justify-around text-center text-xs font-bakbak text-baoRed; + @apply flex justify-around text-center font-bakbak text-xs text-baoRed; } .react-datepicker__day-name { @@ -309,6 +309,24 @@ input[type='number'] { stroke: transparent; } -.modal-open { - overflow: auto; padding-right: 0px !important; -} \ No newline at end of file +.modal-open { + overflow: auto; + padding-right: 0px !important; +} + +@keyframes move-bg { + to { + background-position: var(--bg-size) 0; + } +} + +.rainbow { + --bg-size: 400%; + --color-one: #e21a53; + --color-two: #ee7698; + background: linear-gradient(90deg, var(--color-one), var(--color-two), var(--color-one)) 0 0 / var(--bg-size) 100%; + color: transparent; + background-clip: text; + -webkit-background-clip: text; + animation: move-bg 8s infinite linear; +}