Skip to content

Commit

Permalink
docs: 📝 updated doc for cf_pool_info (#181)
Browse files Browse the repository at this point in the history
* docs: 📝 updated doc for cf_pool_info

* docs: 📝 updated cf_pool_info docs

* docs: 📝 updated docs
  • Loading branch information
Janislav authored Mar 12, 2024
1 parent 85eb75f commit 8945e57
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions pages/integration/liquidity-provision/lp-rpcs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Returns the fees percentages LP's earn in the given pool.
Parameters:

- Base [Asset](lp-api#assets).
- Pair [Asset](lp-api#assets).
- Quote [Asset](lp-api#assets).

Return:

Expand All @@ -137,19 +137,35 @@ Return:
- Request:
```bash copy
curl -H "Content-Type: application/json" \
-d '{"id":1, "jsonrpc":"2.0", "method": "cf_pool_info", "params": {"base_asset": "ETH", "pair_asset": "USDC"}}' \
-d '{"id":1, "jsonrpc":"2.0", "method": "cf_pool_info", "params": {"base_asset": "ETH", "quote_asset": "USDC"}}' \
http://localhost:9944
```

- Response:
```json
{
"jsonrpc": "2.0",
"result": {
"limit_order_fee_hundredth_pips": 20,
"range_order_fee_hundredth_pips": 20
},
"id": 1
"jsonrpc":"2.0",
"result":{
"limit_order_fee_hundredth_pips":20,
"range_order_fee_hundredth_pips":20,
"range_order_total_fees_earned":{
"base":"0x92d398d746f9a",
"quote":"0x50925"
},
"limit_order_total_fees_earned":{
"base":"0x0",
"quote":"0x0"
},
"range_total_swap_inputs":{
"base":"0x70047cb8257ef2652",
"quote":"0x3d7844834"
},
"limit_total_swap_inputs":{
"base":"0x0",
"quote":"0x0"
}
},
"id":1
}
```

Expand Down

0 comments on commit 8945e57

Please sign in to comment.