Skip to content

Commit

Permalink
SOV-4496: add LST pools (#1029)
Browse files Browse the repository at this point in the history
* chore: SOV-4496 add new pools

* chore: add background to asset
  • Loading branch information
creed-victor authored Oct 17, 2024
1 parent 0bc23cc commit 52b7c4f
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 58 deletions.
7 changes: 7 additions & 0 deletions .changeset/wet-dryers-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'frontend': patch
'@sovryn/contracts': patch
'@sovryn/sdk': patch
---

chore: add new pools
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const AssetRenderer: FC<AssetRendererProps> = ({
className={classNames(
styles.assetLogo,
logoClassName,
'rounded-full overflow-hidden',
'rounded-full overflow-hidden bg-gray-80',
)}
dangerouslySetInnerHTML={{ __html: logo }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ export const CATEGORY_TOKENS: Record<CategoryType, string[]> = {
[CategoryType.Stablecoins]: SMART_ROUTER_STABLECOINS,
[CategoryType.BTC]: [COMMON_SYMBOLS.BTC],
[CategoryType.Runes]: ['POWA', 'DOGGOTOTHEMOON'],
[CategoryType.LST]: ['SolvBTC.BBN', 'UniBTC'],
[CategoryType.All]: [],
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export enum CategoryType {
Stablecoins = 'Stablecoins',
BTC = 'BTC',
Runes = 'Runes',
LST = 'LST',
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,38 +112,38 @@ export const bobMainnet: AmbientLiquidityPool[] = [
// new AmbientLiquidityPool('RETH', 'ETH', ChainIds.BOB_MAINNET, 400),
// new AmbientLiquidityPool('WSTETH', 'ETH', ChainIds.BOB_MAINNET, 400),

// new AmbientLiquidityPool(
// 'UniBTC',
// 'SolvBTC.BBN',
// ChainIds.BOB_MAINNET,
// 400,
// '0xEBE212e59c012Bd2f092489d98d11fCe17697cb2',
// PoolListGroup.new,
// ),
// new AmbientLiquidityPool(
// 'UniBTC',
// 'wBTC',
// ChainIds.BOB_MAINNET,
// 400, // todo
// '0x6D1529a7b34D452488f577495Dd7574954339dD9',
// PoolListGroup.new,
// ),
// new AmbientLiquidityPool(
// 'SolvBTC.BBN',
// 'wBTC',
// ChainIds.BOB_MAINNET,
// 400,
// '0x0F3dAef46d5631f4C335643e287314580135011E',
// PoolListGroup.new,
// ),
// new AmbientLiquidityPool(
// 'wBTC',
// 'SolvBTC',
// ChainIds.BOB_MAINNET,
// 400,
// '0xF11aB627c41044f40B5C2587e77540e7fC7Af42a',
// PoolListGroup.new,
// ),
new AmbientLiquidityPool(
'UniBTC',
'SolvBTC.BBN',
ChainIds.BOB_MAINNET,
400,
'0xEBE212e59c012Bd2f092489d98d11fCe17697cb2',
PoolListGroup.new,
),
new AmbientLiquidityPool(
'UniBTC',
'wBTC',
ChainIds.BOB_MAINNET,
400, // todo
'0x6D1529a7b34D452488f577495Dd7574954339dD9',
PoolListGroup.new,
),
new AmbientLiquidityPool(
'SolvBTC.BBN',
'wBTC',
ChainIds.BOB_MAINNET,
400,
'0x0F3dAef46d5631f4C335643e287314580135011E',
PoolListGroup.new,
),
new AmbientLiquidityPool(
'wBTC',
'SolvBTC',
ChainIds.BOB_MAINNET,
400,
'0xF11aB627c41044f40B5C2587e77540e7fC7Af42a',
PoolListGroup.new,
),
new AmbientLiquidityPool(
'DOGGOTOTHEMOON',
'POWA',
Expand Down
42 changes: 21 additions & 21 deletions packages/contracts/src/contracts/assets/bob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,25 @@ export const bob: Array<AssetDetails> = [
decimals: 18,
getIcon: async () => (await import('./icons/bob/sat')).default,
},
// {
// symbol: 'SolvBTC',
// address: '0x541FD749419CA806a8bc7da8ac23D346f2dF8B77',
// name: 'SolvBTC',
// decimals: 18,
// getIcon: async () => (await import('./icons/bob/solvbtc')).default,
// },
// {
// symbol: 'SolvBTC.BBN',
// address: '0xCC0966D8418d412c599A6421b760a847eB169A8c',
// name: 'SolvBTC Babylon',
// decimals: 18,
// getIcon: async () => (await import('./icons/bob/solvbtc_bbn')).default,
// },
// {
// symbol: 'UniBTC',
// address: '0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894',
// name: 'UniBTC',
// decimals: 8,
// getIcon: async () => (await import('./icons/bob/unibtc')).default,
// },
{
symbol: 'SolvBTC',
address: '0x541FD749419CA806a8bc7da8ac23D346f2dF8B77',
name: 'SolvBTC',
decimals: 18,
getIcon: async () => (await import('./icons/bob/solvbtc')).default,
},
{
symbol: 'SolvBTC.BBN',
address: '0xCC0966D8418d412c599A6421b760a847eB169A8c',
name: 'SolvBTC Babylon',
decimals: 18,
getIcon: async () => (await import('./icons/bob/solvbtc_bbn')).default,
},
{
symbol: 'UniBTC',
address: '0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894',
name: 'UniBTC',
decimals: 8,
getIcon: async () => (await import('./icons/bob/unibtc')).default,
},
];
8 changes: 4 additions & 4 deletions packages/sdk/src/swaps/smart-router/utils/ambient-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ const POOLS: Partial<Record<ChainIds, PoolWithIndex[]>> = {
['POWA', 'SOV', 420],
['WBTC', 'satUSD', 410],
['USDT', 'satUSD', 400],
// ['UniBTC', 'SolvBTC.BBN', 400],
// ['SolvBTC.BBN', 'wBTC', 400],
// ['UniBTC', 'wBTC', 400],
// ['SolvBTC', 'wBTC', 400],
['UniBTC', 'SolvBTC.BBN', 400],
['SolvBTC.BBN', 'wBTC', 400],
['UniBTC', 'wBTC', 400],
['SolvBTC', 'wBTC', 400],
['DOGGOTOTHEMOON', 'POWA', 420],
['DOGGOTOTHEMOON', 'wBTC', 420],
],
Expand Down

0 comments on commit 52b7c4f

Please sign in to comment.