Skip to content

Commit

Permalink
Merge pull request #299 from bnb-chain/wenty/aggregator
Browse files Browse the repository at this point in the history
feat: use token price on ethereum if can not get the token price on specified chain
  • Loading branch information
wenty22 authored Jan 23, 2025
2 parents f090fce + 7c3a46e commit 2d992b6
Show file tree
Hide file tree
Showing 21 changed files with 140,488 additions and 59 deletions.
6 changes: 6 additions & 0 deletions .release/.changeset/modern-toys-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

use token price on ethereum if can not get the token price on specified chain
2 changes: 2 additions & 0 deletions .release/.changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"blue-goats-shave",
"brown-suits-matter",
"curvy-dingos-end",
"modern-toys-give",
"smooth-vans-work",
"thick-donkeys-kneel"
]
}
5 changes: 5 additions & 0 deletions .release/.changeset/smooth-vans-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bnb-chain/canonical-bridge-widget": patch
---

Fix distorted price info in token list
25 changes: 23 additions & 2 deletions apps/canonical-bridge-server/src/common/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const chains: IServerChainConfig[] = [
default: { name: 'explorer', url: 'https://explorer.ont.io' },
},
extra: {
cmcPlatform: 'ontology-gas',
cmcPlatform: 'ontology',
},
},
{
Expand All @@ -146,6 +146,9 @@ export const chains: IServerChainConfig[] = [
blockExplorers: {
default: { name: 'oklink', url: 'https://www.oklink.com/oktc' },
},
extra: {
cmcPlatform: 'okt',
},
},
{
chainType: 'evm',
Expand All @@ -156,6 +159,9 @@ export const chains: IServerChainConfig[] = [
blockExplorers: {
default: { name: 'fncy scan', url: 'https://fncyscan.fncy.world' },
},
extra: {
cmcPlatform: 'fncy',
},
},
{
chainType: 'evm',
Expand All @@ -166,6 +172,9 @@ export const chains: IServerChainConfig[] = [
blockExplorers: {
default: { name: 'gnosisscan', url: 'https://gnosisscan.io' },
},
extra: {
cmcPlatform: 'xdaistable',
},
},
{
chainType: 'evm',
Expand All @@ -186,6 +195,9 @@ export const chains: IServerChainConfig[] = [
tokenUrlPattern: 'https://hecoscan.io/#/token20/{0}',
},
},
extra: {
cmcPlatform: 'htx-token',
},
},
{
chainType: 'evm',
Expand All @@ -197,7 +209,7 @@ export const chains: IServerChainConfig[] = [
default: { name: 'polygonscan', url: 'https://polygonscan.com' },
},
extra: {
cmcPlatform: 'polygon',
cmcPlatform: 'polygon-ecosystem-token',
},
},
{
Expand All @@ -214,6 +226,9 @@ export const chains: IServerChainConfig[] = [
url: 'https://pacific-explorer.manta.network',
},
},
extra: {
cmcPlatform: 'manta-network',
},
},
{
chainType: 'evm',
Expand Down Expand Up @@ -363,6 +378,9 @@ export const chains: IServerChainConfig[] = [
blockExplorers: {
default: { name: 'subscan', url: 'https://astar.subscan.io' },
},
extra: {
cmcPlatform: 'astar',
},
},
{
chainType: 'evm',
Expand Down Expand Up @@ -881,6 +899,9 @@ export const chains: IServerChainConfig[] = [
blockExplorers: {
default: { name: 'Etherscan', url: 'https://lineascan.build' },
},
extra: {
cmcPlatform: 'linea',
},
},
{
chainType: 'evm',
Expand Down
Loading

0 comments on commit 2d992b6

Please sign in to comment.