Skip to content

Commit df1cc9e

Browse files
authored
Making the DeFi Positions API endpoint more clear and accurate. Marking it as Pebble V2 instead of Pebble V3. Also, adding a new section for Uniswap V3 Forks which should be treated as separate. (#119)
1 parent e2af5c8 commit df1cc9e

1 file changed

Lines changed: 53 additions & 2 deletions

File tree

evm/defi-positions.mdx

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,57 @@ Liquidity pool positions represent token pairs deposited into automated market m
188188
```
189189
</Accordion>
190190

191+
<Accordion title="Uniswap V3 Forks" icon="code-fork">
192+
**Type:** `Nft`
193+
**Chains:** Same as Uniswap V3
194+
**Description:** Concentrated liquidity forks of Uniswap V3. Forks are detected by factory address and returned under the same `Nft` type with the specific protocol name in the `protocol` field.
195+
196+
**Example Response (PancakeSwap V3):**
197+
198+
```json [expandable]
199+
{
200+
"wallet_address": "0x5dd596c901987a2b28c38a9c1dfbf86fffc15d77",
201+
"positions": [
202+
{
203+
"type": "Nft",
204+
"chain_id": 56,
205+
"protocol": "PancakeSwapV3",
206+
"pool": "0x36696169c63e42cd08ce11f5deeabbceb5d86d25",
207+
"token0": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
208+
"token0_name": "Wrapped BNB",
209+
"token0_symbol": "WBNB",
210+
"token0_decimals": 18,
211+
"token1": "0x55d398326f99059ff775485246999027b3197955",
212+
"token1_name": "Tether USD",
213+
"token1_symbol": "USDT",
214+
"token1_decimals": 18,
215+
"positions": [
216+
{
217+
"tick_lower": -20450,
218+
"tick_upper": -18450,
219+
"token_id": "0x3ab0",
220+
"token0_price": 580.20,
221+
"token0_holdings": 1.25,
222+
"token0_rewards": 0.002,
223+
"token1_price": 1.00,
224+
"token1_holdings": 450.50,
225+
"token1_rewards": 1.50
226+
}
227+
],
228+
"logo": "https://api.sim.dune.com/beta/token/logo/56/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
229+
"usd_value": 1175.75
230+
}
231+
],
232+
"aggregations": {
233+
"total_usd_value": 1175.75,
234+
"total_by_chain": {
235+
"56": 1175.75
236+
}
237+
}
238+
}
239+
```
240+
</Accordion>
241+
191242
<Accordion title="Uniswap V4" icon="layer-group">
192243
**Type:** `Nft`
193244
**Chains:** Ethereum (1), Unichain (130), Optimism (10), Base (8453), Zora (7777777), World Chain (480), Ink (57073), Soneium (1868)
@@ -407,11 +458,11 @@ Yield positions represent deposits into vaults, structured products, or yield-ge
407458
```
408459
</Accordion>
409460

410-
<Accordion title="Pendle v3" icon="chart-area">
461+
<Accordion title="Pendle V2" icon="chart-area">
411462
**Type:** `Pendle`
412463
**Token Types:** `Principal`, `Yield`, `LP` (in `token_type` field)
413464
**Chains:** Ethereum (1), Optimism (10), Base (8453)
414-
**Description:** Principal Tokens (PT), Yield Tokens (YT), and LP positions in Pendle v3 markets. Each position includes the underlying asset, market address, and USD value based on the asset price.
465+
**Description:** Principal Tokens (PT), Yield Tokens (YT), and LP positions in Pendle V2 markets. Each position includes the underlying asset, market address, and USD value based on the asset price.
415466

416467
**Example Response (Yield Token):**
417468

0 commit comments

Comments
 (0)