Skip to content

Commit

Permalink
v4.1.4
Browse files Browse the repository at this point in the history
v4.1.4
  • Loading branch information
platschi authored Nov 8, 2022
2 parents db65d94 + e9c79da commit 09e352f
Show file tree
Hide file tree
Showing 28 changed files with 530 additions and 186 deletions.
5 changes: 5 additions & 0 deletions components/Currency/CurrencyPrice/CurrencyPrice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type CurrencyPriceProps = {
change?: number;
conversionRate?: WeiSource | null;
formatOptions?: FormatCurrencyOptions;
truncate?: boolean;
};

export const CurrencyPrice: FC<CurrencyPriceProps> = ({
Expand All @@ -29,6 +30,7 @@ export const CurrencyPrice: FC<CurrencyPriceProps> = ({
conversionRate,
showCurrencyKey,
formatOptions,
truncate = false,
...rest
}) => {
const cleanPrice = useMemo(() => {
Expand All @@ -47,6 +49,9 @@ export const CurrencyPrice: FC<CurrencyPriceProps> = ({
}
}, [conversionRate]);

if (truncate && price > 1e6) {
formatOptions = { ...formatOptions, truncation: { divisor: 1e6, unit: 'M' } };
}
return (
<Container {...rest}>
<Price className="price">
Expand Down
6 changes: 4 additions & 2 deletions constants/competition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/
export const COMPETITION_DATES = {
// note: month starts at 0, not 1.
START_DATE: new Date(Date.UTC(2022, 7, 16)),
END_DATE: new Date(Date.UTC(2022, 7, 23)),
START_DATE: new Date(Date.UTC(2022, 10, 10)),
END_DATE: new Date(Date.UTC(2022, 10, 24)),
};

export const COMPETITION_ENABLED = true;
2 changes: 1 addition & 1 deletion constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const EXTERNAL_LINKS = {
Home: 'https://kips.kwenta.io/all-kip/',
},
Competition: {
LearnMore: 'https://mirror.xyz/kwenta.eth/WghvQFjEslsC0kwnGVP0QZnY1F7ZU3w5hpWxDPLbBsE',
LearnMore: 'https://mirror.xyz/kwenta.eth/s_PO64SxvuwDHz9fdHebsYeQAOOc73D3bL2q4nC6LvU',
},
Aelin: {
Pool: 'https://app.aelin.xyz/pool/mainnet/0x21f4F88a95f656ef4ee1ea107569b3b38cf8daef',
Expand Down
1 change: 1 addition & 0 deletions constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const ROUTES = {
Leaderboard: {
Home: '/leaderboard',
Trader: (trader: string) => `/leaderboard/?trader=${trader}`,
Competition: (round: string) => `/leaderboard/?competitionRound=${round}`,
},
Earn: {
Home: '/earn',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kwenta",
"version": "4.1.3",
"version": "4.1.4",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
1 change: 0 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const HomePage: HomePageComponent = () => {
const Assets = dynamic(() => import('../sections/homepage/Assets'), {
ssr: false,
});

return (
<>
<Head>
Expand Down
Loading

1 comment on commit 09e352f

@vercel
Copy link

@vercel vercel bot commented on 09e352f Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./

kwenta-kwenta.vercel.app
kwenta.io
kwenta-git-main-kwenta.vercel.app

Please sign in to comment.