Skip to content

Commit

Permalink
SOV-4225: enable DLLR bridge (#2606)
Browse files Browse the repository at this point in the history
* feat: enable DLLR bridge

* fix: dllr address for bridge
  • Loading branch information
creed-victor authored Jul 23, 2024
1 parent 27aab56 commit b266a7b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const UserAssetsTableRow: React.FC<IUserAssetsTableRow> = ({
dataActionId={`portfolio-action-convert-${asset}`}
/>
)}
{[Asset.SOV, Asset.ETH, Asset.BNB].includes(asset) && (
{[Asset.SOV, Asset.ETH, Asset.BNB, Asset.DLLR].includes(asset) && (
<BridgeLink asset={asset} disableWithdrawal={!hasAnyTokens} />
)}
{asset === Asset.WRBTC && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sovIcon from './icons/sov.svg';
import dllrIcon from './icons/dllr.svg';
import ethIcon from './icons/eth.svg';
import usdtIcon from './icons/usdt.svg';
import usdcIcon from './icons/usdc.svg';
Expand All @@ -21,6 +22,17 @@ const ethToRskAssets = [
CrossBridgeAsset.SOV,
false,
),
new AssetModel(
CrossBridgeAsset.EDLLR,
'eDLLR',
dllrIcon,
18,
4,
'0xbdbb63f938c8961af31ead3deba5c96e6a323dd1',
false,
CrossBridgeAsset.DLLR,
false,
),
new AssetModel(
CrossBridgeAsset.ETH,
'ETH',
Expand Down
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
@@ -1,6 +1,7 @@
import sovIcon from './icons/sov.svg';
import ethsIcon from './icons/eths.svg';
import xusdIcon from './icons/xusd.svg';
import dllrIcon from './icons/dllr.svg';
import { AssetModel } from '../../types/asset-model';
import { CrossBridgeAsset } from '../../types/cross-bridge-asset';
import { ethsAggregatorRSK, xusdAggregatorRSK } from './eth-to-rsk.mainnet';
Expand All @@ -21,6 +22,21 @@ const rskToEthAssets = [
undefined,
[CrossBridgeAsset.ESOV],
),
new AssetModel(
CrossBridgeAsset.DLLR,
'DLLR',
dllrIcon,
18,
4,
'0xc1411567d2670e24d9C4DaAa7CdA95686e1250AA',
false,
CrossBridgeAsset.DLLR,
false,
false,
undefined,
undefined,
[CrossBridgeAsset.EDLLR],
),
new AssetModel(
CrossBridgeAsset.ETHS,
'ETHs',
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/BridgeDepositPage/types/cross-bridge-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export enum CrossBridgeAsset {
BUSD = 'BUSD',
DAI = 'DAI',
RUSDT = 'RUSDT',
DLLR = 'DLLR',
EDLLR = 'EDLLR',
}

0 comments on commit b266a7b

Please sign in to comment.