Skip to content

Commit 094a6b9

Browse files
authored
Merge pull request #1442 from mars-protocol/develop
v2.9.2
2 parents 6d451a3 + fdf99c4 commit 094a6b9

File tree

15 files changed

+533
-380
lines changed

15 files changed

+533
-380
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mars-v2-frontend",
3-
"version": "2.9.1",
3+
"version": "2.9.2",
44
"homepage": "./",
55
"private": false,
66
"license": "SEE LICENSE IN LICENSE FILE",
@@ -32,7 +32,7 @@
3232
"@web3modal/wagmi": "^5.1.11",
3333
"@vercel/analytics": "^1.5.0",
3434
"axios": "^1.8.4",
35-
"bignumber.js": "^9.1.2",
35+
"bignumber.js": "^9.2.1",
3636
"classnames": "^2.5.1",
3737
"debounce-promise": "^3.1.2",
3838
"ibc-domains-sdk": "^1.1.0",
@@ -47,11 +47,11 @@
4747
"react-draggable": "^4.4.6",
4848
"react-helmet-async": "^2.0.5",
4949
"react-qr-code": "^2.0.15",
50-
"react-router-dom": "^7.4.1",
50+
"react-router-dom": "^7.5.0",
5151
"react-spring": "^9.7.5",
5252
"react-toastify": "^11.0.5",
5353
"react-use-clipboard": "^1.0.9",
54-
"recharts": "^2.15.1",
54+
"recharts": "^2.15.2",
5555
"sharp": "^0.33.5",
5656
"starknet": "^6.24.1",
5757
"swr": "^2.3.3",
@@ -64,7 +64,7 @@
6464
"@eslint/compat": "^1.2.7",
6565
"@svgr/webpack": "^8.1.0",
6666
"@tailwindcss/container-queries": "^0.1.1",
67-
"@tailwindcss/postcss": "^4.0.17",
67+
"@tailwindcss/postcss": "^4.1.3",
6868
"@types/debounce-promise": "^3.1.9",
6969
"@types/lodash.debounce": "^4.0.9",
7070
"@types/lodash.throttle": "^4.1.9",

src/chains/neutron/neutron-1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ const Neutron1: ChainConfig = {
2323
collateralMultiplier: 5,
2424
campaignDenom: 'dTIA',
2525
},
26+
{
27+
denom: 'factory/neutron1frc0p5czd9uaaymdkug2njz7dc7j65jxukp9apmt9260a8egujkspms2t2/udntrn',
28+
campaignIds: ['drop_apy', 'drop'],
29+
baseMultiplier: 1,
30+
collateralMultiplier: 5,
31+
campaignDenom: 'dNTRN',
32+
},
2633
//dATOM-NTRN
2734
{
2835
denom:
@@ -72,6 +79,20 @@ const Neutron1: ChainConfig = {
7279
campaignIds: ['drop'],
7380
baseMultiplier: 20,
7481
},
82+
//dNTRN-NTRN
83+
{
84+
denom:
85+
'factory/neutron1pd9u7h4vf36vtj5lqlcp4376xf4wktdnhmzqtn8958wyh0nzwsmsavc2dz/astroport/share',
86+
campaignIds: ['drop'],
87+
baseMultiplier: 10,
88+
},
89+
//dNTRN-USDC
90+
{
91+
denom:
92+
'factory/neutron1hme8vcsky2xeq4qc4wg3uy9gc47xzga6uqk8plaps8tvutjshuwqajnze6/astroport/share',
93+
campaignIds: ['drop'],
94+
baseMultiplier: 50,
95+
},
7596
{
7697
denom: 'ibc/B7864B03E1B9FD4F049243E92ABD691586F682137037A9F3FCA5222815620B3C',
7798
campaignIds: ['stride'],

src/components/Modals/AlertDialog/index.tsx

Lines changed: 69 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import classNames from 'classnames'
22

33
import Button from 'components/common/Button'
44
import Checkbox from 'components/common/Checkbox'
5+
import EscButton from 'components/common/Button/EscButton'
56
import Text from 'components/common/Text'
67
import { NoIcon, YesIcon } from 'components/Modals/AlertDialog/ButtonIcons'
78
import Modal from 'components/Modals/Modal'
@@ -22,7 +23,17 @@ interface Props {
2223
}
2324

2425
function AlertDialog(props: Props) {
25-
const { title, icon, content, negativeButton, positiveButton, checkbox, header } = props.config
26+
const {
27+
title,
28+
icon,
29+
content,
30+
negativeButton,
31+
positiveButton,
32+
checkbox,
33+
header,
34+
isSingleButtonLayout,
35+
showCloseButton,
36+
} = props.config
2637

2738
const [toggle, handleToggle] = useToggle()
2839

@@ -42,7 +53,10 @@ function AlertDialog(props: Props) {
4253
hideTxLoader
4354
header={
4455
header ? (
45-
header
56+
<div className='flex items-center justify-between w-full'>
57+
{header}
58+
{showCloseButton && <EscButton onClick={props.close} />}
59+
</div>
4660
) : (
4761
<div className='flex flex-col'>
4862
{icon && (
@@ -65,42 +79,67 @@ function AlertDialog(props: Props) {
6579
) : (
6680
content
6781
)}
68-
<div
69-
className={classNames(
70-
'mt-10 flex justify-between gap-4 md:flex-nowrap flex-wrap',
71-
positiveButton && 'flex-row-reverse',
72-
)}
73-
>
74-
<div className='flex flex-row-reverse gap-4'>
82+
{isSingleButtonLayout ? (
83+
<div className='mt-10 flex flex-col gap-4'>
84+
{checkbox && (
85+
<div className='flex justify-center'>
86+
<Checkbox
87+
name='hls-info-toggle'
88+
checked={toggle}
89+
onChange={handleCheckboxClick}
90+
text={checkbox.text}
91+
/>
92+
</div>
93+
)}
7594
{positiveButton && (
7695
<Button
77-
text={positiveButton.text ?? 'Yes'}
78-
color='tertiary'
79-
className='px-6'
80-
rightIcon={positiveButton.icon ?? <YesIcon />}
81-
iconClassName='h-4 w-5'
96+
text={positiveButton.text ?? 'Continue'}
97+
color='primary'
98+
className='w-full'
99+
rightIcon={positiveButton.icon}
82100
onClick={() => handleButtonClick(positiveButton)}
83101
disabled={positiveButton.disabled}
84102
/>
85103
)}
86-
{checkbox && (
87-
<Checkbox
88-
name='hls-info-toggle'
89-
checked={toggle}
90-
onChange={handleCheckboxClick}
91-
text={checkbox.text}
92-
/>
104+
</div>
105+
) : (
106+
<div
107+
className={classNames(
108+
'mt-10 flex justify-between gap-4 md:flex-nowrap flex-wrap',
109+
positiveButton && 'flex-row-reverse',
93110
)}
111+
>
112+
<div className='flex flex-row-reverse gap-4'>
113+
{positiveButton && (
114+
<Button
115+
text={positiveButton.text ?? 'Yes'}
116+
color='tertiary'
117+
className='px-6'
118+
rightIcon={positiveButton.icon ?? <YesIcon />}
119+
iconClassName='h-4 w-5'
120+
onClick={() => handleButtonClick(positiveButton)}
121+
disabled={positiveButton.disabled}
122+
/>
123+
)}
124+
{checkbox && (
125+
<Checkbox
126+
name='hls-info-toggle'
127+
checked={toggle}
128+
onChange={handleCheckboxClick}
129+
text={checkbox.text}
130+
/>
131+
)}
132+
</div>
133+
<Button
134+
text={negativeButton?.text ?? 'No'}
135+
color='secondary'
136+
className='px-6'
137+
rightIcon={negativeButton?.icon ?? <NoIcon />}
138+
tabIndex={1}
139+
onClick={() => handleButtonClick(negativeButton)}
140+
/>
94141
</div>
95-
<Button
96-
text={negativeButton?.text ?? 'No'}
97-
color='secondary'
98-
className='px-6'
99-
rightIcon={negativeButton?.icon ?? <NoIcon />}
100-
tabIndex={1}
101-
onClick={() => handleButtonClick(negativeButton)}
102-
/>
103-
</div>
142+
)}
104143
</Modal>
105144
)
106145
}

src/components/common/TitleAndSubCell.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ interface Props {
77
sub: string | React.ReactNode
88
className?: string
99
containerClassName?: string
10+
isDeprecated?: boolean
1011
}
1112

1213
export default function TitleAndSubCell(props: Props) {
1314
return (
1415
<div className={classNames('flex flex-col gap-0.5', props.containerClassName)}>
1516
<Text size='xs' className={props.className} tag='span'>
1617
{props.title}
18+
{props.isDeprecated && <span className='text-info ml-1'>(disabled)</span>}
1719
</Text>
1820
<Text size='xs' className={classNames('text-white/40', props.className)} tag='span'>
1921
{props.sub}

0 commit comments

Comments
 (0)