Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 📝 updated doc for cf_pool_info #181

Merged
merged 4 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}}' \
j4m1ef0rd marked this conversation as resolved.
Show resolved Hide resolved
-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