mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 06:01:11 +00:00
fix(idl): align LEZ account metadata
Mark unconditional signer, init, and mutable accounts in guest entrypoints. Regenerate IDL artifacts for token, ATA, stablecoin, TWAP oracle, and AMM.
This commit is contained in:
committed by
r4bbit
parent
e4447617f6
commit
255f87f38f
@@ -20,9 +20,13 @@ mod stablecoin {
|
||||
#[instruction]
|
||||
pub fn open_position(
|
||||
ctx: ProgramContext,
|
||||
#[account(signer)]
|
||||
owner: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
position: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
vault: AccountWithMetadata,
|
||||
#[account(mut, signer)]
|
||||
user_holding: AccountWithMetadata,
|
||||
token_definition: AccountWithMetadata,
|
||||
collateral_amount: u128,
|
||||
@@ -53,9 +57,13 @@ mod stablecoin {
|
||||
#[instruction]
|
||||
pub fn withdraw_collateral(
|
||||
ctx: ProgramContext,
|
||||
#[account(signer)]
|
||||
owner: AccountWithMetadata,
|
||||
#[account(mut)]
|
||||
position: AccountWithMetadata,
|
||||
#[account(mut)]
|
||||
vault: AccountWithMetadata,
|
||||
#[account(mut)]
|
||||
destination: AccountWithMetadata,
|
||||
amount: u128,
|
||||
) -> SpelResult {
|
||||
@@ -83,9 +91,13 @@ mod stablecoin {
|
||||
#[instruction]
|
||||
pub fn repay_debt(
|
||||
ctx: ProgramContext,
|
||||
#[account(signer)]
|
||||
owner: AccountWithMetadata,
|
||||
#[account(mut)]
|
||||
position: AccountWithMetadata,
|
||||
#[account(mut)]
|
||||
stablecoin_definition: AccountWithMetadata,
|
||||
#[account(mut, signer)]
|
||||
user_stablecoin_holding: AccountWithMetadata,
|
||||
amount: u128,
|
||||
) -> SpelResult {
|
||||
|
||||
Reference in New Issue
Block a user