mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-05-19 15:39:28 +00:00
docs(stablecoin): improve documentation for OpenPosition instruction
This commit is contained in:
parent
e51a6a5898
commit
1ecdd4e4c5
@ -28,9 +28,9 @@ pub enum Instruction {
|
|||||||
/// - Position vault token holding account (uninitialized, address must match
|
/// - Position vault token holding account (uninitialized, address must match
|
||||||
/// `compute_position_vault_pda(stablecoin_program_id, position_id)`)
|
/// `compute_position_vault_pda(stablecoin_program_id, position_id)`)
|
||||||
/// - Owner's source token holding for the collateral (authorized, initialized)
|
/// - Owner's source token holding for the collateral (authorized, initialized)
|
||||||
/// - Token definition account for the collateral (matches the user holding's
|
/// - Token definition account for the collateral (matches the user holding's `definition_id`;
|
||||||
/// `definition_id`; its `program_owner` determines the Token Program used by the
|
/// its `program_owner` determines the Token Program used by the chained `InitializeAccount`
|
||||||
/// chained `InitializeAccount` / `Transfer` calls)
|
/// / `Transfer` calls)
|
||||||
OpenPosition {
|
OpenPosition {
|
||||||
/// `ProgramId` under which the [`Position`] and vault PDAs are derived.
|
/// `ProgramId` under which the [`Position`] and vault PDAs are derived.
|
||||||
stablecoin_program_id: ProgramId,
|
stablecoin_program_id: ProgramId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user