Skip to content

Feat/burn musd page #315

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

Merged
merged 8 commits into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/dhedge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dhedge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dhedge-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: webfactory/ssh-agent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lts-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lts-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lts-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: webfactory/ssh-agent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mstable-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mstable-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install jq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mstable-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: webfactory/ssh-agent
Expand Down
12 changes: 12 additions & 0 deletions apps/lts/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"6T7RIi": {
"defaultMessage": "BuyBack MTA"
},
"GH3iro": {
"defaultMessage": "BuyBack mUSD"
},
"PXAur5": {
"defaultMessage": "Withdraw"
},
Expand Down Expand Up @@ -197,6 +200,15 @@
"wqlXwW": {
"defaultMessage": "Wrong Network"
},
"OWWJyo": {
"defaultMessage": "Your {symbol} tokens will be sent to the same {network} address you used."
},
"XW7Rd1": {
"defaultMessage": "After redeeming your vault tokens from Ethereum, please wait while the bridge issues your {symbol} tokens."
},
"j5iKZ9": {
"defaultMessage": "Burn your mUSD and receive"
},
"20X0BC": {
"defaultMessage": "Transaction Cancelled"
},
Expand Down
48 changes: 48 additions & 0 deletions apps/lts/src/assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@
"value": "Discord"
}
],
"GH3iro": [
{
"type": 0,
"value": "BuyBack mUSD"
}
],
"Gh1Vm9": [
{
"type": 0,
Expand Down Expand Up @@ -696,6 +702,28 @@
"value": "Trading"
}
],
"OWWJyo": [
{
"type": 0,
"value": "Your "
},
{
"type": 1,
"value": "symbol"
},
{
"type": 0,
"value": " tokens will be sent to the same "
},
{
"type": 1,
"value": "network"
},
{
"type": 0,
"value": " address you used."
}
],
"ObjU4O": [
{
"type": 0,
Expand Down Expand Up @@ -969,6 +997,20 @@
"value": "Redeem"
}
],
"XW7Rd1": [
{
"type": 0,
"value": "After redeeming your vault tokens from Ethereum, please wait while the bridge issues your "
},
{
"type": 1,
"value": "symbol"
},
{
"type": 0,
"value": " tokens."
}
],
"XYEIBG": [
{
"type": 0,
Expand Down Expand Up @@ -1236,6 +1278,12 @@
"value": "Margin Deposited"
}
],
"j5iKZ9": [
{
"type": 0,
"value": "Burn your mUSD and receive"
}
],
"jvo0vs": [
{
"type": 0,
Expand Down
4 changes: 2 additions & 2 deletions apps/lts/src/clients/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
walletConnectWallet,
} from '@rainbow-me/rainbowkit/wallets';
import { configureChains, createClient } from 'wagmi';
import { mainnet, optimism, polygon } from 'wagmi/chains';
import { arbitrum, mainnet, optimism, polygon } from 'wagmi/chains';
import { alchemyProvider } from 'wagmi/providers/alchemy';

import type { Chain as RainbowKitChain, Wallet } from '@rainbow-me/rainbowkit';
Expand All @@ -30,7 +30,7 @@ const optimismWithCustomIconUrl = {
const POLLING_INTERVAL = 15_000;

export const { chains, provider } = configureChains(
[mainnet, polygon, optimismWithCustomIconUrl],
[mainnet, polygon, optimismWithCustomIconUrl, arbitrum],
[
alchemyProvider({ apiKey: process.env['NX_ALCHEMY_MAIN_API_KEY'] }),
alchemyProvider({ apiKey: process.env['NX_ALCHEMY_FALLBACK_API_KEY'] }),
Expand Down
9 changes: 9 additions & 0 deletions apps/lts/src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Burn } from '@frontend/lts-burn';
import { BurnMusd } from '@frontend/lts-burn-musd';
import { Withdraw } from '@frontend/lts-withdraw';
import { defineMessage } from 'react-intl';

Expand Down Expand Up @@ -29,4 +30,12 @@ export const routes: Route<LTSRoute>[] = [
path: '/burn',
element: <Burn />,
},
{
id: 'burn-musd',
meta: {
label: defineMessage({ defaultMessage: 'BuyBack mUSD', id: 'GH3iro' }),
},
path: '/burn-musd',
element: <BurnMusd />,
},
];
15 changes: 12 additions & 3 deletions apps/mstable/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"6T7RIi": {
"defaultMessage": "BuyBack MTA"
},
"GH3iro": {
"defaultMessage": "BuyBack mUSD"
},
"PXAur5": {
"defaultMessage": "Withdraw"
},
Expand Down Expand Up @@ -197,6 +200,15 @@
"wqlXwW": {
"defaultMessage": "Wrong Network"
},
"OWWJyo": {
"defaultMessage": "Your {symbol} tokens will be sent to the same {network} address you used."
},
"XW7Rd1": {
"defaultMessage": "After redeeming your vault tokens from Ethereum, please wait while the bridge issues your {symbol} tokens."
},
"j5iKZ9": {
"defaultMessage": "Burn your mUSD and receive"
},
"20X0BC": {
"defaultMessage": "Transaction Cancelled"
},
Expand Down Expand Up @@ -485,9 +497,6 @@
"TL3yAY": {
"defaultMessage": "Position Value"
},
"Tp2Mnw": {
"defaultMessage": "Due to possible high slippage on lower withdrawal amounts, please consider withdrawing a minimum of ${minWithdrawalUsd} or manually increasing the maximum slippage."
},
"VyTtUL": {
"defaultMessage": "The {symbol} Vault charges a {fee} entry fee."
},
Expand Down
62 changes: 48 additions & 14 deletions apps/mstable/src/assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@
"value": "Discord"
}
],
"GH3iro": [
{
"type": 0,
"value": "BuyBack mUSD"
}
],
"Gh1Vm9": [
{
"type": 0,
Expand Down Expand Up @@ -696,6 +702,28 @@
"value": "Trading"
}
],
"OWWJyo": [
{
"type": 0,
"value": "Your "
},
{
"type": 1,
"value": "symbol"
},
{
"type": 0,
"value": " tokens will be sent to the same "
},
{
"type": 1,
"value": "network"
},
{
"type": 0,
"value": " address you used."
}
],
"ObjU4O": [
{
"type": 0,
Expand Down Expand Up @@ -823,20 +851,6 @@
"value": "Position Value"
}
],
"Tp2Mnw": [
{
"type": 0,
"value": "Due to possible high slippage on lower withdrawal amounts, please consider withdrawing a minimum of $"
},
{
"type": 1,
"value": "minWithdrawalUsd"
},
{
"type": 0,
"value": " or manually increasing the maximum slippage."
}
],
"Ty3dr6": [
{
"type": 0,
Expand Down Expand Up @@ -969,6 +983,20 @@
"value": "Redeem"
}
],
"XW7Rd1": [
{
"type": 0,
"value": "After redeeming your vault tokens from Ethereum, please wait while the bridge issues your "
},
{
"type": 1,
"value": "symbol"
},
{
"type": 0,
"value": " tokens."
}
],
"XYEIBG": [
{
"type": 0,
Expand Down Expand Up @@ -1236,6 +1264,12 @@
"value": "Margin Deposited"
}
],
"j5iKZ9": [
{
"type": 0,
"value": "Burn your mUSD and receive"
}
],
"jvo0vs": [
{
"type": 0,
Expand Down
4 changes: 2 additions & 2 deletions libs/dhedge/withdraw/src/components/UnclaimedTokens/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Stack, Typography } from '@mui/material';

import { l2Token } from '../../constants';
import { useUnclaimedL2Tokens } from '../../hooks/useUnclaimedL2Tokens';
import { useUnclaimedL2TokenAmount } from '../../hooks/useUnclaimedL2TokenAmount';
import { ClaimButton } from './ClaimButton';

import type { FC } from 'react';

export const UnclaimedTokens: FC = () => {
const unclaimedL2Tokens = useUnclaimedL2Tokens();
const unclaimedL2Tokens = useUnclaimedL2TokenAmount();

if (!unclaimedL2Tokens.length) return null;

Expand Down
Loading