Skip to content

Commit

Permalink
fix(server): update wbtc mapping (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay authored Mar 7, 2023
1 parent e86537e commit 61e8fed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/utils/TokensUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const getDTokenDetailsByWToken = (
id: '1',
symbol: 'ETH',
},
wBTC: {
WBTC: {
id: '2',
symbol: 'BTC',
},
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const MAINNET_CONFIG: ContractContextI = {
abi: BridgeV1,
},
Erc20Tokens: {
wBTC: { address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" },
WBTC: { address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" },
USDT: { address: "0xdAC17F958D2ee523a2206206994597C13D831ec7" },
USDC: { address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" },
ETH: {
Expand All @@ -29,7 +29,7 @@ export const TESTNET_CONFIG: ContractContextI = {
abi: BridgeV1Testnet,
},
Erc20Tokens: {
wBTC: { address: "0xD723D679d1A3b23d0Aafe4C0812f61DDA84fc043" },
WBTC: { address: "0xD723D679d1A3b23d0Aafe4C0812f61DDA84fc043" },
USDT: { address: "0xA218A0EA9a888e3f6E2dfFdf4066885f596F07bF" },
USDC: { address: "0xB200af2b733B831Fbb3d98b13076BC33F605aD58" },
ETH: {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/layouts/contexts/NetworkContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const networks: [NetworkI<Erc20Token>, NetworkI<string>] = [
tokens: [
{
tokenA: {
name: "wBTC",
name: "WBTC",
symbol: "WBTC",
icon: "/tokens/wBTC.svg",
supply: "1925543.1234",
Expand Down Expand Up @@ -84,7 +84,7 @@ export const networks: [NetworkI<Erc20Token>, NetworkI<string>] = [
supply: "1801245.4321",
},
tokenB: {
name: "wBTC",
name: "WBTC",
symbol: "WBTC",
icon: "/tokens/wBTC.svg",
supply: "1801245.4321",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface TransferData {
to: RowDataI;
}

export type Erc20Token = "wBTC" | "USDT" | "USDC" | "ETH";
export type Erc20Token = "WBTC" | "USDT" | "USDC" | "ETH";

interface ContractConfigI {
address: `0x${string}`;
Expand Down

0 comments on commit 61e8fed

Please sign in to comment.