docs(stablecoin): improve documentation for OpenPosition instruction

This commit is contained in:
Ricardo Guilherme Schmidt 2026-05-11 18:03:13 -03:00
parent e51a6a5898
commit 1ecdd4e4c5
No known key found for this signature in database
GPG Key ID: 1396EA17DE132FFE

View File

@ -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,