Skip to content

Commit ab40c98

Browse files
authored
SOV-4343 add SAT pools (#969)
* feat: add SAT pools * chore: add changeset * chore: add SAT icon * chore: add lp tokens * feat: add SAT pool to swaps
1 parent d255cff commit ab40c98

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

.changeset/clever-planes-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sovryn/contracts': patch
3+
---
4+
5+
feat: add SAT token to list

.changeset/large-cougars-perform.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sovryn/sdk': patch
3+
---
4+
5+
feat: add SAT pools

apps/frontend/src/app/5_pages/MarketMakingPage/components/AmbientMarketMaking/utils/pools/bobMainnet.ts

+14
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ export const bobMainnet: AmbientLiquidityPool[] = [
9494
420,
9595
'0xbFB1bF6dCc02baCeB8C4c336457798c9b4ED1225',
9696
),
97+
new AmbientLiquidityPool(
98+
'WBTC',
99+
'SAT',
100+
ChainIds.BOB_MAINNET,
101+
410,
102+
'0x9C82eF04eC7FEB9E07a9f2Be23cc180753CE4612',
103+
),
104+
new AmbientLiquidityPool(
105+
'USDT',
106+
'SAT',
107+
ChainIds.BOB_MAINNET,
108+
400,
109+
'0x8C6a57d16B1ddAD730Fee27822284d085C106DbB',
110+
),
97111
// new AmbientLiquidityPool('DAI', 'DLLR', ChainIds.BOB_MAINNET, 400),
98112
// new AmbientLiquidityPool('RETH', 'ETH', ChainIds.BOB_MAINNET, 400),
99113
// new AmbientLiquidityPool('WSTETH', 'ETH', ChainIds.BOB_MAINNET, 400),

packages/contracts/src/contracts/assets/bob.ts

+7
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,11 @@ export const bob: Array<AssetDetails> = [
8282
decimals: 18,
8383
getIcon: async () => (await import('./icons/bob/powa')).default,
8484
},
85+
{
86+
symbol: 'SAT',
87+
address: '0x78fea795cbfcc5ffd6fb5b845a4f53d25c283bdb',
88+
name: 'Satoshi Stablecoin',
89+
decimals: 18,
90+
getIcon: async () => (await import('./icons/bob/sat')).default,
91+
},
8592
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// eslint-disable-next-line import/no-anonymous-default-export
2+
export default `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
3+
<circle cx="10" cy="10" r="10" fill="black"/>
4+
<rect x="5" y="9.78262" width="10" height="3.91304" fill="url(#paint0_linear_11555_1387)"/>
5+
<rect x="5" y="7.17392" width="10" height="1.95652" fill="url(#paint1_linear_11555_1387)"/>
6+
<rect x="5" y="5.43478" width="10" height="1.08696" fill="url(#paint2_linear_11555_1387)"/>
7+
<defs>
8+
<linearGradient id="paint0_linear_11555_1387" x1="5.32609" y1="11.7391" x2="15" y2="11.7391" gradientUnits="userSpaceOnUse">
9+
<stop offset="0.395" stop-color="#FFDE5B"/>
10+
<stop offset="0.835" stop-color="#EDAD4C"/>
11+
<stop offset="1" stop-color="#EFAE4C"/>
12+
</linearGradient>
13+
<linearGradient id="paint1_linear_11555_1387" x1="5.32609" y1="8.15218" x2="15" y2="8.15218" gradientUnits="userSpaceOnUse">
14+
<stop offset="0.395" stop-color="#FFDE5B"/>
15+
<stop offset="0.835" stop-color="#EDAD4C"/>
16+
<stop offset="1" stop-color="#EFAE4C"/>
17+
</linearGradient>
18+
<linearGradient id="paint2_linear_11555_1387" x1="5.32609" y1="5.97826" x2="15" y2="5.97826" gradientUnits="userSpaceOnUse">
19+
<stop offset="0.395" stop-color="#FFDE5B"/>
20+
<stop offset="0.835" stop-color="#EDAD4C"/>
21+
<stop offset="1" stop-color="#EFAE4C"/>
22+
</linearGradient>
23+
</defs>
24+
</svg>`;

packages/sdk/src/swaps/smart-router/utils/ambient-utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ const POOLS: Partial<Record<ChainIds, PoolWithIndex[]>> = {
195195
['TBTC', 'SOV', 410],
196196
['TBTC', 'WBTC', 400],
197197
['POWA', 'SOV', 420],
198+
['WBTC', 'SAT', 410],
199+
['USDT', 'SAT', 400],
198200
],
199201
[ChainIds.BOB_TESTNET]: [
200202
['USDC', 'USDT', 36000],

0 commit comments

Comments
 (0)