Skip to content

Commit

Permalink
Adding ETH on BNB Chain [SLT-398] (#3338)
Browse files Browse the repository at this point in the history
* first pass

* img url update

* small nits

* use ZeroAddress

* removes widget changes

* adding bnb logo

* Fixes type issue on headless mismatch

* Revert "removes widget changes"

This reverts commit b80adfc.

* adding eth to bnb chain

* moving dependencies around

---------

Co-authored-by: abtestingalpha <abtestingalpha@gmail.com>
  • Loading branch information
Defi-Moses and abtestingalpha authored Oct 29, 2024
1 parent 126e683 commit bae13aa
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/rest-api/src/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down
2 changes: 2 additions & 0 deletions packages/rest-api/src/constants/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ export const ETH: BridgeableToken = {
[CHAINS.SCROLL.id]: NativeTokenAddress,
[CHAINS.LINEA.id]: NativeTokenAddress,
[CHAINS.WORLDCHAIN.id]: NativeTokenAddress,
[CHAINS.BNBCHAIN.id]: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8',
},
decimals: {
[CHAINS.ETHEREUM.id]: 18,
Expand All @@ -821,6 +822,7 @@ export const ETH: BridgeableToken = {
[CHAINS.SCROLL.id]: 18,
[CHAINS.LINEA.id]: 18,
[CHAINS.WORLDCHAIN.id]: 18,
[CHAINS.BNBCHAIN.id]: 18,
},
symbol: 'ETH',
name: 'Ethereum',
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"rollup": "^4.22.4",
"rollup-plugin-typescript2": "^0.36.0",
"typescript": "^5.3.3",
"viem": "^2.21.6"
"viem": "^2.21.6",
"@codecov/rollup-plugin": "^1.2.0"
},
"devDependencies": {
"@codecov/rollup-plugin": "^1.2.0"
}
}
7 changes: 7 additions & 0 deletions packages/synapse-constants/src/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ export const ETH = new Token({
[CHAINS.SCROLL.id]: nullAddress,
[CHAINS.LINEA.id]: nullAddress,
[CHAINS.WORLDCHAIN.id]: nullAddress,
[CHAINS.BNB.id]: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8',
},
decimals: 18,
symbol: 'ETH',
Expand Down
17 changes: 17 additions & 0 deletions packages/synapse-interface/assets/icons/bnb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function TransactionPopoverContainer({
}) {
return (
<Transition
as={Fragment}
as={Fragment as any}
enter="transition ease-out duration-200"
enterFrom="opacity-0 translate-y-1"
enterTo="opacity-100 translate-y-0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function TransactionPopoverContainer({
}) {
return (
<Transition
as={Fragment}
as={Fragment as any}
enter="transition ease-out duration-200"
enterFrom="opacity-0 translate-y-1"
enterTo="opacity-100 translate-y-0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function LandingNav() {
</div>

<Transition
as={Fragment}
as={Fragment as any}
enter="duration-100 ease-out"
enterFrom=" opacity-0"
enterTo=" opacity-100"
Expand Down Expand Up @@ -161,7 +161,7 @@ export function PopoverPanelContainer({
}) {
return (
<Transition
as={Fragment}
as={Fragment as any}
enter="transition ease-out duration-200"
enterFrom="opacity-0 translate-y-1"
enterTo="opacity-100 translate-y-0"
Expand Down
7 changes: 7 additions & 0 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/constants/tokens/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ export const ETH = new Token({
[CHAINS.SCROLL.id]: zeroAddress,
[CHAINS.LINEA.id]: zeroAddress,
[CHAINS.WORLDCHAIN.id]: zeroAddress,
[CHAINS.BNB.id]: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8',
},
decimals: 18,
symbol: 'ETH',
Expand Down
7 changes: 7 additions & 0 deletions packages/widget/src/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down

0 comments on commit bae13aa

Please sign in to comment.