@@ -59,13 +59,13 @@ How to use the package:
5959 from alpha_homora_v2 import AvalanchePosition
6060 ` ` `
6161
62- 2. ** (Optional)** Instantiate your custom Web3 provider object to interact with the network:
62+ < ! -- 2. ** (Optional)** Instantiate your custom Web3 provider object to interact with the network:
6363 ` ` ` python
6464 from alpha_homora_v2.util import get_web3_provider
6565
6666 NETWORK_RPC_URL = " your_rpc_url"
6767 provider = get_web3_provider(NETWORK_RPC_URL)
68- ` ` `
68+ ` ` ` -- >
69693. Creating an [AvalanchePosition](alpha_homora_v2/position.py) instance requires the following:
7070 - Your position ID (an integer)
7171 - This ID should match your position on Alpha Homora, without the " #"
@@ -85,24 +85,24 @@ How to use the package:
8585 - your public wallet key
8686 - ** (Optional)** your private wallet key
8787 - Your private key is required to sign transactional methods
88- - ** (Optional)** A web3 provider object
89- - If none is passed, an HTTP provider will be created with the [default Avalanche RPC URL](https://api.avax.network/ext/bc/C/rpc)
88+ < ! -- - ** (Optional)** A web3 provider object
89+ - If none is passed, an HTTP provider will be created with the [default Avalanche RPC URL](https://api.avax.network/ext/bc/C/rpc) -- >
9090
9191 Once you' ve gathered all of these variables, you can create the position instance like this example below:
9292 ```python
9393 position = AvalanchePosition(
9494 position_id=11049,
9595 owner_wallet_address="0x...",
96- owner_private_key="123abc456efg789hij...", # <- Optional - see step 4
97- web3_provider=provider) # <- Optional If you' d like to use a custom provider
96+ owner_private_key="123abc456efg789hij...") # <- Optional - see step 4
9897 ```
98+ <!-- web3_provider=provider) # <- Optional If you' d like to use a custom provider -->
99994. Alternatively, get all open positions ([AvalanchePosition](alpha_homora_v2/position.py) objects) by owner wallet address:
100100 ` ` ` python
101101 from alpha_homora_v2.position import get_avax_positions_by_owner
102102
103103 positions = get_avax_positions_by_owner(owner_address=" owner_wallet_address" ,
104104 owner_private_key=" owner_private_key" , # <- Optional
105- web3_provider=provider) # <- Optional
105+ )
106106
107107 # NOTE: Passing the private key is optional, but required if you want to use transactional methods on the returned AvalanchePosition object(s).
108108 ` ` `
@@ -148,7 +148,7 @@ How to use the package:
148148 position.get_pool_tokens ()
149149
150150 # Get the debt of each token in the position (token, debt_uint256, debt_token, debt_usd):
151- position.get_tokens_debts ()
151+ position.get_token_debts ()
152152 # Alternatively, get the debt of a single token:
153153 position.get_token_debts(token_address)
154154
0 commit comments