pub fn refresh_position_metadata(
    ctx: Context<'_, '_, '_, '_, RefreshPositionMetadata<'_>>
) -> Result<()>
Expand description

Update the metadata for a position stored in the margin account, in the case where the metadata has changed after the position was created.

Accounts

NameTypeDescription
margin_accountwritableThe margin account with the position to be refreshed.
metadataread_onlyThe metadata account for the token, which has been updated.

Events

Event NameDescription
events::PositionMetadataRefreshedMarks the refreshing of position metadata.