You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/libraries/cosmwasm/vortex_lper.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ graph LR
26
26
27
27
| Function | Parameters | Description |
28
28
|----------|------------|-------------|
29
-
|**ProvideLiquidity**|`tick_range: TickRange`<br>`token_min_amount_0: Uint128`<br>`token_min_amount_1: Uint128`| tries to deposit the entire principal and counterparty token amounts from the input account to the pool via Vortex. |
29
+
|**ProvideLiquidity**|`tick_range: TickRange`<br>`principal_token_min_amount: Uint128`<br>`counterparty_token_min_amount: Uint128`| tries to deposit the entire principal and counterparty token amounts from the input account to the pool via Vortex. |
30
30
|**Withdraw**| - | withdraws all the liquidity from the position Vortex entered including potential rewards. |
31
31
32
32
## Configuration
@@ -39,27 +39,27 @@ pub struct LibraryConfig {
39
39
pubinput_addr:LibraryAccountType,
40
40
/// Address of the output account
41
41
puboutput_addr:LibraryAccountType,
42
-
/// Address of the second output account
42
+
/// Address of the second output account
43
43
puboutput_addr_2:LibraryAccountType,
44
44
/// Configuration for the liquidity provider
45
45
/// This includes the pool address and asset data
46
46
publp_config:LiquidityProviderConfig,
47
47
}
48
48
49
49
pubstructLiquidityProviderConfig {
50
-
// Code of the vortex contract we are going to instantiate
50
+
/// Code of the vortex contract we are going to instantiate
51
51
pubvortex_code:u64,
52
-
// Label for the contract instantiation
52
+
/// Label for the contract instantiation
53
53
publabel:String,
54
-
// Id of the pool we are going to provide liquidity for
54
+
/// Id of the pool we are going to provide liquidity for
55
55
pubpool_id:u64,
56
-
// Duration of the round in seconds
56
+
/// Duration of the round in seconds
57
57
pubround_duration:u64,
58
-
// Duration of the auction in seconds
58
+
/// Duration of the auction in seconds
59
59
pubauction_duration:u64,
60
-
// Denoms of both assets we are going to provide liquidity for
60
+
/// Denoms of both assets we are going to provide liquidity for
61
61
pubasset_data:AssetData,
62
-
// Whether the principal token is first in the pool
62
+
/// Whether the principal token is first in the pool
0 commit comments